From f1cc83ca9e9d76803480f6d2d158c5cffe98086d Mon Sep 17 00:00:00 2001 From: proller Date: Tue, 16 Apr 2019 17:13:13 +0300 Subject: [PATCH] Tests: Allow use any test database (remove test. hardcode where it possible) (#5008) --- dbms/tests/CMakeLists.txt | 15 +- dbms/tests/clickhouse-test | 3 + dbms/tests/clickhouse-test-server | 21 +- .../queries/0_stateless/00030_alter_table.sql | 48 +- .../0_stateless/00039_inserts_through_http.sh | 8 +- .../0_stateless/00041_big_array_join.sql | 22 +- .../0_stateless/00043_summing_empty_part.sql | 24 +- .../00046_stored_aggregates_simple.sql | 10 +- .../00047_stored_aggregates_complex.sql | 14 +- .../00048_a_stored_aggregates_merge.sql | 24 +- .../00048_b_stored_aggregates_merge.sql | 24 +- ..._replicated_merge_tree_alter_zookeeper.sql | 164 +-- .../0_stateless/00068_empty_tiny_log.sql | 6 +- .../00070_insert_fewer_columns_http.sh | 8 +- .../00071_insert_fewer_columns.sql | 22 +- .../0_stateless/00076_ip_coding_functions.sql | 24 +- .../0_stateless/00079_defaulted_columns.sql | 72 +- .../00083_create_merge_tree_zookeeper.sql | 192 +-- .../0_stateless/00084_summing_merge_tree.sql | 50 +- .../00090_union_race_conditions_1.sh | 12 +- .../0_stateless/00096_aggregation_min_if.sql | 492 ++++---- .../00109_shard_totals_after_having.sql | 6 +- .../00111_shard_external_sort_distributed.sql | 6 +- .../00115_shard_in_incomplete_result.sh | 12 +- .../0_stateless/00117_parsing_arrays.sql | 14 +- .../0_stateless/00119_storage_join.sql | 16 +- .../00121_drop_column_zookeeper.sql | 28 +- ...ard_memory_tracker_and_exception_safety.sh | 8 +- .../00140_prewhere_column_order.sql | 14 +- .../00141_parse_timestamp_as_datetime.sql | 10 +- .../00146_summing_merge_tree_nested_map.sql | 28 +- .../00147_alter_nested_default.sql | 38 +- ..._summing_merge_tree_aggregate_function.sql | 166 +-- ..._merge_tree_nested_map_multiple_values.sql | 28 +- .../queries/0_stateless/00155_long_merges.sh | 70 +- .../00158_buffer_and_nonexistent_table.sql | 14 +- .../00159_whitespace_in_columns_list.sql | 20 +- .../00177_inserts_through_http_parts.sh | 18 +- .../00180_attach_materialized_view.sql | 18 +- .../00181_aggregate_functions_statistics.sql | 58 +- ..._aggregate_functions_statistics_stable.sql | 58 +- ...00191_aggregating_merge_tree_and_final.sql | 18 +- .../0_stateless/00193_parallel_replicas.sql | 54 +- .../00204_extract_url_parameter.sql | 2 +- .../00209_insert_select_extremes.sql | 16 +- .../00210_insert_select_extremes_http.sh | 8 +- .../0_stateless/00214_primary_key_order.sql | 18 +- .../00215_primary_key_order_zookeeper.sql | 22 +- ...per_deduplication_and_unexpected_parts.sql | 46 +- .../00229_prewhere_column_missing.sql | 42 +- ...sjunctive_equality_chains_optimization.sql | 8 +- ...eplicated_drop_on_non_leader_zookeeper.sql | 20 +- .../00253_insert_recursive_defaults.sql | 20 +- .../00261_storage_aliases_and_array_join.sql | 126 +- .../queries/0_stateless/00262_alter_alias.sql | 32 +- .../00263_merge_aggregates_and_overflow.sql | 8 +- .../00270_views_query_processing_stage.sql | 20 +- .../queries/0_stateless/00276_sample.sql | 486 +++---- .../00278_insert_already_sorted.sql | 18 +- .../queries/0_stateless/00282_merging.sql | 116 +- .../0_stateless/00288_empty_stripelog.sql | 12 +- ...ch_negative_numbers_zookeeper.sql.disabled | 302 ++--- .../0_stateless/00298_enum_width_and_cast.sql | 20 +- .../00299_stripe_log_multiple_inserts.sql | 56 +- dbms/tests/queries/0_stateless/00301_csv.sh | 18 +- .../0_stateless/00305_http_and_readonly.sh | 12 +- .../00306_insert_values_and_expressions.sql | 10 +- dbms/tests/queries/0_stateless/00310_tskv.sh | 10 +- .../0_stateless/00311_array_primary_key.sql | 26 +- .../00314_sample_factor_virtual_column.sql | 24 +- .../0_stateless/00318_pk_tuple_order.sql | 70 +- .../0_stateless/00319_index_for_like.sql | 44 +- .../queries/0_stateless/00321_pk_set.sql | 24 +- .../00325_replacing_merge_tree.sql.disabled | 142 +-- .../00326_long_function_multi_if.sql | 1114 ++++++++--------- .../00327_summing_composite_nested.sql | 38 +- .../00328_long_case_construction.sql | 1084 ++++++++-------- .../0_stateless/00330_view_subqueries.sql | 16 +- .../0_stateless/00331_final_and_prewhere.sql | 18 +- .../00334_column_aggregate_function_limit.sql | 10 +- dbms/tests/queries/0_stateless/00335_bom.sh | 12 +- .../00338_replicate_array_of_strings.sql | 30 +- .../0_stateless/00339_parsing_bad_arrays.sh | 12 +- .../00340_squashing_insert_select.sql | 16 +- .../00341_squashing_insert_select2.sql | 36 +- .../00345_index_accurate_comparison.sql | 22 +- ...shared_array_offsets_and_squash_blocks.sql | 20 +- .../queries/0_stateless/00363_defaults.sql | 18 +- .../0_stateless/00366_multi_statements.sh | 48 +- ...4_json_each_row_input_with_noisy_fields.sh | 20 +- ..._column_aggregate_function_insert_from.sql | 16 +- ...5_storage_file_and_clickhouse-local_app.sh | 20 +- .../queries/0_stateless/00386_enum_in_pk.sql | 58 +- .../0_stateless/00386_long_in_pk.python | 32 +- .../0_stateless/00388_enum_with_totals.sql | 10 +- .../0_stateless/00392_enum_nested_alter.sql | 64 +- .../00394_new_nested_column_keeps_offsets.sql | 22 +- .../00394_replaceall_vector_fixed.sql | 24 +- .../queries/0_stateless/00395_nullable.sql | 590 ++++----- .../00399_group_uniq_array_date_datetime.sql | 10 +- .../0_stateless/00401_merge_and_stripelog.sql | 78 +- .../0_stateless/00409_shard_limit_by.sql | 36 +- ...10_aggregation_combinators_with_arenas.sql | 12 +- .../00411_merge_tree_where_const_in_set.sql | 20 +- .../00412_logical_expressions_optimizer.sql | 10 +- .../queries/0_stateless/00413_distinct.sql | 34 +- .../00418_input_format_allow_errors.sh | 24 +- .../00421_storage_merge__table_index.sh | 16 +- .../00423_storage_log_single_thread.sql | 38 +- .../0_stateless/00427_alter_primary_key.sh | 22 +- .../queries/0_stateless/00431_if_nulls.sql | 166 +-- ...gregate_function_scalars_and_constants.sql | 32 +- .../0_stateless/00440_nulls_merge_tree.sql | 10 +- .../00443_preferred_block_size_bytes.sh | 42 +- ...olumn_in_partition_concurrent_zookeeper.sh | 34 +- .../0_stateless/00447_foreach_modifier.sql | 12 +- .../queries/0_stateless/00453_cast_enum.sql | 12 +- .../0_stateless/00456_alter_nullable.sql | 22 +- .../00457_log_tinylog_stripelog_nullable.sql | 56 +- .../00462_json_true_false_literals.sql | 10 +- .../0_stateless/00465_nullable_default.sql | 10 +- .../0_stateless/00467_qualified_names.sql | 10 +- ...ultiple_arrays_and_use_original_column.sql | 20 +- ...arison_of_strings_containing_null_char.sql | 18 +- .../00472_create_view_if_not_exists.sql | 14 +- .../0_stateless/00475_in_join_db_table.sql | 36 +- .../00481_create_view_for_null.sql | 18 +- .../00481_reading_from_last_granula.sql | 8 +- .../00483_reading_from_array_structure.sql | 18 +- ...eferred_max_column_in_block_size_bytes.sql | 42 +- .../0_stateless/00485_http_insert_format.sh | 20 +- .../00488_non_ascii_column_names.sql | 12 +- .../0_stateless/00489_pk_subexpression.sql | 18 +- .../00497_whitespaces_in_insert.sh | 28 +- ..._array_functions_concat_slice_push_pop.sql | 282 ++--- .../0_stateless/00499_json_enum_insert.sql | 18 +- .../00500_point_in_polygon_bug.sql | 10 +- .../queries/0_stateless/00502_sum_map.sql | 34 +- .../0_stateless/00504_insert_miss_columns.sh | 14 +- .../0_stateless/00504_mergetree_arrays_rw.sql | 60 +- .../0_stateless/00507_array_no_params.sh | 4 +- ...lized_view_and_deduplication_zookeeper.sql | 64 +- ...ication_after_drop_partition_zookeeper.sql | 40 +- .../0_stateless/00517_date_parsing.sql | 14 +- .../00520_tuple_values_interpreter.sql | 12 +- .../0_stateless/00521_multidimensional.sql | 52 +- .../0_stateless/00522_multidimensional.sql | 8 +- .../0_stateless/00530_arrays_of_nothing.sql | 10 +- .../00531_aggregate_over_nullable.sql | 16 +- .../00535_parse_float_scientific.sql | 10 +- ...42_materialized_view_and_time_zone_tag.sql | 24 +- ...ess_to_temporary_table_in_readonly_mode.sh | 18 +- .../0_stateless/00543_null_and_prewhere.sql | 12 +- .../0_stateless/00544_insert_with_select.sql | 10 +- .../0_stateless/00549_join_use_nulls.sql | 10 +- .../0_stateless/00550_join_insert_select.sh | 26 +- .../queries/0_stateless/00552_or_nullable.sql | 16 +- .../00554_nested_and_table_engines.sql | 72 +- .../00557_alter_null_storage_tables.sql | 12 +- .../0_stateless/00561_storage_join.sql | 22 +- .../00562_in_subquery_merge_tree.sql | 28 +- ...2_rewrite_select_expression_with_union.sql | 12 +- .../00563_complex_in_expression.sql | 26 +- .../queries/0_stateless/00564_enum_order.sh | 10 +- ..._column_values_with_default_expression.sql | 14 +- .../00564_versioned_collapsing_merge_tree.sql | 246 ++-- .../0_stateless/00565_enum_order.reference | 2 +- .../queries/0_stateless/00565_enum_order.sh | 16 +- ...00568_empty_function_with_fixed_string.sql | 10 +- .../0_stateless/00571_alter_nullable.sql | 26 +- .../00574_empty_strings_deserialization.sh | 14 +- ...column_exception_when_drop_depen_column.sh | 20 +- ...75_merge_and_index_with_function_in_in.sql | 10 +- .../0_stateless/00576_nested_and_prewhere.sql | 18 +- ...77_replacing_merge_tree_vertical_merge.sql | 14 +- .../00578_merge_trees_without_primary_key.sql | 52 +- ...and_primary_keys_using_same_expression.sql | 16 +- .../0_stateless/00584_view_union_all.sql | 18 +- ...ll_subquery_aggregation_column_removal.sql | 64 +- .../00588_shard_distributed_prewhere.sql | 20 +- ...00593_union_all_assert_columns_removed.sql | 14 +- .../00594_alias_in_distributed.sql | 70 +- .../0_stateless/00595_insert_into_view.sh | 18 +- .../00598_create_as_select_http.sh | 8 +- ...0605_intersections_aggregate_functions.sql | 12 +- .../queries/0_stateless/00607_index_in_in.sql | 20 +- .../0_stateless/00609_mv_index_in_in.sql | 2 - .../00609_prewhere_and_default.sql | 22 +- ...iew_forward_alter_partition_statements.sql | 20 +- ..._zookeeper_different_checksums_formats.sql | 28 +- .../0_stateless/00612_http_max_query_size.sh | 10 +- .../queries/0_stateless/00612_pk_in_tuple.sql | 56 +- .../0_stateless/00614_array_nullable.sql | 12 +- .../00615_nullable_alter_optimize.sql | 1 - .../0_stateless/00616_final_single_part.sql | 1 - .../queries/0_stateless/00617_array_in.sql | 2 - .../queries/0_stateless/00619_extract.sql | 10 +- .../0_stateless/00619_union_highlite.sql | 2 - ...ptimize_on_nonleader_replica_zookeeper.sql | 34 +- .../00621_regression_for_in_operator.sql | 24 +- .../0_stateless/00623_in_partition_key.sql | 104 +- ...23_replicated_truncate_table_zookeeper.sql | 34 +- .../0_stateless/00623_truncate_table.sql | 130 +- .../0_stateless/00625_arrays_in_nested.sql | 2 - .../00625_summing_merge_tree_merge.sql | 10 +- .../00630_arbitrary_csv_delimiter.sh | 42 +- .../00632_get_sample_block_cache.sql | 232 ++-- .../queries/0_stateless/00633_func_or_in.sql | 10 +- ...lized_view_and_too_many_parts_zookeeper.sh | 48 +- .../0_stateless/00634_logging_shard.sh | 10 +- ...4_performance_introspection_and_logging.sh | 10 +- .../00636_partition_key_parts_pruning.sh | 42 +- .../queries/0_stateless/00639_startsWith.sql | 2 - .../queries/0_stateless/00640_endsWith.sql | 2 - dbms/tests/queries/0_stateless/00642_cast.sql | 14 +- .../0_stateless/00643_cast_zookeeper.sql | 24 +- .../queries/0_stateless/00646_weird_mmx.sql | 10 +- .../00647_multiply_aggregation_state.sql | 20 +- ...0648_replacing_empty_set_from_prewhere.sql | 10 +- ...00650_array_enumerate_uniq_with_tuples.sql | 38 +- .../00650_csv_with_specified_quote_rule.sh | 36 +- ...51_default_database_on_client_reconnect.sh | 2 +- .../0_stateless/00652_mergetree_mutations.sh | 44 +- .../00652_mutations_alter_update.sh | 70 +- .../00652_mutations_default_database.sh | 12 +- ...ed_mutations_default_database_zookeeper.sh | 14 +- .../00652_replicated_mutations_zookeeper.sh | 56 +- .../00653_monotonic_integer_cast.sql | 8 +- .../00653_verification_monotonic_data_load.sh | 100 +- ...00660_optimize_final_without_partition.sql | 20 +- .../0_stateless/00661_array_has_silviucpp.sql | 10 +- ...replicated_without_partition_zookeeper.sql | 30 +- .../00663_tiny_log_empty_insert.sql | 20 +- ...lter_nullable_string_to_nullable_uint8.sql | 18 +- .../00668_compare_arrays_silviucpp.sql | 14 +- .../0_stateless/00671_max_intersections.sql | 20 +- .../0_stateless/00672_arrayDistinct.sql | 2 - ...0673_subquery_prepared_set_performance.sql | 12 +- .../0_stateless/00674_join_on_syntax.sql | 150 +-- .../queries/0_stateless/00679_uuid_in_key.sql | 2 - ...columns_inside_union_all_stas_sviridov.sql | 12 +- .../0_stateless/00682_empty_parts_merge.sh | 112 +- .../0_stateless/00686_client_exit_code.sh | 2 +- .../0_stateless/00687_insert_into_mv.sql | 38 +- .../0_stateless/00687_top_and_offset.sh | 34 +- .../0_stateless/00688_case_without_else.sql | 10 +- ...00688_low_cardinality_alter_add_column.sql | 12 +- ...cardinality_dictionary_deserialization.sql | 10 +- .../0_stateless/00688_low_cardinality_in.sql | 20 +- .../00688_low_cardinality_nullable_cast.sql | 16 +- .../00688_low_cardinality_prewhere.sql | 10 +- .../00688_low_cardinality_serialization.sql | 28 +- .../00688_low_cardinality_syntax.sql | 120 +- .../0_stateless/00689_catboost_pool_files.sh | 34 +- ...ert_select_converting_exception_message.sh | 12 +- .../00698_validate_array_sizes_for_nested.sql | 14 +- ...lidate_array_sizes_for_nested_kshvakov.sql | 10 +- .../00699_materialized_view_mutations.sh | 38 +- .../0_stateless/00700_decimal_aggregates.sql | 84 +- .../0_stateless/00700_decimal_arithm.sql | 84 +- .../0_stateless/00700_decimal_bounds.sql | 148 +-- .../0_stateless/00700_decimal_compare.sql | 88 +- .../00700_decimal_complex_types.sql | 156 +-- .../0_stateless/00700_decimal_defaults.sql | 14 +- .../0_stateless/00700_decimal_formats.sql | 32 +- .../0_stateless/00700_decimal_in_keys.sql | 28 +- .../0_stateless/00700_decimal_null.sql | 48 +- .../00701_join_default_strictness.sql | 28 +- .../queries/0_stateless/00701_rollup.sql | 30 +- .../0_stateless/00702_join_on_dups.sql | 1 - .../0_stateless/00702_join_with_using.sql | 19 +- .../00702_join_with_using_dups.sql | 1 - .../00702_where_with_quailified_names.sql | 1 - .../queries/0_stateless/00703_join_crash.sql | 18 +- ...704_arrayCumSumLimited_arrayDifference.sql | 20 +- .../00704_drop_truncate_memory_table.sh | 12 +- .../00705_aggregate_states_addition.sql | 1 - .../00705_drop_create_merge_tree.sh | 6 +- .../00709_virtual_column_partition_id.sql | 10 +- .../0_stateless/00712_prewhere_with_alias.sql | 56 +- ...prewhere_with_alias_and_virtual_column.sql | 8 +- .../00712_prewhere_with_alias_bug.sql | 10 +- .../00712_prewhere_with_alias_bug_2.sql | 8 +- .../0_stateless/00712_prewhere_with_final.sql | 20 +- .../00712_prewhere_with_missing_columns.sql | 20 +- .../00712_prewhere_with_missing_columns_2.sql | 16 +- .../00712_prewhere_with_sampling.sql | 18 +- ...00712_prewhere_with_sampling_and_alias.sql | 10 +- .../00713_collapsing_merge_tree.sql | 18 +- .../queries/0_stateless/00714_alter_uuid.sql | 2 - ...fetch_merged_or_mutated_part_zookeeper.sql | 44 +- .../00715_json_each_row_input_nested.sh | 18 +- .../queries/0_stateless/00716_allow_ddl.sql | 6 +- .../0_stateless/00717_default_join_type.sql | 14 +- .../00717_low_cardinaliry_group_by.sql | 42 +- .../00718_low_cardinaliry_alter.sql | 32 +- .../00719_insert_block_without_column.sh | 12 +- .../0_stateless/00719_parallel_ddl_table.sh | 8 +- .../queries/0_stateless/00720_with_cube.sql | 28 +- ...identical_result_after_merge_zookeeper.sql | 22 +- .../queries/0_stateless/00722_inner_join.sql | 6 +- .../0_stateless/00725_join_on_bug_1.sql | 20 +- .../0_stateless/00725_join_on_bug_2.sql | 30 +- .../0_stateless/00725_join_on_bug_3.sql | 20 +- .../0_stateless/00725_join_on_bug_4.sql | 18 +- .../00726_materialized_view_concurrent.sql | 14 +- .../00728_json_each_row_parsing.sh | 10 +- .../0_stateless/00729_prewhere_array_join.sql | 1 - .../00730_unicode_terminal_format.sql | 40 +- ...731_long_merge_tree_select_opened_files.sh | 12 +- .../00732_decimal_summing_merge_tree.sql | 26 +- ...sert_have_data_before_quorum_zookeeper.sql | 34 +- ...ert_lost_part_and_alive_part_zookeeper.sql | 36 +- ...0732_quorum_insert_lost_part_zookeeper.sql | 30 +- ..._old_data_and_without_quorum_zookeeper.sql | 28 +- ...m_insert_simple_test_2_parts_zookeeper.sql | 22 +- .../00735_or_expr_optimize_bug.sql | 8 +- .../00736_disjunction_optimisation.sql | 28 +- .../0_stateless/00737_decimal_group_by.sql | 12 +- .../0_stateless/00738_lock_for_inner_table.sh | 16 +- ...38_nested_merge_multidimensional_array.sql | 16 +- .../00740_optimize_predicate_expression.sql | 16 +- .../00743_limit_by_not_found_column.sql | 1 - .../00745_compile_scalar_subquery.sql | 26 +- ...746_compile_non_deterministic_function.sql | 14 +- .../00748_insert_array_with_null.sql | 12 +- ...00749_inner_join_of_unnamed_subqueries.sql | 22 +- .../00750_merge_tree_merge_with_o_direct.sql | 12 +- ...0751_low_cardinality_nullable_group_by.sql | 10 +- .../00752_low_cardinality_lambda_argument.sql | 10 +- .../00752_low_cardinality_left_array_join.sql | 16 +- .../00752_low_cardinality_mv_1.sql | 18 +- .../00752_low_cardinality_mv_2.sql | 16 +- .../00752_low_cardinality_permute.sql | 12 +- .../0_stateless/00753_alter_attach.sql | 28 +- .../0_stateless/00753_quantile_format.sql | 40 +- ...00753_system_columns_and_system_tables.sql | 14 +- ...d_optimize_skip_select_on_unused_shards.sh | 50 +- .../00755_avg_value_size_hint_passing.sql | 10 +- .../00760_insert_json_with_defaults.sql | 32 +- .../0_stateless/00799_function_dry_run.sql | 6 +- ...800_low_cardinality_array_group_by_arg.sql | 16 +- ...00800_low_cardinality_distinct_numeric.sql | 10 +- .../00800_low_cardinality_empty_array.sql | 12 +- .../0_stateless/00804_rollup_with_having.sql | 16 +- .../0_stateless/00806_alter_update.sql | 12 +- .../00808_not_optimize_predicate.sql | 22 +- .../00812_prewhere_alias_array.sql | 8 +- .../00816_join_column_names_sarg.sql | 4 +- .../00816_long_concurrent_alter_column.sh | 14 +- .../0_stateless/00818_inner_join_bug_3567.sql | 22 +- .../0_stateless/00818_join_bug_4271.sql | 2 - .../00819_ast_refactoring_bugs.sql | 10 +- .../0_stateless/00820_multiple_joins.sql | 2 - ...00821_distributed_storage_with_join_on.sql | 16 +- .../0_stateless/00823_capnproto_input.sh | 10 +- .../0_stateless/00823_sequence_match_dfa.sql | 12 +- .../00825_protobuf_format_input.insh | 8 +- .../00825_protobuf_format_input.sh | 7 +- .../00825_protobuf_format_output.sh | 19 +- .../0_stateless/00826_cross_to_inner_join.sql | 1 - .../0_stateless/00829_bitmap_function.sql | 34 +- .../0_stateless/00830_join_overwrite.sql | 2 - .../0_stateless/00832_storage_file_lock.sql | 12 +- .../00834_hints_for_type_function_typos.sh | 4 +- .../0_stateless/00834_kill_mutation.sh | 28 +- ...0834_kill_mutation_replicated_zookeeper.sh | 36 +- .../00837_insert_select_and_read_prefix.sql | 12 +- .../queries/0_stateless/00837_minmax_index.sh | 16 +- ...0837_minmax_index_replicated_zookeeper.sql | 56 +- .../00838_system_tables_drop_table_race.sh | 6 +- .../queries/0_stateless/00838_unique_index.sh | 16 +- ...ong_concurrent_select_and_drop_deadlock.sh | 6 +- ...43_optimize_predicate_and_rename_table.sql | 26 +- .../0_stateless/00844_join_lightee2.sql | 2 - .../0_stateless/00845_join_on_aliases.sql | 2 - .../00847_multiple_join_same_column.sql | 2 - .../00848_join_use_nulls_segfault.sql | 2 - .../0_stateless/00849_multiple_comma_join.sql | 1 - .../00851_http_insert_json_defaults.sh | 16 +- .../0_stateless/00852_any_join_nulls.sql | 6 +- .../00853_join_with_nulls_crash.sql | 2 - .../00856_no_column_issue_4242.sql | 2 - .../00899_long_attach_memory_limit.sql | 16 +- .../queries/0_stateless/00900_parquet.sh | 152 +-- .../0_stateless/00900_parquet_decimal.sh | 158 +-- .../queries/0_stateless/00900_parquet_load.sh | 10 +- .../queries/0_stateless/00902_entropy.sql | 40 +- ..._compile_expressions_compare_big_dates.sql | 12 +- .../00906_low_cardinality_cache.sql | 10 +- .../00906_low_cardinality_rollup.sql | 18 +- .../0_stateless/00907_set_index_max_rows.sh | 10 +- ...ndex_with_nullable_and_low_cardinality.sql | 82 +- ..._with_nullable_and_low_cardinality_bug.sql | 12 +- .../0_stateless/00908_analyze_query.reference | 2 +- .../0_stateless/00908_analyze_query.sql | 8 +- .../0_stateless/00908_bloom_filter_index.sh | 96 +- .../0_stateless/00908_long_http_insert.sh | 10 +- .../0_stateless/00909_arrayEnumerateUniq.sql | 44 +- .../0_stateless/00909_ngram_distance.sql | 70 +- .../00910_decimal_group_array_crash_3783.sql | 2 - .../0_stateless/00913_many_threads.sql | 2 + .../0_stateless/00914_join_bgranvea.sql | 2 - .../00916_add_materialized_column_after.sql | 10 +- .../00917_multiple_joins_denny_crane.sql | 2 - ...y_replicated_merge_tree_optimize_final.sql | 14 +- .../00927_asof_join_correct_bt.sql | 2 - .../0_stateless/00927_asof_join_long.sql | 2 - .../00927_asof_join_noninclusive.sql | 2 - .../queries/0_stateless/00927_asof_joins.sql | 10 +- .../0_stateless/00927_table_filter.sql | 56 +- .../0_stateless/00930_arrayIntersect.sql | 40 +- ...ality_nullable_aggregate_function_type.sql | 10 +- ..._low_cardinality_read_with_empty_array.sql | 10 +- .../0_stateless/00933_reserved_word.sql | 10 +- dbms/tests/queries/shell_config.sh | 1 + 416 files changed, 7660 insertions(+), 7701 deletions(-) diff --git a/dbms/tests/CMakeLists.txt b/dbms/tests/CMakeLists.txt index 2fd91f21933..9031fcf7e39 100644 --- a/dbms/tests/CMakeLists.txt +++ b/dbms/tests/CMakeLists.txt @@ -25,7 +25,20 @@ if (ENABLE_TESTS) # maybe add --no-long ? # if you want disable some tests: env TEST_OPT0='--skip compile' - add_test(NAME with_server COMMAND bash -c "env BUILD_DIR=${ClickHouse_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/clickhouse-test-server") + if(TEST_CMAKE_PARALLEL) + # NUMBER_OF_LOGICAL_CORES + if (TEST_CMAKE_PARALLEL GREATER 1) + set(TOTAL_TESTS ${TEST_CMAKE_PARALLEL}) + else() + set(TOTAL_TESTS ${NUMBER_OF_LOGICAL_CORES}) + endif() + foreach(proc RANGE 1 ${TOTAL_TESTS}) + add_test(NAME with_server${proc} COMMAND bash -c "env BUILD_DIR=${ClickHouse_BINARY_DIR} TEST_OPT0=--parallel=${proc}/${TOTAL_TESTS} ${CMAKE_CURRENT_SOURCE_DIR}/clickhouse-test-server") + endforeach() + else() + add_test(NAME with_server COMMAND bash -c "env BUILD_DIR=${ClickHouse_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/clickhouse-test-server") + endif() + endif () if (ENABLE_TEST_INTEGRATION) diff --git a/dbms/tests/clickhouse-test b/dbms/tests/clickhouse-test index e5ef538e0f1..d80d69d7cd3 100755 --- a/dbms/tests/clickhouse-test +++ b/dbms/tests/clickhouse-test @@ -167,6 +167,9 @@ def main(args): clickhouse_proc_create = Popen(shlex.split(args.client), stdin=PIPE, stdout=PIPE, stderr=PIPE) clickhouse_proc_create.communicate("CREATE DATABASE IF NOT EXISTS " + args.database) + if args.database != "test": + clickhouse_proc_create = Popen(shlex.split(args.client), stdin=PIPE, stdout=PIPE, stderr=PIPE) + clickhouse_proc_create.communicate("CREATE DATABASE IF NOT EXISTS test") def is_test_from_dir(suite_dir, case): case_file = os.path.join(suite_dir, case) diff --git a/dbms/tests/clickhouse-test-server b/dbms/tests/clickhouse-test-server index af3f208bac7..c029275a7a8 100755 --- a/dbms/tests/clickhouse-test-server +++ b/dbms/tests/clickhouse-test-server @@ -141,7 +141,26 @@ else done $CLICKHOUSE_PERFORMANCE_TEST & fi - ( [ "$TEST_RUN" ] && $CLICKHOUSE_TEST ) || ${TEST_TRUE:=false} + + if [ "${TEST_RUN_PARALLEL}" ]; then + # Running test in parallel will fail some results (tests can create/fill/drop same tables) + TEST_NPROC=${TEST_NPROC:=$(( `nproc || sysctl -n hw.ncpu || echo 2` * 2))} + for i in `seq 1 ${TEST_NPROC}`; do + $CLICKHOUSE_TEST --testname --tmp=$DATA_DIR/tmp/tmp${i} --database=test${i} --parallel=${i}/${TEST_NPROC} & + done + for job in `jobs -p`; do + #echo wait $job + wait $job || let "FAIL+=1" + done + + #echo $FAIL + if [ "$FAIL" != "0" ]; then + return $FAIL + fi + else + ( [ "$TEST_RUN" ] && $CLICKHOUSE_TEST ) || ${TEST_TRUE:=false} + fi + ( [ "$TEST_PERF" ] && $CLICKHOUSE_PERFORMANCE_TEST $* ) || true #( [ "$TEST_DICT" ] && mkdir -p $DATA_DIR/etc/dictionaries/ && cd $CUR_DIR/external_dictionaries && python generate_and_test.py --port=$CLICKHOUSE_PORT_TCP --client=$CLICKHOUSE_CLIENT --source=$CUR_DIR/external_dictionaries/source.tsv --reference=$CUR_DIR/external_dictionaries/reference --generated=$DATA_DIR/etc/dictionaries/ --no_mysql --no_mongo ) || true $CLICKHOUSE_CLIENT_QUERY "SELECT event, value FROM system.events; SELECT metric, value FROM system.metrics; SELECT metric, value FROM system.asynchronous_metrics;" diff --git a/dbms/tests/queries/0_stateless/00030_alter_table.sql b/dbms/tests/queries/0_stateless/00030_alter_table.sql index cc5789b4040..5fc45575a4a 100644 --- a/dbms/tests/queries/0_stateless/00030_alter_table.sql +++ b/dbms/tests/queries/0_stateless/00030_alter_table.sql @@ -1,37 +1,37 @@ -DROP TABLE IF EXISTS test.alter_test; +DROP TABLE IF EXISTS alter_test; -CREATE TABLE test.alter_test (CounterID UInt32, StartDate Date, UserID UInt32, VisitID UInt32, NestedColumn Nested(A UInt8, S String), ToDrop UInt32) ENGINE = MergeTree(StartDate, intHash32(UserID), (CounterID, StartDate, intHash32(UserID), VisitID), 8192); +CREATE TABLE alter_test (CounterID UInt32, StartDate Date, UserID UInt32, VisitID UInt32, NestedColumn Nested(A UInt8, S String), ToDrop UInt32) ENGINE = MergeTree(StartDate, intHash32(UserID), (CounterID, StartDate, intHash32(UserID), VisitID), 8192); -INSERT INTO test.alter_test VALUES (1, '2014-01-01', 2, 3, [1,2,3], ['a','b','c'], 4); +INSERT INTO alter_test VALUES (1, '2014-01-01', 2, 3, [1,2,3], ['a','b','c'], 4); -ALTER TABLE test.alter_test ADD COLUMN Added0 UInt32; -ALTER TABLE test.alter_test ADD COLUMN Added2 UInt32; -ALTER TABLE test.alter_test ADD COLUMN Added1 UInt32 AFTER Added0; +ALTER TABLE alter_test ADD COLUMN Added0 UInt32; +ALTER TABLE alter_test ADD COLUMN Added2 UInt32; +ALTER TABLE alter_test ADD COLUMN Added1 UInt32 AFTER Added0; -ALTER TABLE test.alter_test ADD COLUMN AddedNested1 Nested(A UInt32, B UInt64) AFTER Added2; -ALTER TABLE test.alter_test ADD COLUMN AddedNested1.C Array(String) AFTER AddedNested1.B; -ALTER TABLE test.alter_test ADD COLUMN AddedNested2 Nested(A UInt32, B UInt64) AFTER AddedNested1; +ALTER TABLE alter_test ADD COLUMN AddedNested1 Nested(A UInt32, B UInt64) AFTER Added2; +ALTER TABLE alter_test ADD COLUMN AddedNested1.C Array(String) AFTER AddedNested1.B; +ALTER TABLE alter_test ADD COLUMN AddedNested2 Nested(A UInt32, B UInt64) AFTER AddedNested1; -DESC TABLE test.alter_test; +DESC TABLE alter_test; -ALTER TABLE test.alter_test DROP COLUMN ToDrop; +ALTER TABLE alter_test DROP COLUMN ToDrop; -ALTER TABLE test.alter_test MODIFY COLUMN Added0 String; +ALTER TABLE alter_test MODIFY COLUMN Added0 String; -ALTER TABLE test.alter_test DROP COLUMN NestedColumn.A; -ALTER TABLE test.alter_test DROP COLUMN NestedColumn.S; +ALTER TABLE alter_test DROP COLUMN NestedColumn.A; +ALTER TABLE alter_test DROP COLUMN NestedColumn.S; -ALTER TABLE test.alter_test DROP COLUMN AddedNested1.B; +ALTER TABLE alter_test DROP COLUMN AddedNested1.B; -ALTER TABLE test.alter_test ADD COLUMN IF NOT EXISTS Added0 UInt32; -ALTER TABLE test.alter_test ADD COLUMN IF NOT EXISTS AddedNested1 Nested(A UInt32, B UInt64); -ALTER TABLE test.alter_test ADD COLUMN IF NOT EXISTS AddedNested1.C Array(String); -ALTER TABLE test.alter_test MODIFY COLUMN IF EXISTS ToDrop UInt64; -ALTER TABLE test.alter_test DROP COLUMN IF EXISTS ToDrop; -ALTER TABLE test.alter_test COMMENT COLUMN IF EXISTS ToDrop 'new comment'; +ALTER TABLE alter_test ADD COLUMN IF NOT EXISTS Added0 UInt32; +ALTER TABLE alter_test ADD COLUMN IF NOT EXISTS AddedNested1 Nested(A UInt32, B UInt64); +ALTER TABLE alter_test ADD COLUMN IF NOT EXISTS AddedNested1.C Array(String); +ALTER TABLE alter_test MODIFY COLUMN IF EXISTS ToDrop UInt64; +ALTER TABLE alter_test DROP COLUMN IF EXISTS ToDrop; +ALTER TABLE alter_test COMMENT COLUMN IF EXISTS ToDrop 'new comment'; -DESC TABLE test.alter_test; +DESC TABLE alter_test; -SELECT * FROM test.alter_test; +SELECT * FROM alter_test; -DROP TABLE test.alter_test; +DROP TABLE alter_test; diff --git a/dbms/tests/queries/0_stateless/00039_inserts_through_http.sh b/dbms/tests/queries/0_stateless/00039_inserts_through_http.sh index 45d2e16709b..0f37827d0be 100755 --- a/dbms/tests/queries/0_stateless/00039_inserts_through_http.sh +++ b/dbms/tests/queries/0_stateless/00039_inserts_through_http.sh @@ -3,10 +3,10 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -echo 'DROP TABLE IF EXISTS test.long_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'CREATE TABLE test.long_insert (a String) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'DROP TABLE IF EXISTS long_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'CREATE TABLE long_insert (a String) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- for string_size in 1 10 100 1000 10000 100000 1000000; do # LC_ALL=C is needed because otherwise Perl will bark on bad tuned environment. - LC_ALL=C perl -we 'for my $letter ("a" .. "z") { print(($letter x '$string_size') . "\n") }' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}?query=INSERT+INTO+test.long_insert+FORMAT+TabSeparated" --data-binary @- - echo 'SELECT substring(a, 1, 1) AS c, length(a) AS l FROM test.long_insert ORDER BY c, l' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- + LC_ALL=C perl -we 'for my $letter ("a" .. "z") { print(($letter x '$string_size') . "\n") }' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}?query=INSERT+INTO+long_insert+FORMAT+TabSeparated" --data-binary @- + echo 'SELECT substring(a, 1, 1) AS c, length(a) AS l FROM long_insert ORDER BY c, l' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- done diff --git a/dbms/tests/queries/0_stateless/00041_big_array_join.sql b/dbms/tests/queries/0_stateless/00041_big_array_join.sql index f4d83fc4ebf..0a73930cbc2 100644 --- a/dbms/tests/queries/0_stateless/00041_big_array_join.sql +++ b/dbms/tests/queries/0_stateless/00041_big_array_join.sql @@ -1,15 +1,15 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.big_array; -CREATE TABLE test.big_array (x Array(UInt8)) ENGINE=TinyLog; +DROP TABLE IF EXISTS big_array; +CREATE TABLE big_array (x Array(UInt8)) ENGINE=TinyLog; SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; -INSERT INTO test.big_array SELECT groupArray(number % 255) AS x FROM (SELECT * FROM system.numbers LIMIT 1000000); +INSERT INTO big_array SELECT groupArray(number % 255) AS x FROM (SELECT * FROM system.numbers LIMIT 1000000); -SELECT count() FROM test.big_array ARRAY JOIN x; -SELECT count() FROM test.big_array ARRAY JOIN x AS y; -SELECT countIf(has(x, 10)), sum(y) FROM test.big_array ARRAY JOIN x AS y; -SELECT countIf(has(x, 10)) FROM test.big_array ARRAY JOIN x AS y; -SELECT countIf(has(x, 10)), sum(y) FROM test.big_array ARRAY JOIN x AS y WHERE 1; -SELECT countIf(has(x, 10)) FROM test.big_array ARRAY JOIN x AS y WHERE 1; -SELECT countIf(has(x, 10)), sum(y) FROM test.big_array ARRAY JOIN x AS y WHERE has(x,15); +SELECT count() FROM big_array ARRAY JOIN x; +SELECT count() FROM big_array ARRAY JOIN x AS y; +SELECT countIf(has(x, 10)), sum(y) FROM big_array ARRAY JOIN x AS y; +SELECT countIf(has(x, 10)) FROM big_array ARRAY JOIN x AS y; +SELECT countIf(has(x, 10)), sum(y) FROM big_array ARRAY JOIN x AS y WHERE 1; +SELECT countIf(has(x, 10)) FROM big_array ARRAY JOIN x AS y WHERE 1; +SELECT countIf(has(x, 10)), sum(y) FROM big_array ARRAY JOIN x AS y WHERE has(x,15); -DROP TABLE test.big_array; +DROP TABLE big_array; diff --git a/dbms/tests/queries/0_stateless/00043_summing_empty_part.sql b/dbms/tests/queries/0_stateless/00043_summing_empty_part.sql index ed07d82fc6c..8fb261b3fed 100644 --- a/dbms/tests/queries/0_stateless/00043_summing_empty_part.sql +++ b/dbms/tests/queries/0_stateless/00043_summing_empty_part.sql @@ -1,18 +1,18 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.empty_summing; -CREATE TABLE test.empty_summing (d Date, k UInt64, v Int8) ENGINE=SummingMergeTree(d, k, 8192); +DROP TABLE IF EXISTS empty_summing; +CREATE TABLE empty_summing (d Date, k UInt64, v Int8) ENGINE=SummingMergeTree(d, k, 8192); -INSERT INTO test.empty_summing VALUES ('2015-01-01', 1, 10); -INSERT INTO test.empty_summing VALUES ('2015-01-01', 1, -10); +INSERT INTO empty_summing VALUES ('2015-01-01', 1, 10); +INSERT INTO empty_summing VALUES ('2015-01-01', 1, -10); -OPTIMIZE TABLE test.empty_summing; -SELECT * FROM test.empty_summing; +OPTIMIZE TABLE empty_summing; +SELECT * FROM empty_summing; -INSERT INTO test.empty_summing VALUES ('2015-01-01', 1, 4),('2015-01-01', 2, -9),('2015-01-01', 3, -14); -INSERT INTO test.empty_summing VALUES ('2015-01-01', 1, -2),('2015-01-01', 1, -2),('2015-01-01', 3, 14); -INSERT INTO test.empty_summing VALUES ('2015-01-01', 1, 0),('2015-01-01', 3, 0); +INSERT INTO empty_summing VALUES ('2015-01-01', 1, 4),('2015-01-01', 2, -9),('2015-01-01', 3, -14); +INSERT INTO empty_summing VALUES ('2015-01-01', 1, -2),('2015-01-01', 1, -2),('2015-01-01', 3, 14); +INSERT INTO empty_summing VALUES ('2015-01-01', 1, 0),('2015-01-01', 3, 0); -OPTIMIZE TABLE test.empty_summing; -SELECT * FROM test.empty_summing; +OPTIMIZE TABLE empty_summing; +SELECT * FROM empty_summing; -DROP TABLE test.empty_summing; +DROP TABLE empty_summing; diff --git a/dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.sql b/dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.sql index 06401ebc589..8b1ef5ba48d 100644 --- a/dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.sql +++ b/dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.stored_aggregates; +DROP TABLE IF EXISTS stored_aggregates; -CREATE TABLE test.stored_aggregates +CREATE TABLE stored_aggregates ( d Date, Uniq AggregateFunction(uniq, UInt64) ) ENGINE = AggregatingMergeTree(d, d, 8192); -INSERT INTO test.stored_aggregates +INSERT INTO stored_aggregates SELECT toDate('2014-06-01') AS d, uniqState(number) AS Uniq @@ -16,6 +16,6 @@ FROM SELECT * FROM system.numbers LIMIT 1000 ); -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -DROP TABLE test.stored_aggregates; +DROP TABLE stored_aggregates; diff --git a/dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.sql b/dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.sql index 4c7e61576b3..cee13c34e6e 100644 --- a/dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.sql +++ b/dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.stored_aggregates; +DROP TABLE IF EXISTS stored_aggregates; -CREATE TABLE test.stored_aggregates +CREATE TABLE stored_aggregates ( d Date, k1 UInt64, @@ -15,7 +15,7 @@ CREATE TABLE test.stored_aggregates ) ENGINE = AggregatingMergeTree(d, (d, k1, k2), 8192); -INSERT INTO test.stored_aggregates +INSERT INTO stored_aggregates SELECT toDate('2014-06-01') AS d, intDiv(number, 100) AS k1, @@ -39,7 +39,7 @@ SELECT d, k1, k2, anyMerge(Any), anyIfMerge(AnyIf), quantilesMerge(0.5, 0.9)(Quantiles), groupArrayMerge(GroupArray) -FROM test.stored_aggregates +FROM stored_aggregates GROUP BY d, k1, k2 ORDER BY d, k1, k2; @@ -48,7 +48,7 @@ SELECT d, k1, anyMerge(Any), anyIfMerge(AnyIf), quantilesMerge(0.5, 0.9)(Quantiles), groupArrayMerge(GroupArray) -FROM test.stored_aggregates +FROM stored_aggregates GROUP BY d, k1 ORDER BY d, k1; @@ -57,8 +57,8 @@ SELECT d, anyMerge(Any), anyIfMerge(AnyIf), quantilesMerge(0.5, 0.9)(Quantiles), groupArrayMerge(GroupArray) -FROM test.stored_aggregates +FROM stored_aggregates GROUP BY d ORDER BY d; -DROP TABLE test.stored_aggregates; +DROP TABLE stored_aggregates; diff --git a/dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql b/dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql index 79c52af7179..79617692ebd 100644 --- a/dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql +++ b/dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.stored_aggregates; +DROP TABLE IF EXISTS stored_aggregates; -CREATE TABLE test.stored_aggregates +CREATE TABLE stored_aggregates ( d Date, Uniq AggregateFunction(uniq, UInt64) ) ENGINE = AggregatingMergeTree(d, d, 8192); -INSERT INTO test.stored_aggregates +INSERT INTO stored_aggregates SELECT toDate(toUInt16(toDate('2014-06-01')) + intDiv(number, 100)) AS d, uniqState(intDiv(number, 10)) AS Uniq @@ -17,11 +17,11 @@ FROM ) GROUP BY d; -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -SELECT d, uniqMerge(Uniq) FROM test.stored_aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(Uniq) FROM stored_aggregates GROUP BY d ORDER BY d; -INSERT INTO test.stored_aggregates +INSERT INTO stored_aggregates SELECT toDate(toUInt16(toDate('2014-06-01')) + intDiv(number, 100)) AS d, uniqState(intDiv(number + 50, 10)) AS Uniq @@ -31,15 +31,15 @@ FROM ) GROUP BY d; -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -SELECT d, uniqMerge(Uniq) FROM test.stored_aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(Uniq) FROM stored_aggregates GROUP BY d ORDER BY d; -OPTIMIZE TABLE test.stored_aggregates; +OPTIMIZE TABLE stored_aggregates; -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -SELECT d, uniqMerge(Uniq) FROM test.stored_aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(Uniq) FROM stored_aggregates GROUP BY d ORDER BY d; -DROP TABLE test.stored_aggregates; +DROP TABLE stored_aggregates; diff --git a/dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql b/dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql index 79c52af7179..79617692ebd 100644 --- a/dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql +++ b/dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.stored_aggregates; +DROP TABLE IF EXISTS stored_aggregates; -CREATE TABLE test.stored_aggregates +CREATE TABLE stored_aggregates ( d Date, Uniq AggregateFunction(uniq, UInt64) ) ENGINE = AggregatingMergeTree(d, d, 8192); -INSERT INTO test.stored_aggregates +INSERT INTO stored_aggregates SELECT toDate(toUInt16(toDate('2014-06-01')) + intDiv(number, 100)) AS d, uniqState(intDiv(number, 10)) AS Uniq @@ -17,11 +17,11 @@ FROM ) GROUP BY d; -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -SELECT d, uniqMerge(Uniq) FROM test.stored_aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(Uniq) FROM stored_aggregates GROUP BY d ORDER BY d; -INSERT INTO test.stored_aggregates +INSERT INTO stored_aggregates SELECT toDate(toUInt16(toDate('2014-06-01')) + intDiv(number, 100)) AS d, uniqState(intDiv(number + 50, 10)) AS Uniq @@ -31,15 +31,15 @@ FROM ) GROUP BY d; -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -SELECT d, uniqMerge(Uniq) FROM test.stored_aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(Uniq) FROM stored_aggregates GROUP BY d ORDER BY d; -OPTIMIZE TABLE test.stored_aggregates; +OPTIMIZE TABLE stored_aggregates; -SELECT uniqMerge(Uniq) FROM test.stored_aggregates; +SELECT uniqMerge(Uniq) FROM stored_aggregates; -SELECT d, uniqMerge(Uniq) FROM test.stored_aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(Uniq) FROM stored_aggregates GROUP BY d ORDER BY d; -DROP TABLE test.stored_aggregates; +DROP TABLE stored_aggregates; diff --git a/dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql b/dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql index 7686c27fe34..78b80d4a10f 100644 --- a/dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql @@ -1,107 +1,107 @@ -DROP TABLE IF EXISTS test.replicated_alter1; -DROP TABLE IF EXISTS test.replicated_alter2; -CREATE TABLE test.replicated_alter1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, k, 8192); -CREATE TABLE test.replicated_alter2 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r2', d, k, 8192); +DROP TABLE IF EXISTS replicated_alter1; +DROP TABLE IF EXISTS replicated_alter2; +CREATE TABLE replicated_alter1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, k, 8192); +CREATE TABLE replicated_alter2 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r2', d, k, 8192); -INSERT INTO test.replicated_alter1 VALUES ('2015-01-01', 10, 42); +INSERT INTO replicated_alter1 VALUES ('2015-01-01', 10, 42); -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 ADD COLUMN dt DateTime; -INSERT INTO test.replicated_alter1 VALUES ('2015-01-01', 9, 41, '1992-01-01 08:00:00'); +ALTER TABLE replicated_alter1 ADD COLUMN dt DateTime; +INSERT INTO replicated_alter1 VALUES ('2015-01-01', 9, 41, '1992-01-01 08:00:00'); -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 ADD COLUMN n Nested(ui8 UInt8, s String); -INSERT INTO test.replicated_alter1 VALUES ('2015-01-01', 8, 40, '2012-12-12 12:12:12', [1,2,3], ['12','13','14']); +ALTER TABLE replicated_alter1 ADD COLUMN n Nested(ui8 UInt8, s String); +INSERT INTO replicated_alter1 VALUES ('2015-01-01', 8, 40, '2012-12-12 12:12:12', [1,2,3], ['12','13','14']); -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 ADD COLUMN `n.d` Array(Date); -INSERT INTO test.replicated_alter1 VALUES ('2015-01-01', 7, 39, '2014-07-14 13:26:50', [10,20,30], ['120','130','140'],['2000-01-01','2000-01-01','2000-01-03']); +ALTER TABLE replicated_alter1 ADD COLUMN `n.d` Array(Date); +INSERT INTO replicated_alter1 VALUES ('2015-01-01', 7, 39, '2014-07-14 13:26:50', [10,20,30], ['120','130','140'],['2000-01-01','2000-01-01','2000-01-03']); -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 ADD COLUMN s String DEFAULT '0'; -INSERT INTO test.replicated_alter1 VALUES ('2015-01-01', 6,38,'2014-07-15 13:26:50',[10,20,30],['asd','qwe','qwe'],['2000-01-01','2000-01-01','2000-01-03'],'100500'); +ALTER TABLE replicated_alter1 ADD COLUMN s String DEFAULT '0'; +INSERT INTO replicated_alter1 VALUES ('2015-01-01', 6,38,'2014-07-15 13:26:50',[10,20,30],['asd','qwe','qwe'],['2000-01-01','2000-01-01','2000-01-03'],'100500'); -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 DROP COLUMN `n.d`, MODIFY COLUMN s Int64; +ALTER TABLE replicated_alter1 DROP COLUMN `n.d`, MODIFY COLUMN s Int64; -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 ADD COLUMN `n.d` Array(Date), MODIFY COLUMN s UInt32; +ALTER TABLE replicated_alter1 ADD COLUMN `n.d` Array(Date), MODIFY COLUMN s UInt32; -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 DROP COLUMN n.ui8, DROP COLUMN n.d; +ALTER TABLE replicated_alter1 DROP COLUMN n.ui8, DROP COLUMN n.d; -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 DROP COLUMN n.s; +ALTER TABLE replicated_alter1 DROP COLUMN n.s; -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 ADD COLUMN n.s Array(String), ADD COLUMN n.d Array(Date); +ALTER TABLE replicated_alter1 ADD COLUMN n.s Array(String), ADD COLUMN n.d Array(Date); -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 DROP COLUMN n; +ALTER TABLE replicated_alter1 DROP COLUMN n; -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -ALTER TABLE test.replicated_alter1 MODIFY COLUMN dt Date, MODIFY COLUMN s DateTime; +ALTER TABLE replicated_alter1 MODIFY COLUMN dt Date, MODIFY COLUMN s DateTime; -DESC TABLE test.replicated_alter1; -SHOW CREATE TABLE test.replicated_alter1; -DESC TABLE test.replicated_alter2; -SHOW CREATE TABLE test.replicated_alter2; -SELECT * FROM test.replicated_alter1 ORDER BY k; +DESC TABLE replicated_alter1; +SHOW CREATE TABLE replicated_alter1; +DESC TABLE replicated_alter2; +SHOW CREATE TABLE replicated_alter2; +SELECT * FROM replicated_alter1 ORDER BY k; -DROP TABLE test.replicated_alter1; -DROP TABLE test.replicated_alter2; +DROP TABLE replicated_alter1; +DROP TABLE replicated_alter2; diff --git a/dbms/tests/queries/0_stateless/00068_empty_tiny_log.sql b/dbms/tests/queries/0_stateless/00068_empty_tiny_log.sql index 8e6b59afd66..22b0f8bf125 100644 --- a/dbms/tests/queries/0_stateless/00068_empty_tiny_log.sql +++ b/dbms/tests/queries/0_stateless/00068_empty_tiny_log.sql @@ -1,5 +1,5 @@ -CREATE TABLE IF NOT EXISTS test.empty_tiny_log(A UInt8) Engine = TinyLog; +CREATE TABLE IF NOT EXISTS empty_tiny_log(A UInt8) Engine = TinyLog; -SELECT A FROM test.empty_tiny_log; +SELECT A FROM empty_tiny_log; -DROP TABLE test.empty_tiny_log; +DROP TABLE empty_tiny_log; diff --git a/dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh b/dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh index ff436147c12..31f412cab03 100755 --- a/dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh +++ b/dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh @@ -4,7 +4,7 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -echo 'DROP TABLE IF EXISTS test.insert_fewer_columns' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'CREATE TABLE test.insert_fewer_columns (a UInt8, b UInt8) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'INSERT INTO test.insert_fewer_columns (a) VALUES (1), (2)' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'SELECT * FROM test.insert_fewer_columns' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'DROP TABLE IF EXISTS insert_fewer_columns' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'CREATE TABLE insert_fewer_columns (a UInt8, b UInt8) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'INSERT INTO insert_fewer_columns (a) VALUES (1), (2)' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'SELECT * FROM insert_fewer_columns' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- diff --git a/dbms/tests/queries/0_stateless/00071_insert_fewer_columns.sql b/dbms/tests/queries/0_stateless/00071_insert_fewer_columns.sql index 46148c3980f..bca63395d31 100644 --- a/dbms/tests/queries/0_stateless/00071_insert_fewer_columns.sql +++ b/dbms/tests/queries/0_stateless/00071_insert_fewer_columns.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.insert_fewer_columns; -CREATE TABLE test.insert_fewer_columns (a UInt8, b UInt8) ENGINE = Memory; -INSERT INTO test.insert_fewer_columns (a) VALUES (1), (2); -SELECT * FROM test.insert_fewer_columns; +DROP TABLE IF EXISTS insert_fewer_columns; +CREATE TABLE insert_fewer_columns (a UInt8, b UInt8) ENGINE = Memory; +INSERT INTO insert_fewer_columns (a) VALUES (1), (2); +SELECT * FROM insert_fewer_columns; -- Test position arguments in insert. -DROP TABLE IF EXISTS test.insert_fewer_columns_2; -CREATE TABLE test.insert_fewer_columns_2 (b UInt8, a UInt8) ENGINE = Memory; -INSERT INTO test.insert_fewer_columns_2 SELECT * FROM test.insert_fewer_columns; -SELECT a, b FROM test.insert_fewer_columns; -SELECT a, b FROM test.insert_fewer_columns_2; +DROP TABLE IF EXISTS insert_fewer_columns_2; +CREATE TABLE insert_fewer_columns_2 (b UInt8, a UInt8) ENGINE = Memory; +INSERT INTO insert_fewer_columns_2 SELECT * FROM insert_fewer_columns; +SELECT a, b FROM insert_fewer_columns; +SELECT a, b FROM insert_fewer_columns_2; -DROP TABLE IF EXISTS test.insert_fewer_columns_2; -DROP TABLE test.insert_fewer_columns; +DROP TABLE IF EXISTS insert_fewer_columns_2; +DROP TABLE insert_fewer_columns; diff --git a/dbms/tests/queries/0_stateless/00076_ip_coding_functions.sql b/dbms/tests/queries/0_stateless/00076_ip_coding_functions.sql index eba809afc62..69343d43052 100644 --- a/dbms/tests/queries/0_stateless/00076_ip_coding_functions.sql +++ b/dbms/tests/queries/0_stateless/00076_ip_coding_functions.sql @@ -26,10 +26,10 @@ SELECT hex(IPv4ToIPv6(1297626935)); /* Тест с таблицей */ -DROP TABLE IF EXISTS test.addresses; -CREATE TABLE test.addresses(addr UInt32) ENGINE = Memory; -INSERT INTO test.addresses(addr) VALUES (1297626935), (2130706433), (3254522122); -SELECT hex(IPv4ToIPv6(addr)) FROM test.addresses ORDER BY addr ASC; +DROP TABLE IF EXISTS addresses; +CREATE TABLE addresses(addr UInt32) ENGINE = Memory; +INSERT INTO addresses(addr) VALUES (1297626935), (2130706433), (3254522122); +SELECT hex(IPv4ToIPv6(addr)) FROM addresses ORDER BY addr ASC; /* cutIPv6 */ @@ -113,15 +113,15 @@ SELECT cutIPv6(toFixedString(unhex('00000000000000000000FFFFC1FC110A'), 16), 0, /* Реальные IPv6-адреса */ -DROP TABLE IF EXISTS test.addresses; -CREATE TABLE test.addresses(addr String) ENGINE = Memory; -INSERT INTO test.addresses(addr) VALUES ('20010DB8AC10FE01FEEDBABECAFEF00D'), ('20010DB8AC10FE01DEADC0DECAFED00D'), ('20010DB8AC10FE01ABADBABEFACEB00C'); -SELECT cutIPv6(toFixedString(unhex(addr), 16), 3, 0) FROM test.addresses ORDER BY addr ASC; +DROP TABLE IF EXISTS addresses; +CREATE TABLE addresses(addr String) ENGINE = Memory; +INSERT INTO addresses(addr) VALUES ('20010DB8AC10FE01FEEDBABECAFEF00D'), ('20010DB8AC10FE01DEADC0DECAFED00D'), ('20010DB8AC10FE01ABADBABEFACEB00C'); +SELECT cutIPv6(toFixedString(unhex(addr), 16), 3, 0) FROM addresses ORDER BY addr ASC; /* IPv4-mapped IPv6-адреса */ -DROP TABLE IF EXISTS test.addresses; -CREATE TABLE test.addresses(addr String) ENGINE = Memory; -INSERT INTO test.addresses(addr) VALUES ('00000000000000000000FFFFC1FC110A'), ('00000000000000000000FFFF4D583737'), ('00000000000000000000FFFF7F000001'); -SELECT cutIPv6(toFixedString(unhex(addr), 16), 0, 3) FROM test.addresses ORDER BY addr ASC; +DROP TABLE IF EXISTS addresses; +CREATE TABLE addresses(addr String) ENGINE = Memory; +INSERT INTO addresses(addr) VALUES ('00000000000000000000FFFFC1FC110A'), ('00000000000000000000FFFF4D583737'), ('00000000000000000000FFFF7F000001'); +SELECT cutIPv6(toFixedString(unhex(addr), 16), 0, 3) FROM addresses ORDER BY addr ASC; diff --git a/dbms/tests/queries/0_stateless/00079_defaulted_columns.sql b/dbms/tests/queries/0_stateless/00079_defaulted_columns.sql index b1819d8e0c4..8137b57dcbd 100644 --- a/dbms/tests/queries/0_stateless/00079_defaulted_columns.sql +++ b/dbms/tests/queries/0_stateless/00079_defaulted_columns.sql @@ -1,40 +1,40 @@ -drop table if exists test.defaulted; +drop table if exists defaulted; -create table test.defaulted (col1 default 0) engine=Memory; -desc table test.defaulted; -drop table test.defaulted; +create table defaulted (col1 default 0) engine=Memory; +desc table defaulted; +drop table defaulted; -create table test.defaulted (col1 UInt32, col2 default col1 + 1, col3 materialized col1 + 2, col4 alias col1 + 3) engine=Memory; -desc table test.defaulted; -insert into test.defaulted (col1) values (10); -select * from test.defaulted; -select col3, col4 from test.defaulted; -drop table test.defaulted; +create table defaulted (col1 UInt32, col2 default col1 + 1, col3 materialized col1 + 2, col4 alias col1 + 3) engine=Memory; +desc table defaulted; +insert into defaulted (col1) values (10); +select * from defaulted; +select col3, col4 from defaulted; +drop table defaulted; -create table test.defaulted (col1 Int8, col2 UInt64 default (SELECT dummy+99 from system.one)) engine=Memory; -insert into test.defaulted (col1) values (0); -select col2 from test.defaulted; -drop table test.defaulted; +create table defaulted (col1 Int8, col2 UInt64 default (SELECT dummy+99 from system.one)) engine=Memory; +insert into defaulted (col1) values (0); +select col2 from defaulted; +drop table defaulted; -create table test.defaulted (payload String, date materialized today(), key materialized 0 * rand()) engine=MergeTree(date, key, 8192); -desc table test.defaulted; -insert into test.defaulted (payload) values ('hello clickhouse'); -select * from test.defaulted; -alter table test.defaulted add column payload_length materialized length(payload); -desc table test.defaulted; -select *, payload_length from test.defaulted; -insert into test.defaulted (payload) values ('some string'); -select *, payload_length from test.defaulted order by payload; -select *, payload_length from test.defaulted order by payload; -alter table test.defaulted modify column payload_length default length(payload); -desc table test.defaulted; -select * from test.defaulted order by payload; -alter table test.defaulted modify column payload_length default length(payload) % 65535; -desc table test.defaulted; -select * from test.defaulted order by payload; -alter table test.defaulted modify column payload_length UInt16 default length(payload); -desc table test.defaulted; -alter table test.defaulted drop column payload_length; -desc table test.defaulted; -select * from test.defaulted order by payload; -drop table test.defaulted; +create table defaulted (payload String, date materialized today(), key materialized 0 * rand()) engine=MergeTree(date, key, 8192); +desc table defaulted; +insert into defaulted (payload) values ('hello clickhouse'); +select * from defaulted; +alter table defaulted add column payload_length materialized length(payload); +desc table defaulted; +select *, payload_length from defaulted; +insert into defaulted (payload) values ('some string'); +select *, payload_length from defaulted order by payload; +select *, payload_length from defaulted order by payload; +alter table defaulted modify column payload_length default length(payload); +desc table defaulted; +select * from defaulted order by payload; +alter table defaulted modify column payload_length default length(payload) % 65535; +desc table defaulted; +select * from defaulted order by payload; +alter table defaulted modify column payload_length UInt16 default length(payload); +desc table defaulted; +alter table defaulted drop column payload_length; +desc table defaulted; +select * from defaulted order by payload; +drop table defaulted; diff --git a/dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql b/dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql index 4e47f0f7fdf..45f7ff4d93f 100644 --- a/dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql @@ -1,138 +1,138 @@ -DROP TABLE IF EXISTS test.merge_tree; -DROP TABLE IF EXISTS test.collapsing_merge_tree; -DROP TABLE IF EXISTS test.versioned_collapsing_merge_tree; -DROP TABLE IF EXISTS test.summing_merge_tree; -DROP TABLE IF EXISTS test.summing_merge_tree_with_list_of_columns_to_sum; -DROP TABLE IF EXISTS test.aggregating_merge_tree; +DROP TABLE IF EXISTS merge_tree; +DROP TABLE IF EXISTS collapsing_merge_tree; +DROP TABLE IF EXISTS versioned_collapsing_merge_tree; +DROP TABLE IF EXISTS summing_merge_tree; +DROP TABLE IF EXISTS summing_merge_tree_with_list_of_columns_to_sum; +DROP TABLE IF EXISTS aggregating_merge_tree; -DROP TABLE IF EXISTS test.merge_tree_with_sampling; -DROP TABLE IF EXISTS test.collapsing_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.versioned_collapsing_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.summing_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.summing_merge_tree_with_sampling_with_list_of_columns_to_sum; -DROP TABLE IF EXISTS test.aggregating_merge_tree_with_sampling; +DROP TABLE IF EXISTS merge_tree_with_sampling; +DROP TABLE IF EXISTS collapsing_merge_tree_with_sampling; +DROP TABLE IF EXISTS versioned_collapsing_merge_tree_with_sampling; +DROP TABLE IF EXISTS summing_merge_tree_with_sampling; +DROP TABLE IF EXISTS summing_merge_tree_with_sampling_with_list_of_columns_to_sum; +DROP TABLE IF EXISTS aggregating_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.replicated_merge_tree; -DROP TABLE IF EXISTS test.replicated_collapsing_merge_tree; -DROP TABLE IF EXISTS test.replicated_versioned_collapsing_merge_tree; -DROP TABLE IF EXISTS test.replicated_summing_merge_tree; -DROP TABLE IF EXISTS test.replicated_summing_merge_tree_with_list_of_columns_to_sum; -DROP TABLE IF EXISTS test.replicated_aggregating_merge_tree; +DROP TABLE IF EXISTS replicated_merge_tree; +DROP TABLE IF EXISTS replicated_collapsing_merge_tree; +DROP TABLE IF EXISTS replicated_versioned_collapsing_merge_tree; +DROP TABLE IF EXISTS replicated_summing_merge_tree; +DROP TABLE IF EXISTS replicated_summing_merge_tree_with_list_of_columns_to_sum; +DROP TABLE IF EXISTS replicated_aggregating_merge_tree; -DROP TABLE IF EXISTS test.replicated_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.replicated_collapsing_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.replicated_versioned_collapsing_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.replicated_summing_merge_tree_with_sampling; -DROP TABLE IF EXISTS test.replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum; -DROP TABLE IF EXISTS test.replicated_aggregating_merge_tree_with_sampling; +DROP TABLE IF EXISTS replicated_merge_tree_with_sampling; +DROP TABLE IF EXISTS replicated_collapsing_merge_tree_with_sampling; +DROP TABLE IF EXISTS replicated_versioned_collapsing_merge_tree_with_sampling; +DROP TABLE IF EXISTS replicated_summing_merge_tree_with_sampling; +DROP TABLE IF EXISTS replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum; +DROP TABLE IF EXISTS replicated_aggregating_merge_tree_with_sampling; -CREATE TABLE test.merge_tree +CREATE TABLE merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = MergeTree(d, (a, b), 111); -CREATE TABLE test.collapsing_merge_tree +CREATE TABLE collapsing_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = CollapsingMergeTree(d, (a, b), 111, y); -CREATE TABLE test.versioned_collapsing_merge_tree +CREATE TABLE versioned_collapsing_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = VersionedCollapsingMergeTree(d, (a, b), 111, y, b); -CREATE TABLE test.summing_merge_tree +CREATE TABLE summing_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = SummingMergeTree(d, (a, b), 111); -CREATE TABLE test.summing_merge_tree_with_list_of_columns_to_sum +CREATE TABLE summing_merge_tree_with_list_of_columns_to_sum (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = SummingMergeTree(d, (a, b), 111, (y, z)); -CREATE TABLE test.aggregating_merge_tree +CREATE TABLE aggregating_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = AggregatingMergeTree(d, (a, b), 111); -CREATE TABLE test.merge_tree_with_sampling +CREATE TABLE merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = MergeTree(d, sipHash64(a) + b, (a, sipHash64(a) + b), 111); -CREATE TABLE test.collapsing_merge_tree_with_sampling +CREATE TABLE collapsing_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = CollapsingMergeTree(d, sipHash64(a) + b, (a, sipHash64(a) + b), 111, y); -CREATE TABLE test.versioned_collapsing_merge_tree_with_sampling +CREATE TABLE versioned_collapsing_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = VersionedCollapsingMergeTree(d, sipHash64(a) + b, (a, sipHash64(a) + b, b), 111, y, b); -CREATE TABLE test.summing_merge_tree_with_sampling +CREATE TABLE summing_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = SummingMergeTree(d, sipHash64(a) + b, (a, sipHash64(a) + b), 111); -CREATE TABLE test.summing_merge_tree_with_sampling_with_list_of_columns_to_sum +CREATE TABLE summing_merge_tree_with_sampling_with_list_of_columns_to_sum (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = SummingMergeTree(d, sipHash64(a) + b, (a, sipHash64(a) + b), 111, (y, z)); -CREATE TABLE test.aggregating_merge_tree_with_sampling +CREATE TABLE aggregating_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = AggregatingMergeTree(d, sipHash64(a) + b, (a, sipHash64(a) + b), 111); -CREATE TABLE test.replicated_merge_tree +CREATE TABLE replicated_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/01/replicated_merge_tree/', 'r1', d, (a, b), 111); -CREATE TABLE test.replicated_collapsing_merge_tree +CREATE TABLE replicated_collapsing_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedCollapsingMergeTree('/clickhouse/tables/test/01/replicated_collapsing_merge_tree/', 'r1', d, (a, b), 111, y); -CREATE TABLE test.replicated_versioned_collapsing_merge_tree +CREATE TABLE replicated_versioned_collapsing_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedVersionedCollapsingMergeTree('/clickhouse/tables/test/01/replicated_versioned_collapsing_merge_tree/', 'r1', d, (a, b), 111, y, b); -CREATE TABLE test.replicated_summing_merge_tree +CREATE TABLE replicated_summing_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/01/replicated_summing_merge_tree/', 'r1', d, (a, b), 111); -CREATE TABLE test.replicated_summing_merge_tree_with_list_of_columns_to_sum +CREATE TABLE replicated_summing_merge_tree_with_list_of_columns_to_sum (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/01/replicated_summing_merge_tree_with_list_of_columns_to_sum/', 'r1', d, (a, b), 111, (y, z)); -CREATE TABLE test.replicated_aggregating_merge_tree +CREATE TABLE replicated_aggregating_merge_tree (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedAggregatingMergeTree('/clickhouse/tables/test/01/replicated_aggregating_merge_tree/', 'r1', d, (a, b), 111); -CREATE TABLE test.replicated_merge_tree_with_sampling +CREATE TABLE replicated_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/01/replicated_merge_tree_with_sampling/', 'r1', d, sipHash64(a) + b, (a, sipHash64(a) + b), 111); -CREATE TABLE test.replicated_collapsing_merge_tree_with_sampling +CREATE TABLE replicated_collapsing_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedCollapsingMergeTree('/clickhouse/tables/test/01/replicated_collapsing_merge_tree_with_sampling/', 'r1', d, sipHash64(a) + b, (a, sipHash64(a) + b), 111, y); -CREATE TABLE test.replicated_versioned_collapsing_merge_tree_with_sampling +CREATE TABLE replicated_versioned_collapsing_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedVersionedCollapsingMergeTree('/clickhouse/tables/test/01/replicated_versioned_collapsing_merge_tree_with_sampling/', 'r1', d, sipHash64(a) + b, (a, sipHash64(a) + b, b), 111, y, b); -CREATE TABLE test.replicated_summing_merge_tree_with_sampling +CREATE TABLE replicated_summing_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/01/replicated_summing_merge_tree_with_sampling/', 'r1', d, sipHash64(a) + b, (a, sipHash64(a) + b), 111); -CREATE TABLE test.replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum +CREATE TABLE replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/01/replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum/', 'r1', d, sipHash64(a) + b, (a, sipHash64(a) + b), 111, (y, z)); -CREATE TABLE test.replicated_aggregating_merge_tree_with_sampling +CREATE TABLE replicated_aggregating_merge_tree_with_sampling (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = ReplicatedAggregatingMergeTree('/clickhouse/tables/test/01/replicated_aggregating_merge_tree_with_sampling/', 'r1', d, sipHash64(a) + b, (a, sipHash64(a) + b), 111); -INSERT INTO test.merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.versioned_collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.summing_merge_tree_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.aggregating_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO versioned_collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO summing_merge_tree_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO aggregating_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.versioned_collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.summing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.summing_merge_tree_with_sampling_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.aggregating_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO versioned_collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO summing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO summing_merge_tree_with_sampling_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO aggregating_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_versioned_collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_summing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_summing_merge_tree_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_aggregating_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_versioned_collapsing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_summing_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_summing_merge_tree_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_aggregating_merge_tree VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_versioned_collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_summing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -INSERT INTO test.replicated_aggregating_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_versioned_collapsing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_summing_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); +INSERT INTO replicated_aggregating_merge_tree_with_sampling VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 123456789); -DROP TABLE test.merge_tree; -DROP TABLE test.collapsing_merge_tree; -DROP TABLE test.versioned_collapsing_merge_tree; -DROP TABLE test.summing_merge_tree; -DROP TABLE test.summing_merge_tree_with_list_of_columns_to_sum; -DROP TABLE test.aggregating_merge_tree; +DROP TABLE merge_tree; +DROP TABLE collapsing_merge_tree; +DROP TABLE versioned_collapsing_merge_tree; +DROP TABLE summing_merge_tree; +DROP TABLE summing_merge_tree_with_list_of_columns_to_sum; +DROP TABLE aggregating_merge_tree; -DROP TABLE test.merge_tree_with_sampling; -DROP TABLE test.collapsing_merge_tree_with_sampling; -DROP TABLE test.versioned_collapsing_merge_tree_with_sampling; -DROP TABLE test.summing_merge_tree_with_sampling; -DROP TABLE test.summing_merge_tree_with_sampling_with_list_of_columns_to_sum; -DROP TABLE test.aggregating_merge_tree_with_sampling; +DROP TABLE merge_tree_with_sampling; +DROP TABLE collapsing_merge_tree_with_sampling; +DROP TABLE versioned_collapsing_merge_tree_with_sampling; +DROP TABLE summing_merge_tree_with_sampling; +DROP TABLE summing_merge_tree_with_sampling_with_list_of_columns_to_sum; +DROP TABLE aggregating_merge_tree_with_sampling; -DROP TABLE test.replicated_merge_tree; -DROP TABLE test.replicated_collapsing_merge_tree; -DROP TABLE test.replicated_versioned_collapsing_merge_tree; -DROP TABLE test.replicated_summing_merge_tree; -DROP TABLE test.replicated_summing_merge_tree_with_list_of_columns_to_sum; -DROP TABLE test.replicated_aggregating_merge_tree; +DROP TABLE replicated_merge_tree; +DROP TABLE replicated_collapsing_merge_tree; +DROP TABLE replicated_versioned_collapsing_merge_tree; +DROP TABLE replicated_summing_merge_tree; +DROP TABLE replicated_summing_merge_tree_with_list_of_columns_to_sum; +DROP TABLE replicated_aggregating_merge_tree; -DROP TABLE test.replicated_merge_tree_with_sampling; -DROP TABLE test.replicated_collapsing_merge_tree_with_sampling; -DROP TABLE test.replicated_versioned_collapsing_merge_tree_with_sampling; -DROP TABLE test.replicated_summing_merge_tree_with_sampling; -DROP TABLE test.replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum; -DROP TABLE test.replicated_aggregating_merge_tree_with_sampling; +DROP TABLE replicated_merge_tree_with_sampling; +DROP TABLE replicated_collapsing_merge_tree_with_sampling; +DROP TABLE replicated_versioned_collapsing_merge_tree_with_sampling; +DROP TABLE replicated_summing_merge_tree_with_sampling; +DROP TABLE replicated_summing_merge_tree_with_sampling_with_list_of_columns_to_sum; +DROP TABLE replicated_aggregating_merge_tree_with_sampling; diff --git a/dbms/tests/queries/0_stateless/00084_summing_merge_tree.sql b/dbms/tests/queries/0_stateless/00084_summing_merge_tree.sql index c03092d0277..babff82cc0a 100644 --- a/dbms/tests/queries/0_stateless/00084_summing_merge_tree.sql +++ b/dbms/tests/queries/0_stateless/00084_summing_merge_tree.sql @@ -1,41 +1,41 @@ -DROP TABLE IF EXISTS test.summing_merge_tree; +DROP TABLE IF EXISTS summing_merge_tree; -CREATE TABLE test.summing_merge_tree (d Date, a String, x UInt32, y UInt64, z Float64) ENGINE = SummingMergeTree(d, a, 8192); +CREATE TABLE summing_merge_tree (d Date, a String, x UInt32, y UInt64, z Float64) ENGINE = SummingMergeTree(d, a, 8192); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Hello', 1, 2, 3); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Hello', 4, 5, 6); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Goodbye', 1, 2, 3); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Hello', 1, 2, 3); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Hello', 4, 5, 6); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Goodbye', 1, 2, 3); -OPTIMIZE TABLE test.summing_merge_tree; -OPTIMIZE TABLE test.summing_merge_tree; -OPTIMIZE TABLE test.summing_merge_tree; +OPTIMIZE TABLE summing_merge_tree; +OPTIMIZE TABLE summing_merge_tree; +OPTIMIZE TABLE summing_merge_tree; -SELECT * FROM test.summing_merge_tree ORDER BY d, a, x, y, z; +SELECT * FROM summing_merge_tree ORDER BY d, a, x, y, z; -DROP TABLE test.summing_merge_tree; +DROP TABLE summing_merge_tree; -CREATE TABLE test.summing_merge_tree (d Date, a String, x UInt32, y UInt64, z Float64) ENGINE = SummingMergeTree(d, a, 8192, (y, z)); +CREATE TABLE summing_merge_tree (d Date, a String, x UInt32, y UInt64, z Float64) ENGINE = SummingMergeTree(d, a, 8192, (y, z)); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Hello', 1, 2, 3); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Hello', 4, 5, 6); -INSERT INTO test.summing_merge_tree VALUES ('2000-01-01', 'Goodbye', 1, 2, 3); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Hello', 1, 2, 3); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Hello', 4, 5, 6); +INSERT INTO summing_merge_tree VALUES ('2000-01-01', 'Goodbye', 1, 2, 3); -OPTIMIZE TABLE test.summing_merge_tree; -OPTIMIZE TABLE test.summing_merge_tree; -OPTIMIZE TABLE test.summing_merge_tree; +OPTIMIZE TABLE summing_merge_tree; +OPTIMIZE TABLE summing_merge_tree; +OPTIMIZE TABLE summing_merge_tree; -SELECT * FROM test.summing_merge_tree ORDER BY d, a, x, y, z; +SELECT * FROM summing_merge_tree ORDER BY d, a, x, y, z; -DROP TABLE test.summing_merge_tree; +DROP TABLE summing_merge_tree; -- -DROP TABLE IF EXISTS test.summing; -CREATE TABLE test.summing (p Date, k UInt64, s UInt64) ENGINE = SummingMergeTree(p, k, 1); +DROP TABLE IF EXISTS summing; +CREATE TABLE summing (p Date, k UInt64, s UInt64) ENGINE = SummingMergeTree(p, k, 1); -INSERT INTO test.summing (k, s) VALUES (0, 1); -INSERT INTO test.summing (k, s) VALUES (0, 1), (666, 1), (666, 0); -OPTIMIZE TABLE test.summing PARTITION 197001; +INSERT INTO summing (k, s) VALUES (0, 1); +INSERT INTO summing (k, s) VALUES (0, 1), (666, 1), (666, 0); +OPTIMIZE TABLE summing PARTITION 197001; -SELECT k, s FROM test.summing ORDER BY k; +SELECT k, s FROM summing ORDER BY k; diff --git a/dbms/tests/queries/0_stateless/00090_union_race_conditions_1.sh b/dbms/tests/queries/0_stateless/00090_union_race_conditions_1.sh index e7ef1310cf7..b996f0d58f2 100755 --- a/dbms/tests/queries/0_stateless/00090_union_race_conditions_1.sh +++ b/dbms/tests/queries/0_stateless/00090_union_race_conditions_1.sh @@ -7,12 +7,12 @@ set -o errexit set -o pipefail echo " - DROP TABLE IF EXISTS test.two_blocks; - CREATE TABLE test.two_blocks (d Date) ENGINE = MergeTree(d, d, 1); - INSERT INTO test.two_blocks VALUES ('2000-01-01'); - INSERT INTO test.two_blocks VALUES ('2000-01-02'); + DROP TABLE IF EXISTS two_blocks; + CREATE TABLE two_blocks (d Date) ENGINE = MergeTree(d, d, 1); + INSERT INTO two_blocks VALUES ('2000-01-01'); + INSERT INTO two_blocks VALUES ('2000-01-02'); " | $CLICKHOUSE_CLIENT -n -for i in {1..10}; do seq 1 100 | sed 's/.*/SELECT count() FROM (SELECT * FROM test.two_blocks);/' | $CLICKHOUSE_CLIENT -n --receive_timeout=1 | grep -vE '^2$' && echo 'Fail!' && break; echo -n '.'; done; echo +for i in {1..10}; do seq 1 100 | sed 's/.*/SELECT count() FROM (SELECT * FROM two_blocks);/' | $CLICKHOUSE_CLIENT -n --receive_timeout=1 | grep -vE '^2$' && echo 'Fail!' && break; echo -n '.'; done; echo -echo "DROP TABLE test.two_blocks;" | $CLICKHOUSE_CLIENT -n +echo "DROP TABLE two_blocks;" | $CLICKHOUSE_CLIENT -n diff --git a/dbms/tests/queries/0_stateless/00096_aggregation_min_if.sql b/dbms/tests/queries/0_stateless/00096_aggregation_min_if.sql index 25fc67cdf1b..52e6cd94d1a 100644 --- a/dbms/tests/queries/0_stateless/00096_aggregation_min_if.sql +++ b/dbms/tests/queries/0_stateless/00096_aggregation_min_if.sql @@ -1,250 +1,250 @@ -DROP TABLE IF EXISTS test.min_if; -CREATE TABLE test.min_if (arr Array(UInt8), str String, int Int32) ENGINE = Memory; -INSERT INTO test.min_if SELECT emptyArrayUInt8() AS arr, '' AS str, toInt32(0) AS int FROM system.numbers LIMIT 100000; -INSERT INTO test.min_if SELECT [1] AS arr, '2' AS str, toInt32(3) AS int; -INSERT INTO test.min_if SELECT emptyArrayUInt8() AS arr, '' AS str, toInt32(0) AS int FROM system.numbers LIMIT 100000; +DROP TABLE IF EXISTS min_if; +CREATE TABLE min_if (arr Array(UInt8), str String, int Int32) ENGINE = Memory; +INSERT INTO min_if SELECT emptyArrayUInt8() AS arr, '' AS str, toInt32(0) AS int FROM system.numbers LIMIT 100000; +INSERT INTO min_if SELECT [1] AS arr, '2' AS str, toInt32(3) AS int; +INSERT INTO min_if SELECT emptyArrayUInt8() AS arr, '' AS str, toInt32(0) AS int FROM system.numbers LIMIT 100000; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; -SELECT minIf(arr, notEmpty(arr)) FROM test.min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; +SELECT minIf(arr, notEmpty(arr)) FROM min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; -SELECT minIf(str, notEmpty(str)) FROM test.min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; +SELECT minIf(str, notEmpty(str)) FROM min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; -SELECT minIf(int, int != 0) FROM test.min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; +SELECT minIf(int, int != 0) FROM min_if; -DROP TABLE test.min_if; +DROP TABLE min_if; diff --git a/dbms/tests/queries/0_stateless/00109_shard_totals_after_having.sql b/dbms/tests/queries/0_stateless/00109_shard_totals_after_having.sql index 98d0cc5a69f..903acec3fc2 100644 --- a/dbms/tests/queries/0_stateless/00109_shard_totals_after_having.sql +++ b/dbms/tests/queries/0_stateless/00109_shard_totals_after_having.sql @@ -2,8 +2,8 @@ SET max_rows_to_group_by = 100000; SET max_block_size = 100001; SET group_by_overflow_mode = 'any'; -DROP TABLE IF EXISTS test.numbers500k; -CREATE VIEW test.numbers500k AS SELECT number FROM system.numbers LIMIT 500000; +DROP TABLE IF EXISTS numbers500k; +CREATE VIEW numbers500k AS SELECT number FROM system.numbers LIMIT 500000; SET totals_mode = 'after_having_auto'; SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM remote('127.0.0.{2,3}', test, numbers500k) GROUP BY k WITH TOTALS ORDER BY k LIMIT 10; @@ -17,4 +17,4 @@ SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM re SET totals_mode = 'before_having'; SELECT intDiv(number, 2) AS k, count(), argMax(toString(number), number) FROM remote('127.0.0.{2,3}', test, numbers500k) GROUP BY k WITH TOTALS ORDER BY k LIMIT 10; -DROP TABLE test.numbers500k; +DROP TABLE numbers500k; diff --git a/dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql b/dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql index 5c962b27d2a..89cd192fbb3 100644 --- a/dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql +++ b/dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql @@ -1,9 +1,9 @@ SET max_memory_usage = 100000000; SET max_bytes_before_external_sort = 20000000; -DROP TABLE IF EXISTS test.numbers10m; -CREATE VIEW test.numbers10m AS SELECT number FROM system.numbers LIMIT 10000000; +DROP TABLE IF EXISTS numbers10m; +CREATE VIEW numbers10m AS SELECT number FROM system.numbers LIMIT 10000000; SELECT number FROM remote('127.0.0.{2,3}', test, numbers10m) ORDER BY number * 1234567890123456789 LIMIT 19999980, 20; -DROP TABLE test.numbers10m; +DROP TABLE numbers10m; diff --git a/dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh b/dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh index cffe29b6a03..fa95d3e0d75 100755 --- a/dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh +++ b/dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh @@ -7,12 +7,12 @@ set -o errexit set -o pipefail $CLICKHOUSE_CLIENT -n --query=" - DROP TABLE IF EXISTS test.users; - CREATE TABLE test.users (UserID UInt64) ENGINE = Log; - INSERT INTO test.users VALUES (1468013291393583084); - INSERT INTO test.users VALUES (1321770221388956068); + DROP TABLE IF EXISTS users; + CREATE TABLE users (UserID UInt64) ENGINE = Log; + INSERT INTO users VALUES (1468013291393583084); + INSERT INTO users VALUES (1321770221388956068); "; -for i in {1..10}; do seq 1 10 | sed "s/.*/SELECT count() FROM (SELECT * FROM remote('127.0.0.{2,3}', test, users) WHERE UserID IN (SELECT arrayJoin([1468013291393583084, 1321770221388956068])));/" | $CLICKHOUSE_CLIENT -n | grep -vE '^4$' && echo 'Fail!' && break; echo -n '.'; done; echo +for i in {1..10}; do seq 1 10 | sed "s/.*/SELECT count() FROM (SELECT * FROM remote('127.0.0.{2,3}', ${CLICKHOUSE_DATABASE}, users) WHERE UserID IN (SELECT arrayJoin([1468013291393583084, 1321770221388956068])));/" | $CLICKHOUSE_CLIENT -n | grep -vE '^4$' && echo 'Fail!' && break; echo -n '.'; done; echo -$CLICKHOUSE_CLIENT --query="DROP TABLE test.users;"; +$CLICKHOUSE_CLIENT --query="DROP TABLE users;"; diff --git a/dbms/tests/queries/0_stateless/00117_parsing_arrays.sql b/dbms/tests/queries/0_stateless/00117_parsing_arrays.sql index 408c129cd31..40e2d5f6a65 100644 --- a/dbms/tests/queries/0_stateless/00117_parsing_arrays.sql +++ b/dbms/tests/queries/0_stateless/00117_parsing_arrays.sql @@ -1,10 +1,10 @@ -DROP TABLE IF EXISTS test.null; -CREATE TABLE test.null (a Array(UInt64), b Array(String), c Array(Array(Date))) ENGINE = Memory; +DROP TABLE IF EXISTS null; +CREATE TABLE null (a Array(UInt64), b Array(String), c Array(Array(Date))) ENGINE = Memory; -INSERT INTO test.null (a) VALUES ([1,2]), ([3, 4]), ([ 5 ,6]), ([ 7 , 8 ]), ([]), ([ ]); -INSERT INTO test.null (b) VALUES ([ 'Hello' , 'World' ]); -INSERT INTO test.null (c) VALUES ([ ]), ([ [ ] ]), ([[],[]]), ([['2015-01-01', '2015-01-02'], ['2015-01-03', '2015-01-04']]); +INSERT INTO null (a) VALUES ([1,2]), ([3, 4]), ([ 5 ,6]), ([ 7 , 8 ]), ([]), ([ ]); +INSERT INTO null (b) VALUES ([ 'Hello' , 'World' ]); +INSERT INTO null (c) VALUES ([ ]), ([ [ ] ]), ([[],[]]), ([['2015-01-01', '2015-01-02'], ['2015-01-03', '2015-01-04']]); -SELECT a, b, c FROM test.null ORDER BY a, b, c; +SELECT a, b, c FROM null ORDER BY a, b, c; -DROP TABLE test.null; \ No newline at end of file +DROP TABLE null; \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00119_storage_join.sql b/dbms/tests/queries/0_stateless/00119_storage_join.sql index 9a0ead94bd7..3e76d46a12f 100644 --- a/dbms/tests/queries/0_stateless/00119_storage_join.sql +++ b/dbms/tests/queries/0_stateless/00119_storage_join.sql @@ -1,18 +1,14 @@ -DROP TABLE IF EXISTS test.join; +DROP TABLE IF EXISTS join; -CREATE TABLE test.join (s String, x Array(UInt8), k UInt64) ENGINE = Join(ANY, LEFT, k); +CREATE TABLE join (s String, x Array(UInt8), k UInt64) ENGINE = Join(ANY, LEFT, k); -USE test; - -INSERT INTO test.join VALUES ('abc', [0], 1), ('def', [1, 2], 2); -INSERT INTO test.join (k, s) VALUES (3, 'ghi'); -INSERT INTO test.join (x, k) VALUES ([3, 4, 5], 4); +INSERT INTO join VALUES ('abc', [0], 1), ('def', [1, 2], 2); +INSERT INTO join (k, s) VALUES (3, 'ghi'); +INSERT INTO join (x, k) VALUES ([3, 4, 5], 4); SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) ANY LEFT JOIN join USING k; SELECT s, x FROM (SELECT number AS k FROM system.numbers LIMIT 10) ANY LEFT JOIN join USING k; SELECT x, s, k FROM (SELECT number AS k FROM system.numbers LIMIT 10) ANY LEFT JOIN join USING k; SELECT 1, x, 2, s, 3, k, 4 FROM (SELECT number AS k FROM system.numbers LIMIT 10) ANY LEFT JOIN join USING k; -USE default; - -DROP TABLE test.join; +DROP TABLE join; diff --git a/dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.sql b/dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.sql index 1cb39e81f42..4052d0c0ddc 100644 --- a/dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.sql @@ -1,27 +1,27 @@ -DROP TABLE IF EXISTS test.alter; -CREATE TABLE test.alter (d Date, x UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, (d), 8192); +DROP TABLE IF EXISTS alter; +CREATE TABLE alter (d Date, x UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, (d), 8192); -INSERT INTO test.alter VALUES ('2014-01-01', 1); -ALTER TABLE test.alter DROP COLUMN x; +INSERT INTO alter VALUES ('2014-01-01', 1); +ALTER TABLE alter DROP COLUMN x; SELECT value FROM system.zookeeper WHERE path = '/clickhouse/tables/test/alter/replicas/r1/parts/20140101_20140101_0_0_0' AND name = 'columns' FORMAT TabSeparatedRaw; -DROP TABLE test.alter; +DROP TABLE alter; -CREATE TABLE test.alter (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, (d), 8192); +CREATE TABLE alter (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/alter', 'r1', d, (d), 8192); -INSERT INTO test.alter VALUES ('2014-01-01'); -SELECT * FROM test.alter ORDER BY d; +INSERT INTO alter VALUES ('2014-01-01'); +SELECT * FROM alter ORDER BY d; -ALTER TABLE test.alter ADD COLUMN x UInt8; +ALTER TABLE alter ADD COLUMN x UInt8; -INSERT INTO test.alter VALUES ('2014-02-01', 1); -SELECT * FROM test.alter ORDER BY d; +INSERT INTO alter VALUES ('2014-02-01', 1); +SELECT * FROM alter ORDER BY d; -ALTER TABLE test.alter DROP COLUMN x; -SELECT * FROM test.alter ORDER BY d; +ALTER TABLE alter DROP COLUMN x; +SELECT * FROM alter ORDER BY d; SELECT value FROM system.zookeeper WHERE path = '/clickhouse/tables/test/alter/replicas/r1/parts/20140201_20140201_0_0_0' AND name = 'columns' FORMAT TabSeparatedRaw; -DROP TABLE test.alter; +DROP TABLE alter; diff --git a/dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh b/dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh index 240cf2535b5..780aea2dd0e 100755 --- a/dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh +++ b/dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh @@ -4,8 +4,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh $CLICKHOUSE_CLIENT -n --query=" - DROP TABLE IF EXISTS test.numbers_100k; - CREATE VIEW test.numbers_100k AS SELECT * FROM system.numbers LIMIT 100000; + DROP TABLE IF EXISTS numbers_100k; + CREATE VIEW numbers_100k AS SELECT * FROM system.numbers LIMIT 100000; "; STEP_MULTIPLIER=25 @@ -15,10 +15,10 @@ fi for i in $(seq 1000000 $((20000 * $STEP_MULTIPLIER)) 10000000 && seq 10100000 $((100000 * $STEP_MULTIPLIER)) 50000000); do $CLICKHOUSE_CLIENT --max_memory_usage=$i --query=" - SELECT intDiv(number, 5) AS k, max(toString(number)) FROM remote('127.0.0.{2,3}', test.numbers_100k) GROUP BY k ORDER BY k LIMIT 1; + SELECT intDiv(number, 5) AS k, max(toString(number)) FROM remote('127.0.0.{2,3}', ${CLICKHOUSE_DATABASE}.numbers_100k) GROUP BY k ORDER BY k LIMIT 1; " 2> /dev/null; CODE=$?; [ "$CODE" -ne "241" ] && [ "$CODE" -ne "0" ] && echo "Fail" && break; done | uniq -$CLICKHOUSE_CLIENT --query="DROP TABLE test.numbers_100k;"; +$CLICKHOUSE_CLIENT --query="DROP TABLE numbers_100k;"; diff --git a/dbms/tests/queries/0_stateless/00140_prewhere_column_order.sql b/dbms/tests/queries/0_stateless/00140_prewhere_column_order.sql index fb15d2bfd98..d949b6f780b 100644 --- a/dbms/tests/queries/0_stateless/00140_prewhere_column_order.sql +++ b/dbms/tests/queries/0_stateless/00140_prewhere_column_order.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.prewhere; +DROP TABLE IF EXISTS prewhere; -CREATE TABLE test.prewhere (d Date, a String, b String) ENGINE = MergeTree(d, d, 8192); -INSERT INTO test.prewhere VALUES ('2015-01-01', 'hello', 'world'); +CREATE TABLE prewhere (d Date, a String, b String) ENGINE = MergeTree(d, d, 8192); +INSERT INTO prewhere VALUES ('2015-01-01', 'hello', 'world'); -ALTER TABLE test.prewhere ADD COLUMN a1 String AFTER a; -INSERT INTO test.prewhere VALUES ('2015-01-01', 'hello1', 'xxx', 'world1'); +ALTER TABLE prewhere ADD COLUMN a1 String AFTER a; +INSERT INTO prewhere VALUES ('2015-01-01', 'hello1', 'xxx', 'world1'); -SELECT d, a, a1, b FROM test.prewhere PREWHERE a LIKE 'hello%' ORDER BY a1; +SELECT d, a, a1, b FROM prewhere PREWHERE a LIKE 'hello%' ORDER BY a1; -DROP TABLE test.prewhere; +DROP TABLE prewhere; diff --git a/dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql b/dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql index 2839dca31bc..4780884ca02 100644 --- a/dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql +++ b/dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.default; +DROP TABLE IF EXISTS default; -CREATE TABLE test.default (d Date DEFAULT toDate(t), t DateTime) ENGINE = MergeTree(d, t, 8192); -INSERT INTO test.default (t) VALUES ('1234567890'); -SELECT toStartOfMonth(d), toUInt32(t) FROM test.default; +CREATE TABLE default (d Date DEFAULT toDate(t), t DateTime) ENGINE = MergeTree(d, t, 8192); +INSERT INTO default (t) VALUES ('1234567890'); +SELECT toStartOfMonth(d), toUInt32(t) FROM default; -DROP TABLE test.default; +DROP TABLE default; diff --git a/dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql b/dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql index 1211756a76b..fac33033bfb 100644 --- a/dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql +++ b/dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql @@ -1,21 +1,21 @@ -drop table if exists test.nested_map; +drop table if exists nested_map; -create table test.nested_map (d default today(), k UInt64, payload default rand(), SomeMap Nested(ID UInt32, Num Int64)) engine=SummingMergeTree(d, k, 8192); +create table nested_map (d default today(), k UInt64, payload default rand(), SomeMap Nested(ID UInt32, Num Int64)) engine=SummingMergeTree(d, k, 8192); -insert into test.nested_map (k, `SomeMap.ID`, `SomeMap.Num`) values (0,[1],[100]),(1,[1],[100]),(2,[1],[100]),(3,[1,2],[100,150]); -insert into test.nested_map (k, `SomeMap.ID`, `SomeMap.Num`) values (0,[2],[150]),(1,[1],[150]),(2,[1,2],[150,150]),(3,[1],[-100]); -optimize table test.nested_map; -select `SomeMap.ID`, `SomeMap.Num` from test.nested_map; +insert into nested_map (k, `SomeMap.ID`, `SomeMap.Num`) values (0,[1],[100]),(1,[1],[100]),(2,[1],[100]),(3,[1,2],[100,150]); +insert into nested_map (k, `SomeMap.ID`, `SomeMap.Num`) values (0,[2],[150]),(1,[1],[150]),(2,[1,2],[150,150]),(3,[1],[-100]); +optimize table nested_map; +select `SomeMap.ID`, `SomeMap.Num` from nested_map; -drop table test.nested_map; +drop table nested_map; -drop table if exists test.nested_map_explicit; +drop table if exists nested_map_explicit; -create table test.nested_map_explicit (d default today(), k UInt64, SomeIntExcluded UInt32, SomeMap Nested(ID UInt32, Num Int64)) engine=SummingMergeTree(d, k, 8192, (SomeMap)); +create table nested_map_explicit (d default today(), k UInt64, SomeIntExcluded UInt32, SomeMap Nested(ID UInt32, Num Int64)) engine=SummingMergeTree(d, k, 8192, (SomeMap)); -insert into test.nested_map_explicit (k, `SomeIntExcluded`, `SomeMap.ID`, `SomeMap.Num`) values (0, 20, [1],[100]),(1, 20, [1],[100]),(2, 20, [1],[100]),(3, 20, [1,2],[100,150]); -insert into test.nested_map_explicit (k, `SomeIntExcluded`, `SomeMap.ID`, `SomeMap.Num`) values (0, 20, [2],[150]),(1, 20, [1],[150]),(2, 20, [1,2],[150,150]),(3, 20, [1],[-100]); -optimize table test.nested_map_explicit; -select `SomeIntExcluded`, `SomeMap.ID`, `SomeMap.Num` from test.nested_map_explicit; +insert into nested_map_explicit (k, `SomeIntExcluded`, `SomeMap.ID`, `SomeMap.Num`) values (0, 20, [1],[100]),(1, 20, [1],[100]),(2, 20, [1],[100]),(3, 20, [1,2],[100,150]); +insert into nested_map_explicit (k, `SomeIntExcluded`, `SomeMap.ID`, `SomeMap.Num`) values (0, 20, [2],[150]),(1, 20, [1],[150]),(2, 20, [1,2],[150,150]),(3, 20, [1],[-100]); +optimize table nested_map_explicit; +select `SomeIntExcluded`, `SomeMap.ID`, `SomeMap.Num` from nested_map_explicit; -drop table test.nested_map_explicit; +drop table nested_map_explicit; diff --git a/dbms/tests/queries/0_stateless/00147_alter_nested_default.sql b/dbms/tests/queries/0_stateless/00147_alter_nested_default.sql index 950527f59cc..7054aba69e1 100644 --- a/dbms/tests/queries/0_stateless/00147_alter_nested_default.sql +++ b/dbms/tests/queries/0_stateless/00147_alter_nested_default.sql @@ -1,29 +1,29 @@ -DROP TABLE IF EXISTS test.alter; +DROP TABLE IF EXISTS alter; -CREATE TABLE test.alter (d Date DEFAULT toDate('2015-01-01'), n Nested(x String)) ENGINE = MergeTree(d, d, 8192); +CREATE TABLE alter (d Date DEFAULT toDate('2015-01-01'), n Nested(x String)) ENGINE = MergeTree(d, d, 8192); -INSERT INTO test.alter (`n.x`) VALUES (['Hello', 'World']); +INSERT INTO alter (`n.x`) VALUES (['Hello', 'World']); -SELECT * FROM test.alter; -SELECT * FROM test.alter ARRAY JOIN n; -SELECT * FROM test.alter ARRAY JOIN n WHERE n.x LIKE '%Hello%'; +SELECT * FROM alter; +SELECT * FROM alter ARRAY JOIN n; +SELECT * FROM alter ARRAY JOIN n WHERE n.x LIKE '%Hello%'; -ALTER TABLE test.alter ADD COLUMN n.y Array(UInt64); +ALTER TABLE alter ADD COLUMN n.y Array(UInt64); -SELECT * FROM test.alter; -SELECT * FROM test.alter ARRAY JOIN n; -SELECT * FROM test.alter ARRAY JOIN n WHERE n.x LIKE '%Hello%'; +SELECT * FROM alter; +SELECT * FROM alter ARRAY JOIN n; +SELECT * FROM alter ARRAY JOIN n WHERE n.x LIKE '%Hello%'; -INSERT INTO test.alter (`n.x`) VALUES (['Hello2', 'World2']); +INSERT INTO alter (`n.x`) VALUES (['Hello2', 'World2']); -SELECT * FROM test.alter ORDER BY n.x; -SELECT * FROM test.alter ARRAY JOIN n ORDER BY n.x; -SELECT * FROM test.alter ARRAY JOIN n WHERE n.x LIKE '%Hello%' ORDER BY n.x; +SELECT * FROM alter ORDER BY n.x; +SELECT * FROM alter ARRAY JOIN n ORDER BY n.x; +SELECT * FROM alter ARRAY JOIN n WHERE n.x LIKE '%Hello%' ORDER BY n.x; -OPTIMIZE TABLE test.alter; +OPTIMIZE TABLE alter; -SELECT * FROM test.alter; -SELECT * FROM test.alter ARRAY JOIN n; -SELECT * FROM test.alter ARRAY JOIN n WHERE n.x LIKE '%Hello%'; +SELECT * FROM alter; +SELECT * FROM alter ARRAY JOIN n; +SELECT * FROM alter ARRAY JOIN n WHERE n.x LIKE '%Hello%'; -DROP TABLE test.alter; +DROP TABLE alter; diff --git a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql b/dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql index 26b5c09a7dd..da67212fca7 100644 --- a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql +++ b/dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql @@ -1,35 +1,35 @@ -drop table if exists test.summing_merge_tree_aggregate_function; -drop table if exists test.summing_merge_tree_null; +drop table if exists summing_merge_tree_aggregate_function; +drop table if exists summing_merge_tree_null; ---- partition merge -create table test.summing_merge_tree_aggregate_function ( +create table summing_merge_tree_aggregate_function ( d Date, k UInt64, u AggregateFunction(uniq, UInt64) ) engine=SummingMergeTree(d, k, 1); -insert into test.summing_merge_tree_aggregate_function +insert into summing_merge_tree_aggregate_function select today() as d, number as k, uniqState(toUInt64(number % 500)) from numbers(5000) group by d, k; -insert into test.summing_merge_tree_aggregate_function +insert into summing_merge_tree_aggregate_function select today() as d, number + 5000 as k, uniqState(toUInt64(number % 500)) from numbers(5000) group by d, k; -select count() from test.summing_merge_tree_aggregate_function; -optimize table test.summing_merge_tree_aggregate_function; -select count() from test.summing_merge_tree_aggregate_function; +select count() from summing_merge_tree_aggregate_function; +optimize table summing_merge_tree_aggregate_function; +select count() from summing_merge_tree_aggregate_function; -drop table test.summing_merge_tree_aggregate_function; +drop table summing_merge_tree_aggregate_function; ---- sum + uniq + uniqExact -create table test.summing_merge_tree_aggregate_function ( +create table summing_merge_tree_aggregate_function ( d materialized today(), k UInt64, c UInt64, @@ -37,121 +37,121 @@ create table test.summing_merge_tree_aggregate_function ( ue AggregateFunction(uniqExact, UInt8) ) engine=SummingMergeTree(d, k, 8192); -insert into test.summing_merge_tree_aggregate_function select 1, 1, uniqState(1), uniqExactState(1); -insert into test.summing_merge_tree_aggregate_function select 1, 1, uniqState(2), uniqExactState(2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, uniqState(3), uniqExactState(2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, uniqState(1), uniqExactState(1); -insert into test.summing_merge_tree_aggregate_function select 1, 1, uniqState(2), uniqExactState(2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, uniqState(3), uniqExactState(3); +insert into summing_merge_tree_aggregate_function select 1, 1, uniqState(1), uniqExactState(1); +insert into summing_merge_tree_aggregate_function select 1, 1, uniqState(2), uniqExactState(2); +insert into summing_merge_tree_aggregate_function select 1, 1, uniqState(3), uniqExactState(2); +insert into summing_merge_tree_aggregate_function select 1, 1, uniqState(1), uniqExactState(1); +insert into summing_merge_tree_aggregate_function select 1, 1, uniqState(2), uniqExactState(2); +insert into summing_merge_tree_aggregate_function select 1, 1, uniqState(3), uniqExactState(3); select k, sum(c), uniqMerge(u), uniqExactMerge(ue) -from test.summing_merge_tree_aggregate_function group by k; +from summing_merge_tree_aggregate_function group by k; -optimize table test.summing_merge_tree_aggregate_function; +optimize table summing_merge_tree_aggregate_function; select k, sum(c), uniqMerge(u), uniqExactMerge(ue) -from test.summing_merge_tree_aggregate_function group by k; +from summing_merge_tree_aggregate_function group by k; -drop table test.summing_merge_tree_aggregate_function; +drop table summing_merge_tree_aggregate_function; ---- sum + topK -create table test.summing_merge_tree_aggregate_function (d materialized today(), k UInt64, c UInt64, x AggregateFunction(topK(2), UInt8)) engine=SummingMergeTree(d, k, 8192); +create table summing_merge_tree_aggregate_function (d materialized today(), k UInt64, c UInt64, x AggregateFunction(topK(2), UInt8)) engine=SummingMergeTree(d, k, 8192); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKState(2)(1); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKState(2)(2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKState(2)(2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKState(2)(3); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKState(2)(3); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKState(2)(3); -select k, sum(c), topKMerge(2)(x) from test.summing_merge_tree_aggregate_function group by k; -optimize table test.summing_merge_tree_aggregate_function; -select k, sum(c), topKMerge(2)(x) from test.summing_merge_tree_aggregate_function group by k; +insert into summing_merge_tree_aggregate_function select 1, 1, topKState(2)(1); +insert into summing_merge_tree_aggregate_function select 1, 1, topKState(2)(2); +insert into summing_merge_tree_aggregate_function select 1, 1, topKState(2)(2); +insert into summing_merge_tree_aggregate_function select 1, 1, topKState(2)(3); +insert into summing_merge_tree_aggregate_function select 1, 1, topKState(2)(3); +insert into summing_merge_tree_aggregate_function select 1, 1, topKState(2)(3); +select k, sum(c), topKMerge(2)(x) from summing_merge_tree_aggregate_function group by k; +optimize table summing_merge_tree_aggregate_function; +select k, sum(c), topKMerge(2)(x) from summing_merge_tree_aggregate_function group by k; -drop table test.summing_merge_tree_aggregate_function; +drop table summing_merge_tree_aggregate_function; ---- sum + topKWeighted -create table test.summing_merge_tree_aggregate_function (d materialized today(), k UInt64, c UInt64, x AggregateFunction(topKWeighted(2), UInt8, UInt8)) engine=SummingMergeTree(d, k, 8192); +create table summing_merge_tree_aggregate_function (d materialized today(), k UInt64, c UInt64, x AggregateFunction(topKWeighted(2), UInt8, UInt8)) engine=SummingMergeTree(d, k, 8192); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(1, 1); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(1, 1); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(1, 1); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(2, 2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(2, 2); -insert into test.summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(3, 5); -select k, sum(c), topKWeightedMerge(2)(x) from test.summing_merge_tree_aggregate_function group by k; -optimize table test.summing_merge_tree_aggregate_function; -select k, sum(c), topKWeightedMerge(2)(x) from test.summing_merge_tree_aggregate_function group by k; +insert into summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(1, 1); +insert into summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(1, 1); +insert into summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(1, 1); +insert into summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(2, 2); +insert into summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(2, 2); +insert into summing_merge_tree_aggregate_function select 1, 1, topKWeightedState(2)(3, 5); +select k, sum(c), topKWeightedMerge(2)(x) from summing_merge_tree_aggregate_function group by k; +optimize table summing_merge_tree_aggregate_function; +select k, sum(c), topKWeightedMerge(2)(x) from summing_merge_tree_aggregate_function group by k; -drop table test.summing_merge_tree_aggregate_function; +drop table summing_merge_tree_aggregate_function; ---- avg -create table test.summing_merge_tree_aggregate_function (d materialized today(), k UInt64, x AggregateFunction(avg, Float64)) engine=SummingMergeTree(d, k, 8192); +create table summing_merge_tree_aggregate_function (d materialized today(), k UInt64, x AggregateFunction(avg, Float64)) engine=SummingMergeTree(d, k, 8192); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.0); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.125); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.25); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.375); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.4375); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.5); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.5625); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.625); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.75); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(0.875); -insert into test.summing_merge_tree_aggregate_function select 1, avgState(1.0); -select k, avgMerge(x) from test.summing_merge_tree_aggregate_function group by k; -optimize table test.summing_merge_tree_aggregate_function; -select k, avgMerge(x) from test.summing_merge_tree_aggregate_function group by k; +insert into summing_merge_tree_aggregate_function select 1, avgState(0.0); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.125); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.25); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.375); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.4375); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.5); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.5625); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.625); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.75); +insert into summing_merge_tree_aggregate_function select 1, avgState(0.875); +insert into summing_merge_tree_aggregate_function select 1, avgState(1.0); +select k, avgMerge(x) from summing_merge_tree_aggregate_function group by k; +optimize table summing_merge_tree_aggregate_function; +select k, avgMerge(x) from summing_merge_tree_aggregate_function group by k; -drop table test.summing_merge_tree_aggregate_function; +drop table summing_merge_tree_aggregate_function; ---- quantile -create table test.summing_merge_tree_aggregate_function (d materialized today(), k UInt64, x AggregateFunction(quantile(0.1), Float64)) engine=SummingMergeTree(d, k, 8192); +create table summing_merge_tree_aggregate_function (d materialized today(), k UInt64, x AggregateFunction(quantile(0.1), Float64)) engine=SummingMergeTree(d, k, 8192); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.0); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.1); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.2); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.3); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.4); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.5); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.6); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.7); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.8); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.9); -insert into test.summing_merge_tree_aggregate_function select 1, quantileState(0.1)(1.0); -select k, round(quantileMerge(0.1)(x), 1) from test.summing_merge_tree_aggregate_function group by k; -optimize table test.summing_merge_tree_aggregate_function; -select k, round(quantileMerge(0.1)(x), 1) from test.summing_merge_tree_aggregate_function group by k; +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.0); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.1); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.2); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.3); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.4); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.5); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.6); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.7); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.8); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(0.9); +insert into summing_merge_tree_aggregate_function select 1, quantileState(0.1)(1.0); +select k, round(quantileMerge(0.1)(x), 1) from summing_merge_tree_aggregate_function group by k; +optimize table summing_merge_tree_aggregate_function; +select k, round(quantileMerge(0.1)(x), 1) from summing_merge_tree_aggregate_function group by k; -drop table test.summing_merge_tree_aggregate_function; +drop table summing_merge_tree_aggregate_function; ---- sum + uniq with more data -create table test.summing_merge_tree_null ( +create table summing_merge_tree_null ( d materialized today(), k UInt64, c UInt64, u UInt64 ) engine=Null; -create materialized view test.summing_merge_tree_aggregate_function ( +create materialized view summing_merge_tree_aggregate_function ( d materialized today(), k UInt64, c UInt64, u AggregateFunction(uniq, UInt64) ) engine=SummingMergeTree(d, k, 8192) as select d, k, sum(c) as c, uniqState(u) as u -from test.summing_merge_tree_null +from summing_merge_tree_null group by d, k; -- prime number 53 to avoid resonanse between %3 and %53 -insert into test.summing_merge_tree_null select number % 3, 1, number % 53 from numbers(999999); +insert into summing_merge_tree_null select number % 3, 1, number % 53 from numbers(999999); -select k, sum(c), uniqMerge(u) from test.summing_merge_tree_aggregate_function group by k order by k; -optimize table test.summing_merge_tree_aggregate_function; -select k, sum(c), uniqMerge(u) from test.summing_merge_tree_aggregate_function group by k order by k; +select k, sum(c), uniqMerge(u) from summing_merge_tree_aggregate_function group by k order by k; +optimize table summing_merge_tree_aggregate_function; +select k, sum(c), uniqMerge(u) from summing_merge_tree_aggregate_function group by k order by k; -drop table test.summing_merge_tree_aggregate_function; -drop table test.summing_merge_tree_null; +drop table summing_merge_tree_aggregate_function; +drop table summing_merge_tree_null; diff --git a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql b/dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql index 8e14f9437fc..68c27cd726f 100644 --- a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql +++ b/dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql @@ -1,20 +1,20 @@ -drop table if exists test.nested_map_multiple_values; +drop table if exists nested_map_multiple_values; -create table test.nested_map_multiple_values (d materialized today(), k UInt64, payload materialized rand(), SomeMap Nested(ID UInt32, Num1 Int64, Num2 Float64)) engine=SummingMergeTree(d, k, 8192); +create table nested_map_multiple_values (d materialized today(), k UInt64, payload materialized rand(), SomeMap Nested(ID UInt32, Num1 Int64, Num2 Float64)) engine=SummingMergeTree(d, k, 8192); -insert into test.nested_map_multiple_values values (0,[1],[100],[1.0]),(1,[1],[100],[1.0]),(2,[1],[100],[1.0]),(3,[1,2],[100,150],[1.0,1.5]); -insert into test.nested_map_multiple_values values (0,[2],[150],[-2.5]),(1,[1],[150],[-1.0]),(2,[1,2],[150,150],[2.5,3.5]),(3,[1],[-100],[-1]); -optimize table test.nested_map_multiple_values; -select * from test.nested_map_multiple_values; +insert into nested_map_multiple_values values (0,[1],[100],[1.0]),(1,[1],[100],[1.0]),(2,[1],[100],[1.0]),(3,[1,2],[100,150],[1.0,1.5]); +insert into nested_map_multiple_values values (0,[2],[150],[-2.5]),(1,[1],[150],[-1.0]),(2,[1,2],[150,150],[2.5,3.5]),(3,[1],[-100],[-1]); +optimize table nested_map_multiple_values; +select * from nested_map_multiple_values; -drop table test.nested_map_multiple_values; +drop table nested_map_multiple_values; -drop table if exists test.nested_not_a_map; -create table test.nested_not_a_map (d materialized today(), k UInt64, payload materialized rand(), OnlyOneColumnMap Nested(ID UInt32), NonArithmeticValueMap Nested(ID UInt32, Date Date), Nested_ Nested(ID UInt32, Num Int64)) engine=SummingMergeTree(d, k, 8192); +drop table if exists nested_not_a_map; +create table nested_not_a_map (d materialized today(), k UInt64, payload materialized rand(), OnlyOneColumnMap Nested(ID UInt32), NonArithmeticValueMap Nested(ID UInt32, Date Date), Nested_ Nested(ID UInt32, Num Int64)) engine=SummingMergeTree(d, k, 8192); -insert into test.nested_not_a_map values (0,[1],[1],['2015-04-09'],[1],[100]); -insert into test.nested_not_a_map values (0,[1],[1],['2015-04-08'],[1],[200]); -optimize table test.nested_not_a_map; -select * from test.nested_not_a_map; +insert into nested_not_a_map values (0,[1],[1],['2015-04-09'],[1],[100]); +insert into nested_not_a_map values (0,[1],[1],['2015-04-08'],[1],[200]); +optimize table nested_not_a_map; +select * from nested_not_a_map; -drop table test.nested_not_a_map; +drop table nested_not_a_map; diff --git a/dbms/tests/queries/0_stateless/00155_long_merges.sh b/dbms/tests/queries/0_stateless/00155_long_merges.sh index a5a636a678a..27ba6a11e4d 100755 --- a/dbms/tests/queries/0_stateless/00155_long_merges.sh +++ b/dbms/tests/queries/0_stateless/00155_long_merges.sh @@ -4,23 +4,23 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh function create { - $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.summing" - $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.collapsing" - $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.aggregating" - $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.replacing" + $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS summing" + $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS collapsing" + $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS aggregating" + $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS replacing" - $CLICKHOUSE_CLIENT --query="CREATE TABLE test.summing (d Date DEFAULT today(), x UInt64, s UInt64 DEFAULT 1) ENGINE = SummingMergeTree(d, x, 8192)" - $CLICKHOUSE_CLIENT --query="CREATE TABLE test.collapsing (d Date DEFAULT today(), x UInt64, s Int8 DEFAULT 1) ENGINE = CollapsingMergeTree(d, x, 8192, s)" - $CLICKHOUSE_CLIENT --query="CREATE TABLE test.aggregating (d Date DEFAULT today(), x UInt64, s AggregateFunction(sum, UInt64)) ENGINE = AggregatingMergeTree(d, x, 8192)" - $CLICKHOUSE_CLIENT --query="CREATE TABLE test.replacing (d Date DEFAULT today(), x UInt64, s Int8 DEFAULT 1, v UInt64) ENGINE = ReplacingMergeTree(d, (x), 8192, v)" + $CLICKHOUSE_CLIENT --query="CREATE TABLE summing (d Date DEFAULT today(), x UInt64, s UInt64 DEFAULT 1) ENGINE = SummingMergeTree(d, x, 8192)" + $CLICKHOUSE_CLIENT --query="CREATE TABLE collapsing (d Date DEFAULT today(), x UInt64, s Int8 DEFAULT 1) ENGINE = CollapsingMergeTree(d, x, 8192, s)" + $CLICKHOUSE_CLIENT --query="CREATE TABLE aggregating (d Date DEFAULT today(), x UInt64, s AggregateFunction(sum, UInt64)) ENGINE = AggregatingMergeTree(d, x, 8192)" + $CLICKHOUSE_CLIENT --query="CREATE TABLE replacing (d Date DEFAULT today(), x UInt64, s Int8 DEFAULT 1, v UInt64) ENGINE = ReplacingMergeTree(d, (x), 8192, v)" } function cleanup { - $CLICKHOUSE_CLIENT --query="DROP TABLE test.summing" - $CLICKHOUSE_CLIENT --query="DROP TABLE test.collapsing" - $CLICKHOUSE_CLIENT --query="DROP TABLE test.aggregating" - $CLICKHOUSE_CLIENT --query="DROP TABLE test.replacing" + $CLICKHOUSE_CLIENT --query="DROP TABLE summing" + $CLICKHOUSE_CLIENT --query="DROP TABLE collapsing" + $CLICKHOUSE_CLIENT --query="DROP TABLE aggregating" + $CLICKHOUSE_CLIENT --query="DROP TABLE replacing" } @@ -32,36 +32,36 @@ function test { SETTINGS="--min_insert_block_size_rows=0 --min_insert_block_size_bytes=0" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.summing (x) SELECT number AS x FROM system.numbers LIMIT $1" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.summing (x) SELECT number AS x FROM system.numbers LIMIT $2" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO summing (x) SELECT number AS x FROM system.numbers LIMIT $1" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO summing (x) SELECT number AS x FROM system.numbers LIMIT $2" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.collapsing (x) SELECT number AS x FROM system.numbers LIMIT $1" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.collapsing (x) SELECT number AS x FROM system.numbers LIMIT $2" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO collapsing (x) SELECT number AS x FROM system.numbers LIMIT $1" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO collapsing (x) SELECT number AS x FROM system.numbers LIMIT $2" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.aggregating (d, x, s) SELECT today() AS d, number AS x, sumState(materialize(toUInt64(1))) AS s FROM (SELECT number FROM system.numbers LIMIT $1) GROUP BY number" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.aggregating (d, x, s) SELECT today() AS d, number AS x, sumState(materialize(toUInt64(1))) AS s FROM (SELECT number FROM system.numbers LIMIT $2) GROUP BY number" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO aggregating (d, x, s) SELECT today() AS d, number AS x, sumState(materialize(toUInt64(1))) AS s FROM (SELECT number FROM system.numbers LIMIT $1) GROUP BY number" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO aggregating (d, x, s) SELECT today() AS d, number AS x, sumState(materialize(toUInt64(1))) AS s FROM (SELECT number FROM system.numbers LIMIT $2) GROUP BY number" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.replacing (x, v) SELECT number AS x, toUInt64(number % 3 == 0) FROM system.numbers LIMIT $1" - $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO test.replacing (x, v) SELECT number AS x, toUInt64(number % 3 == 1) FROM system.numbers LIMIT $2" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO replacing (x, v) SELECT number AS x, toUInt64(number % 3 == 0) FROM system.numbers LIMIT $1" + $CLICKHOUSE_CLIENT $SETTINGS --query="INSERT INTO replacing (x, v) SELECT number AS x, toUInt64(number % 3 == 1) FROM system.numbers LIMIT $2" - $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sum(s) = $SUM FROM test.summing" - $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE test.summing" - $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sum(s) = $SUM FROM test.summing" + $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sum(s) = $SUM FROM summing" + $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE summing" + $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sum(s) = $SUM FROM summing" echo - $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sum(s) = $SUM FROM test.collapsing" - $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE test.collapsing" --server_logs_file='/dev/null'; - $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sum(s) = $MAX FROM test.collapsing" + $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sum(s) = $SUM FROM collapsing" + $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE collapsing" --server_logs_file='/dev/null'; + $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sum(s) = $MAX FROM collapsing" echo - $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sumMerge(s) = $SUM FROM test.aggregating" - $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE test.aggregating" - $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sumMerge(s) = $SUM FROM test.aggregating" + $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sumMerge(s) = $SUM FROM aggregating" + $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE aggregating" + $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sumMerge(s) = $SUM FROM aggregating" echo - $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sum(s) = $SUM FROM test.replacing" - $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE test.replacing" - $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sum(s) = $MAX FROM test.replacing" - $CLICKHOUSE_CLIENT --query="SELECT count() = sum(v) FROM test.replacing where x % 3 == 0 and x < $1" - $CLICKHOUSE_CLIENT --query="SELECT count() = sum(v) FROM test.replacing where x % 3 == 1 and x < $2" - $CLICKHOUSE_CLIENT --query="SELECT sum(v) = 0 FROM test.replacing where x % 3 == 2" + $CLICKHOUSE_CLIENT --query="SELECT count() = $SUM, sum(s) = $SUM FROM replacing" + $CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE replacing" + $CLICKHOUSE_CLIENT --query="SELECT count() = $MAX, sum(s) = $MAX FROM replacing" + $CLICKHOUSE_CLIENT --query="SELECT count() = sum(v) FROM replacing where x % 3 == 0 and x < $1" + $CLICKHOUSE_CLIENT --query="SELECT count() = sum(v) FROM replacing where x % 3 == 1 and x < $2" + $CLICKHOUSE_CLIENT --query="SELECT sum(v) = 0 FROM replacing where x % 3 == 2" echo echo } diff --git a/dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql b/dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql index af211314328..5fc41e30889 100644 --- a/dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql +++ b/dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql @@ -1,7 +1,9 @@ -CREATE DATABASE IF NOT EXISTS test2; -DROP TABLE IF EXISTS test2.mt_buffer; -CREATE TABLE test2.mt_buffer (d Date DEFAULT today(), x UInt64) ENGINE = Buffer(test2, mt, 16, 100, 100, 1000000, 1000000, 1000000000, 1000000000); +CREATE DATABASE IF NOT EXISTS test2_00158; +DROP TABLE IF EXISTS test2_00158.mt_buffer_00158; +DROP TABLE IF EXISTS test2_00158.mt_00158; +CREATE TABLE test2_00158.mt_buffer_00158 (d Date DEFAULT today(), x UInt64) ENGINE = Buffer(test2_00158, mt_00158, 16, 100, 100, 1000000, 1000000, 1000000000, 1000000000); SET send_logs_level = 'none'; -- Supress "Destination table test2.mt doesn't exist. Block of data is discarded." -INSERT INTO test2.mt_buffer (x) SELECT number AS x FROM system.numbers LIMIT 100000; -INSERT INTO test2.mt_buffer (x) SELECT number AS x FROM system.numbers LIMIT 1000000; -DROP DATABASE test2; +INSERT INTO test2_00158.mt_buffer_00158 (x) SELECT number AS x FROM system.numbers LIMIT 100000; +INSERT INTO test2_00158.mt_buffer_00158 (x) SELECT number AS x FROM system.numbers LIMIT 1000000; +DROP TABLE IF EXISTS test2_00158.mt_buffer_00158; +DROP DATABASE test2_00158; diff --git a/dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql b/dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql index 6a7728a38f2..57c057443f4 100644 --- a/dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql +++ b/dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.memory; -CREATE TABLE test.memory (x UInt8) ENGINE = Memory; +DROP TABLE IF EXISTS memory; +CREATE TABLE memory (x UInt8) ENGINE = Memory; -INSERT INTO test.memory VALUES (1); -INSERT INTO test.memory (x) VALUES (2); -INSERT INTO test.memory ( x) VALUES (3); -INSERT INTO test.memory (x ) VALUES (4); -INSERT INTO test.memory ( x ) VALUES (5); -INSERT INTO test.memory(x)VALUES(6); +INSERT INTO memory VALUES (1); +INSERT INTO memory (x) VALUES (2); +INSERT INTO memory ( x) VALUES (3); +INSERT INTO memory (x ) VALUES (4); +INSERT INTO memory ( x ) VALUES (5); +INSERT INTO memory(x)VALUES(6); -SELECT * FROM test.memory ORDER BY x; +SELECT * FROM memory ORDER BY x; -DROP TABLE test.memory; +DROP TABLE memory; diff --git a/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh b/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh index 0b98faf1ba3..6960676ceb6 100755 --- a/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh +++ b/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh @@ -3,12 +3,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=DROP+TABLE" -d 'IF EXISTS test.insert' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=CREATE" -d 'TABLE test.insert (x UInt8) ENGINE = Memory' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'INSERT INTO test.insert VALUES (1),(2)' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.insert+VALUES" -d '(3),(4)' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.insert" -d 'VALUES (5),(6)' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.insert+VALUES+(7)" -d ',(8)' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.insert+VALUES+(9),(10)" -d ' ' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'SELECT x FROM test.insert ORDER BY x' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=DROP+TABLE" -d 'test.insert' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=DROP+TABLE" -d 'IF EXISTS insert' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=CREATE" -d 'TABLE insert (x UInt8) ENGINE = Memory' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'INSERT INTO insert VALUES (1),(2)' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+insert+VALUES" -d '(3),(4)' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+insert" -d 'VALUES (5),(6)' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+insert+VALUES+(7)" -d ',(8)' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+insert+VALUES+(9),(10)" -d ' ' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'SELECT x FROM insert ORDER BY x' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=DROP+TABLE" -d 'insert' diff --git a/dbms/tests/queries/0_stateless/00180_attach_materialized_view.sql b/dbms/tests/queries/0_stateless/00180_attach_materialized_view.sql index 787cea6caf7..156c1b262f1 100644 --- a/dbms/tests/queries/0_stateless/00180_attach_materialized_view.sql +++ b/dbms/tests/queries/0_stateless/00180_attach_materialized_view.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.t; -DROP TABLE IF EXISTS test.mv; -DROP TABLE IF EXISTS test.`.inner.mv`; +DROP TABLE IF EXISTS t; +DROP TABLE IF EXISTS mv; +DROP TABLE IF EXISTS `.inner.mv`; -CREATE TABLE test.t (x UInt8) ENGINE = Null; -CREATE MATERIALIZED VIEW test.mv ENGINE = Null AS SELECT * FROM test.t; +CREATE TABLE t (x UInt8) ENGINE = Null; +CREATE MATERIALIZED VIEW mv ENGINE = Null AS SELECT * FROM t; -DETACH TABLE test.mv; -ATTACH MATERIALIZED VIEW test.mv ENGINE = Null AS SELECT * FROM test.t; +DETACH TABLE mv; +ATTACH MATERIALIZED VIEW mv ENGINE = Null AS SELECT * FROM t; -DROP TABLE test.t; -DROP TABLE test.mv; +DROP TABLE t; +DROP TABLE mv; diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql index 589e5d92aca..aeecdc20c67 100644 --- a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql +++ b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql @@ -1,65 +1,65 @@ -DROP TABLE IF EXISTS test.series; +DROP TABLE IF EXISTS series; -CREATE TABLE test.series(i UInt32, x_value Float64, y_value Float64) ENGINE = Memory; +CREATE TABLE series(i UInt32, x_value Float64, y_value Float64) ENGINE = Memory; -INSERT INTO test.series(i, x_value, y_value) VALUES (1, 5.6,-4.4),(2, -9.6,3),(3, -1.3,-4),(4, 5.3,9.7),(5, 4.4,0.037),(6, -8.6,-7.8),(7, 5.1,9.3),(8, 7.9,-3.6),(9, -8.2,0.62),(10, -3,7.3); +INSERT INTO series(i, x_value, y_value) VALUES (1, 5.6,-4.4),(2, -9.6,3),(3, -1.3,-4),(4, 5.3,9.7),(5, 4.4,0.037),(6, -8.6,-7.8),(7, 5.1,9.3),(8, 7.9,-3.6),(9, -8.2,0.62),(10, -3,7.3); /* varSamp */ -SELECT varSamp(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT varSamp(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT varSamp(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT varSamp(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT varSamp(x_value) AS res1, (sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / (count() - 1) AS res2 -FROM test.series +FROM series ); /* stddevSamp */ -SELECT stddevSamp(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT stddevSamp(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT stddevSamp(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT stddevSamp(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT stddevSamp(x_value) AS res1, sqrt((sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / (count() - 1)) AS res2 -FROM test.series +FROM series ); /* varPop */ -SELECT varPop(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT varPop(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT varPop(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT varPop(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT varPop(x_value) AS res1, (sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / count() AS res2 -FROM test.series +FROM series ); /* stddevPop */ -SELECT stddevPop(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT stddevPop(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT stddevPop(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT stddevPop(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT stddevPop(x_value) AS res1, sqrt((sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / count()) AS res2 -FROM test.series +FROM series ); /* covarSamp */ -SELECT covarSamp(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 0); -SELECT covarSamp(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 1); +SELECT covarSamp(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 0); +SELECT covarSamp(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 1); SELECT round(abs(COVAR1 - COVAR2), 6) FROM @@ -67,7 +67,7 @@ FROM SELECT arrayJoin([1]) AS ID2, covarSamp(x_value, y_value) AS COVAR1 - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT @@ -82,22 +82,22 @@ FROM toUInt32(arrayJoin([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])) AS ID, avg(x_value) AS AVG_X, avg(y_value) AS AVG_Y - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT i AS ID, x_value AS X, y_value AS Y - FROM test.series + FROM series ) USING ID ) ) USING ID2; /* covarPop */ -SELECT covarPop(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 0); -SELECT covarPop(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 1); +SELECT covarPop(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 0); +SELECT covarPop(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 1); SELECT round(abs(COVAR1 - COVAR2), 6) FROM @@ -105,7 +105,7 @@ FROM SELECT arrayJoin([1]) AS ID2, covarPop(x_value, y_value) AS COVAR1 - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT @@ -120,24 +120,24 @@ FROM toUInt32(arrayJoin([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])) AS ID, avg(x_value) AS AVG_X, avg(y_value) AS AVG_Y - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT i AS ID, x_value AS X, y_value AS Y - FROM test.series + FROM series ) USING ID ) ) USING ID2; /* corr */ -SELECT corr(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 0); -SELECT corr(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 1); +SELECT corr(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 0); +SELECT corr(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 1); -SELECT round(abs(corr(x_value, y_value) - covarPop(x_value, y_value) / (stddevPop(x_value) * stddevPop(y_value))), 6) FROM test.series; +SELECT round(abs(corr(x_value, y_value) - covarPop(x_value, y_value) / (stddevPop(x_value) * stddevPop(y_value))), 6) FROM series; /* quantile AND quantileExact */ SELECT '----quantile----'; @@ -152,4 +152,4 @@ SELECT quantileIf(number, number > 100) FROM numbers(90); SELECT quantileIf(toFloat32(number) , number > 100) FROM numbers(90); SELECT quantileIf(toFloat64(number) , number > 100) FROM numbers(90); -DROP TABLE test.series; +DROP TABLE series; diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql index cc2b39f3c36..362d300f1d6 100644 --- a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql +++ b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql @@ -1,65 +1,65 @@ -DROP TABLE IF EXISTS test.series; +DROP TABLE IF EXISTS series; -CREATE TABLE test.series(i UInt32, x_value Float64, y_value Float64) ENGINE = Memory; +CREATE TABLE series(i UInt32, x_value Float64, y_value Float64) ENGINE = Memory; -INSERT INTO test.series(i, x_value, y_value) VALUES (1, 5.6,-4.4),(2, -9.6,3),(3, -1.3,-4),(4, 5.3,9.7),(5, 4.4,0.037),(6, -8.6,-7.8),(7, 5.1,9.3),(8, 7.9,-3.6),(9, -8.2,0.62),(10, -3,7.3); +INSERT INTO series(i, x_value, y_value) VALUES (1, 5.6,-4.4),(2, -9.6,3),(3, -1.3,-4),(4, 5.3,9.7),(5, 4.4,0.037),(6, -8.6,-7.8),(7, 5.1,9.3),(8, 7.9,-3.6),(9, -8.2,0.62),(10, -3,7.3); /* varSampStable */ -SELECT varSampStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT varSampStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT varSampStable(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT varSampStable(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT varSampStable(x_value) AS res1, (sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / (count() - 1) AS res2 -FROM test.series +FROM series ); /* stddevSampStable */ -SELECT stddevSampStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT stddevSampStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT stddevSampStable(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT stddevSampStable(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT stddevSampStable(x_value) AS res1, sqrt((sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / (count() - 1)) AS res2 -FROM test.series +FROM series ); /* varPopStable */ -SELECT varPopStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT varPopStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT varPopStable(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT varPopStable(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT varPopStable(x_value) AS res1, (sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / count() AS res2 -FROM test.series +FROM series ); /* stddevPopStable */ -SELECT stddevPopStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 0); -SELECT stddevPopStable(x_value) FROM (SELECT x_value FROM test.series LIMIT 1); +SELECT stddevPopStable(x_value) FROM (SELECT x_value FROM series LIMIT 0); +SELECT stddevPopStable(x_value) FROM (SELECT x_value FROM series LIMIT 1); SELECT round(abs(res1 - res2), 6) FROM ( SELECT stddevPopStable(x_value) AS res1, sqrt((sum(x_value * x_value) - ((sum(x_value) * sum(x_value)) / count())) / count()) AS res2 -FROM test.series +FROM series ); /* covarSampStable */ -SELECT covarSampStable(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 0); -SELECT covarSampStable(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 1); +SELECT covarSampStable(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 0); +SELECT covarSampStable(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 1); SELECT round(abs(COVAR1 - COVAR2), 6) FROM @@ -67,7 +67,7 @@ FROM SELECT arrayJoin([1]) AS ID2, covarSampStable(x_value, y_value) AS COVAR1 - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT @@ -82,22 +82,22 @@ FROM toUInt32(arrayJoin([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])) AS ID, avg(x_value) AS AVG_X, avg(y_value) AS AVG_Y - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT i AS ID, x_value AS X, y_value AS Y - FROM test.series + FROM series ) USING ID ) ) USING ID2; /* covarPopStable */ -SELECT covarPopStable(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 0); -SELECT covarPopStable(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 1); +SELECT covarPopStable(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 0); +SELECT covarPopStable(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 1); SELECT round(abs(COVAR1 - COVAR2), 6) FROM @@ -105,7 +105,7 @@ FROM SELECT arrayJoin([1]) AS ID2, covarPopStable(x_value, y_value) AS COVAR1 - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT @@ -120,23 +120,23 @@ FROM toUInt32(arrayJoin([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])) AS ID, avg(x_value) AS AVG_X, avg(y_value) AS AVG_Y - FROM test.series + FROM series ) ANY INNER JOIN ( SELECT i AS ID, x_value AS X, y_value AS Y - FROM test.series + FROM series ) USING ID ) ) USING ID2; /* corr */ -SELECT corrStable(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 0); -SELECT corrStable(x_value, y_value) FROM (SELECT x_value, y_value FROM test.series LIMIT 1); +SELECT corrStable(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 0); +SELECT corrStable(x_value, y_value) FROM (SELECT x_value, y_value FROM series LIMIT 1); -SELECT round(abs(corrStable(x_value, y_value) - covarPopStable(x_value, y_value) / (stddevPopStable(x_value) * stddevPopStable(y_value))), 6) FROM test.series; +SELECT round(abs(corrStable(x_value, y_value) - covarPopStable(x_value, y_value) / (stddevPopStable(x_value) * stddevPopStable(y_value))), 6) FROM series; -DROP TABLE test.series; +DROP TABLE series; diff --git a/dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql b/dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql index 1dbc73c4754..8effc7e735a 100644 --- a/dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql +++ b/dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.aggregating; -CREATE TABLE test.aggregating (d Date DEFAULT '2000-01-01', k UInt64, u AggregateFunction(uniq, UInt64)) ENGINE = AggregatingMergeTree(d, k, 8192); +DROP TABLE IF EXISTS aggregating; +CREATE TABLE aggregating (d Date DEFAULT '2000-01-01', k UInt64, u AggregateFunction(uniq, UInt64)) ENGINE = AggregatingMergeTree(d, k, 8192); -INSERT INTO test.aggregating (k, u) SELECT intDiv(number, 100) AS k, uniqState(toUInt64(number % 100)) AS u FROM (SELECT * FROM system.numbers LIMIT 1000) GROUP BY k; -INSERT INTO test.aggregating (k, u) SELECT intDiv(number, 100) AS k, uniqState(toUInt64(number % 100) + 50) AS u FROM (SELECT * FROM system.numbers LIMIT 500, 1000) GROUP BY k; +INSERT INTO aggregating (k, u) SELECT intDiv(number, 100) AS k, uniqState(toUInt64(number % 100)) AS u FROM (SELECT * FROM system.numbers LIMIT 1000) GROUP BY k; +INSERT INTO aggregating (k, u) SELECT intDiv(number, 100) AS k, uniqState(toUInt64(number % 100) + 50) AS u FROM (SELECT * FROM system.numbers LIMIT 500, 1000) GROUP BY k; -SELECT k, finalizeAggregation(u) FROM test.aggregating FINAL; +SELECT k, finalizeAggregation(u) FROM aggregating FINAL; -OPTIMIZE TABLE test.aggregating; +OPTIMIZE TABLE aggregating; -SELECT k, finalizeAggregation(u) FROM test.aggregating; -SELECT k, finalizeAggregation(u) FROM test.aggregating FINAL; +SELECT k, finalizeAggregation(u) FROM aggregating; +SELECT k, finalizeAggregation(u) FROM aggregating FINAL; -DROP TABLE test.aggregating; +DROP TABLE aggregating; diff --git a/dbms/tests/queries/0_stateless/00193_parallel_replicas.sql b/dbms/tests/queries/0_stateless/00193_parallel_replicas.sql index ed1e6f0ed8d..d1430d74045 100644 --- a/dbms/tests/queries/0_stateless/00193_parallel_replicas.sql +++ b/dbms/tests/queries/0_stateless/00193_parallel_replicas.sql @@ -1,58 +1,58 @@ -DROP TABLE IF EXISTS test.parallel_replicas; -DROP TABLE IF EXISTS test.parallel_replicas_backup; +DROP TABLE IF EXISTS parallel_replicas; +DROP TABLE IF EXISTS parallel_replicas_backup; -CREATE TABLE test.parallel_replicas (d Date DEFAULT today(), x UInt32, u UInt64, s String) ENGINE = MergeTree(d, cityHash64(u, s), (x, d, cityHash64(u, s)), 8192); -INSERT INTO test.parallel_replicas (x, u, s) VALUES (1, 2, 'A'),(3, 4, 'B'),(5, 6, 'C'),(7, 8, 'D'),(9,10,'E'); -INSERT INTO test.parallel_replicas (x, u, s) VALUES (11, 12, 'F'),(13, 14, 'G'),(15, 16, 'H'),(17, 18, 'I'),(19,20,'J'); -INSERT INTO test.parallel_replicas (x, u, s) VALUES (21, 22, 'K'),(23, 24, 'L'),(25, 26, 'M'),(27, 28, 'N'),(29,30,'O'); -INSERT INTO test.parallel_replicas (x, u, s) VALUES (31, 32, 'P'),(33, 34, 'Q'),(35, 36, 'R'),(37, 38, 'S'),(39,40,'T'); -INSERT INTO test.parallel_replicas (x, u, s) VALUES (41, 42, 'U'),(43, 44, 'V'),(45, 46, 'W'),(47, 48, 'X'),(49,50,'Y'); -INSERT INTO test.parallel_replicas (x, u, s) VALUES (51, 52, 'Z'); +CREATE TABLE parallel_replicas (d Date DEFAULT today(), x UInt32, u UInt64, s String) ENGINE = MergeTree(d, cityHash64(u, s), (x, d, cityHash64(u, s)), 8192); +INSERT INTO parallel_replicas (x, u, s) VALUES (1, 2, 'A'),(3, 4, 'B'),(5, 6, 'C'),(7, 8, 'D'),(9,10,'E'); +INSERT INTO parallel_replicas (x, u, s) VALUES (11, 12, 'F'),(13, 14, 'G'),(15, 16, 'H'),(17, 18, 'I'),(19,20,'J'); +INSERT INTO parallel_replicas (x, u, s) VALUES (21, 22, 'K'),(23, 24, 'L'),(25, 26, 'M'),(27, 28, 'N'),(29,30,'O'); +INSERT INTO parallel_replicas (x, u, s) VALUES (31, 32, 'P'),(33, 34, 'Q'),(35, 36, 'R'),(37, 38, 'S'),(39,40,'T'); +INSERT INTO parallel_replicas (x, u, s) VALUES (41, 42, 'U'),(43, 44, 'V'),(45, 46, 'W'),(47, 48, 'X'),(49,50,'Y'); +INSERT INTO parallel_replicas (x, u, s) VALUES (51, 52, 'Z'); /* * Проверяем, что: * - на каждой реплике таблица не пустая; - * - объединение данных всех реплик совпадает с содержанием таблицы test.parallel_replicas. + * - объединение данных всех реплик совпадает с содержанием таблицы parallel_replicas. */ /* Две реплики */ -CREATE TABLE test.parallel_replicas_backup(d Date DEFAULT today(), x UInt32, u UInt64, s String) ENGINE = Memory; +CREATE TABLE parallel_replicas_backup(d Date DEFAULT today(), x UInt32, u UInt64, s String) ENGINE = Memory; SET parallel_replicas_count = 2; SET parallel_replica_offset = 0; -INSERT INTO test.parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM test.parallel_replicas; -SELECT count() > 0 FROM test.parallel_replicas; +INSERT INTO parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM parallel_replicas; +SELECT count() > 0 FROM parallel_replicas; SET parallel_replica_offset = 1; -INSERT INTO test.parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM test.parallel_replicas; -SELECT count() > 0 FROM test.parallel_replicas; +INSERT INTO parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM parallel_replicas; +SELECT count() > 0 FROM parallel_replicas; SET parallel_replicas_count = 0; -SELECT x, u, s FROM test.parallel_replicas_backup ORDER BY x, u, s ASC; +SELECT x, u, s FROM parallel_replicas_backup ORDER BY x, u, s ASC; -DROP TABLE test.parallel_replicas_backup; -CREATE TABLE test.parallel_replicas_backup(d Date DEFAULT today(), x UInt32, u UInt64, s String) ENGINE = Memory; +DROP TABLE parallel_replicas_backup; +CREATE TABLE parallel_replicas_backup(d Date DEFAULT today(), x UInt32, u UInt64, s String) ENGINE = Memory; /* Три реплики */ SET parallel_replicas_count = 3; SET parallel_replica_offset = 0; -INSERT INTO test.parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM test.parallel_replicas; -SELECT count() > 0 FROM test.parallel_replicas; +INSERT INTO parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM parallel_replicas; +SELECT count() > 0 FROM parallel_replicas; SET parallel_replica_offset = 1; -INSERT INTO test.parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM test.parallel_replicas; -SELECT count() > 0 FROM test.parallel_replicas; +INSERT INTO parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM parallel_replicas; +SELECT count() > 0 FROM parallel_replicas; SET parallel_replica_offset = 2; -INSERT INTO test.parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM test.parallel_replicas; -SELECT count() > 0 FROM test.parallel_replicas; +INSERT INTO parallel_replicas_backup(d, x, u, s) SELECT d, x, u, s FROM parallel_replicas; +SELECT count() > 0 FROM parallel_replicas; SET parallel_replicas_count = 0; -SELECT x, u, s FROM test.parallel_replicas_backup ORDER BY x, u, s ASC; +SELECT x, u, s FROM parallel_replicas_backup ORDER BY x, u, s ASC; -DROP TABLE test.parallel_replicas; -DROP TABLE test.parallel_replicas_backup; +DROP TABLE parallel_replicas; +DROP TABLE parallel_replicas_backup; diff --git a/dbms/tests/queries/0_stateless/00204_extract_url_parameter.sql b/dbms/tests/queries/0_stateless/00204_extract_url_parameter.sql index d6ca5b31333..f3395a7029f 100644 --- a/dbms/tests/queries/0_stateless/00204_extract_url_parameter.sql +++ b/dbms/tests/queries/0_stateless/00204_extract_url_parameter.sql @@ -1 +1 @@ -SELECT extractURLParameter('http://test.com/?testq=aaa&q=111', 'q'); +SELECT extractURLParameter('http://com/?testq=aaa&q=111', 'q'); diff --git a/dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql b/dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql index 0d632992b67..65bf2b8de24 100644 --- a/dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql +++ b/dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.test; -CREATE TABLE test.test (x UInt8) ENGINE = Log; +DROP TABLE IF EXISTS test; +CREATE TABLE test (x UInt8) ENGINE = Log; -INSERT INTO test.test SELECT 1 AS x; -INSERT INTO test.test SELECT 1 AS x SETTINGS extremes = 1; -INSERT INTO test.test SELECT 1 AS x GROUP BY 1 WITH TOTALS; -INSERT INTO test.test SELECT 1 AS x GROUP BY 1 WITH TOTALS SETTINGS extremes = 1; +INSERT INTO test SELECT 1 AS x; +INSERT INTO test SELECT 1 AS x SETTINGS extremes = 1; +INSERT INTO test SELECT 1 AS x GROUP BY 1 WITH TOTALS; +INSERT INTO test SELECT 1 AS x GROUP BY 1 WITH TOTALS SETTINGS extremes = 1; -SELECT count(), min(x), max(x) FROM test.test; +SELECT count(), min(x), max(x) FROM test; -DROP TABLE test.test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh b/dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh index 766539e94db..d3b096dbbf6 100755 --- a/dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh +++ b/dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh @@ -3,7 +3,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "DROP TABLE IF EXISTS test.test" -${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "CREATE TABLE test.test (x UInt8) ENGINE = Log" -${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "INSERT INTO test.test SELECT 1 AS x" -${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "DROP TABLE test.test" +${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "DROP TABLE IF EXISTS test" +${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "CREATE TABLE test (x UInt8) ENGINE = Log" +${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "INSERT INTO test SELECT 1 AS x" +${CLICKHOUSE_CURL} -sS ${CLICKHOUSE_URL}?extremes=1 -d @- <<< "DROP TABLE test" diff --git a/dbms/tests/queries/0_stateless/00214_primary_key_order.sql b/dbms/tests/queries/0_stateless/00214_primary_key_order.sql index b2c00fb1f63..3c751e63e6d 100644 --- a/dbms/tests/queries/0_stateless/00214_primary_key_order.sql +++ b/dbms/tests/queries/0_stateless/00214_primary_key_order.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.primary_key; -CREATE TABLE test.primary_key (d Date DEFAULT today(), x Int8) ENGINE = MergeTree(d, -x, 1); +DROP TABLE IF EXISTS primary_key; +CREATE TABLE primary_key (d Date DEFAULT today(), x Int8) ENGINE = MergeTree(d, -x, 1); -INSERT INTO test.primary_key (x) VALUES (1), (2), (3); +INSERT INTO primary_key (x) VALUES (1), (2), (3); -SELECT x FROM test.primary_key ORDER BY x; +SELECT x FROM primary_key ORDER BY x; -SELECT 'a', -x FROM test.primary_key WHERE -x < -3; -SELECT 'b', -x FROM test.primary_key WHERE -x < -2; -SELECT 'c', -x FROM test.primary_key WHERE -x < -1; -SELECT 'd', -x FROM test.primary_key WHERE -x < toInt8(0); +SELECT 'a', -x FROM primary_key WHERE -x < -3; +SELECT 'b', -x FROM primary_key WHERE -x < -2; +SELECT 'c', -x FROM primary_key WHERE -x < -1; +SELECT 'd', -x FROM primary_key WHERE -x < toInt8(0); -DROP TABLE test.primary_key; +DROP TABLE primary_key; diff --git a/dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql b/dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql index cd86bc7aa15..c6a0068f861 100644 --- a/dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.primary_key; -CREATE TABLE test.primary_key (d Date DEFAULT today(), x Int8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/primary_key', 'r1', d, -x, 1); +DROP TABLE IF EXISTS primary_key; +CREATE TABLE primary_key (d Date DEFAULT today(), x Int8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/primary_key', 'r1', d, -x, 1); -INSERT INTO test.primary_key (x) VALUES (1), (2), (3); -INSERT INTO test.primary_key (x) VALUES (1), (3), (2); -INSERT INTO test.primary_key (x) VALUES (2), (1), (3); -INSERT INTO test.primary_key (x) VALUES (2), (3), (1); -INSERT INTO test.primary_key (x) VALUES (3), (1), (2); -INSERT INTO test.primary_key (x) VALUES (3), (2), (1); +INSERT INTO primary_key (x) VALUES (1), (2), (3); +INSERT INTO primary_key (x) VALUES (1), (3), (2); +INSERT INTO primary_key (x) VALUES (2), (1), (3); +INSERT INTO primary_key (x) VALUES (2), (3), (1); +INSERT INTO primary_key (x) VALUES (3), (1), (2); +INSERT INTO primary_key (x) VALUES (3), (2), (1); -SELECT x FROM test.primary_key ORDER BY x; -SELECT x FROM test.primary_key WHERE -x < -1 ORDER BY x; +SELECT x FROM primary_key ORDER BY x; +SELECT x FROM primary_key WHERE -x < -1 ORDER BY x; -DROP TABLE test.primary_key; +DROP TABLE primary_key; diff --git a/dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql b/dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql index 3f9c5b786fb..6b29d0a8cd3 100644 --- a/dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql +++ b/dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql @@ -1,28 +1,28 @@ -DROP TABLE IF EXISTS test.deduplication; -CREATE TABLE test.deduplication (d Date DEFAULT '2015-01-01', x Int8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/deduplication', 'r1', d, x, 1); +DROP TABLE IF EXISTS deduplication; +CREATE TABLE deduplication (d Date DEFAULT '2015-01-01', x Int8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/deduplication', 'r1', d, x, 1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); -INSERT INTO test.deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); +INSERT INTO deduplication (x) VALUES (1); -SELECT * FROM test.deduplication; +SELECT * FROM deduplication; -DETACH TABLE test.deduplication; -ATTACH TABLE test.deduplication (d Date DEFAULT '2015-01-01', x Int8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/deduplication', 'r1', d, x, 1); +DETACH TABLE deduplication; +ATTACH TABLE deduplication (d Date DEFAULT '2015-01-01', x Int8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/deduplication', 'r1', d, x, 1); -SELECT * FROM test.deduplication; +SELECT * FROM deduplication; -DROP TABLE test.deduplication; +DROP TABLE deduplication; diff --git a/dbms/tests/queries/0_stateless/00229_prewhere_column_missing.sql b/dbms/tests/queries/0_stateless/00229_prewhere_column_missing.sql index 80266cbaa87..da4cce9a992 100644 --- a/dbms/tests/queries/0_stateless/00229_prewhere_column_missing.sql +++ b/dbms/tests/queries/0_stateless/00229_prewhere_column_missing.sql @@ -1,29 +1,29 @@ -drop table if exists test.prewhere_column_missing; +drop table if exists prewhere_column_missing; -create table test.prewhere_column_missing (d Date default '2015-01-01', x UInt64) engine=MergeTree(d, x, 1); +create table prewhere_column_missing (d Date default '2015-01-01', x UInt64) engine=MergeTree(d, x, 1); -insert into test.prewhere_column_missing (x) values (0); -select * from test.prewhere_column_missing; +insert into prewhere_column_missing (x) values (0); +select * from prewhere_column_missing; -alter table test.prewhere_column_missing add column arr Array(UInt64); -select * from test.prewhere_column_missing; +alter table prewhere_column_missing add column arr Array(UInt64); +select * from prewhere_column_missing; -select *, arraySum(arr) as s from test.prewhere_column_missing; -select *, arraySum(arr) as s from test.prewhere_column_missing where s = 0; -select *, arraySum(arr) as s from test.prewhere_column_missing prewhere s = 0; +select *, arraySum(arr) as s from prewhere_column_missing; +select *, arraySum(arr) as s from prewhere_column_missing where s = 0; +select *, arraySum(arr) as s from prewhere_column_missing prewhere s = 0; -select *, length(arr) as l from test.prewhere_column_missing; -select *, length(arr) as l from test.prewhere_column_missing where l = 0; -select *, length(arr) as l from test.prewhere_column_missing prewhere l = 0; +select *, length(arr) as l from prewhere_column_missing; +select *, length(arr) as l from prewhere_column_missing where l = 0; +select *, length(arr) as l from prewhere_column_missing prewhere l = 0; -alter table test.prewhere_column_missing add column hash_x default intHash64(x); +alter table prewhere_column_missing add column hash_x default intHash64(x); -select * from test.prewhere_column_missing; -select * from test.prewhere_column_missing where hash_x = intHash64(x); -select * from test.prewhere_column_missing prewhere hash_x = intHash64(x); -select * from test.prewhere_column_missing where hash_x = intHash64(x) and length(arr) = 0; -select * from test.prewhere_column_missing prewhere hash_x = intHash64(x) and length(arr) = 0; -select * from test.prewhere_column_missing where hash_x = intHash64(x) and length(arr) = 0 and arraySum(arr) = 0; -select * from test.prewhere_column_missing prewhere hash_x = intHash64(x) and length(arr) = 0 and arraySum(arr) = 0; +select * from prewhere_column_missing; +select * from prewhere_column_missing where hash_x = intHash64(x); +select * from prewhere_column_missing prewhere hash_x = intHash64(x); +select * from prewhere_column_missing where hash_x = intHash64(x) and length(arr) = 0; +select * from prewhere_column_missing prewhere hash_x = intHash64(x) and length(arr) = 0; +select * from prewhere_column_missing where hash_x = intHash64(x) and length(arr) = 0 and arraySum(arr) = 0; +select * from prewhere_column_missing prewhere hash_x = intHash64(x) and length(arr) = 0 and arraySum(arr) = 0; -drop table test.prewhere_column_missing; +drop table prewhere_column_missing; diff --git a/dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql b/dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql index 10a25cfeea0..093afa14e3e 100644 --- a/dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql +++ b/dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql @@ -1,4 +1,4 @@ -CREATE TABLE IF NOT EXISTS test.foo(id UInt64) Engine=Memory; -INSERT INTO test.foo(id) VALUES (0),(4),(1),(1),(3),(1),(1),(2),(2),(2),(1),(2),(3),(2),(1),(1),(2),(1),(1),(1),(3),(1),(2),(2),(1),(1),(3),(1),(2),(1),(1),(3),(2),(1),(1),(4),(0); -SELECT sum(id = 3 OR id = 1 OR id = 2) AS x, sum(id = 3 OR id = 1 OR id = 2) AS x FROM test.foo; -DROP TABLE test.foo; +CREATE TABLE IF NOT EXISTS foo(id UInt64) Engine=Memory; +INSERT INTO foo(id) VALUES (0),(4),(1),(1),(3),(1),(1),(2),(2),(2),(1),(2),(3),(2),(1),(1),(2),(1),(1),(1),(3),(1),(2),(2),(1),(1),(3),(1),(2),(1),(1),(3),(2),(1),(1),(4),(0); +SELECT sum(id = 3 OR id = 1 OR id = 2) AS x, sum(id = 3 OR id = 1 OR id = 2) AS x FROM foo; +DROP TABLE foo; diff --git a/dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql b/dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql index e64ca7746ba..745d805d6ea 100644 --- a/dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql @@ -1,18 +1,18 @@ SET replication_alter_partitions_sync = 2; -DROP TABLE IF EXISTS test.attach_r1; -DROP TABLE IF EXISTS test.attach_r2; +DROP TABLE IF EXISTS attach_r1; +DROP TABLE IF EXISTS attach_r2; -CREATE TABLE test.attach_r1 (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/01/attach', 'r1', d, d, 8192); -CREATE TABLE test.attach_r2 (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/01/attach', 'r2', d, d, 8192); +CREATE TABLE attach_r1 (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/01/attach', 'r1', d, d, 8192); +CREATE TABLE attach_r2 (d Date) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/01/attach', 'r2', d, d, 8192); -INSERT INTO test.attach_r1 VALUES ('2014-01-01'), ('2014-02-01'), ('2014-03-01'); +INSERT INTO attach_r1 VALUES ('2014-01-01'), ('2014-02-01'), ('2014-03-01'); -SELECT d FROM test.attach_r1 ORDER BY d; +SELECT d FROM attach_r1 ORDER BY d; -ALTER TABLE test.attach_r2 DROP PARTITION 201402; +ALTER TABLE attach_r2 DROP PARTITION 201402; -SELECT d FROM test.attach_r1 ORDER BY d; +SELECT d FROM attach_r1 ORDER BY d; -DROP TABLE test.attach_r1; -DROP TABLE test.attach_r2; +DROP TABLE attach_r1; +DROP TABLE attach_r2; diff --git a/dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.sql b/dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.sql index 355408d2899..37bfe0aa188 100644 --- a/dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.sql +++ b/dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE test.defaults (a UInt8, b DEFAULT 0, c DEFAULT identity(b)) ENGINE = Memory; -INSERT INTO test.defaults (a) VALUES (1); -SELECT * FROM test.defaults; -DROP TABLE test.defaults; +DROP TABLE IF EXISTS defaults; +CREATE TABLE defaults (a UInt8, b DEFAULT 0, c DEFAULT identity(b)) ENGINE = Memory; +INSERT INTO defaults (a) VALUES (1); +SELECT * FROM defaults; +DROP TABLE defaults; -DROP TABLE IF EXISTS test.elog_cut; -CREATE TABLE test.elog_cut +DROP TABLE IF EXISTS elog_cut; +CREATE TABLE elog_cut ( date Date DEFAULT toDate(uts), uts DateTime, @@ -18,6 +18,6 @@ CREATE TABLE test.elog_cut sample_key UInt64 ALIAS page_session ) ENGINE = MergeTree(date, cityHash64(adf_uid, ya_uid, pr), (owner_id, date, cityHash64(adf_uid, ya_uid, pr)), 8192); -INSERT INTO test.elog_cut (uts, pr, ya_uid, adf_uid, owner_id) VALUES ('2015-01-01 01:02:03', 111, 123, 456, 789); -SELECT date, uts, pr, ya_uid, adf_uid, owner_id, eff_uid, page_session, sample_key FROM test.elog_cut; -DROP TABLE test.elog_cut; +INSERT INTO elog_cut (uts, pr, ya_uid, adf_uid, owner_id) VALUES ('2015-01-01 01:02:03', 111, 123, 456, 789); +SELECT date, uts, pr, ya_uid, adf_uid, owner_id, eff_uid, page_session, sample_key FROM elog_cut; +DROP TABLE elog_cut; diff --git a/dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql b/dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql index 9f09b584a20..71562ffd6fa 100644 --- a/dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql +++ b/dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql @@ -1,6 +1,6 @@ -drop table if exists test.aliases_test; +drop table if exists aliases_test; -create table test.aliases_test ( +create table aliases_test ( date Date, id UInt64, array default ['zero','one','two'], d1 default array, @@ -11,104 +11,104 @@ a4 alias arrayMap(x -> toString(x), range(3)), a5 alias a4, a6 alias a5, `struct.a4` alias arrayMap(x -> toString(x), range(3)), `struct.a5` alias struct.a4, `struct.a6` alias struct.a5 ) engine=MergeTree(date, id, 1); -insert into test.aliases_test (id) values (0); +insert into aliases_test (id) values (0); select '-- Ensure ALIAS columns are not selected by asterisk'; -select * from test.aliases_test; +select * from aliases_test; select '-- select DEFAULT and ALIAS arrays'; -select d1, a1, a2, a3, a4, a5, a6 from test.aliases_test; +select d1, a1, a2, a3, a4, a5, a6 from aliases_test; select '-- select DEFAULT and ALIAS nested columns'; -select struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test; +select struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test; -select d1, a1 from test.aliases_test array join d1, a1; -select d1, a1 from test.aliases_test array join d1, a1 as a2; -select d1, a1 from test.aliases_test array join d1 as d2, a1; +select d1, a1 from aliases_test array join d1, a1; +select d1, a1 from aliases_test array join d1, a1 as a2; +select d1, a1 from aliases_test array join d1 as d2, a1; select '-- array join, but request the original columns'; -select d1, a1 from test.aliases_test array join d1 as d2, a1 as a2; +select d1, a1 from aliases_test array join d1 as d2, a1 as a2; select '-- array join, do not use the result'; -select array from test.aliases_test array join d1, a1; -select array from test.aliases_test array join d1 as d2, a1 as a1; +select array from aliases_test array join d1, a1; +select array from aliases_test array join d1 as d2, a1 as a1; select '-- select DEFAULT and ALIAS arrays, array joining one at a time'; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join d1; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a1; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a2; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a3; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a4; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a5; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a6; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join d1; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a1; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a2; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a3; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a4; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a5; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a6; select '-- select DEFAULT and ALIAS arrays, array joining one at a time and aliasing result with original name'; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join d1 as d1; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a1 as a1; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a2 as a2; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a3 as a3; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a4 as a4; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a5 as a5; -select array, d1, a1, a2, a3, a4, a5, a6 from test.aliases_test array join a6 as a6; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join d1 as d1; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a1 as a1; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a2 as a2; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a3 as a3; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a4 as a4; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a5 as a5; +select array, d1, a1, a2, a3, a4, a5, a6 from aliases_test array join a6 as a6; select '-- select DEFAULT and ALIAS arrays and array join result, aliased as `joined`'; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join d1 as joined; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join a1 as joined; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join a2 as joined; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join a3 as joined; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join a4 as joined; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join a5 as joined; -select array, d1, a1, a2, a3, a4, a5, a6, joined from test.aliases_test array join a6 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join d1 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join a1 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join a2 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join a3 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join a4 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join a5 as joined; +select array, d1, a1, a2, a3, a4, a5, a6, joined from aliases_test array join a6 as joined; select '-- select DEFAULT and ALIAS nested columns, array joining one at a time'; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.d1; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a1; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a2; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a3; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a4; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a5; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a6; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.d1; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a1; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a2; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a3; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a4; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a5; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a6; select '-- select DEFAULT and ALIAS nested columns, array joining one at a time and aliasing result with original name'; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.d1 as `struct.d1`; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a1 as `struct.a1`; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a2 as `struct.a2`; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a3 as `struct.a3`; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a4 as `struct.a4`; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a5 as `struct.a5`; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct.a6 as `struct.a6`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.d1 as `struct.d1`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a1 as `struct.a1`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a2 as `struct.a2`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a3 as `struct.a3`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a4 as `struct.a4`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a5 as `struct.a5`; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct.a6 as `struct.a6`; select '-- select DEFAULT and ALIAS nested columns and array join result, aliased as `joined`'; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.d1 as joined; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.a1 as joined; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.a2 as joined; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.a3 as joined; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.a4 as joined; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.a5 as joined; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from test.aliases_test array join struct.a6 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.d1 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.a1 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.a2 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.a3 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.a4 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.a5 as joined; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, joined from aliases_test array join struct.a6 as joined; select '-- array join whole nested table'; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct; select '-- array join whole nested table not using the result'; -select array from test.aliases_test array join struct; +select array from aliases_test array join struct; select '-- array join whole nested table, aliasing with original name'; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct as struct; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct as struct; select '-- array join whole nested table, aliasing with original name not using the result'; -select array from test.aliases_test array join struct as struct; +select array from aliases_test array join struct as struct; select '-- array join whole nested table, aliasing as `class`'; -select array, class.d1, class.a1, class.a2, class.a3, class.a4, class.a5, class.a6 from test.aliases_test array join struct as class; +select array, class.d1, class.a1, class.a2, class.a3, class.a4, class.a5, class.a6 from aliases_test array join struct as class; select '-- array join whole nested table, aliasing as `class` and not using the result'; -select array from test.aliases_test array join struct as class; +select array from aliases_test array join struct as class; select '-- array join whole nested table, aliasing as `class` but requesting the original columns'; -select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from test.aliases_test array join struct as class; +select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6 from aliases_test array join struct as class; select array, struct.d1, struct.a1, struct.a2, struct.a3, struct.a4, struct.a5, struct.a6, class.d1, class.a1, class.a2, class.a3, class.a4, class.a5, class.a6 -from test.aliases_test array join struct as class; +from aliases_test array join struct as class; -drop table test.aliases_test; +drop table aliases_test; diff --git a/dbms/tests/queries/0_stateless/00262_alter_alias.sql b/dbms/tests/queries/0_stateless/00262_alter_alias.sql index d0d5b03d62e..5a7007a6e0c 100644 --- a/dbms/tests/queries/0_stateless/00262_alter_alias.sql +++ b/dbms/tests/queries/0_stateless/00262_alter_alias.sql @@ -1,24 +1,24 @@ -drop table if exists test.aliases_test; +drop table if exists aliases_test; -create table test.aliases_test (date default today(), id default rand(), array default [0, 1, 2]) engine=MergeTree(date, id, 1); +create table aliases_test (date default today(), id default rand(), array default [0, 1, 2]) engine=MergeTree(date, id, 1); -insert into test.aliases_test (id) values (0); -select array from test.aliases_test; +insert into aliases_test (id) values (0); +select array from aliases_test; -alter table test.aliases_test modify column array alias [0, 1, 2]; -select array from test.aliases_test; +alter table aliases_test modify column array alias [0, 1, 2]; +select array from aliases_test; -alter table test.aliases_test modify column array default [0, 1, 2]; -select array from test.aliases_test; +alter table aliases_test modify column array default [0, 1, 2]; +select array from aliases_test; -alter table test.aliases_test add column struct.key default [0, 1, 2], add column struct.value default array; -select struct.key, struct.value from test.aliases_test; +alter table aliases_test add column struct.key default [0, 1, 2], add column struct.value default array; +select struct.key, struct.value from aliases_test; -alter table test.aliases_test modify column struct.value alias array; -select struct.key, struct.value from test.aliases_test; +alter table aliases_test modify column struct.value alias array; +select struct.key, struct.value from aliases_test; -select struct.key, struct.value from test.aliases_test array join struct; -select struct.key, struct.value from test.aliases_test array join struct as struct; -select class.key, class.value from test.aliases_test array join struct as class; +select struct.key, struct.value from aliases_test array join struct; +select struct.key, struct.value from aliases_test array join struct as struct; +select class.key, class.value from aliases_test array join struct as class; -drop table test.aliases_test; +drop table aliases_test; diff --git a/dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql b/dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql index 604d89cca1d..891ec93761c 100644 --- a/dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql +++ b/dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.numbers_10k_log; +DROP TABLE IF EXISTS numbers_10k_log; SET max_block_size = 1000; -CREATE TABLE test.numbers_10k_log ENGINE = Log AS SELECT number FROM system.numbers LIMIT 10000; +CREATE TABLE numbers_10k_log ENGINE = Log AS SELECT number FROM system.numbers LIMIT 10000; SET max_threads = 4; SET max_rows_to_group_by = 3000, group_by_overflow_mode = 'any'; -SELECT ignore(rand() AS k), ignore(max(toString(number))) FROM test.numbers_10k_log GROUP BY k LIMIT 1; +SELECT ignore(rand() AS k), ignore(max(toString(number))) FROM numbers_10k_log GROUP BY k LIMIT 1; -DROP TABLE test.numbers_10k_log; +DROP TABLE numbers_10k_log; diff --git a/dbms/tests/queries/0_stateless/00270_views_query_processing_stage.sql b/dbms/tests/queries/0_stateless/00270_views_query_processing_stage.sql index 65a5235adad..e049c1153b5 100644 --- a/dbms/tests/queries/0_stateless/00270_views_query_processing_stage.sql +++ b/dbms/tests/queries/0_stateless/00270_views_query_processing_stage.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.view1; -DROP TABLE IF EXISTS test.view2; -DROP TABLE IF EXISTS test.merge_view; +DROP TABLE IF EXISTS view1; +DROP TABLE IF EXISTS view2; +DROP TABLE IF EXISTS merge_view; -CREATE VIEW test.view1 AS SELECT number FROM system.numbers LIMIT 10; -CREATE VIEW test.view2 AS SELECT number FROM system.numbers LIMIT 10; -CREATE TABLE test.merge_view (number UInt64) ENGINE = Merge(test, '^view'); +CREATE VIEW view1 AS SELECT number FROM system.numbers LIMIT 10; +CREATE VIEW view2 AS SELECT number FROM system.numbers LIMIT 10; +CREATE TABLE merge_view (number UInt64) ENGINE = Merge(test, '^view'); -SELECT 'Hello, world!' FROM test.merge_view LIMIT 5; +SELECT 'Hello, world!' FROM merge_view LIMIT 5; -DROP TABLE test.view1; -DROP TABLE test.view2; -DROP TABLE test.merge_view; +DROP TABLE view1; +DROP TABLE view2; +DROP TABLE merge_view; diff --git a/dbms/tests/queries/0_stateless/00276_sample.sql b/dbms/tests/queries/0_stateless/00276_sample.sql index d2bc2fc18b5..4ba7fd498f3 100644 --- a/dbms/tests/queries/0_stateless/00276_sample.sql +++ b/dbms/tests/queries/0_stateless/00276_sample.sql @@ -1,55 +1,55 @@ -DROP TABLE IF EXISTS test.sample; +DROP TABLE IF EXISTS sample; SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; SET max_block_size = 10; -CREATE TABLE test.sample (d Date DEFAULT '2000-01-01', x UInt8) ENGINE = MergeTree(d, x, x, 10); -INSERT INTO test.sample (x) SELECT toUInt8(number) AS x FROM system.numbers LIMIT 256; +CREATE TABLE sample (d Date DEFAULT '2000-01-01', x UInt8) ENGINE = MergeTree(d, x, x, 10); +INSERT INTO sample (x) SELECT toUInt8(number) AS x FROM system.numbers LIMIT 256; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 0.1; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/10; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/1e1; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1e1/1e2; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1e-1; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 2e-2; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/10 OFFSET 1/10; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/10 OFFSET 9/10; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/10 OFFSET 10/10; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/10 OFFSET 19/20; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 0.1; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/10; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/1e1; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1e1/1e2; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1e-1; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 2e-2; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/10 OFFSET 1/10; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/10 OFFSET 9/10; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/10 OFFSET 10/10; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/10 OFFSET 19/20; -SELECT count() >= 100 FROM test.sample SAMPLE 100; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1000; +SELECT count() >= 100 FROM sample SAMPLE 100; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1000; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 OFFSET 1/2; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 0; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 1; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 2; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 0; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 1; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 2; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 OFFSET 1/2; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 0; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 1; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 2; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 0; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 1; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 1/2 OFFSET 1/2 SETTINGS parallel_replicas_count = 3, parallel_replica_offset = 2; SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM ( - SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.0 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.1 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.2 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.3 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.4 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.5 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.6 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.7 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.8 -UNION ALL SELECT x FROM test.sample SAMPLE 0.1 OFFSET 0.9 + SELECT x FROM sample SAMPLE 0.1 OFFSET 0.0 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.1 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.2 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.3 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.4 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.5 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.6 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.7 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.8 +UNION ALL SELECT x FROM sample SAMPLE 0.1 OFFSET 0.9 ); -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 0.05 OFFSET 0.35; -SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM test.sample SAMPLE 0.05 OFFSET 0.4; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 0.05 OFFSET 0.35; +SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM sample SAMPLE 0.05 OFFSET 0.4; SELECT count() FROM @@ -59,118 +59,118 @@ FROM count() AS c FROM ( - SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.00 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.01 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.02 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.03 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.04 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.05 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.06 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.07 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.08 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.09 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.10 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.11 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.12 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.13 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.14 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.15 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.16 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.17 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.18 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.19 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.20 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.21 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.22 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.23 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.24 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.25 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.26 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.27 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.28 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.29 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.30 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.31 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.32 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.33 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.34 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.35 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.36 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.37 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.38 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.39 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.40 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.41 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.42 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.43 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.44 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.45 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.46 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.47 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.48 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.49 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.50 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.51 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.52 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.53 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.54 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.55 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.56 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.57 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.58 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.59 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.60 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.61 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.62 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.63 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.64 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.65 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.66 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.67 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.68 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.69 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.70 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.71 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.72 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.73 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.74 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.75 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.76 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.77 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.78 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.79 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.80 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.81 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.82 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.83 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.84 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.85 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.86 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.87 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.88 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.89 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.90 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.91 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.92 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.93 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.94 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.95 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.96 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.97 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.98 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.99 + SELECT * FROM sample SAMPLE 0.01 OFFSET 0.00 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.01 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.02 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.03 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.04 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.05 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.06 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.07 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.08 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.09 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.10 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.11 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.12 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.13 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.14 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.15 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.16 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.17 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.18 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.19 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.20 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.21 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.22 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.23 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.24 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.25 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.26 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.27 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.28 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.29 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.30 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.31 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.32 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.33 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.34 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.35 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.36 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.37 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.38 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.39 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.40 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.41 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.42 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.43 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.44 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.45 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.46 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.47 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.48 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.49 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.50 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.51 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.52 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.53 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.54 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.55 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.56 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.57 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.58 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.59 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.60 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.61 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.62 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.63 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.64 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.65 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.66 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.67 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.68 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.69 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.70 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.71 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.72 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.73 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.74 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.75 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.76 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.77 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.78 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.79 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.80 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.81 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.82 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.83 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.84 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.85 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.86 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.87 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.88 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.89 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.90 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.91 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.92 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.93 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.94 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.95 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.96 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.97 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.98 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.99 ) GROUP BY x HAVING c = 1 ORDER BY x ASC ); -DROP TABLE test.sample; +DROP TABLE sample; SET max_block_size = 8192; -CREATE TABLE test.sample (d Date DEFAULT '2000-01-01', x UInt16) ENGINE = MergeTree(d, x, x, 10); -INSERT INTO test.sample (x) SELECT toUInt16(number) AS x FROM system.numbers LIMIT 65536; +CREATE TABLE sample (d Date DEFAULT '2000-01-01', x UInt16) ENGINE = MergeTree(d, x, x, 10); +INSERT INTO sample (x) SELECT toUInt16(number) AS x FROM system.numbers LIMIT 65536; SELECT count() FROM @@ -180,110 +180,110 @@ FROM count() AS c FROM ( - SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.00 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.01 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.02 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.03 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.04 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.05 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.06 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.07 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.08 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.09 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.10 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.11 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.12 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.13 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.14 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.15 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.16 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.17 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.18 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.19 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.20 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.21 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.22 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.23 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.24 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.25 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.26 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.27 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.28 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.29 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.30 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.31 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.32 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.33 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.34 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.35 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.36 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.37 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.38 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.39 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.40 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.41 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.42 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.43 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.44 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.45 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.46 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.47 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.48 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.49 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.50 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.51 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.52 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.53 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.54 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.55 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.56 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.57 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.58 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.59 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.60 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.61 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.62 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.63 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.64 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.65 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.66 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.67 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.68 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.69 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.70 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.71 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.72 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.73 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.74 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.75 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.76 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.77 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.78 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.79 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.80 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.81 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.82 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.83 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.84 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.85 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.86 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.87 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.88 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.89 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.90 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.91 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.92 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.93 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.94 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.95 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.96 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.97 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.98 - UNION ALL SELECT * FROM test.sample SAMPLE 0.01 OFFSET 0.99 + SELECT * FROM sample SAMPLE 0.01 OFFSET 0.00 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.01 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.02 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.03 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.04 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.05 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.06 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.07 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.08 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.09 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.10 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.11 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.12 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.13 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.14 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.15 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.16 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.17 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.18 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.19 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.20 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.21 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.22 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.23 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.24 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.25 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.26 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.27 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.28 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.29 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.30 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.31 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.32 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.33 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.34 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.35 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.36 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.37 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.38 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.39 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.40 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.41 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.42 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.43 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.44 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.45 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.46 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.47 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.48 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.49 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.50 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.51 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.52 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.53 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.54 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.55 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.56 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.57 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.58 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.59 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.60 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.61 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.62 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.63 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.64 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.65 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.66 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.67 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.68 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.69 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.70 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.71 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.72 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.73 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.74 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.75 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.76 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.77 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.78 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.79 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.80 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.81 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.82 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.83 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.84 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.85 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.86 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.87 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.88 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.89 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.90 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.91 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.92 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.93 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.94 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.95 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.96 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.97 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.98 + UNION ALL SELECT * FROM sample SAMPLE 0.01 OFFSET 0.99 ) GROUP BY x HAVING c = 1 ORDER BY x ASC ); -DROP TABLE test.sample; +DROP TABLE sample; diff --git a/dbms/tests/queries/0_stateless/00278_insert_already_sorted.sql b/dbms/tests/queries/0_stateless/00278_insert_already_sorted.sql index 05fee0fe7ab..735b46d22dd 100644 --- a/dbms/tests/queries/0_stateless/00278_insert_already_sorted.sql +++ b/dbms/tests/queries/0_stateless/00278_insert_already_sorted.sql @@ -1,16 +1,16 @@ -DROP TABLE IF EXISTS test.sorted; -CREATE TABLE test.sorted (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 8192); +DROP TABLE IF EXISTS sorted; +CREATE TABLE sorted (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 8192); -INSERT INTO test.sorted (x) SELECT intDiv(number, 100000) AS x FROM system.numbers LIMIT 1000000; +INSERT INTO sorted (x) SELECT intDiv(number, 100000) AS x FROM system.numbers LIMIT 1000000; SET max_threads = 1; -SELECT count() FROM test.sorted; -SELECT DISTINCT x FROM test.sorted; +SELECT count() FROM sorted; +SELECT DISTINCT x FROM sorted; -INSERT INTO test.sorted (x) SELECT (intHash64(number) % 1000 = 0 ? 999 : intDiv(number, 100000)) AS x FROM system.numbers LIMIT 1000000; +INSERT INTO sorted (x) SELECT (intHash64(number) % 1000 = 0 ? 999 : intDiv(number, 100000)) AS x FROM system.numbers LIMIT 1000000; -SELECT count() FROM test.sorted; -SELECT DISTINCT x FROM test.sorted; +SELECT count() FROM sorted; +SELECT DISTINCT x FROM sorted; -DROP TABLE test.sorted; +DROP TABLE sorted; diff --git a/dbms/tests/queries/0_stateless/00282_merging.sql b/dbms/tests/queries/0_stateless/00282_merging.sql index ef8fe656736..30aec1bc439 100644 --- a/dbms/tests/queries/0_stateless/00282_merging.sql +++ b/dbms/tests/queries/0_stateless/00282_merging.sql @@ -1,100 +1,100 @@ -DROP TABLE IF EXISTS test.merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); +DROP TABLE IF EXISTS merge; +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); -INSERT INTO test.merge (x) VALUES (1), (2), (3); -INSERT INTO test.merge (x) VALUES (4), (5), (6); +INSERT INTO merge (x) VALUES (1), (2), (3); +INSERT INTO merge (x) VALUES (4), (5), (6); -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -DROP TABLE test.merge; +DROP TABLE merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); -INSERT INTO test.merge (x) SELECT number AS x FROM system.numbers LIMIT 10; -INSERT INTO test.merge (x) SELECT number + 10 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 10 AS x FROM system.numbers LIMIT 10; -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -DROP TABLE test.merge; +DROP TABLE merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); -INSERT INTO test.merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; -INSERT INTO test.merge (x) SELECT number AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number AS x FROM system.numbers LIMIT 10; -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -DROP TABLE test.merge; +DROP TABLE merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); -INSERT INTO test.merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; -INSERT INTO test.merge (x) SELECT number AS x FROM system.numbers LIMIT 10; -INSERT INTO test.merge (x) SELECT number + 9 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 9 AS x FROM system.numbers LIMIT 10; -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -DROP TABLE test.merge; +DROP TABLE merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); -INSERT INTO test.merge (x) SELECT number AS x FROM system.numbers LIMIT 10; -INSERT INTO test.merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; -INSERT INTO test.merge (x) SELECT number + 10 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 10 AS x FROM system.numbers LIMIT 10; -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -INSERT INTO test.merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 5 AS x FROM system.numbers LIMIT 10; -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -INSERT INTO test.merge (x) SELECT number + 100 AS x FROM system.numbers LIMIT 10; +INSERT INTO merge (x) SELECT number + 100 AS x FROM system.numbers LIMIT 10; -SELECT * FROM test.merge ORDER BY _part_index, x; -OPTIMIZE TABLE test.merge; -SELECT * FROM test.merge ORDER BY _part_index, x; +SELECT * FROM merge ORDER BY _part_index, x; +OPTIMIZE TABLE merge; +SELECT * FROM merge ORDER BY _part_index, x; -DROP TABLE test.merge; +DROP TABLE merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 8192); +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 8192); SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; SET max_block_size = 8200; -INSERT INTO test.merge (x) SELECT number AS x FROM (SELECT * FROM system.numbers LIMIT 8200) ORDER BY rand(); -INSERT INTO test.merge (x) SELECT number AS x FROM (SELECT * FROM system.numbers LIMIT 8200) ORDER BY rand(); +INSERT INTO merge (x) SELECT number AS x FROM (SELECT * FROM system.numbers LIMIT 8200) ORDER BY rand(); +INSERT INTO merge (x) SELECT number AS x FROM (SELECT * FROM system.numbers LIMIT 8200) ORDER BY rand(); -OPTIMIZE TABLE test.merge; +OPTIMIZE TABLE merge; -SELECT count(), uniqExact(x), min(x), max(x), sum(x), sum(cityHash64(x)) FROM test.merge; +SELECT count(), uniqExact(x), min(x), max(x), sum(x), sum(cityHash64(x)) FROM merge; -DROP TABLE test.merge; +DROP TABLE merge; -CREATE TABLE IF NOT EXISTS test.merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 8192); +CREATE TABLE IF NOT EXISTS merge (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 8192); SET max_block_size = 10000; -INSERT INTO test.merge (x) SELECT number AS x FROM (SELECT number FROM system.numbers LIMIT 10000); -INSERT INTO test.merge (x) SELECT number AS x FROM (SELECT number + 5000 AS number FROM system.numbers LIMIT 10000); +INSERT INTO merge (x) SELECT number AS x FROM (SELECT number FROM system.numbers LIMIT 10000); +INSERT INTO merge (x) SELECT number AS x FROM (SELECT number + 5000 AS number FROM system.numbers LIMIT 10000); -OPTIMIZE TABLE test.merge; +OPTIMIZE TABLE merge; -SELECT count(), uniqExact(x), min(x), max(x), sum(x), sum(cityHash64(x)) FROM test.merge; +SELECT count(), uniqExact(x), min(x), max(x), sum(x), sum(cityHash64(x)) FROM merge; -DROP TABLE test.merge; +DROP TABLE merge; diff --git a/dbms/tests/queries/0_stateless/00288_empty_stripelog.sql b/dbms/tests/queries/0_stateless/00288_empty_stripelog.sql index fddbbedaac2..700d904471d 100644 --- a/dbms/tests/queries/0_stateless/00288_empty_stripelog.sql +++ b/dbms/tests/queries/0_stateless/00288_empty_stripelog.sql @@ -1,8 +1,8 @@ -DROP TABLE IF EXISTS test.stripelog; -CREATE TABLE test.stripelog (x UInt8) ENGINE = StripeLog; +DROP TABLE IF EXISTS stripelog; +CREATE TABLE stripelog (x UInt8) ENGINE = StripeLog; -SELECT * FROM test.stripelog ORDER BY x; -INSERT INTO test.stripelog VALUES (1), (2); -SELECT * FROM test.stripelog ORDER BY x; +SELECT * FROM stripelog ORDER BY x; +INSERT INTO stripelog VALUES (1), (2); +SELECT * FROM stripelog ORDER BY x; -DROP TABLE test.stripelog; +DROP TABLE stripelog; diff --git a/dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled b/dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled index 1394b0d5ee6..000e768e943 100644 --- a/dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled +++ b/dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled @@ -1,170 +1,170 @@ -DROP TABLE IF EXISTS test.r1; -DROP TABLE IF EXISTS test.r2; +DROP TABLE IF EXISTS r1; +DROP TABLE IF EXISTS r2; -CREATE TABLE test.r1 (d Date DEFAULT '2016-01-01', x UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/tables/01/r/', 'r1', d, x, 111); +CREATE TABLE r1 (d Date DEFAULT '2016-01-01', x UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/tables/01/r/', 'r1', d, x, 111); SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; SET max_block_size = 1; -INSERT INTO test.r1 (x) SELECT number + 1000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 2000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 3000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 4000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 5000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 6000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 7000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 8000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 9000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 10000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 1000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 2000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 3000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 4000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 5000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 6000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 7000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 8000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 9000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 10000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 11000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 12000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 13000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 14000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 15000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 16000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 17000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 18000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 19000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 20000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 11000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 12000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 13000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 14000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 15000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 16000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 17000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 18000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 19000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 20000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 21000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 22000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 23000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 24000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 25000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 26000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 27000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 28000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 29000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 30000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 21000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 22000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 23000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 24000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 25000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 26000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 27000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 28000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 29000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 30000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 31000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 32000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 33000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 34000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 35000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 36000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 37000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 38000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 39000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 40000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 31000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 32000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 33000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 34000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 35000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 36000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 37000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 38000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 39000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 40000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 41000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 42000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 43000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 44000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 45000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 46000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 47000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 48000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 49000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 50000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 41000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 42000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 43000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 44000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 45000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 46000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 47000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 48000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 49000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 50000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 51000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 52000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 53000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 54000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 55000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 56000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 57000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 58000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 59000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 60000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 51000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 52000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 53000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 54000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 55000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 56000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 57000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 58000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 59000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 60000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 61000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 62000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 63000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 64000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 65000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 66000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 67000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 68000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 69000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; -INSERT INTO test.r1 (x) SELECT number + 70000 AS x FROM system.numbers LIMIT 10; -ALTER TABLE test.r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 61000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 62000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 63000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 64000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 65000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 66000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 67000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 68000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 69000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; +INSERT INTO r1 (x) SELECT number + 70000 AS x FROM system.numbers LIMIT 10; +ALTER TABLE r1 DETACH PARTITION 201601; -SELECT count() FROM test.r1; +SELECT count() FROM r1; -CREATE TABLE test.r2 (d Date DEFAULT '2016-01-01', x UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/tables/01/r/', 'r2', d, x, 111); +CREATE TABLE r2 (d Date DEFAULT '2016-01-01', x UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/tables/01/r/', 'r2', d, x, 111); -SELECT count() FROM test.r2; +SELECT count() FROM r2; SET replication_alter_partitions_sync = 2; -ALTER TABLE test.r1 ATTACH PARTITION 201601; +ALTER TABLE r1 ATTACH PARTITION 201601; -SELECT count() FROM test.r1; -SELECT count() FROM test.r2; +SELECT count() FROM r1; +SELECT count() FROM r2; -DROP TABLE test.r1; -DROP TABLE test.r2; +DROP TABLE r1; +DROP TABLE r2; diff --git a/dbms/tests/queries/0_stateless/00298_enum_width_and_cast.sql b/dbms/tests/queries/0_stateless/00298_enum_width_and_cast.sql index bd5a93c2ace..3dda3e41270 100644 --- a/dbms/tests/queries/0_stateless/00298_enum_width_and_cast.sql +++ b/dbms/tests/queries/0_stateless/00298_enum_width_and_cast.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.enum; +DROP TABLE IF EXISTS enum; -CREATE TABLE test.enum (x Enum8('Hello' = -100, '\\' = 0, '\t\\t' = 111), y UInt8) ENGINE = TinyLog; -INSERT INTO test.enum (y) VALUES (0); -SELECT * FROM test.enum ORDER BY x, y FORMAT PrettyCompact; -INSERT INTO test.enum (x) VALUES ('\\'); -SELECT * FROM test.enum ORDER BY x, y FORMAT PrettyCompact; -INSERT INTO test.enum (x) VALUES ('\t\\t'); -SELECT * FROM test.enum ORDER BY x, y FORMAT PrettyCompact; -SELECT x, y, toInt8(x), toString(x) AS s, CAST(s AS Enum8('Hello' = -100, '\\' = 0, '\t\\t' = 111)) AS casted FROM test.enum ORDER BY x, y FORMAT PrettyCompact; +CREATE TABLE enum (x Enum8('Hello' = -100, '\\' = 0, '\t\\t' = 111), y UInt8) ENGINE = TinyLog; +INSERT INTO enum (y) VALUES (0); +SELECT * FROM enum ORDER BY x, y FORMAT PrettyCompact; +INSERT INTO enum (x) VALUES ('\\'); +SELECT * FROM enum ORDER BY x, y FORMAT PrettyCompact; +INSERT INTO enum (x) VALUES ('\t\\t'); +SELECT * FROM enum ORDER BY x, y FORMAT PrettyCompact; +SELECT x, y, toInt8(x), toString(x) AS s, CAST(s AS Enum8('Hello' = -100, '\\' = 0, '\t\\t' = 111)) AS casted FROM enum ORDER BY x, y FORMAT PrettyCompact; -DROP TABLE test.enum; +DROP TABLE enum; diff --git a/dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql b/dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql index 51c3226eba7..0539dc757ce 100644 --- a/dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql +++ b/dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql @@ -1,37 +1,37 @@ -DROP TABLE IF EXISTS test.log; +DROP TABLE IF EXISTS log; -CREATE TABLE test.log (x UInt8) ENGINE = StripeLog; +CREATE TABLE log (x UInt8) ENGINE = StripeLog; -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (0); -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (1); -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (2); -SELECT * FROM test.log ORDER BY x; +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (0); +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (1); +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (2); +SELECT * FROM log ORDER BY x; -DROP TABLE test.log; +DROP TABLE log; -CREATE TABLE test.log (x UInt8) ENGINE = TinyLog; +CREATE TABLE log (x UInt8) ENGINE = TinyLog; -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (0); -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (1); -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (2); -SELECT * FROM test.log ORDER BY x; +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (0); +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (1); +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (2); +SELECT * FROM log ORDER BY x; -DROP TABLE test.log; +DROP TABLE log; -CREATE TABLE test.log (x UInt8) ENGINE = Log; +CREATE TABLE log (x UInt8) ENGINE = Log; -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (0); -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (1); -SELECT * FROM test.log ORDER BY x; -INSERT INTO test.log VALUES (2); -SELECT * FROM test.log ORDER BY x; +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (0); +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (1); +SELECT * FROM log ORDER BY x; +INSERT INTO log VALUES (2); +SELECT * FROM log ORDER BY x; -DROP TABLE test.log; +DROP TABLE log; diff --git a/dbms/tests/queries/0_stateless/00301_csv.sh b/dbms/tests/queries/0_stateless/00301_csv.sh index 857850000b9..7f968d70056 100755 --- a/dbms/tests/queries/0_stateless/00301_csv.sh +++ b/dbms/tests/queries/0_stateless/00301_csv.sh @@ -3,24 +3,24 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS csv"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo '"Hello, world", 123, "2016-01-01" "Hello, ""world""", "456", 2016-01-02, Hello "world", 789 ,2016-01-03 "Hello - world", 100, 2016-01-04,' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.csv FORMAT CSV"; + world", 100, 2016-01-04,' | $CLICKHOUSE_CLIENT --query="INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (t DateTime('Europe/Moscow'), s String) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (t DateTime('Europe/Moscow'), s String) ENGINE = Memory"; echo '"2016-01-01 01:02:03","1" 2016-01-02 01:02:03, "2" 1502792101,"3" -99999,"4"' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.csv FORMAT CSV"; +99999,"4"' | $CLICKHOUSE_CLIENT --query="INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY s"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY s"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; diff --git a/dbms/tests/queries/0_stateless/00305_http_and_readonly.sh b/dbms/tests/queries/0_stateless/00305_http_and_readonly.sh index 71c1b601acd..56ae8131a15 100755 --- a/dbms/tests/queries/0_stateless/00305_http_and_readonly.sh +++ b/dbms/tests/queries/0_stateless/00305_http_and_readonly.sh @@ -13,11 +13,11 @@ ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=SELECT+name,value,changed+FROM+s ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=SELECT+name,value,changed+FROM+system.settings+WHERE+name+IN+('readonly','max_rows_to_read')&readonly=1&max_rows_to_read=10000&default_format=PrettySpaceNoEscapes" -d' ' ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=SELECT+name,value,changed+FROM+system.settings+WHERE+name+IN+('readonly','max_rows_to_read')&readonly=2&max_rows_to_read=10000&default_format=PrettySpaceNoEscapes" -d' ' -${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?query=DROP+TABLE+IF+EXISTS+test.nonexistent" 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' -${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?readonly=0&query=DROP+TABLE+IF+EXISTS+test.nonexistent" 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' +${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?query=DROP+TABLE+IF+EXISTS+nonexistent" 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' +${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?readonly=0&query=DROP+TABLE+IF+EXISTS+nonexistent" 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=DROP+TABLE+IF+EXISTS+test.nonexistent" -d ' ' | wc -l -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?readonly=0&query=DROP+TABLE+IF+EXISTS+test.nonexistent" -d ' ' | wc -l +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=DROP+TABLE+IF+EXISTS+nonexistent" -d ' ' | wc -l +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?readonly=0&query=DROP+TABLE+IF+EXISTS+nonexistent" -d ' ' | wc -l -${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?readonly=1&query=DROP+TABLE+IF+EXISTS+test.nonexistent" -d ' ' 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' -${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?readonly=2&query=DROP+TABLE+IF+EXISTS+test.nonexistent" -d ' ' 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' +${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?readonly=1&query=DROP+TABLE+IF+EXISTS+nonexistent" -d ' ' 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' +${CLICKHOUSE_CURL} -vsS "${CLICKHOUSE_URL}?readonly=2&query=DROP+TABLE+IF+EXISTS+nonexistent" -d ' ' 2>&1 | grep -q '500 Internal Server Error' && echo 'Ok' || echo 'Fail' diff --git a/dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.sql b/dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.sql index 8cfe8cfc430..a57e9e69fe6 100644 --- a/dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.sql +++ b/dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.insert; -CREATE TABLE test.insert (i UInt64, s String, u UUID, d Date, t DateTime, a Array(UInt32)) ENGINE = Memory; +DROP TABLE IF EXISTS insert; +CREATE TABLE insert (i UInt64, s String, u UUID, d Date, t DateTime, a Array(UInt32)) ENGINE = Memory; -INSERT INTO test.insert VALUES (1, 'Hello', 'ab41bdd6-5cd4-11e7-907b-a6006ad3dba0', '2016-01-01', '2016-01-02 03:04:05', [1, 2, 3]), (1 + 1, concat('Hello', ', world'), toUUID(0), toDate('2016-01-01') + 1, toStartOfMinute(toDateTime('2016-01-02 03:04:05')), [[0,1],[2]][1]), (round(pi()), concat('hello', ', world!'), toUUID(toString('ab41bdd6-5cd4-11e7-907b-a6006ad3dba0')), toDate(toDateTime('2016-01-03 03:04:05')), toStartOfHour(toDateTime('2016-01-02 03:04:05')), []), (4, 'World', 'ab41bdd6-5cd4-11e7-907b-a6006ad3dba0', '2016-01-04', '2016-12-11 10:09:08', [3,2,1]); +INSERT INTO insert VALUES (1, 'Hello', 'ab41bdd6-5cd4-11e7-907b-a6006ad3dba0', '2016-01-01', '2016-01-02 03:04:05', [1, 2, 3]), (1 + 1, concat('Hello', ', world'), toUUID(0), toDate('2016-01-01') + 1, toStartOfMinute(toDateTime('2016-01-02 03:04:05')), [[0,1],[2]][1]), (round(pi()), concat('hello', ', world!'), toUUID(toString('ab41bdd6-5cd4-11e7-907b-a6006ad3dba0')), toDate(toDateTime('2016-01-03 03:04:05')), toStartOfHour(toDateTime('2016-01-02 03:04:05')), []), (4, 'World', 'ab41bdd6-5cd4-11e7-907b-a6006ad3dba0', '2016-01-04', '2016-12-11 10:09:08', [3,2,1]); -SELECT * FROM test.insert ORDER BY i; -DROP TABLE test.insert; +SELECT * FROM insert ORDER BY i; +DROP TABLE insert; diff --git a/dbms/tests/queries/0_stateless/00310_tskv.sh b/dbms/tests/queries/0_stateless/00310_tskv.sh index 4cb6bf474ef..859753519ec 100755 --- a/dbms/tests/queries/0_stateless/00310_tskv.sh +++ b/dbms/tests/queries/0_stateless/00310_tskv.sh @@ -3,15 +3,15 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.tskv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.tskv (tskv_format String, timestamp DateTime, timezone String, text String, binary_data String) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tskv"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE tskv (tskv_format String, timestamp DateTime, timezone String, text String, binary_data String) ENGINE = Memory"; echo -n 'tskv tskv_format=custom-service-log timestamp=2013-01-01 00:00:00 timezone=+0400 text=multiline\ntext binary_data=can contain \0 symbol binary_data=abc text=Hello, world binary_data=def text= tskv -' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.tskv FORMAT TSKV"; +' | $CLICKHOUSE_CLIENT --query="INSERT INTO tskv FORMAT TSKV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.tskv ORDER BY binary_data"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.tskv"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM tskv ORDER BY binary_data"; +$CLICKHOUSE_CLIENT --query="DROP TABLE tskv"; diff --git a/dbms/tests/queries/0_stateless/00311_array_primary_key.sql b/dbms/tests/queries/0_stateless/00311_array_primary_key.sql index 21576d32661..0ea368609da 100644 --- a/dbms/tests/queries/0_stateless/00311_array_primary_key.sql +++ b/dbms/tests/queries/0_stateless/00311_array_primary_key.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.array_pk; -CREATE TABLE test.array_pk (key Array(UInt8), s String, n UInt64, d Date MATERIALIZED '2000-01-01') ENGINE = MergeTree(d, (key, s, n), 1); +DROP TABLE IF EXISTS array_pk; +CREATE TABLE array_pk (key Array(UInt8), s String, n UInt64, d Date MATERIALIZED '2000-01-01') ENGINE = MergeTree(d, (key, s, n), 1); -INSERT INTO test.array_pk VALUES ([1, 2, 3], 'Hello, world!', 1); -INSERT INTO test.array_pk VALUES ([1, 2], 'Hello', 2); -INSERT INTO test.array_pk VALUES ([2], 'Goodbye', 3); -INSERT INTO test.array_pk VALUES ([], 'abc', 4); -INSERT INTO test.array_pk VALUES ([2, 3, 4], 'def', 5); -INSERT INTO test.array_pk VALUES ([5, 6], 'ghi', 6); +INSERT INTO array_pk VALUES ([1, 2, 3], 'Hello, world!', 1); +INSERT INTO array_pk VALUES ([1, 2], 'Hello', 2); +INSERT INTO array_pk VALUES ([2], 'Goodbye', 3); +INSERT INTO array_pk VALUES ([], 'abc', 4); +INSERT INTO array_pk VALUES ([2, 3, 4], 'def', 5); +INSERT INTO array_pk VALUES ([5, 6], 'ghi', 6); -SELECT * FROM test.array_pk ORDER BY n; +SELECT * FROM array_pk ORDER BY n; -DETACH TABLE test.array_pk; -ATTACH TABLE test.array_pk (key Array(UInt8), s String, n UInt64, d Date MATERIALIZED '2000-01-01') ENGINE = MergeTree(d, (key, s, n), 1); +DETACH TABLE array_pk; +ATTACH TABLE array_pk (key Array(UInt8), s String, n UInt64, d Date MATERIALIZED '2000-01-01') ENGINE = MergeTree(d, (key, s, n), 1); -SELECT * FROM test.array_pk ORDER BY n; +SELECT * FROM array_pk ORDER BY n; -DROP TABLE test.array_pk; +DROP TABLE array_pk; diff --git a/dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql b/dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql index da44cee2733..b0eee63a685 100644 --- a/dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql +++ b/dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql @@ -1,20 +1,20 @@ -DROP TABLE IF EXISTS test.sample1; -DROP TABLE IF EXISTS test.sample2; -DROP TABLE IF EXISTS test.sample_merge; +DROP TABLE IF EXISTS sample1; +DROP TABLE IF EXISTS sample2; +DROP TABLE IF EXISTS sample_merge; -CREATE TABLE test.sample1 (x UInt64, d Date DEFAULT today()) ENGINE = MergeTree(d, intHash64(x), intHash64(x), 10); -CREATE TABLE test.sample2 (x UInt64, d Date DEFAULT today()) ENGINE = MergeTree(d, intHash64(x), intHash64(x), 10); +CREATE TABLE sample1 (x UInt64, d Date DEFAULT today()) ENGINE = MergeTree(d, intHash64(x), intHash64(x), 10); +CREATE TABLE sample2 (x UInt64, d Date DEFAULT today()) ENGINE = MergeTree(d, intHash64(x), intHash64(x), 10); SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; -INSERT INTO test.sample1 (x) SELECT number AS x FROM system.numbers LIMIT 1000000; -INSERT INTO test.sample2 (x) SELECT number AS x FROM system.numbers LIMIT 2000000; +INSERT INTO sample1 (x) SELECT number AS x FROM system.numbers LIMIT 1000000; +INSERT INTO sample2 (x) SELECT number AS x FROM system.numbers LIMIT 2000000; -CREATE TABLE test.sample_merge AS test.sample1 ENGINE = Merge(test, '^sample\\d$'); +CREATE TABLE sample_merge AS sample1 ENGINE = Merge(test, '^sample\\d$'); -SELECT abs(sum(_sample_factor) - 3000000) / 3000000 < 0.001 FROM test.sample_merge SAMPLE 100000; +SELECT abs(sum(_sample_factor) - 3000000) / 3000000 < 0.001 FROM sample_merge SAMPLE 100000; SELECT abs(sum(_sample_factor) - 3000000) / 3000000 < 0.001 FROM merge(test, '^sample\\d$') SAMPLE 100000; -DROP TABLE test.sample1; -DROP TABLE test.sample2; -DROP TABLE test.sample_merge; +DROP TABLE sample1; +DROP TABLE sample2; +DROP TABLE sample_merge; diff --git a/dbms/tests/queries/0_stateless/00318_pk_tuple_order.sql b/dbms/tests/queries/0_stateless/00318_pk_tuple_order.sql index de554fd8b38..8e2992167ee 100644 --- a/dbms/tests/queries/0_stateless/00318_pk_tuple_order.sql +++ b/dbms/tests/queries/0_stateless/00318_pk_tuple_order.sql @@ -1,68 +1,68 @@ -DROP TABLE IF EXISTS test.pk; +DROP TABLE IF EXISTS pk; -CREATE TABLE test.pk (d Date DEFAULT '2000-01-01', x UInt64, y UInt64, z UInt64) ENGINE = MergeTree(d, (x, y, z), 1); +CREATE TABLE pk (d Date DEFAULT '2000-01-01', x UInt64, y UInt64, z UInt64) ENGINE = MergeTree(d, (x, y, z), 1); -INSERT INTO test.pk (x, y, z) VALUES (1, 11, 1235), (1, 11, 4395), (1, 22, 3545), (1, 22, 6984), (1, 33, 4596), (2, 11, 4563), (2, 11, 4578), (2, 11, 3572), (2, 22, 5786), (2, 22, 5786), (2, 22, 2791), (2, 22, 2791), (3, 33, 2791), (3, 33, 2791), (3, 33, 1235), (3, 44, 4935), (3, 44, 4578), (3, 55, 5786), (3, 55, 2791), (3, 55, 1235); +INSERT INTO pk (x, y, z) VALUES (1, 11, 1235), (1, 11, 4395), (1, 22, 3545), (1, 22, 6984), (1, 33, 4596), (2, 11, 4563), (2, 11, 4578), (2, 11, 3572), (2, 22, 5786), (2, 22, 5786), (2, 22, 2791), (2, 22, 2791), (3, 33, 2791), (3, 33, 2791), (3, 33, 1235), (3, 44, 4935), (3, 44, 4578), (3, 55, 5786), (3, 55, 2791), (3, 55, 1235); SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; SET max_block_size = 1; SET max_rows_to_read = 4; -SELECT * FROM test.pk WHERE x = 2 AND y = 11; +SELECT * FROM pk WHERE x = 2 AND y = 11; SET max_rows_to_read = 5; -SELECT * FROM test.pk WHERE x = 1; +SELECT * FROM pk WHERE x = 1; SET max_rows_to_read = 9; -SELECT * FROM test.pk WHERE x = 3; +SELECT * FROM pk WHERE x = 3; SET max_rows_to_read = 3; -SELECT * FROM test.pk WHERE x = 3 AND y = 44; +SELECT * FROM pk WHERE x = 3 AND y = 44; SET max_rows_to_read = 2; -SELECT * FROM test.pk WHERE x = 3 AND y = 44 AND z = 4935; -SELECT * FROM test.pk WHERE x = 3 AND y = 44 AND z = 4578; +SELECT * FROM pk WHERE x = 3 AND y = 44 AND z = 4935; +SELECT * FROM pk WHERE x = 3 AND y = 44 AND z = 4578; SET max_rows_to_read = 1; -SELECT * FROM test.pk WHERE x = 3 AND y = 44 AND z = 4934; -SELECT * FROM test.pk WHERE x = 3 AND y = 44 AND z = 4936; -SELECT * FROM test.pk WHERE x = 3 AND y = 44 AND z = 4577; -SELECT * FROM test.pk WHERE x = 3 AND y = 44 AND z = 4579; +SELECT * FROM pk WHERE x = 3 AND y = 44 AND z = 4934; +SELECT * FROM pk WHERE x = 3 AND y = 44 AND z = 4936; +SELECT * FROM pk WHERE x = 3 AND y = 44 AND z = 4577; +SELECT * FROM pk WHERE x = 3 AND y = 44 AND z = 4579; SET max_rows_to_read = 1; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z > 5786; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z > 5786; SET max_rows_to_read = 2; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z >= 5786; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z >= 5786; SET max_rows_to_read = 3; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z > 1235; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z > 1235; SET max_rows_to_read = 4; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z >= 1235; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z >= 1000; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z >= 1000 AND x < 10000; -SELECT * FROM test.pk WHERE x = 3 AND y = 55; -SELECT * FROM test.pk WHERE x = 3 AND y >= 50; -SELECT * FROM test.pk WHERE x = 3 AND y > 44; -SELECT * FROM test.pk WHERE x >= 3 AND y > 44; -SELECT * FROM test.pk WHERE x > 2 AND y > 44; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z >= 1235; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z >= 1000; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z >= 1000 AND x < 10000; +SELECT * FROM pk WHERE x = 3 AND y = 55; +SELECT * FROM pk WHERE x = 3 AND y >= 50; +SELECT * FROM pk WHERE x = 3 AND y > 44; +SELECT * FROM pk WHERE x >= 3 AND y > 44; +SELECT * FROM pk WHERE x > 2 AND y > 44; SET max_rows_to_read = 2; -SELECT * FROM test.pk WHERE x = 3 AND y = 55 AND z = 5786; +SELECT * FROM pk WHERE x = 3 AND y = 55 AND z = 5786; SET max_rows_to_read = 15; SET merge_tree_min_rows_for_seek = 0; -SELECT * FROM test.pk WHERE z = 2791; -SELECT * FROM test.pk WHERE z = 5786; -SELECT * FROM test.pk WHERE z = 1235; -SELECT * FROM test.pk WHERE z = 4578; +SELECT * FROM pk WHERE z = 2791; +SELECT * FROM pk WHERE z = 5786; +SELECT * FROM pk WHERE z = 1235; +SELECT * FROM pk WHERE z = 4578; SET max_rows_to_read = 10; -SELECT * FROM test.pk WHERE y = 11; -SELECT * FROM test.pk WHERE y = 22; -SELECT * FROM test.pk WHERE y = 33; -SELECT * FROM test.pk WHERE y = 44; -SELECT * FROM test.pk WHERE y = 55; +SELECT * FROM pk WHERE y = 11; +SELECT * FROM pk WHERE y = 22; +SELECT * FROM pk WHERE y = 33; +SELECT * FROM pk WHERE y = 44; +SELECT * FROM pk WHERE y = 55; -DROP TABLE test.pk; +DROP TABLE pk; diff --git a/dbms/tests/queries/0_stateless/00319_index_for_like.sql b/dbms/tests/queries/0_stateless/00319_index_for_like.sql index 54f03b2f3f8..57ebce439f3 100644 --- a/dbms/tests/queries/0_stateless/00319_index_for_like.sql +++ b/dbms/tests/queries/0_stateless/00319_index_for_like.sql @@ -1,54 +1,54 @@ -DROP TABLE IF EXISTS test.index_for_like; -CREATE TABLE test.index_for_like (s String, d Date DEFAULT today()) ENGINE = MergeTree(d, (s, d), 1); +DROP TABLE IF EXISTS index_for_like; +CREATE TABLE index_for_like (s String, d Date DEFAULT today()) ENGINE = MergeTree(d, (s, d), 1); -INSERT INTO test.index_for_like (s) VALUES ('Hello'), ('Hello, World'), ('Hello, World 1'), ('Hello 1'), ('Goodbye'), ('Goodbye, World'), ('Goodbye 1'), ('Goodbye, World 1'); +INSERT INTO index_for_like (s) VALUES ('Hello'), ('Hello, World'), ('Hello, World 1'), ('Hello 1'), ('Goodbye'), ('Goodbye, World'), ('Goodbye 1'), ('Goodbye, World 1'); SET max_rows_to_read = 3; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, World%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, World%'; SET max_rows_to_read = 2; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, World %'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, World %'; SET max_rows_to_read = 2; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, World 1%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, World 1%'; SET max_rows_to_read = 1; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, World 2%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, World 2%'; SET max_rows_to_read = 1; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, Worle%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, Worle%'; SET max_rows_to_read = 3; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, Wor%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, Wor%'; SET max_rows_to_read = 5; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello%'; SET max_rows_to_read = 2; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello %'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello %'; SET max_rows_to_read = 3; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello,%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello,%'; SET max_rows_to_read = 1; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello;%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello;%'; SET max_rows_to_read = 5; -SELECT s FROM test.index_for_like WHERE s LIKE 'H%'; +SELECT s FROM index_for_like WHERE s LIKE 'H%'; SET max_rows_to_read = 4; -SELECT s FROM test.index_for_like WHERE s LIKE 'Good%'; +SELECT s FROM index_for_like WHERE s LIKE 'Good%'; SET max_rows_to_read = 8; -SELECT s FROM test.index_for_like WHERE s LIKE '%'; -SELECT s FROM test.index_for_like WHERE s LIKE '%Hello%'; -SELECT s FROM test.index_for_like WHERE s LIKE '%Hello'; +SELECT s FROM index_for_like WHERE s LIKE '%'; +SELECT s FROM index_for_like WHERE s LIKE '%Hello%'; +SELECT s FROM index_for_like WHERE s LIKE '%Hello'; SET max_rows_to_read = 3; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, World% %'; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, Worl_%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, World% %'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, Worl_%'; SET max_rows_to_read = 1; -SELECT s FROM test.index_for_like WHERE s LIKE 'Hello, Worl\\_%'; +SELECT s FROM index_for_like WHERE s LIKE 'Hello, Worl\\_%'; -DROP TABLE test.index_for_like; +DROP TABLE index_for_like; diff --git a/dbms/tests/queries/0_stateless/00321_pk_set.sql b/dbms/tests/queries/0_stateless/00321_pk_set.sql index 85a006ee133..073a87a6e13 100644 --- a/dbms/tests/queries/0_stateless/00321_pk_set.sql +++ b/dbms/tests/queries/0_stateless/00321_pk_set.sql @@ -1,19 +1,19 @@ -DROP TABLE IF EXISTS test.pk_set; +DROP TABLE IF EXISTS pk_set; -CREATE TABLE test.pk_set (d Date, n UInt64, host String, code UInt64) ENGINE = MergeTree(d, (n, host, code), 1); -INSERT INTO test.pk_set (n, host, code) VALUES (1, 'market', 100), (11, 'news', 100); +CREATE TABLE pk_set (d Date, n UInt64, host String, code UInt64) ENGINE = MergeTree(d, (n, host, code), 1); +INSERT INTO pk_set (n, host, code) VALUES (1, 'market', 100), (11, 'news', 100); -SELECT count() FROM test.pk_set WHERE host IN ('admin.market1', 'admin.market2') AND code = 100; -SELECT count() FROM test.pk_set WHERE host IN ('admin.market1', 'admin.market2') AND code = 100 AND n = 11; -SELECT count() FROM test.pk_set WHERE host IN ('admin.market1', 'admin.market2') AND code = 100 AND n >= 11; -SELECT count() FROM test.pk_set WHERE host IN ('market', 'admin.market2', 'admin.market3', 'admin.market4', 'abc') AND code = 100 AND n = 11; -SELECT count() FROM test.pk_set WHERE host IN ('market', 'admin.market2', 'admin.market3', 'admin.market4', 'abc') AND code = 100 AND n >= 11; -SELECT count() FROM test.pk_set WHERE host IN ('admin.market2', 'admin.market3', 'admin.market4', 'abc') AND code = 100 AND n = 11; -SELECT count() FROM test.pk_set WHERE host IN ('admin.market2', 'admin.market3', 'admin.market4', 'abc', 'news') AND code = 100 AND n = 11; +SELECT count() FROM pk_set WHERE host IN ('admin.market1', 'admin.market2') AND code = 100; +SELECT count() FROM pk_set WHERE host IN ('admin.market1', 'admin.market2') AND code = 100 AND n = 11; +SELECT count() FROM pk_set WHERE host IN ('admin.market1', 'admin.market2') AND code = 100 AND n >= 11; +SELECT count() FROM pk_set WHERE host IN ('market', 'admin.market2', 'admin.market3', 'admin.market4', 'abc') AND code = 100 AND n = 11; +SELECT count() FROM pk_set WHERE host IN ('market', 'admin.market2', 'admin.market3', 'admin.market4', 'abc') AND code = 100 AND n >= 11; +SELECT count() FROM pk_set WHERE host IN ('admin.market2', 'admin.market3', 'admin.market4', 'abc') AND code = 100 AND n = 11; +SELECT count() FROM pk_set WHERE host IN ('admin.market2', 'admin.market3', 'admin.market4', 'abc', 'news') AND code = 100 AND n = 11; -- that barely reproduces the problem -- better way: --- for i in {1..1000}; do echo "SELECT count() FROM test.pk_set WHERE host IN ('a'"$(seq 1 $i | sed -r "s/.+/,'\\0'/")") AND code = 100 AND n = 11;"; done > queries.tsv +-- for i in {1..1000}; do echo "SELECT count() FROM pk_set WHERE host IN ('a'"$(seq 1 $i | sed -r "s/.+/,'\\0'/")") AND code = 100 AND n = 11;"; done > queries.tsv -- clickhouse-benchmark < queries.tsv -DROP TABLE test.pk_set; +DROP TABLE pk_set; diff --git a/dbms/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled b/dbms/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled index 374146682a0..6014cb3bb67 100644 --- a/dbms/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled +++ b/dbms/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled @@ -1,96 +1,96 @@ -DROP TABLE IF EXISTS test.replacing; -CREATE TABLE test.replacing (d Date, k UInt64, s String, v UInt16) ENGINE = ReplacingMergeTree(d, k, 8192, v); +DROP TABLE IF EXISTS replacing; +CREATE TABLE replacing (d Date, k UInt64, s String, v UInt16) ENGINE = ReplacingMergeTree(d, k, 8192, v); -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello', 0); -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello', 0); +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'World', 0); -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'World', 0); +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -OPTIMIZE TABLE test.replacing; -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +OPTIMIZE TABLE replacing; +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello', 10); -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello', 10); +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello!', 9); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'abc', 1); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'def', 1); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'ghi', 0); -SELECT * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello!', 9); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'abc', 1); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'def', 1); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'ghi', 0); +SELECT * FROM replacing FINAL ORDER BY k, v, _part_index; -OPTIMIZE TABLE test.replacing; -OPTIMIZE TABLE test.replacing; -OPTIMIZE TABLE test.replacing; -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +OPTIMIZE TABLE replacing; +OPTIMIZE TABLE replacing; +OPTIMIZE TABLE replacing; +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -DROP TABLE test.replacing; +DROP TABLE replacing; -DROP TABLE IF EXISTS test.replacing; -CREATE TABLE test.replacing (d Date, k UInt64, s String, v UInt16) ENGINE = ReplacingMergeTree(d, k, 1, v); +DROP TABLE IF EXISTS replacing; +CREATE TABLE replacing (d Date, k UInt64, s String, v UInt16) ENGINE = ReplacingMergeTree(d, k, 1, v); -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello', 0); -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello', 0); +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'World', 0); -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'World', 0); +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -OPTIMIZE TABLE test.replacing; -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +OPTIMIZE TABLE replacing; +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello', 10); -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello', 10); +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello!', 9); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'abc', 1); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'def', 1); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'ghi', 0); -SELECT * FROM test.replacing FINAL ORDER BY k, v, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello!', 9); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'abc', 1); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'def', 1); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'ghi', 0); +SELECT * FROM replacing FINAL ORDER BY k, v, _part_index; -OPTIMIZE TABLE test.replacing PARTITION 200001 FINAL; -SELECT _part_index, * FROM test.replacing ORDER BY k, v, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, v, _part_index; +OPTIMIZE TABLE replacing PARTITION 200001 FINAL; +SELECT _part_index, * FROM replacing ORDER BY k, v, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, v, _part_index; -DROP TABLE test.replacing; +DROP TABLE replacing; -DROP TABLE IF EXISTS test.replacing; -CREATE TABLE test.replacing (d Date, k UInt64, s String) ENGINE = ReplacingMergeTree(d, k, 2); +DROP TABLE IF EXISTS replacing; +CREATE TABLE replacing (d Date, k UInt64, s String) ENGINE = ReplacingMergeTree(d, k, 2); -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello'); -SELECT _part_index, * FROM test.replacing ORDER BY k, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello'); +SELECT _part_index, * FROM replacing ORDER BY k, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'World'); -SELECT _part_index, * FROM test.replacing ORDER BY k, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'World'); +SELECT _part_index, * FROM replacing ORDER BY k, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, _part_index; -OPTIMIZE TABLE test.replacing; -SELECT _part_index, * FROM test.replacing ORDER BY k, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, _part_index; +OPTIMIZE TABLE replacing; +SELECT _part_index, * FROM replacing ORDER BY k, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello'); -SELECT _part_index, * FROM test.replacing ORDER BY k, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello'); +SELECT _part_index, * FROM replacing ORDER BY k, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, _part_index; -INSERT INTO test.replacing VALUES ('2000-01-01', 1, 'Hello!'); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'abc'); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'def'); -INSERT INTO test.replacing VALUES ('2000-01-01', 2, 'ghi'); -SELECT * FROM test.replacing FINAL ORDER BY k, _part_index; +INSERT INTO replacing VALUES ('2000-01-01', 1, 'Hello!'); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'abc'); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'def'); +INSERT INTO replacing VALUES ('2000-01-01', 2, 'ghi'); +SELECT * FROM replacing FINAL ORDER BY k, _part_index; -OPTIMIZE TABLE test.replacing PARTITION 200001 FINAL; -SELECT _part_index, * FROM test.replacing ORDER BY k, _part_index; -SELECT _part_index, * FROM test.replacing FINAL ORDER BY k, _part_index; +OPTIMIZE TABLE replacing PARTITION 200001 FINAL; +SELECT _part_index, * FROM replacing ORDER BY k, _part_index; +SELECT _part_index, * FROM replacing FINAL ORDER BY k, _part_index; -DROP TABLE test.replacing; +DROP TABLE replacing; diff --git a/dbms/tests/queries/0_stateless/00326_long_function_multi_if.sql b/dbms/tests/queries/0_stateless/00326_long_function_multi_if.sql index ce6e696d992..3509a076e3c 100644 --- a/dbms/tests/queries/0_stateless/00326_long_function_multi_if.sql +++ b/dbms/tests/queries/0_stateless/00326_long_function_multi_if.sql @@ -1370,571 +1370,571 @@ SELECT multiIf((number % 2) = 0, [toFloat64(1), toFloat64(2)], (number % 3) = 0, SELECT 'String branches'; -DROP TABLE IF EXISTS test.multi_if_check; -CREATE TABLE test.multi_if_check(col1 UInt64, col2 String, col3 String, col4 String) ENGINE=TinyLog; -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(1, 'A', 'AB', 'ABC'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(2, 'B', 'BC', 'BCD'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(3, 'C', 'CD', 'CDE'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(4, 'D', 'DE', 'DEF'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(5, 'E', 'EF', 'EFG'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(6, 'F', 'FG', 'FGH'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(7, 'G', 'GH', 'GHI'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(8, 'H', 'HI', 'HIJ'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(9, 'I', 'IJ', 'IJK'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(10, 'J', 'JK', 'JKL'); +DROP TABLE IF EXISTS multi_if_check; +CREATE TABLE multi_if_check(col1 UInt64, col2 String, col3 String, col4 String) ENGINE=TinyLog; +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(1, 'A', 'AB', 'ABC'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(2, 'B', 'BC', 'BCD'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(3, 'C', 'CD', 'CDE'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(4, 'D', 'DE', 'DEF'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(5, 'E', 'EF', 'EFG'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(6, 'F', 'FG', 'FGH'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(7, 'G', 'GH', 'GHI'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(8, 'H', 'HI', 'HIJ'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(9, 'I', 'IJ', 'IJK'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(10, 'J', 'JK', 'JKL'); -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, col2, 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, col3, col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, col3, toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, col3, toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, col3, 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), 'baz') FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, 'bar', col4) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, 'bar', toFixedString(col4, 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, 'bar', toFixedString('baz', 16)) FROM test.multi_if_check; -SELECT multiIf(1, 'foo', 1, 'bar', 'baz') FROM test.multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, col2, 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString(col2, 16), 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, toFixedString('foo', 16), 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, 'foo', 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, 1, col3, col4) FROM multi_if_check; +SELECT multiIf(1, col2, 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, col2, 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, col2, 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, col2, 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, col3, col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString(col2, 16), 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, col3, col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, toFixedString('foo', 16), 1, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', (col1 % 3) = 0, 'bar', 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, col3, col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, col3, toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, col3, toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, col3, 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString(col3, 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, toFixedString('bar', 16), 'baz') FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, 'bar', col4) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, 'bar', toFixedString(col4, 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, 'bar', toFixedString('baz', 16)) FROM multi_if_check; +SELECT multiIf(1, 'foo', 1, 'bar', 'baz') FROM multi_if_check; -DROP TABLE IF EXISTS test.multi_if_check; +DROP TABLE IF EXISTS multi_if_check; SELECT 'String array branches'; -CREATE TABLE test.multi_if_check(col1 UInt64, col2 String, col3 String, col4 String, col5 String, col6 String, col7 String) ENGINE=TinyLog; -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(1, 'A', 'AB', 'ABC', 'ABCD', 'ABCDE', 'ABCDEF'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(2, 'B', 'BC', 'BCD', 'BCDE', 'BCDEF', 'BCDEFG'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(3, 'C', 'CD', 'CDE', 'CDEF', 'CDEFG', 'CDEFGH'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(4, 'D', 'DE', 'DEF', 'DEFG', 'DEFGH', 'DEFGHI'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(5, 'E', 'EF', 'EFG', 'EFGH', 'EFGHI', 'EFGHIJ'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(6, 'F', 'FG', 'FGH', 'FGHI', 'FGHIJ', 'FGHIJK'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(7, 'G', 'GH', 'GHI', 'GHIJ', 'GHIJK', 'GHIJKL'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(8, 'H', 'HI', 'HIJ', 'HIJK', 'HIJKL', 'HIJKLM'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(9, 'I', 'IJ', 'IJK', 'IJKL', 'IJKLM', 'IJKLMN'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(10, 'J', 'JK', 'JKL', 'JKLM', 'JKLMN', 'JKLMNO'); +CREATE TABLE multi_if_check(col1 UInt64, col2 String, col3 String, col4 String, col5 String, col6 String, col7 String) ENGINE=TinyLog; +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(1, 'A', 'AB', 'ABC', 'ABCD', 'ABCDE', 'ABCDEF'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(2, 'B', 'BC', 'BCD', 'BCDE', 'BCDEF', 'BCDEFG'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(3, 'C', 'CD', 'CDE', 'CDEF', 'CDEFG', 'CDEFGH'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(4, 'D', 'DE', 'DEF', 'DEFG', 'DEFGH', 'DEFGHI'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(5, 'E', 'EF', 'EFG', 'EFGH', 'EFGHI', 'EFGHIJ'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(6, 'F', 'FG', 'FGH', 'FGHI', 'FGHIJ', 'FGHIJK'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(7, 'G', 'GH', 'GHI', 'GHIJ', 'GHIJK', 'GHIJKL'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(8, 'H', 'HI', 'HIJ', 'HIJK', 'HIJKL', 'HIJKLM'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(9, 'I', 'IJ', 'IJK', 'IJKL', 'IJKLM', 'IJKLMN'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(10, 'J', 'JK', 'JKL', 'JKLM', 'JKLMN', 'JKLMNO'); -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM test.multi_if_check; -SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM test.multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf((col1 % 2) = 0, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, [col2, 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', col3], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], (col1 % 3) = 0, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, [col4, 'bar'], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', col5], ['foo', 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], [col6, 'bar']) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', col7]) FROM multi_if_check; +SELECT multiIf(1, ['foo', 'bar'], 1, ['foo', 'bar'], ['foo', 'bar']) FROM multi_if_check; -DROP TABLE IF EXISTS test.multi_if_check; +DROP TABLE IF EXISTS multi_if_check; SELECT 'Miscellaneous'; -CREATE TABLE test.multi_if_check(col1 UInt64) ENGINE=TinyLog; -INSERT INTO test.multi_if_check(col1) VALUES (11225),(20273),(213),(240),(12),(187),(29252); -INSERT INTO test.multi_if_check(col1) VALUES (1),(65),(208),(9),(154),(20),(191),(2),(66),(970),(56),(144),(49),(10317),(145),(21623),(225); -INSERT INTO test.multi_if_check(col1) VALUES (10658),(11182),(11036),(194),(16),(54),(23),(172),(10748),(52),(63),(11282),(237),(55),(190); -INSERT INTO test.multi_if_check(col1) VALUES (11162),(197),(4),(64),(17),(59),(51),(1091),(14),(13),(10645),(73),(157),(169),(43),(47),(11111); -INSERT INTO test.multi_if_check(col1) VALUES (11002),(99),(42),(142),(40),(20259),(15),(976),(11220),(193),(21),(3),(973),(35),(148),(10277),(10253); -INSERT INTO test.multi_if_check(col1) VALUES (155),(972),(159),(959),(39),(50),(236),(969),(114678),(143),(37),(20167),(20086),(10536),(28948),(10355); -INSERT INTO test.multi_if_check(col1) VALUES (7),(192),(11119),(67),(6),(8),(10841),(141),(10951),(222),(10752),(10363),(10842),(24881),(11287),(198); -INSERT INTO test.multi_if_check(col1) VALUES (11453),(26),(147),(44),(19),(76),(29349),(10987),(28896),(75),(11168),(11084),(62),(46),(10747),(24); -INSERT INTO test.multi_if_check(col1) VALUES (10664),(966),(11256),(53),(10945),(10871),(158),(20544),(20540),(163),(10262),(11080),(0),(11159),(239); -INSERT INTO test.multi_if_check(col1) VALUES (10995),(11),(11143),(11212),(24893),(10318),(68),(21949),(28),(971),(153),(10689),(38),(11474),(11029); -INSERT INTO test.multi_if_check(col1) VALUES (11067),(21636),(965),(10761),(10324),(164),(977),(45),(10),(10944),(964),(20224),(20536),(102880),(33); -INSERT INTO test.multi_if_check(col1) VALUES (11232),(10315),(78),(11217),(10373),(11514),(10343),(48),(22),(20197),(10367),(36),(11116),(195),(10274); -INSERT INTO test.multi_if_check(col1) VALUES (115),(11069),(30),(11266),(10891),(11235),(112529),(206),(10393),(10712),(10649),(11164),(10511),(10295); -INSERT INTO test.multi_if_check(col1) VALUES (11139),(10347),(146),(11079),(961),(11231),(10358),(10653),(11358),(165),(11115),(1095),(960),(10992),(20221); -INSERT INTO test.multi_if_check(col1) VALUES (5),(10716),(102),(974),(10691),(102444),(11391),(10897),(10306),(10298),(10896),(21609),(118),(11148),(11451); -INSERT INTO test.multi_if_check(col1) VALUES (10398),(221),(975),(80),(162),(28051),(10838),(10765),(1058),(11464),(74),(21134),(21422),(10313),(28401),(20539); -INSERT INTO test.multi_if_check(col1) VALUES (10418),(235),(25),(179),(26030),(28381),(11091),(27398),(11108),(968),(10300),(11469),(35393),(10733),(11283),(11202); +CREATE TABLE multi_if_check(col1 UInt64) ENGINE=TinyLog; +INSERT INTO multi_if_check(col1) VALUES (11225),(20273),(213),(240),(12),(187),(29252); +INSERT INTO multi_if_check(col1) VALUES (1),(65),(208),(9),(154),(20),(191),(2),(66),(970),(56),(144),(49),(10317),(145),(21623),(225); +INSERT INTO multi_if_check(col1) VALUES (10658),(11182),(11036),(194),(16),(54),(23),(172),(10748),(52),(63),(11282),(237),(55),(190); +INSERT INTO multi_if_check(col1) VALUES (11162),(197),(4),(64),(17),(59),(51),(1091),(14),(13),(10645),(73),(157),(169),(43),(47),(11111); +INSERT INTO multi_if_check(col1) VALUES (11002),(99),(42),(142),(40),(20259),(15),(976),(11220),(193),(21),(3),(973),(35),(148),(10277),(10253); +INSERT INTO multi_if_check(col1) VALUES (155),(972),(159),(959),(39),(50),(236),(969),(114678),(143),(37),(20167),(20086),(10536),(28948),(10355); +INSERT INTO multi_if_check(col1) VALUES (7),(192),(11119),(67),(6),(8),(10841),(141),(10951),(222),(10752),(10363),(10842),(24881),(11287),(198); +INSERT INTO multi_if_check(col1) VALUES (11453),(26),(147),(44),(19),(76),(29349),(10987),(28896),(75),(11168),(11084),(62),(46),(10747),(24); +INSERT INTO multi_if_check(col1) VALUES (10664),(966),(11256),(53),(10945),(10871),(158),(20544),(20540),(163),(10262),(11080),(0),(11159),(239); +INSERT INTO multi_if_check(col1) VALUES (10995),(11),(11143),(11212),(24893),(10318),(68),(21949),(28),(971),(153),(10689),(38),(11474),(11029); +INSERT INTO multi_if_check(col1) VALUES (11067),(21636),(965),(10761),(10324),(164),(977),(45),(10),(10944),(964),(20224),(20536),(102880),(33); +INSERT INTO multi_if_check(col1) VALUES (11232),(10315),(78),(11217),(10373),(11514),(10343),(48),(22),(20197),(10367),(36),(11116),(195),(10274); +INSERT INTO multi_if_check(col1) VALUES (115),(11069),(30),(11266),(10891),(11235),(112529),(206),(10393),(10712),(10649),(11164),(10511),(10295); +INSERT INTO multi_if_check(col1) VALUES (11139),(10347),(146),(11079),(961),(11231),(10358),(10653),(11358),(165),(11115),(1095),(960),(10992),(20221); +INSERT INTO multi_if_check(col1) VALUES (5),(10716),(102),(974),(10691),(102444),(11391),(10897),(10306),(10298),(10896),(21609),(118),(11148),(11451); +INSERT INTO multi_if_check(col1) VALUES (10398),(221),(975),(80),(162),(28051),(10838),(10765),(1058),(11464),(74),(21134),(21422),(10313),(28401),(20539); +INSERT INTO multi_if_check(col1) VALUES (10418),(235),(25),(179),(26030),(28381),(11091),(27398),(11108),(968),(10300),(11469),(35393),(10733),(11283),(11202); -SELECT DISTINCT col1, multiIf(col1 != 213, 'Москва', 'Мир') AS k FROM test.multi_if_check LIMIT 10; -DROP TABLE IF EXISTS test.multi_if_check; +SELECT DISTINCT col1, multiIf(col1 != 213, 'Москва', 'Мир') AS k FROM multi_if_check LIMIT 10; +DROP TABLE IF EXISTS multi_if_check; diff --git a/dbms/tests/queries/0_stateless/00327_summing_composite_nested.sql b/dbms/tests/queries/0_stateless/00327_summing_composite_nested.sql index e21389528e4..73efd231a83 100644 --- a/dbms/tests/queries/0_stateless/00327_summing_composite_nested.sql +++ b/dbms/tests/queries/0_stateless/00327_summing_composite_nested.sql @@ -1,28 +1,28 @@ -DROP TABLE IF EXISTS test.summing_composite_key; -CREATE TABLE test.summing_composite_key (d Date, k UInt64, FirstMap Nested(k1 UInt32, k2ID Int8, s Float64), SecondMap Nested(k1ID UInt64, k2Key UInt32, k3Type Int32, s Int64)) ENGINE = SummingMergeTree(d, k, 1); +DROP TABLE IF EXISTS summing_composite_key; +CREATE TABLE summing_composite_key (d Date, k UInt64, FirstMap Nested(k1 UInt32, k2ID Int8, s Float64), SecondMap Nested(k1ID UInt64, k2Key UInt32, k3Type Int32, s Int64)) ENGINE = SummingMergeTree(d, k, 1); -INSERT INTO test.summing_composite_key VALUES ('2000-01-01', 1, [1,2], [3,4], [10,11], [0,1,2], [3,4,5], [-1,-2,-3], [1,10,100]), ('2000-01-01', 1, [2,1], [4,3], [20,22], [2,2,1], [5,5,0], [-3,-3,-33], [10,100,1000]), ('2000-01-01', 2, [1,2], [3,4], [10,11], [0,1,2], [3,4,5], [-1,-2,-3], [1,10,100]), ('2000-01-01', 2, [2,1,1], [4,3,3], [20,22,33], [2,2], [5,5], [-3,-3], [10,100]), ('2000-01-01', 2, [1,2], [3,4], [10,11], [0,1,2], [3,4,5], [-1,-2,-3], [1,10,100]); +INSERT INTO summing_composite_key VALUES ('2000-01-01', 1, [1,2], [3,4], [10,11], [0,1,2], [3,4,5], [-1,-2,-3], [1,10,100]), ('2000-01-01', 1, [2,1], [4,3], [20,22], [2,2,1], [5,5,0], [-3,-3,-33], [10,100,1000]), ('2000-01-01', 2, [1,2], [3,4], [10,11], [0,1,2], [3,4,5], [-1,-2,-3], [1,10,100]), ('2000-01-01', 2, [2,1,1], [4,3,3], [20,22,33], [2,2], [5,5], [-3,-3], [10,100]), ('2000-01-01', 2, [1,2], [3,4], [10,11], [0,1,2], [3,4,5], [-1,-2,-3], [1,10,100]); -SELECT * FROM test.summing_composite_key ORDER BY d, k, _part_index; +SELECT * FROM summing_composite_key ORDER BY d, k, _part_index; -SELECT d, k, m.k1, m.k2ID, m.s FROM test.summing_composite_key ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; -SELECT d, k, m.k1, m.k2ID, sum(m.s) FROM test.summing_composite_key ARRAY JOIN FirstMap AS m GROUP BY d, k, m.k1, m.k2ID ORDER BY d, k, m.k1, m.k2ID; -SELECT d, k, m.k1, m.k2ID,m. s FROM test.summing_composite_key FINAL ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; +SELECT d, k, m.k1, m.k2ID, m.s FROM summing_composite_key ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; +SELECT d, k, m.k1, m.k2ID, sum(m.s) FROM summing_composite_key ARRAY JOIN FirstMap AS m GROUP BY d, k, m.k1, m.k2ID ORDER BY d, k, m.k1, m.k2ID; +SELECT d, k, m.k1, m.k2ID,m. s FROM summing_composite_key FINAL ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; -SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM test.summing_composite_key ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; -SELECT d, k, m.k1ID, m.k2Key, m.k3Type, sum(m.s) FROM test.summing_composite_key ARRAY JOIN SecondMap AS m GROUP BY d, k, m.k1ID, m.k2Key, m.k3Type ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type; -SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM test.summing_composite_key FINAL ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; +SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM summing_composite_key ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; +SELECT d, k, m.k1ID, m.k2Key, m.k3Type, sum(m.s) FROM summing_composite_key ARRAY JOIN SecondMap AS m GROUP BY d, k, m.k1ID, m.k2Key, m.k3Type ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type; +SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM summing_composite_key FINAL ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; -OPTIMIZE TABLE test.summing_composite_key PARTITION 200001 FINAL; +OPTIMIZE TABLE summing_composite_key PARTITION 200001 FINAL; -SELECT * FROM test.summing_composite_key ORDER BY d, k, _part_index; +SELECT * FROM summing_composite_key ORDER BY d, k, _part_index; -SELECT d, k, m.k1, m.k2ID, m.s FROM test.summing_composite_key ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; -SELECT d, k, m.k1, m.k2ID, sum(m.s) FROM test.summing_composite_key ARRAY JOIN FirstMap AS m GROUP BY d, k, m.k1, m.k2ID ORDER BY d, k, m.k1, m.k2ID; -SELECT d, k, m.k1, m.k2ID, m.s FROM test.summing_composite_key FINAL ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; +SELECT d, k, m.k1, m.k2ID, m.s FROM summing_composite_key ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; +SELECT d, k, m.k1, m.k2ID, sum(m.s) FROM summing_composite_key ARRAY JOIN FirstMap AS m GROUP BY d, k, m.k1, m.k2ID ORDER BY d, k, m.k1, m.k2ID; +SELECT d, k, m.k1, m.k2ID, m.s FROM summing_composite_key FINAL ARRAY JOIN FirstMap AS m ORDER BY d, k, m.k1, m.k2ID, m.s; -SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM test.summing_composite_key ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; -SELECT d, k, m.k1ID, m.k2Key, m.k3Type, sum(m.s) FROM test.summing_composite_key ARRAY JOIN SecondMap AS m GROUP BY d, k, m.k1ID, m.k2Key, m.k3Type ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type; -SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM test.summing_composite_key FINAL ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; +SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM summing_composite_key ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; +SELECT d, k, m.k1ID, m.k2Key, m.k3Type, sum(m.s) FROM summing_composite_key ARRAY JOIN SecondMap AS m GROUP BY d, k, m.k1ID, m.k2Key, m.k3Type ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type; +SELECT d, k, m.k1ID, m.k2Key, m.k3Type, m.s FROM summing_composite_key FINAL ARRAY JOIN SecondMap AS m ORDER BY d, k, m.k1ID, m.k2Key, m.k3Type, m.s; -DROP TABLE test.summing_composite_key; +DROP TABLE summing_composite_key; diff --git a/dbms/tests/queries/0_stateless/00328_long_case_construction.sql b/dbms/tests/queries/0_stateless/00328_long_case_construction.sql index 411ccbb7dbe..d0fc90d0884 100644 --- a/dbms/tests/queries/0_stateless/00328_long_case_construction.sql +++ b/dbms/tests/queries/0_stateless/00328_long_case_construction.sql @@ -1367,560 +1367,560 @@ SELECT CASE WHEN (number % 2) = 0 THEN [toFloat64(1), toFloat64(2)] WHEN (number /* No CASE expression. String clauses. */ -DROP TABLE IF EXISTS test.multi_if_check; -CREATE TABLE test.multi_if_check(col1 UInt64, col2 String, col3 String, col4 String) ENGINE=TinyLog; -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(1, 'A', 'AB', 'ABC'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(2, 'B', 'BC', 'BCD'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(3, 'C', 'CD', 'CDE'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(4, 'D', 'DE', 'DEF'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(5, 'E', 'EF', 'EFG'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(6, 'F', 'FG', 'FGH'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(7, 'G', 'GH', 'GHI'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(8, 'H', 'HI', 'HIJ'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(9, 'I', 'IJ', 'IJK'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4) VALUES(10, 'J', 'JK', 'JKL'); +DROP TABLE IF EXISTS multi_if_check; +CREATE TABLE multi_if_check(col1 UInt64, col2 String, col3 String, col4 String) ENGINE=TinyLog; +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(1, 'A', 'AB', 'ABC'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(2, 'B', 'BC', 'BCD'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(3, 'C', 'CD', 'CDE'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(4, 'D', 'DE', 'DEF'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(5, 'E', 'EF', 'EFG'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(6, 'F', 'FG', 'FGH'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(7, 'G', 'GH', 'GHI'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(8, 'H', 'HI', 'HIJ'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(9, 'I', 'IJ', 'IJK'); +INSERT INTO multi_if_check(col1, col2, col3, col4) VALUES(10, 'J', 'JK', 'JKL'); -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE col4 END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE 'baz' END FROM test.multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN col2 WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN 'foo' WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN col2 WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString(col2, 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN toFixedString('foo', 16) WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN (col1 % 3) = 0 THEN 'bar' ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN col3 ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString(col3, 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN toFixedString('bar', 16) ELSE 'baz' END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE col4 END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString(col4, 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE toFixedString('baz', 16) END FROM multi_if_check; +SELECT CASE WHEN 1 THEN 'foo' WHEN 1 THEN 'bar' ELSE 'baz' END FROM multi_if_check; -DROP TABLE IF EXISTS test.multi_if_check; +DROP TABLE IF EXISTS multi_if_check; /* No CASE expression. String array clauses. */ -CREATE TABLE test.multi_if_check(col1 UInt64, col2 String, col3 String, col4 String, col5 String, col6 String, col7 String) ENGINE=TinyLog; -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(1, 'A', 'AB', 'ABC', 'ABCD', 'ABCDE', 'ABCDEF'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(2, 'B', 'BC', 'BCD', 'BCDE', 'BCDEF', 'BCDEFG'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(3, 'C', 'CD', 'CDE', 'CDEF', 'CDEFG', 'CDEFGH'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(4, 'D', 'DE', 'DEF', 'DEFG', 'DEFGH', 'DEFGHI'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(5, 'E', 'EF', 'EFG', 'EFGH', 'EFGHI', 'EFGHIJ'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(6, 'F', 'FG', 'FGH', 'FGHI', 'FGHIJ', 'FGHIJK'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(7, 'G', 'GH', 'GHI', 'GHIJ', 'GHIJK', 'GHIJKL'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(8, 'H', 'HI', 'HIJ', 'HIJK', 'HIJKL', 'HIJKLM'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(9, 'I', 'IJ', 'IJK', 'IJKL', 'IJKLM', 'IJKLMN'); -INSERT INTO test.multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(10, 'J', 'JK', 'JKL', 'JKLM', 'JKLMN', 'JKLMNO'); +CREATE TABLE multi_if_check(col1 UInt64, col2 String, col3 String, col4 String, col5 String, col6 String, col7 String) ENGINE=TinyLog; +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(1, 'A', 'AB', 'ABC', 'ABCD', 'ABCDE', 'ABCDEF'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(2, 'B', 'BC', 'BCD', 'BCDE', 'BCDEF', 'BCDEFG'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(3, 'C', 'CD', 'CDE', 'CDEF', 'CDEFG', 'CDEFGH'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(4, 'D', 'DE', 'DEF', 'DEFG', 'DEFGH', 'DEFGHI'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(5, 'E', 'EF', 'EFG', 'EFGH', 'EFGHI', 'EFGHIJ'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(6, 'F', 'FG', 'FGH', 'FGHI', 'FGHIJ', 'FGHIJK'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(7, 'G', 'GH', 'GHI', 'GHIJ', 'GHIJK', 'GHIJKL'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(8, 'H', 'HI', 'HIJ', 'HIJK', 'HIJKL', 'HIJKLM'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(9, 'I', 'IJ', 'IJK', 'IJKL', 'IJKLM', 'IJKLMN'); +INSERT INTO multi_if_check(col1, col2, col3, col4, col5, col6, col7) VALUES(10, 'J', 'JK', 'JKL', 'JKLM', 'JKLMN', 'JKLMNO'); -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM test.multi_if_check; -SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM test.multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN (col1 % 2) = 0 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN [col2, 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', col3] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN (col1 % 3) = 0 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN [col4, 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', col5] ELSE ['foo', 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE [col6, 'bar'] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', col7] END FROM multi_if_check; +SELECT CASE WHEN 1 THEN ['foo', 'bar'] WHEN 1 THEN ['foo', 'bar'] ELSE ['foo', 'bar'] END FROM multi_if_check; -DROP TABLE IF EXISTS test.multi_if_check; +DROP TABLE IF EXISTS multi_if_check; /* CASE expression. Numeric clauses. */ -CREATE TABLE test.multi_if_check(col1 UInt64) ENGINE=TinyLog; -INSERT INTO test.multi_if_check(col1) SELECT toUInt64((number * 37 + 13) % 3) AS col1 FROM system.numbers LIMIT 10; +CREATE TABLE multi_if_check(col1 UInt64) ENGINE=TinyLog; +INSERT INTO multi_if_check(col1) SELECT toUInt64((number * 37 + 13) % 3) AS col1 FROM system.numbers LIMIT 10; -SELECT CASE col1 WHEN 0 THEN 1 WHEN 1 THEN 2 ELSE 3 END FROM test.multi_if_check; +SELECT CASE col1 WHEN 0 THEN 1 WHEN 1 THEN 2 ELSE 3 END FROM multi_if_check; /* CASE expression. String clauses. */ -SELECT CASE col1 WHEN 1 THEN 'A' WHEN 2 THEN 'AB' ELSE 'ABC' END FROM test.multi_if_check; +SELECT CASE col1 WHEN 1 THEN 'A' WHEN 2 THEN 'AB' ELSE 'ABC' END FROM multi_if_check; -DROP TABLE IF EXISTS test.multi_if_check; +DROP TABLE IF EXISTS multi_if_check; diff --git a/dbms/tests/queries/0_stateless/00330_view_subqueries.sql b/dbms/tests/queries/0_stateless/00330_view_subqueries.sql index 9a6cca0a7e3..bcf7dda8d62 100644 --- a/dbms/tests/queries/0_stateless/00330_view_subqueries.sql +++ b/dbms/tests/queries/0_stateless/00330_view_subqueries.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.v1; -DROP TABLE IF EXISTS test.v2; +DROP TABLE IF EXISTS v1; +DROP TABLE IF EXISTS v2; -CREATE VIEW test.v1 AS SELECT 1 FROM (SELECT 1); -SELECT * FROM test.v1; +CREATE VIEW v1 AS SELECT 1 FROM (SELECT 1); +SELECT * FROM v1; -CREATE VIEW test.v2 AS SELECT number * number FROM (SELECT number FROM system.numbers LIMIT 10); -SELECT * FROM test.v2; +CREATE VIEW v2 AS SELECT number * number FROM (SELECT number FROM system.numbers LIMIT 10); +SELECT * FROM v2; -DROP TABLE test.v1; -DROP TABLE test.v2; +DROP TABLE v1; +DROP TABLE v2; diff --git a/dbms/tests/queries/0_stateless/00331_final_and_prewhere.sql b/dbms/tests/queries/0_stateless/00331_final_and_prewhere.sql index 5e1acb2d0e2..02af6d9b450 100644 --- a/dbms/tests/queries/0_stateless/00331_final_and_prewhere.sql +++ b/dbms/tests/queries/0_stateless/00331_final_and_prewhere.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.replace; +DROP TABLE IF EXISTS replace; -CREATE TABLE test.replace ( EventDate Date, Id UInt64, Data String, Version UInt32) ENGINE = ReplacingMergeTree(EventDate, Id, 8192, Version); -INSERT INTO test.replace VALUES ('2016-06-02', 1, 'version 1', 1); -INSERT INTO test.replace VALUES ('2016-06-02', 2, 'version 1', 1); -INSERT INTO test.replace VALUES ('2016-06-02', 1, 'version 0', 0); +CREATE TABLE replace ( EventDate Date, Id UInt64, Data String, Version UInt32) ENGINE = ReplacingMergeTree(EventDate, Id, 8192, Version); +INSERT INTO replace VALUES ('2016-06-02', 1, 'version 1', 1); +INSERT INTO replace VALUES ('2016-06-02', 2, 'version 1', 1); +INSERT INTO replace VALUES ('2016-06-02', 1, 'version 0', 0); -SELECT * FROM test.replace ORDER BY Id, Version; -SELECT * FROM test.replace FINAL ORDER BY Id, Version; -SELECT * FROM test.replace FINAL WHERE Version = 0 ORDER BY Id, Version; +SELECT * FROM replace ORDER BY Id, Version; +SELECT * FROM replace FINAL ORDER BY Id, Version; +SELECT * FROM replace FINAL WHERE Version = 0 ORDER BY Id, Version; -DROP TABLE test.replace; +DROP TABLE replace; diff --git a/dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql b/dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql index c45e27222a1..70334ad91a7 100644 --- a/dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql +++ b/dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.ontime; +DROP TABLE IF EXISTS ontime; -CREATE TABLE test.ontime (FlightDate Date, Carrier String, FlightNum String) ENGINE = Memory; +CREATE TABLE ontime (FlightDate Date, Carrier String, FlightNum String) ENGINE = Memory; -INSERT INTO test.ontime VALUES ('1987-10-01','AA','2'),('1987-10-01','AA','2'),('1987-10-01','AA','7'),('1987-10-01','AA','7'),('1987-10-01','AA','26'),('1987-10-01','AA','34'),('1987-10-01','AA','36'),('1987-10-01','AA','91'),('1987-10-01','AA','101'),('1987-10-01','AA','101'),('1987-10-01','AA','109'),('1987-10-01','AA','109'),('1987-10-01','AA','112'),('1987-10-01','AA','123'),('1987-10-01','AA','160'),('1987-10-01','AA','165'),('1987-10-01','AA','165'),('1987-10-01','AA','165'),('1987-10-01','AA','176'),('1987-10-01','AA','176'),('1987-10-01','AA','176'),('1987-10-01','AA','176'),('1987-10-01','AA','179'),('1987-10-01','AA','179'),('1987-10-01','AA','215'),('1987-10-01','AA','215'),('1987-10-01','AA','231'),('1987-10-01','AA','231'),('1987-10-01','AA','263'),('1987-10-01','AA','263'),('1987-10-01','AA','268'),('1987-10-01','AA','268'),('1987-10-01','AA','281'),('1987-10-01','AA','287'),('1987-10-01','AA','287'),('1987-10-01','AA','309'),('1987-10-01','AA','309'),('1987-10-01','AA','309'),('1987-10-01','AA','341'),('1987-10-01','AA','344'),('1987-10-01','AA','344'),('1987-10-01','AA','347'),('1987-10-01','AA','347'),('1987-10-01','AA','368'),('1987-10-01','AA','381'),('1987-10-01','AA','381'),('1987-10-01','AA','381'),('1987-10-01','AA','396'),('1987-10-01','AA','396'),('1987-10-01','AA','397'),('1987-10-01','AA','397'),('1987-10-01','AA','417'),('1987-10-01','AA','417'),('1987-10-01','AA','446'),('1987-10-01','AA','451'),('1987-10-01','AA','451'),('1987-10-01','AA','460'),('1987-10-01','AA','460'),('1987-10-01','AA','491'),('1987-10-01','AA','504'),('1987-10-01','AA','504'),('1987-10-01','AA','519'),('1987-10-01','AA','519'),('1987-10-01','AA','523'),('1987-10-01','AA','523'),('1987-10-01','AA','525'),('1987-10-01','AA','525'),('1987-10-01','AA','525'),('1987-10-01','AA','533'),('1987-10-01','AA','533'),('1987-10-01','AA','533'),('1987-10-01','AA','546'),('1987-10-01','AA','546'),('1987-10-01','AA','556'),('1987-10-01','AA','556'),('1987-10-01','AA','556'),('1987-10-01','AA','597'),('1987-10-01','AA','597'),('1987-10-01','AA','597'),('1987-10-01','AA','601'),('1987-10-01','AA','601'),('1987-10-01','AA','627'),('1987-10-01','AA','670'),('1987-10-01','AA','673'),('1987-10-01','AA','673'),('1987-10-01','AA','680'),('1987-10-01','AA','680'),('1987-10-01','AA','817'),('1987-10-01','AA','817'),('1987-10-01','AA','824'),('1987-10-01','AA','824'),('1987-10-01','AA','824'),('1987-10-01','AA','824'),('1987-10-01','AA','832'),('1987-10-01','AA','832'),('1987-10-01','AA','852'),('1987-10-01','AA','852'),('1987-10-01','AA','866'),('1987-10-01','AA','866'),('1987-10-01','AA','871'),('1987-10-01','AA','871'),('1987-10-01','AA','880'),('1987-10-01','AA','880'),('1987-10-01','AA','880'),('1987-10-01','AA','880'),('1987-10-01','AA','883'),('1987-10-01','AA','883'),('1987-10-01','AA','885'),('1987-10-01','AA','885'),('1987-10-01','AA','885'),('1987-10-01','AA','890'),('1987-10-01','AA','893'),('1987-10-01','AA','893'),('1987-10-01','AA','905'),('1987-10-01','AA','905'),('1987-10-01','AA','929'),('1987-10-01','AA','929'),('1987-10-01','AA','936'),('1987-10-01','AA','936'),('1987-10-01','AA','937'),('1987-10-01','AA','937'),('1987-10-01','AA','955'),('1987-10-01','AA','966'),('1987-10-01','AA','1002'),('1987-10-01','AA','1002'),('1987-10-01','AA','1004'),('1987-10-01','AA','1004'),('1987-10-01','AA','1015'),('1987-10-01','AA','1015'),('1987-10-01','AA','1021'),('1987-10-01','AA','1021'),('1987-10-01','AA','1041'),('1987-10-01','AA','1041'),('1987-10-01','AA','1046'),('1987-10-01','AA','1046'),('1987-10-01','AA','1048'),('1987-10-01','AA','1048'),('1987-10-01','AA','1061'),('1987-10-01','AA','1061'),('1987-10-01','AA','1088'),('1987-10-01','AA','1088'),('1987-10-01','AA','2033'),('1987-10-01','AA','2033'),('1987-10-01','AA','2050'),('1987-10-01','AA','2058'),('1987-10-01','AA','2071'),('1987-10-01','AA','2071'),('1987-10-01','AA','2086'),('1987-10-01','AA','2105'),('1987-10-01','AA','2111'),('1987-10-01','AA','2123'),('1987-10-01','AA','2123'),('1987-10-01','AA','2147'),('1987-10-01','AA','2147'),('1987-10-01','AA','2199'),('1987-10-01','AA','2199'),('1987-10-01','AA','2207'),('1987-10-01','AA','2207'),('1987-10-01','AA','2217'),('1987-10-01','AA','2230'),('1987-10-01','AA','2245'),('1987-10-01','AA','2251'),('1987-10-01','AA','2251'),('1987-10-01','AA','2275'),('1987-10-01','AA','2278'),('1987-10-01','AA','2351'),('1987-10-01','AA','2357'),('1987-10-01','AA','2490'),('1987-10-01','AA','2528'),('1987-10-01','AA','2528'),('1987-10-01','AA','2735'),('1987-10-01','AA','2735'),('1987-10-01','AA','2751'),('1987-10-01','AL','2'),('1987-10-01','AL','2'),('1987-10-01','AL','7'),('1987-10-01','AL','7'),('1987-10-01','AL','26'),('1987-10-01','AL','26'),('1987-10-01','AL','34'),('1987-10-01','AL','34'),('1987-10-01','AL','36'),('1987-10-01','AL','36'),('1987-10-01','AL','45'),('1987-10-01','AL','45'),('1987-10-01','AL','45'),('1987-10-01','AL','91'),('1987-10-01','AL','91'),('1987-10-01','AL','104'),('1987-10-01','AL','104'),('1987-10-01','AL','104'),('1987-10-01','AL','109'),('1987-10-01','AL','112'),('1987-10-01','AL','112'),('1987-10-01','AL','123'),('1987-10-01','AL','149'),('1987-10-01','AL','160'),('1987-10-01','AL','160'),('1987-10-01','AL','165'),('1987-10-01','AL','171'),('1987-10-01','AL','171'),('1987-10-01','AL','176'),('1987-10-01','AL','176'),('1987-10-01','AL','179'),('1987-10-01','AL','215'),('1987-10-01','AL','231'),('1987-10-01','AL','263'),('1987-10-01','AL','263'),('1987-10-01','AL','268'),('1987-10-01','AL','268'),('1987-10-01','AL','268'),('1987-10-01','AL','281'),('1987-10-01','AL','281'),('1987-10-01','AL','287'),('1987-10-01','AL','287'),('1987-10-01','AL','309'),('1987-10-01','AL','309'),('1987-10-01','AL','341'),('1987-10-01','AL','344'),('1987-10-01','AL','344'),('1987-10-01','AL','357'),('1987-10-01','AL','357'),('1987-10-01','AL','368'),('1987-10-01','AL','381'),('1987-10-01','AL','396'),('1987-10-01','AL','397'),('1987-10-01','AL','397'),('1987-10-01','AL','416'),('1987-10-01','AL','416'),('1987-10-01','AL','417'),('1987-10-01','AL','438'),('1987-10-01','AL','446'),('1987-10-01','AL','451'),('1987-10-01','AL','451'),('1987-10-01','AL','491'),('1987-10-01','AL','491'),('1987-10-01','AL','523'),('1987-10-01','AL','523'),('1987-10-01','AL','523'),('1987-10-01','AL','525'),('1987-10-01','AL','525'),('1987-10-01','AL','533'),('1987-10-01','AL','533'),('1987-10-01','AL','546'),('1987-10-01','AL','546'),('1987-10-01','AL','556'),('1987-10-01','AL','556'),('1987-10-01','AL','601'),('1987-10-01','AL','601'),('1987-10-01','AL','627'),('1987-10-01','AL','629'),('1987-10-01','AL','670'),('1987-10-01','AL','670'),('1987-10-01','AL','670'),('1987-10-01','AL','673'),('1987-10-01','AL','680'),('1987-10-01','AL','700'),('1987-10-02','AA','2'),('1987-10-02','AA','2'),('1987-10-02','AA','2'),('1987-10-02','AA','7'),('1987-10-02','AA','7'),('1987-10-02','AA','26'),('1987-10-02','AA','34'),('1987-10-02','AA','36'),('1987-10-02','AA','91'),('1987-10-02','AA','101'),('1987-10-02','AA','101'),('1987-10-02','AA','109'),('1987-10-02','AA','109'),('1987-10-02','AA','112'),('1987-10-02','AA','123'),('1987-10-02','AA','123'),('1987-10-02','AA','160'),('1987-10-02','AA','165'),('1987-10-02','AA','165'),('1987-10-02','AA','165'),('1987-10-02','AA','176'),('1987-10-02','AA','176'),('1987-10-02','AA','176'),('1987-10-02','AA','176'),('1987-10-02','AA','179'),('1987-10-02','AA','179'),('1987-10-02','AA','215'),('1987-10-02','AA','215'),('1987-10-02','AA','231'),('1987-10-02','AA','231'),('1987-10-02','AA','263'),('1987-10-02','AA','263'),('1987-10-02','AA','268'),('1987-10-02','AA','281'),('1987-10-02','AA','287'),('1987-10-02','AA','287'),('1987-10-02','AA','309'),('1987-10-02','AA','309'),('1987-10-02','AA','309'),('1987-10-02','AA','341'),('1987-10-02','AA','344'),('1987-10-02','AA','344'),('1987-10-02','AA','347'),('1987-10-02','AA','347'),('1987-10-02','AA','368'),('1987-10-02','AA','381'),('1987-10-02','AA','381'),('1987-10-02','AA','381'),('1987-10-02','AA','396'),('1987-10-02','AA','396'),('1987-10-02','AA','397'),('1987-10-02','AA','397'),('1987-10-02','AA','417'),('1987-10-02','AA','417'),('1987-10-02','AA','446'),('1987-10-02','AA','451'),('1987-10-02','AA','451'),('1987-10-02','AA','460'),('1987-10-02','AA','460'),('1987-10-02','AA','491'),('1987-10-02','AA','504'),('1987-10-02','AA','504'),('1987-10-02','AA','519'),('1987-10-02','AA','519'),('1987-10-02','AA','523'),('1987-10-02','AA','523'),('1987-10-02','AA','525'),('1987-10-02','AA','525'),('1987-10-02','AA','525'),('1987-10-02','AA','533'),('1987-10-02','AA','533'),('1987-10-02','AA','533'),('1987-10-02','AA','546'),('1987-10-02','AA','546'),('1987-10-02','AA','546'),('1987-10-02','AA','546'),('1987-10-02','AA','556'),('1987-10-02','AA','556'),('1987-10-02','AA','556'),('1987-10-02','AA','597'),('1987-10-02','AA','597'),('1987-10-02','AA','597'),('1987-10-02','AA','601'),('1987-10-02','AA','601'),('1987-10-02','AA','627'),('1987-10-02','AA','629'),('1987-10-02','AA','629'),('1987-10-02','AA','670'),('1987-10-02','AA','673'),('1987-10-02','AA','673'),('1987-10-02','AA','680'),('1987-10-02','AA','680'),('1987-10-02','AA','817'),('1987-10-02','AA','817'),('1987-10-02','AA','824'),('1987-10-02','AA','824'),('1987-10-02','AA','824'),('1987-10-02','AA','824'),('1987-10-02','AA','832'),('1987-10-02','AA','832'),('1987-10-02','AA','852'),('1987-10-02','AA','866'),('1987-10-02','AA','866'),('1987-10-02','AA','871'),('1987-10-02','AA','871'),('1987-10-02','AA','880'),('1987-10-02','AA','880'),('1987-10-02','AA','880'),('1987-10-02','AA','880'),('1987-10-02','AA','883'),('1987-10-02','AA','883'),('1987-10-02','AA','885'),('1987-10-02','AA','885'),('1987-10-02','AA','885'),('1987-10-02','AA','890'),('1987-10-02','AA','890'),('1987-10-02','AA','893'),('1987-10-02','AA','893'),('1987-10-02','AA','905'),('1987-10-02','AA','905'),('1987-10-02','AA','915'),('1987-10-02','AA','929'),('1987-10-02','AA','929'),('1987-10-02','AA','936'),('1987-10-02','AA','936'),('1987-10-02','AA','937'),('1987-10-02','AA','937'),('1987-10-02','AA','955'),('1987-10-02','AA','955'),('1987-10-02','AA','966'),('1987-10-02','AA','1002'),('1987-10-02','AA','1002'),('1987-10-02','AA','1004'),('1987-10-02','AA','1004'),('1987-10-02','AA','1015'),('1987-10-02','AA','1015'),('1987-10-02','AA','1021'),('1987-10-02','AA','1021'),('1987-10-02','AA','1041'),('1987-10-02','AA','1041'),('1987-10-02','AA','1046'),('1987-10-02','AA','1046'),('1987-10-02','AA','1048'),('1987-10-02','AA','1048'),('1987-10-02','AA','1061'),('1987-10-02','AA','1061'),('1987-10-02','AA','1088'),('1987-10-02','AA','1088'),('1987-10-02','AA','2033'),('1987-10-02','AA','2033'),('1987-10-02','AA','2050'),('1987-10-02','AA','2058'),('1987-10-02','AA','2071'),('1987-10-02','AA','2071'),('1987-10-02','AA','2086'),('1987-10-02','AA','2105'),('1987-10-02','AA','2111'),('1987-10-02','AA','2123'),('1987-10-02','AA','2123'),('1987-10-02','AA','2147'),('1987-10-02','AA','2147'),('1987-10-02','AA','2199'),('1987-10-02','AA','2199'),('1987-10-02','AA','2207'),('1987-10-02','AA','2207'),('1987-10-02','AA','2217'),('1987-10-02','AA','2230'),('1987-10-02','AA','2245'),('1987-10-02','AA','2251'),('1987-10-02','AA','2251'),('1987-10-02','AA','2275'),('1987-10-02','AA','2278'),('1987-10-02','AA','2351'),('1987-10-02','AA','2357'),('1987-10-02','AA','2361'),('1987-10-02','AA','2490'),('1987-10-02','AA','2528'),('1987-10-02','AA','2528'),('1987-10-02','AA','2735'),('1987-10-02','AA','2735'),('1987-10-02','AA','2751'),('1987-10-02','AL','2'),('1987-10-02','AL','2'),('1987-10-02','AL','7'),('1987-10-02','AL','7'),('1987-10-02','AL','26'),('1987-10-02','AL','26'),('1987-10-02','AL','34'),('1987-10-02','AL','34'),('1987-10-02','AL','36'),('1987-10-02','AL','36'),('1987-10-02','AL','45'),('1987-10-02','AL','45'),('1987-10-02','AL','45'),('1987-10-02','AL','91'),('1987-10-02','AL','91'),('1987-10-02','AL','104'),('1987-10-02','AL','104'),('1987-10-02','AL','104'),('1987-10-02','AL','109'),('1987-10-02','AL','112'),('1987-10-02','AL','112'),('1987-10-02','AL','123'),('1987-10-02','AL','149'),('1987-10-02','AL','160'),('1987-10-02','AL','160'),('1987-10-02','AL','165'),('1987-10-02','AL','171'),('1987-10-02','AL','171'),('1987-10-02','AL','176'),('1987-10-02','AL','176'),('1987-10-02','AL','179'),('1987-10-02','AL','215'),('1987-10-02','AL','231'),('1987-10-02','AL','263'),('1987-10-02','AL','263'),('1987-10-02','AL','268'),('1987-10-02','AL','268'),('1987-10-02','AL','268'),('1987-10-02','AL','281'),('1987-10-02','AL','281'),('1987-10-02','AL','287'),('1987-10-02','AL','287'),('1987-10-02','AL','309'),('1987-10-02','AL','309'),('1987-10-02','AL','341'),('1987-10-02','AL','344'),('1987-10-02','AL','344'),('1987-10-02','AL','357'),('1987-10-02','AL','357'),('1987-10-02','AL','368'),('1987-10-02','AL','381'),('1987-10-02','AL','396'),('1987-10-02','AL','397'),('1987-10-02','AL','397'),('1987-10-02','AL','416'),('1987-10-02','AL','416'),('1987-10-02','AL','417'),('1987-10-02','AL','438'),('1987-10-02','AL','438'),('1987-10-02','AL','446'),('1987-10-02','AL','451'),('1987-10-02','AL','451'),('1987-10-02','AL','491'),('1987-10-02','AL','491'),('1987-10-02','AL','523'),('1987-10-02','AL','523'),('1987-10-02','AL','523'),('1987-10-02','AL','525'),('1987-10-02','AL','525'),('1987-10-02','AL','533'),('1987-10-02','AL','533'),('1987-10-02','AL','546'),('1987-10-02','AL','546'),('1987-10-02','AL','556'),('1987-10-02','AL','556'),('1987-10-02','AL','601'),('1987-10-02','AL','601'),('1987-10-02','AL','627'),('1987-10-02','AL','629'),('1987-10-02','AL','670'),('1987-10-02','AL','670'),('1987-10-02','AL','670'),('1987-10-02','AL','673'),('1987-10-02','AL','680'),('1987-10-03','AA','2'),('1987-10-03','AA','2'),('1987-10-03','AA','2'),('1987-10-03','AA','7'),('1987-10-03','AA','7'),('1987-10-03','AA','26'),('1987-10-03','AA','34'),('1987-10-03','AA','36'),('1987-10-03','AA','91'),('1987-10-03','AA','101'),('1987-10-03','AA','101'),('1987-10-03','AA','109'),('1987-10-03','AA','109'),('1987-10-03','AA','112'),('1987-10-03','AA','123'),('1987-10-03','AA','123'),('1987-10-03','AA','165'),('1987-10-03','AA','165'),('1987-10-03','AA','165'),('1987-10-03','AA','176'),('1987-10-03','AA','176'),('1987-10-03','AA','176'),('1987-10-03','AA','176'),('1987-10-03','AA','179'),('1987-10-03','AA','179'),('1987-10-03','AA','215'),('1987-10-03','AA','215'),('1987-10-03','AA','231'),('1987-10-03','AA','231'),('1987-10-03','AA','263'),('1987-10-03','AA','263'),('1987-10-03','AA','268'),('1987-10-03','AA','281'),('1987-10-03','AA','287'),('1987-10-03','AA','287'),('1987-10-03','AA','309'),('1987-10-03','AA','309'),('1987-10-03','AA','309'),('1987-10-03','AA','341'),('1987-10-03','AA','344'),('1987-10-03','AA','344'),('1987-10-03','AA','347'),('1987-10-03','AA','347'),('1987-10-03','AA','368'),('1987-10-03','AA','381'),('1987-10-03','AA','381'),('1987-10-03','AA','381'),('1987-10-03','AA','396'),('1987-10-03','AA','396'),('1987-10-03','AA','397'),('1987-10-03','AA','397'),('1987-10-03','AA','417'),('1987-10-03','AA','417'),('1987-10-03','AA','446'),('1987-10-03','AA','451'),('1987-10-03','AA','451'),('1987-10-03','AA','460'),('1987-10-03','AA','460'),('1987-10-03','AA','491'),('1987-10-03','AA','491'),('1987-10-03','AA','504'),('1987-10-03','AA','504'),('1987-10-03','AA','519'),('1987-10-03','AA','519'),('1987-10-03','AA','523'),('1987-10-03','AA','523'),('1987-10-03','AA','525'),('1987-10-03','AA','525'),('1987-10-03','AA','525'),('1987-10-03','AA','533'),('1987-10-03','AA','533'),('1987-10-03','AA','546'),('1987-10-03','AA','546'),('1987-10-03','AA','546'),('1987-10-03','AA','546'),('1987-10-03','AA','556'),('1987-10-03','AA','556'),('1987-10-03','AA','556'),('1987-10-03','AA','597'),('1987-10-03','AA','597'),('1987-10-03','AA','597'),('1987-10-03','AA','601'),('1987-10-03','AA','601'),('1987-10-03','AA','627'),('1987-10-03','AA','629'),('1987-10-03','AA','629'),('1987-10-03','AA','670'),('1987-10-03','AA','673'),('1987-10-03','AA','673'),('1987-10-03','AA','680'),('1987-10-03','AA','680'),('1987-10-03','AA','817'),('1987-10-03','AA','817'),('1987-10-03','AA','824'),('1987-10-03','AA','824'),('1987-10-03','AA','824'),('1987-10-03','AA','824'),('1987-10-03','AA','832'),('1987-10-03','AA','832'),('1987-10-03','AA','852'),('1987-10-03','AA','852'),('1987-10-03','AA','866'),('1987-10-03','AA','866'),('1987-10-03','AA','871'),('1987-10-03','AA','871'),('1987-10-03','AA','880'),('1987-10-03','AA','880'),('1987-10-03','AA','880'),('1987-10-03','AA','880'),('1987-10-03','AA','883'),('1987-10-03','AA','883'),('1987-10-03','AA','885'),('1987-10-03','AA','885'),('1987-10-03','AA','885'),('1987-10-03','AA','890'),('1987-10-03','AA','890'),('1987-10-03','AA','893'),('1987-10-03','AA','893'),('1987-10-03','AA','905'),('1987-10-03','AA','905'),('1987-10-03','AA','915'),('1987-10-03','AA','929'),('1987-10-03','AA','929'),('1987-10-03','AA','936'),('1987-10-03','AA','936'),('1987-10-03','AA','937'),('1987-10-03','AA','937'),('1987-10-03','AA','955'),('1987-10-03','AA','955'),('1987-10-03','AA','966'),('1987-10-03','AA','1002'),('1987-10-03','AA','1002'),('1987-10-03','AA','1004'),('1987-10-03','AA','1004'),('1987-10-03','AA','1015'),('1987-10-03','AA','1015'),('1987-10-03','AA','1021'),('1987-10-03','AA','1041'),('1987-10-03','AA','1041'),('1987-10-03','AA','1046'),('1987-10-03','AA','1046'),('1987-10-03','AA','1048'),('1987-10-03','AA','1048'),('1987-10-03','AA','1061'),('1987-10-03','AA','1061'),('1987-10-03','AA','1088'),('1987-10-03','AA','1088'),('1987-10-03','AA','2033'),('1987-10-03','AA','2033'),('1987-10-03','AA','2050'),('1987-10-03','AA','2058'),('1987-10-03','AA','2071'),('1987-10-03','AA','2071'),('1987-10-03','AA','2086'),('1987-10-03','AA','2105'),('1987-10-03','AA','2111'),('1987-10-03','AA','2123'),('1987-10-03','AA','2123'),('1987-10-03','AA','2147'),('1987-10-03','AA','2147'),('1987-10-03','AA','2199'),('1987-10-03','AA','2207'),('1987-10-03','AA','2207'),('1987-10-03','AA','2245'),('1987-10-03','AA','2251'),('1987-10-03','AA','2251'),('1987-10-03','AA','2275'),('1987-10-03','AA','2278'),('1987-10-03','AA','2361'),('1987-10-03','AA','2490'),('1987-10-03','AA','2528'),('1987-10-03','AA','2528'),('1987-10-03','AA','2735'),('1987-10-03','AA','2735'),('1987-10-03','AL','2'),('1987-10-03','AL','2'),('1987-10-03','AL','7'),('1987-10-03','AL','7'),('1987-10-03','AL','26'),('1987-10-03','AL','26'),('1987-10-03','AL','34'),('1987-10-03','AL','34'),('1987-10-03','AL','36'),('1987-10-03','AL','36'),('1987-10-03','AL','45'),('1987-10-03','AL','45'),('1987-10-03','AL','45'),('1987-10-03','AL','91'),('1987-10-03','AL','91'),('1987-10-03','AL','104'),('1987-10-03','AL','104'),('1987-10-03','AL','109'),('1987-10-03','AL','112'),('1987-10-03','AL','112'),('1987-10-03','AL','149'),('1987-10-03','AL','160'),('1987-10-03','AL','160'),('1987-10-03','AL','165'),('1987-10-03','AL','171'),('1987-10-03','AL','171'),('1987-10-03','AL','176'),('1987-10-03','AL','176'),('1987-10-03','AL','179'),('1987-10-03','AL','215'),('1987-10-03','AL','231'),('1987-10-03','AL','263'),('1987-10-03','AL','287'),('1987-10-03','AL','287'),('1987-10-03','AL','309'),('1987-10-03','AL','309'),('1987-10-03','AL','344'),('1987-10-03','AL','344'),('1987-10-03','AL','357'),('1987-10-03','AL','357'),('1987-10-03','AL','381'),('1987-10-03','AL','396'),('1987-10-03','AL','397'),('1987-10-03','AL','397'),('1987-10-03','AL','397'),('1987-10-03','AL','416'),('1987-10-03','AL','417'),('1987-10-03','AL','438'),('1987-10-03','AL','451'),('1987-10-03','AL','451'),('1987-10-03','AL','491'),('1987-10-03','AL','491'),('1987-10-03','AL','523'),('1987-10-03','AL','523'),('1987-10-03','AL','525'),('1987-10-03','AL','525'),('1987-10-03','AL','533'),('1987-10-03','AL','546'),('1987-10-03','AL','546'),('1987-10-03','AL','556'),('1987-10-03','AL','556'),('1987-10-03','AL','601'),('1987-10-03','AL','601'),('1987-10-03','AL','627'),('1987-10-03','AL','670'),('1987-10-03','AL','673'),('1987-10-03','AL','680'),('1987-10-03','AL','905'),('1987-10-03','AL','936'),('1987-10-03','AL','966'),('1987-10-04','AA','2'),('1987-10-04','AA','2'),('1987-10-04','AA','2'),('1987-10-04','AA','7'),('1987-10-04','AA','7'),('1987-10-04','AA','26'),('1987-10-04','AA','34'),('1987-10-04','AA','36'),('1987-10-04','AA','91'),('1987-10-04','AA','101'),('1987-10-04','AA','101'),('1987-10-04','AA','109'),('1987-10-04','AA','109'),('1987-10-04','AA','112'),('1987-10-04','AA','123'),('1987-10-04','AA','123'),('1987-10-04','AA','160'),('1987-10-04','AA','165'),('1987-10-04','AA','165'),('1987-10-04','AA','165'),('1987-10-04','AA','176'),('1987-10-04','AA','176'),('1987-10-04','AA','176'),('1987-10-04','AA','176'),('1987-10-04','AA','179'),('1987-10-04','AA','179'),('1987-10-04','AA','215'),('1987-10-04','AA','215'),('1987-10-04','AA','231'),('1987-10-04','AA','231'),('1987-10-04','AA','263'),('1987-10-04','AA','263'),('1987-10-04','AA','268'),('1987-10-04','AA','268'),('1987-10-04','AA','281'),('1987-10-04','AA','287'),('1987-10-04','AA','287'),('1987-10-04','AA','309'),('1987-10-04','AA','309'),('1987-10-04','AA','309'),('1987-10-04','AA','341'),('1987-10-04','AA','344'),('1987-10-04','AA','344'),('1987-10-04','AA','347'),('1987-10-04','AA','347'),('1987-10-04','AA','381'),('1987-10-04','AA','381'),('1987-10-04','AA','381'),('1987-10-04','AA','396'),('1987-10-04','AA','396'),('1987-10-04','AA','397'),('1987-10-04','AA','397'),('1987-10-04','AA','417'),('1987-10-04','AA','417'),('1987-10-04','AA','446'),('1987-10-04','AA','451'),('1987-10-04','AA','451'),('1987-10-04','AA','460'),('1987-10-04','AA','460'),('1987-10-04','AA','491'),('1987-10-04','AA','491'),('1987-10-04','AA','504'),('1987-10-04','AA','504'),('1987-10-04','AA','519'),('1987-10-04','AA','519'),('1987-10-04','AA','523'),('1987-10-04','AA','523'),('1987-10-04','AA','525'),('1987-10-04','AA','525'),('1987-10-04','AA','525'),('1987-10-04','AA','533'),('1987-10-04','AA','533'),('1987-10-04','AA','533'),('1987-10-04','AA','546'),('1987-10-04','AA','546'),('1987-10-04','AA','546'),('1987-10-04','AA','546'),('1987-10-04','AA','556'),('1987-10-04','AA','556'),('1987-10-04','AA','556'),('1987-10-04','AA','597'),('1987-10-04','AA','597'),('1987-10-04','AA','597'),('1987-10-04','AA','601'),('1987-10-04','AA','601'),('1987-10-04','AA','627'),('1987-10-04','AA','629'),('1987-10-04','AA','629'),('1987-10-04','AA','670'),('1987-10-04','AA','673'),('1987-10-04','AA','673'),('1987-10-04','AA','680'),('1987-10-04','AA','680'),('1987-10-04','AA','817'),('1987-10-04','AA','817'),('1987-10-04','AA','824'),('1987-10-04','AA','824'),('1987-10-04','AA','824'),('1987-10-04','AA','832'),('1987-10-04','AA','832'),('1987-10-04','AA','852'),('1987-10-04','AA','852'),('1987-10-04','AA','866'),('1987-10-04','AA','866'),('1987-10-04','AA','871'),('1987-10-04','AA','871'),('1987-10-04','AA','880'),('1987-10-04','AA','880'),('1987-10-04','AA','880'),('1987-10-04','AA','880'),('1987-10-04','AA','883'),('1987-10-04','AA','883'),('1987-10-04','AA','885'),('1987-10-04','AA','885'),('1987-10-04','AA','890'),('1987-10-04','AA','890'),('1987-10-04','AA','893'),('1987-10-04','AA','893'),('1987-10-04','AA','905'),('1987-10-04','AA','905'),('1987-10-04','AA','915'),('1987-10-04','AA','929'),('1987-10-04','AA','929'),('1987-10-04','AA','936'),('1987-10-04','AA','936'),('1987-10-04','AA','937'),('1987-10-04','AA','937'),('1987-10-04','AA','955'),('1987-10-04','AA','955'),('1987-10-04','AA','966'),('1987-10-04','AA','1002'),('1987-10-04','AA','1002'),('1987-10-04','AA','1004'),('1987-10-04','AA','1004'),('1987-10-04','AA','1015'),('1987-10-04','AA','1021'),('1987-10-04','AA','1021'),('1987-10-04','AA','1041'),('1987-10-04','AA','1041'),('1987-10-04','AA','1046'),('1987-10-04','AA','1046'),('1987-10-04','AA','1048'),('1987-10-04','AA','1048'),('1987-10-04','AA','1061'),('1987-10-04','AA','1061'),('1987-10-04','AA','1088'),('1987-10-04','AA','1088'),('1987-10-04','AA','2033'),('1987-10-04','AA','2033'),('1987-10-04','AA','2050'),('1987-10-04','AA','2058'),('1987-10-04','AA','2071'),('1987-10-04','AA','2071'),('1987-10-04','AA','2086'),('1987-10-04','AA','2111'),('1987-10-04','AA','2123'),('1987-10-04','AA','2123'),('1987-10-04','AA','2147'),('1987-10-04','AA','2147'),('1987-10-04','AA','2199'),('1987-10-04','AA','2199'),('1987-10-04','AA','2207'),('1987-10-04','AA','2207'),('1987-10-04','AA','2230'),('1987-10-04','AA','2245'),('1987-10-04','AA','2251'),('1987-10-04','AA','2251'),('1987-10-04','AA','2275'),('1987-10-04','AA','2278'),('1987-10-04','AA','2357'),('1987-10-04','AA','2361'),('1987-10-04','AA','2490'),('1987-10-04','AA','2528'),('1987-10-04','AA','2528'),('1987-10-04','AA','2735'),('1987-10-04','AA','2735'),('1987-10-04','AA','2751'),('1987-10-04','AL','7'),('1987-10-04','AL','7'),('1987-10-04','AL','26'),('1987-10-04','AL','26'),('1987-10-04','AL','34'),('1987-10-04','AL','34'),('1987-10-04','AL','36'),('1987-10-04','AL','36'),('1987-10-04','AL','45'),('1987-10-04','AL','45'),('1987-10-04','AL','45'),('1987-10-04','AL','91'),('1987-10-04','AL','91'),('1987-10-04','AL','104'),('1987-10-04','AL','123'),('1987-10-04','AL','149'),('1987-10-04','AL','160'),('1987-10-04','AL','160'),('1987-10-04','AL','165'),('1987-10-04','AL','171'),('1987-10-04','AL','171'),('1987-10-04','AL','176'),('1987-10-04','AL','176'),('1987-10-04','AL','179'),('1987-10-04','AL','215'),('1987-10-04','AL','231'),('1987-10-04','AL','263'),('1987-10-04','AL','263'),('1987-10-04','AL','281'),('1987-10-04','AL','281'),('1987-10-04','AL','309'),('1987-10-04','AL','309'),('1987-10-04','AL','341'),('1987-10-04','AL','344'),('1987-10-04','AL','344'),('1987-10-04','AL','357'),('1987-10-04','AL','357'),('1987-10-04','AL','368'),('1987-10-04','AL','416'),('1987-10-04','AL','416'),('1987-10-04','AL','417'),('1987-10-04','AL','438'),('1987-10-04','AL','438'),('1987-10-04','AL','451'),('1987-10-04','AL','491'),('1987-10-04','AL','491'),('1987-10-04','AL','525'),('1987-10-04','AL','525'),('1987-10-04','AL','533'),('1987-10-04','AL','533'),('1987-10-04','AL','546'),('1987-10-04','AL','546'),('1987-10-04','AL','556'),('1987-10-04','AL','556'),('1987-10-04','AL','601'),('1987-10-04','AL','627'),('1987-10-04','AL','629'),('1987-10-04','AL','670'),('1987-10-04','AL','670'),('1987-10-04','AL','670'),('1987-10-04','AL','673'),('1987-10-04','AL','680'),('1987-10-04','AL','937'),('1987-10-04','AL','937'),('1987-10-04','AL','955'),('1987-10-12','AA','2'),('1987-10-12','AA','2'),('1987-10-12','AA','2'),('1987-10-12','AA','7'),('1987-10-12','AA','7'),('1987-10-12','AA','26'),('1987-10-12','AA','34'),('1987-10-12','AA','36'),('1987-10-12','AA','91'),('1987-10-12','AA','101'),('1987-10-12','AA','101'),('1987-10-12','AA','109'),('1987-10-12','AA','109'),('1987-10-12','AA','112'),('1987-10-12','AA','123'),('1987-10-12','AA','123'),('1987-10-12','AA','160'),('1987-10-12','AA','165'),('1987-10-12','AA','165'),('1987-10-12','AA','165'),('1987-10-12','AA','176'),('1987-10-12','AA','176'),('1987-10-12','AA','176'),('1987-10-12','AA','176'),('1987-10-12','AA','179'),('1987-10-12','AA','179'),('1987-10-12','AA','215'),('1987-10-12','AA','215'),('1987-10-12','AA','231'),('1987-10-12','AA','263'),('1987-10-12','AA','263'),('1987-10-12','AA','268'),('1987-10-12','AA','268'),('1987-10-12','AA','281'),('1987-10-12','AA','287'),('1987-10-12','AA','287'),('1987-10-12','AA','309'),('1987-10-12','AA','309'),('1987-10-12','AA','309'),('1987-10-12','AA','341'),('1987-10-12','AA','344'),('1987-10-12','AA','344'),('1987-10-12','AA','347'),('1987-10-12','AA','347'),('1987-10-12','AA','368'),('1987-10-12','AA','381'),('1987-10-12','AA','381'),('1987-10-12','AA','381'),('1987-10-12','AA','396'),('1987-10-12','AA','396'),('1987-10-12','AA','397'),('1987-10-12','AA','397'),('1987-10-12','AA','417'),('1987-10-12','AA','417'),('1987-10-12','AA','446'),('1987-10-12','AA','451'),('1987-10-12','AA','451'),('1987-10-12','AA','460'),('1987-10-12','AA','460'),('1987-10-12','AA','491'),('1987-10-12','AA','504'),('1987-10-12','AA','504'),('1987-10-12','AA','519'),('1987-10-12','AA','523'),('1987-10-12','AA','523'),('1987-10-12','AA','525'),('1987-10-12','AA','525'),('1987-10-12','AA','525'),('1987-10-12','AA','533'),('1987-10-12','AA','533'),('1987-10-12','AA','533'),('1987-10-12','AA','546'),('1987-10-12','AA','546'),('1987-10-12','AA','546'),('1987-10-12','AA','546'),('1987-10-12','AA','556'),('1987-10-12','AA','556'),('1987-10-12','AA','556'),('1987-10-12','AA','597'),('1987-10-12','AA','597'),('1987-10-12','AA','597'),('1987-10-12','AA','601'),('1987-10-12','AA','601'),('1987-10-12','AA','627'),('1987-10-12','AA','629'),('1987-10-12','AA','629'),('1987-10-12','AA','670'),('1987-10-12','AA','673'),('1987-10-12','AA','673'),('1987-10-12','AA','680'),('1987-10-12','AA','680'),('1987-10-12','AA','817'),('1987-10-12','AA','817'),('1987-10-12','AA','824'),('1987-10-12','AA','824'),('1987-10-12','AA','824'),('1987-10-12','AA','824'),('1987-10-12','AA','832'),('1987-10-12','AA','832'),('1987-10-12','AA','852'),('1987-10-12','AA','852'),('1987-10-12','AA','866'),('1987-10-12','AA','866'),('1987-10-12','AA','871'),('1987-10-12','AA','871'),('1987-10-12','AA','880'),('1987-10-12','AA','880'),('1987-10-12','AA','880'),('1987-10-12','AA','880'),('1987-10-12','AA','883'),('1987-10-12','AA','883'),('1987-10-12','AA','885'),('1987-10-12','AA','885'),('1987-10-12','AA','885'),('1987-10-12','AA','890'),('1987-10-12','AA','890'),('1987-10-12','AA','893'),('1987-10-12','AA','893'),('1987-10-12','AA','905'),('1987-10-12','AA','905'),('1987-10-12','AA','915'),('1987-10-12','AA','929'),('1987-10-12','AA','929'),('1987-10-12','AA','936'),('1987-10-12','AA','936'),('1987-10-12','AA','937'),('1987-10-12','AA','937'),('1987-10-12','AA','955'),('1987-10-12','AA','955'),('1987-10-12','AA','966'),('1987-10-12','AA','1002'),('1987-10-12','AA','1002'),('1987-10-12','AA','1004'),('1987-10-12','AA','1015'),('1987-10-12','AA','1015'),('1987-10-12','AA','1021'),('1987-10-12','AA','1021'),('1987-10-12','AA','1041'),('1987-10-12','AA','1041'),('1987-10-12','AA','1046'),('1987-10-12','AA','1046'),('1987-10-12','AA','1048'),('1987-10-12','AA','1048'),('1987-10-12','AA','1061'),('1987-10-12','AA','1061'),('1987-10-12','AA','1088'),('1987-10-12','AA','1088'),('1987-10-12','AA','2033'),('1987-10-12','AA','2033'),('1987-10-12','AA','2050'),('1987-10-12','AA','2058'),('1987-10-12','AA','2071'),('1987-10-12','AA','2071'),('1987-10-12','AA','2086'),('1987-10-12','AA','2105'),('1987-10-12','AA','2111'),('1987-10-12','AA','2123'),('1987-10-12','AA','2123'),('1987-10-12','AA','2147'),('1987-10-12','AA','2147'),('1987-10-12','AA','2199'),('1987-10-12','AA','2199'),('1987-10-12','AA','2207'),('1987-10-12','AA','2207'),('1987-10-12','AA','2217'),('1987-10-12','AA','2230'),('1987-10-12','AA','2245'),('1987-10-12','AA','2251'),('1987-10-12','AA','2251'),('1987-10-12','AA','2275'),('1987-10-12','AA','2278'),('1987-10-12','AA','2351'),('1987-10-12','AA','2357'),('1987-10-12','AA','2361'),('1987-10-12','AA','2490'),('1987-10-12','AA','2528'),('1987-10-12','AA','2528'),('1987-10-12','AA','2735'),('1987-10-12','AA','2735'),('1987-10-12','AA','2751'),('1987-10-12','AL','2'),('1987-10-12','AL','2'),('1987-10-12','AL','7'),('1987-10-12','AL','7'),('1987-10-12','AL','26'),('1987-10-12','AL','26'),('1987-10-12','AL','34'),('1987-10-12','AL','34'),('1987-10-12','AL','36'),('1987-10-12','AL','36'),('1987-10-12','AL','45'),('1987-10-12','AL','45'),('1987-10-12','AL','45'),('1987-10-12','AL','91'),('1987-10-12','AL','91'),('1987-10-12','AL','104'),('1987-10-12','AL','104'),('1987-10-12','AL','104'),('1987-10-12','AL','109'),('1987-10-12','AL','112'),('1987-10-12','AL','112'),('1987-10-12','AL','123'),('1987-10-12','AL','149'),('1987-10-12','AL','160'),('1987-10-12','AL','160'),('1987-10-12','AL','165'),('1987-10-12','AL','171'),('1987-10-12','AL','171'),('1987-10-12','AL','176'),('1987-10-12','AL','176'),('1987-10-12','AL','179'),('1987-10-12','AL','215'),('1987-10-12','AL','231'),('1987-10-12','AL','263'),('1987-10-12','AL','263'),('1987-10-12','AL','268'),('1987-10-12','AL','268'),('1987-10-12','AL','268'),('1987-10-12','AL','281'),('1987-10-12','AL','281'),('1987-10-12','AL','287'),('1987-10-12','AL','287'),('1987-10-12','AL','309'),('1987-10-12','AL','309'),('1987-10-12','AL','341'),('1987-10-12','AL','344'),('1987-10-12','AL','344'),('1987-10-12','AL','357'),('1987-10-12','AL','357'),('1987-10-12','AL','368'),('1987-10-12','AL','381'),('1987-10-12','AL','396'),('1987-10-12','AL','397'),('1987-10-12','AL','397'),('1987-10-12','AL','416'),('1987-10-12','AL','416'),('1987-10-12','AL','417'),('1987-10-12','AL','438'),('1987-10-12','AL','438'),('1987-10-12','AL','446'),('1987-10-12','AL','451'),('1987-10-12','AL','451'),('1987-10-12','AL','491'),('1987-10-12','AL','491'),('1987-10-12','AL','523'),('1987-10-12','AL','523'),('1987-10-12','AL','523'),('1987-10-12','AL','525'),('1987-10-12','AL','525'),('1987-10-12','AL','533'),('1987-10-12','AL','533'),('1987-10-12','AL','546'),('1987-10-12','AL','546'),('1987-10-12','AL','556'),('1987-10-12','AL','556'),('1987-10-12','AL','627'),('1987-10-12','AL','629'),('1987-10-12','AL','670'),('1987-10-12','AL','670'),('1987-10-12','AL','670'),('1987-10-12','AL','673'),('1987-10-13','AA','2'),('1987-10-13','AA','2'),('1987-10-13','AA','2'),('1987-10-13','AA','7'),('1987-10-13','AA','7'),('1987-10-13','AA','26'),('1987-10-13','AA','34'),('1987-10-13','AA','36'),('1987-10-13','AA','91'),('1987-10-13','AA','101'),('1987-10-13','AA','101'),('1987-10-13','AA','109'),('1987-10-13','AA','109'),('1987-10-13','AA','112'),('1987-10-13','AA','123'),('1987-10-13','AA','123'),('1987-10-13','AA','160'),('1987-10-13','AA','165'),('1987-10-13','AA','165'),('1987-10-13','AA','165'),('1987-10-13','AA','176'),('1987-10-13','AA','176'),('1987-10-13','AA','176'),('1987-10-13','AA','176'),('1987-10-13','AA','179'),('1987-10-13','AA','179'),('1987-10-13','AA','215'),('1987-10-13','AA','215'),('1987-10-13','AA','231'),('1987-10-13','AA','231'),('1987-10-13','AA','263'),('1987-10-13','AA','263'),('1987-10-13','AA','268'),('1987-10-13','AA','268'),('1987-10-13','AA','281'),('1987-10-13','AA','287'),('1987-10-13','AA','287'),('1987-10-13','AA','309'),('1987-10-13','AA','309'),('1987-10-13','AA','309'),('1987-10-13','AA','341'),('1987-10-13','AA','344'),('1987-10-13','AA','344'),('1987-10-13','AA','347'),('1987-10-13','AA','347'),('1987-10-13','AA','368'),('1987-10-13','AA','381'),('1987-10-13','AA','381'),('1987-10-13','AA','381'),('1987-10-13','AA','396'),('1987-10-13','AA','396'),('1987-10-13','AA','397'),('1987-10-13','AA','397'),('1987-10-13','AA','417'),('1987-10-13','AA','417'),('1987-10-13','AA','446'),('1987-10-13','AA','451'),('1987-10-13','AA','451'),('1987-10-13','AA','460'),('1987-10-13','AA','460'),('1987-10-13','AA','491'),('1987-10-13','AA','504'),('1987-10-13','AA','504'),('1987-10-13','AA','519'),('1987-10-13','AA','519'),('1987-10-13','AA','523'),('1987-10-13','AA','523'),('1987-10-13','AA','525'),('1987-10-13','AA','525'),('1987-10-13','AA','533'),('1987-10-13','AA','533'),('1987-10-13','AA','533'),('1987-10-13','AA','546'),('1987-10-13','AA','546'),('1987-10-13','AA','546'),('1987-10-13','AA','556'),('1987-10-13','AA','556'),('1987-10-13','AA','556'),('1987-10-13','AA','597'),('1987-10-13','AA','597'),('1987-10-13','AA','597'),('1987-10-13','AA','601'),('1987-10-13','AA','601'),('1987-10-13','AA','627'),('1987-10-13','AA','629'),('1987-10-13','AA','629'),('1987-10-13','AA','673'),('1987-10-13','AA','673'),('1987-10-13','AA','680'),('1987-10-13','AA','817'),('1987-10-13','AA','817'),('1987-10-13','AA','824'),('1987-10-13','AA','824'),('1987-10-13','AA','824'),('1987-10-13','AA','832'),('1987-10-13','AA','832'),('1987-10-13','AA','852'),('1987-10-13','AA','866'),('1987-10-13','AA','866'),('1987-10-13','AA','871'),('1987-10-13','AA','871'),('1987-10-13','AA','880'),('1987-10-13','AA','880'),('1987-10-13','AA','880'),('1987-10-13','AA','880'),('1987-10-13','AA','883'),('1987-10-13','AA','883'),('1987-10-13','AA','885'),('1987-10-13','AA','885'),('1987-10-13','AA','885'),('1987-10-13','AA','890'),('1987-10-13','AA','890'),('1987-10-13','AA','893'),('1987-10-13','AA','893'),('1987-10-13','AA','905'),('1987-10-13','AA','905'),('1987-10-13','AA','915'),('1987-10-13','AA','929'),('1987-10-13','AA','929'),('1987-10-13','AA','936'),('1987-10-13','AA','936'),('1987-10-13','AA','937'),('1987-10-13','AA','937'),('1987-10-13','AA','955'),('1987-10-13','AA','955'),('1987-10-13','AA','966'),('1987-10-13','AA','1002'),('1987-10-13','AA','1002'),('1987-10-13','AA','1004'),('1987-10-13','AA','1004'),('1987-10-13','AA','1015'),('1987-10-13','AA','1015'),('1987-10-13','AA','1021'),('1987-10-13','AA','1021'),('1987-10-13','AA','1041'),('1987-10-13','AA','1041'),('1987-10-13','AA','1046'),('1987-10-13','AA','1046'),('1987-10-13','AA','1048'),('1987-10-13','AA','1048'),('1987-10-13','AA','1061'),('1987-10-13','AA','1061'),('1987-10-13','AA','1088'),('1987-10-13','AA','1088'),('1987-10-13','AA','2033'),('1987-10-13','AA','2050'),('1987-10-13','AA','2071'),('1987-10-13','AA','2071'),('1987-10-13','AA','2086'),('1987-10-13','AA','2105'),('1987-10-13','AA','2111'),('1987-10-13','AA','2123'),('1987-10-13','AA','2123'),('1987-10-13','AA','2147'),('1987-10-13','AA','2147'),('1987-10-13','AA','2199'),('1987-10-13','AA','2199'),('1987-10-13','AA','2207'),('1987-10-13','AA','2207'),('1987-10-13','AA','2217'),('1987-10-13','AA','2230'),('1987-10-13','AA','2245'),('1987-10-13','AA','2251'),('1987-10-13','AA','2251'),('1987-10-13','AA','2275'),('1987-10-13','AA','2351'),('1987-10-13','AA','2357'),('1987-10-13','AA','2361'),('1987-10-13','AA','2490'),('1987-10-13','AA','2528'),('1987-10-13','AA','2528'),('1987-10-13','AA','2735'),('1987-10-13','AA','2735'),('1987-10-13','AA','2751'),('1987-10-13','AL','2'),('1987-10-13','AL','2'),('1987-10-13','AL','7'),('1987-10-13','AL','7'),('1987-10-13','AL','26'),('1987-10-13','AL','26'),('1987-10-13','AL','34'),('1987-10-13','AL','34'),('1987-10-13','AL','36'),('1987-10-13','AL','36'),('1987-10-13','AL','45'),('1987-10-13','AL','45'),('1987-10-13','AL','45'),('1987-10-13','AL','91'),('1987-10-13','AL','91'),('1987-10-13','AL','104'),('1987-10-13','AL','104'),('1987-10-13','AL','104'),('1987-10-13','AL','109'),('1987-10-13','AL','112'),('1987-10-13','AL','112'),('1987-10-13','AL','123'),('1987-10-13','AL','149'),('1987-10-13','AL','160'),('1987-10-13','AL','160'),('1987-10-13','AL','171'),('1987-10-13','AL','171'),('1987-10-13','AL','176'),('1987-10-13','AL','176'),('1987-10-13','AL','179'),('1987-10-13','AL','231'),('1987-10-13','AL','263'),('1987-10-13','AL','263'),('1987-10-13','AL','268'),('1987-10-13','AL','268'),('1987-10-13','AL','268'),('1987-10-13','AL','281'),('1987-10-13','AL','281'),('1987-10-13','AL','287'),('1987-10-13','AL','287'),('1987-10-13','AL','309'),('1987-10-13','AL','309'),('1987-10-13','AL','341'),('1987-10-13','AL','357'),('1987-10-13','AL','357'),('1987-10-13','AL','368'),('1987-10-13','AL','381'),('1987-10-13','AL','396'),('1987-10-13','AL','397'),('1987-10-13','AL','397'),('1987-10-13','AL','416'),('1987-10-13','AL','417'),('1987-10-13','AL','438'),('1987-10-13','AL','438'),('1987-10-13','AL','446'),('1987-10-13','AL','451'),('1987-10-13','AL','451'),('1987-10-13','AL','491'),('1987-10-13','AL','491'),('1987-10-13','AL','523'),('1987-10-13','AL','523'),('1987-10-13','AL','523'),('1987-10-13','AL','525'),('1987-10-13','AL','525'),('1987-10-13','AL','533'),('1987-10-13','AL','533'),('1987-10-13','AL','546'),('1987-10-13','AL','546'),('1987-10-13','AL','556'),('1987-10-13','AL','556'),('1987-10-13','AL','601'),('1987-10-13','AL','601'),('1987-10-13','AL','627'),('1987-10-13','AL','629'),('1987-10-13','AL','670'),('1987-10-13','AL','670'),('1987-10-13','AL','670'),('1987-10-13','AL','673'),('1987-10-13','AL','680'),('1987-10-14','AA','2'),('1987-10-14','AA','2'),('1987-10-14','AA','2'),('1987-10-14','AA','7'),('1987-10-14','AA','7'),('1987-10-14','AA','26'),('1987-10-14','AA','34'),('1987-10-14','AA','36'),('1987-10-14','AA','91'),('1987-10-14','AA','101'),('1987-10-14','AA','101'),('1987-10-14','AA','109'),('1987-10-14','AA','109'),('1987-10-14','AA','112'),('1987-10-14','AA','123'),('1987-10-14','AA','123'),('1987-10-14','AA','160'),('1987-10-14','AA','165'),('1987-10-14','AA','165'),('1987-10-14','AA','176'),('1987-10-14','AA','176'),('1987-10-14','AA','176'),('1987-10-14','AA','176'),('1987-10-14','AA','179'),('1987-10-14','AA','179'),('1987-10-14','AA','215'),('1987-10-14','AA','215'),('1987-10-14','AA','231'),('1987-10-14','AA','231'),('1987-10-14','AA','263'),('1987-10-14','AA','263'),('1987-10-14','AA','268'),('1987-10-14','AA','268'),('1987-10-14','AA','281'),('1987-10-14','AA','287'),('1987-10-14','AA','309'),('1987-10-14','AA','309'),('1987-10-14','AA','309'),('1987-10-14','AA','341'),('1987-10-14','AA','344'),('1987-10-14','AA','344'),('1987-10-14','AA','347'),('1987-10-14','AA','347'),('1987-10-14','AA','368'),('1987-10-14','AA','381'),('1987-10-14','AA','381'),('1987-10-14','AA','381'),('1987-10-14','AA','396'),('1987-10-14','AA','396'),('1987-10-14','AA','397'),('1987-10-14','AA','417'),('1987-10-14','AA','446'),('1987-10-14','AA','451'),('1987-10-14','AA','451'),('1987-10-14','AA','460'),('1987-10-14','AA','460'),('1987-10-14','AA','491'),('1987-10-14','AA','504'),('1987-10-14','AA','519'),('1987-10-14','AA','519'),('1987-10-14','AA','523'),('1987-10-14','AA','523'),('1987-10-14','AA','525'),('1987-10-14','AA','525'),('1987-10-14','AA','533'),('1987-10-14','AA','533'),('1987-10-14','AA','533'),('1987-10-14','AA','546'),('1987-10-14','AA','546'),('1987-10-14','AA','546'),('1987-10-14','AA','546'),('1987-10-14','AA','556'),('1987-10-14','AA','556'),('1987-10-14','AA','556'),('1987-10-14','AA','597'),('1987-10-14','AA','597'),('1987-10-14','AA','597'),('1987-10-14','AA','601'),('1987-10-14','AA','601'),('1987-10-14','AA','627'),('1987-10-14','AA','629'),('1987-10-14','AA','629'),('1987-10-14','AA','670'),('1987-10-14','AA','673'),('1987-10-14','AA','673'),('1987-10-14','AA','680'),('1987-10-14','AA','680'),('1987-10-14','AA','817'),('1987-10-14','AA','817'),('1987-10-14','AA','824'),('1987-10-14','AA','824'),('1987-10-14','AA','824'),('1987-10-14','AA','824'),('1987-10-14','AA','832'),('1987-10-14','AA','832'),('1987-10-14','AA','852'),('1987-10-14','AA','866'),('1987-10-14','AA','866'),('1987-10-14','AA','871'),('1987-10-14','AA','871'),('1987-10-14','AA','880'),('1987-10-14','AA','880'),('1987-10-14','AA','880'),('1987-10-14','AA','883'),('1987-10-14','AA','883'),('1987-10-14','AA','885'),('1987-10-14','AA','885'),('1987-10-14','AA','885'),('1987-10-14','AA','890'),('1987-10-14','AA','890'),('1987-10-14','AA','893'),('1987-10-14','AA','893'),('1987-10-14','AA','905'),('1987-10-14','AA','905'),('1987-10-14','AA','915'),('1987-10-14','AA','929'),('1987-10-14','AA','929'),('1987-10-14','AA','936'),('1987-10-14','AA','936'),('1987-10-14','AA','937'),('1987-10-14','AA','937'),('1987-10-14','AA','955'),('1987-10-14','AA','955'),('1987-10-14','AA','966'),('1987-10-14','AA','1002'),('1987-10-14','AA','1002'),('1987-10-14','AA','1004'),('1987-10-14','AA','1004'),('1987-10-14','AA','1015'),('1987-10-14','AA','1015'),('1987-10-14','AA','1021'),('1987-10-14','AA','1021'),('1987-10-14','AA','1041'),('1987-10-14','AA','1041'),('1987-10-14','AA','1046'),('1987-10-14','AA','1046'),('1987-10-14','AA','1048'),('1987-10-14','AA','1048'),('1987-10-14','AA','1061'),('1987-10-14','AA','1061'),('1987-10-14','AA','1088'),('1987-10-14','AA','1088'),('1987-10-14','AA','2033'),('1987-10-14','AA','2033'),('1987-10-14','AA','2050'),('1987-10-14','AA','2058'),('1987-10-14','AA','2071'),('1987-10-14','AA','2071'),('1987-10-14','AA','2086'),('1987-10-14','AA','2111'),('1987-10-14','AA','2123'),('1987-10-14','AA','2123'),('1987-10-14','AA','2147'),('1987-10-14','AA','2147'),('1987-10-14','AA','2199'),('1987-10-14','AA','2199'),('1987-10-14','AA','2207'),('1987-10-14','AA','2207'),('1987-10-14','AA','2217'),('1987-10-14','AA','2230'),('1987-10-14','AA','2251'),('1987-10-14','AA','2251'),('1987-10-14','AA','2278'),('1987-10-14','AA','2351'),('1987-10-14','AA','2357'),('1987-10-14','AA','2490'),('1987-10-14','AA','2528'),('1987-10-14','AA','2528'),('1987-10-14','AA','2735'),('1987-10-14','AA','2735'),('1987-10-14','AA','2751'),('1987-10-14','AL','2'),('1987-10-14','AL','2'),('1987-10-14','AL','7'),('1987-10-14','AL','7'),('1987-10-14','AL','26'),('1987-10-14','AL','26'),('1987-10-14','AL','34'),('1987-10-14','AL','36'),('1987-10-14','AL','36'),('1987-10-14','AL','45'),('1987-10-14','AL','45'),('1987-10-14','AL','91'),('1987-10-14','AL','91'),('1987-10-14','AL','104'),('1987-10-14','AL','104'),('1987-10-14','AL','104'),('1987-10-14','AL','109'),('1987-10-14','AL','112'),('1987-10-14','AL','112'),('1987-10-14','AL','123'),('1987-10-14','AL','149'),('1987-10-14','AL','160'),('1987-10-14','AL','160'),('1987-10-14','AL','165'),('1987-10-14','AL','171'),('1987-10-14','AL','171'),('1987-10-14','AL','176'),('1987-10-14','AL','176'),('1987-10-14','AL','179'),('1987-10-14','AL','215'),('1987-10-14','AL','231'),('1987-10-14','AL','263'),('1987-10-14','AL','263'),('1987-10-14','AL','268'),('1987-10-14','AL','268'),('1987-10-14','AL','268'),('1987-10-14','AL','281'),('1987-10-14','AL','281'),('1987-10-14','AL','287'),('1987-10-14','AL','287'),('1987-10-14','AL','309'),('1987-10-14','AL','309'),('1987-10-14','AL','341'),('1987-10-14','AL','344'),('1987-10-14','AL','344'),('1987-10-14','AL','357'),('1987-10-14','AL','357'),('1987-10-14','AL','368'),('1987-10-14','AL','381'),('1987-10-14','AL','396'),('1987-10-14','AL','397'),('1987-10-14','AL','397'),('1987-10-14','AL','416'),('1987-10-14','AL','416'),('1987-10-14','AL','417'),('1987-10-14','AL','438'),('1987-10-14','AL','438'),('1987-10-14','AL','446'),('1987-10-14','AL','451'),('1987-10-14','AL','451'),('1987-10-14','AL','491'),('1987-10-14','AL','491'),('1987-10-14','AL','523'),('1987-10-14','AL','523'),('1987-10-14','AL','523'),('1987-10-14','AL','525'),('1987-10-14','AL','525'),('1987-10-14','AL','533'),('1987-10-14','AL','533'),('1987-10-14','AL','546'),('1987-10-14','AL','546'),('1987-10-14','AL','556'),('1987-10-14','AL','556'),('1987-10-14','AL','601'),('1987-10-14','AL','601'),('1987-10-14','AL','627'),('1987-10-14','AL','629'),('1987-10-14','AL','670'),('1987-10-14','AL','670'),('1987-10-14','AL','670'),('1987-10-14','AL','673'),('1987-10-14','AL','680'),('1987-10-15','AA','2'),('1987-10-15','AA','2'),('1987-10-15','AA','2'),('1987-10-15','AA','7'),('1987-10-15','AA','7'),('1987-10-15','AA','26'),('1987-10-15','AA','34'),('1987-10-15','AA','36'),('1987-10-15','AA','91'),('1987-10-15','AA','101'),('1987-10-15','AA','101'),('1987-10-15','AA','109'),('1987-10-15','AA','109'),('1987-10-15','AA','112'),('1987-10-15','AA','123'),('1987-10-15','AA','123'),('1987-10-15','AA','160'),('1987-10-15','AA','165'),('1987-10-15','AA','165'),('1987-10-15','AA','165'),('1987-10-15','AA','176'),('1987-10-15','AA','176'),('1987-10-15','AA','176'),('1987-10-15','AA','176'),('1987-10-15','AA','179'),('1987-10-15','AA','179'),('1987-10-15','AA','215'),('1987-10-15','AA','215'),('1987-10-15','AA','231'),('1987-10-15','AA','263'),('1987-10-15','AA','263'),('1987-10-15','AA','268'),('1987-10-15','AA','268'),('1987-10-15','AA','281'),('1987-10-15','AA','287'),('1987-10-15','AA','287'),('1987-10-15','AA','309'),('1987-10-15','AA','309'),('1987-10-15','AA','309'),('1987-10-15','AA','341'),('1987-10-15','AA','344'),('1987-10-15','AA','344'),('1987-10-15','AA','347'),('1987-10-15','AA','347'),('1987-10-15','AA','368'),('1987-10-15','AA','381'),('1987-10-15','AA','381'),('1987-10-15','AA','396'),('1987-10-15','AA','396'),('1987-10-15','AA','397'),('1987-10-15','AA','397'),('1987-10-15','AA','417'),('1987-10-15','AA','417'),('1987-10-15','AA','446'),('1987-10-15','AA','451'),('1987-10-15','AA','451'),('1987-10-15','AA','460'),('1987-10-15','AA','460'),('1987-10-15','AA','491'),('1987-10-15','AA','504'),('1987-10-15','AA','504'),('1987-10-15','AA','519'),('1987-10-15','AA','519'),('1987-10-15','AA','523'),('1987-10-15','AA','523'),('1987-10-15','AA','525'),('1987-10-15','AA','525'),('1987-10-15','AA','525'),('1987-10-15','AA','533'),('1987-10-15','AA','533'),('1987-10-15','AA','533'),('1987-10-15','AA','546'),('1987-10-15','AA','546'),('1987-10-15','AA','546'),('1987-10-15','AA','546'),('1987-10-15','AA','556'),('1987-10-15','AA','556'),('1987-10-15','AA','556'),('1987-10-15','AA','597'),('1987-10-15','AA','597'),('1987-10-15','AA','597'),('1987-10-15','AA','601'),('1987-10-15','AA','601'),('1987-10-15','AA','629'),('1987-10-15','AA','629'),('1987-10-15','AA','670'),('1987-10-15','AA','673'),('1987-10-15','AA','673'),('1987-10-15','AA','680'),('1987-10-15','AA','680'),('1987-10-15','AA','817'),('1987-10-15','AA','817'),('1987-10-15','AA','824'),('1987-10-15','AA','824'),('1987-10-15','AA','824'),('1987-10-15','AA','824'),('1987-10-15','AA','832'),('1987-10-15','AA','832'),('1987-10-15','AA','852'),('1987-10-15','AA','866'),('1987-10-15','AA','866'),('1987-10-15','AA','871'),('1987-10-15','AA','871'),('1987-10-15','AA','880'),('1987-10-15','AA','880'),('1987-10-15','AA','880'),('1987-10-15','AA','883'),('1987-10-15','AA','883'),('1987-10-15','AA','885'),('1987-10-15','AA','885'),('1987-10-15','AA','885'),('1987-10-15','AA','890'),('1987-10-15','AA','890'),('1987-10-15','AA','893'),('1987-10-15','AA','893'),('1987-10-15','AA','905'),('1987-10-15','AA','905'),('1987-10-15','AA','915'),('1987-10-15','AA','929'),('1987-10-15','AA','929'),('1987-10-15','AA','936'),('1987-10-15','AA','936'),('1987-10-15','AA','937'),('1987-10-15','AA','955'),('1987-10-15','AA','955'),('1987-10-15','AA','966'),('1987-10-15','AA','1002'),('1987-10-15','AA','1002'),('1987-10-15','AA','1004'),('1987-10-15','AA','1004'),('1987-10-15','AA','1015'),('1987-10-15','AA','1015'),('1987-10-15','AA','1021'),('1987-10-15','AA','1021'),('1987-10-15','AA','1041'),('1987-10-15','AA','1041'),('1987-10-15','AA','1046'),('1987-10-15','AA','1046'),('1987-10-15','AA','1048'),('1987-10-15','AA','1048'),('1987-10-15','AA','1061'),('1987-10-15','AA','1061'),('1987-10-15','AA','1088'),('1987-10-15','AA','1088'),('1987-10-15','AA','2033'),('1987-10-15','AA','2033'),('1987-10-15','AA','2050'),('1987-10-15','AA','2058'),('1987-10-15','AA','2071'),('1987-10-15','AA','2071'),('1987-10-15','AA','2086'),('1987-10-15','AA','2105'),('1987-10-15','AA','2111'),('1987-10-15','AA','2123'),('1987-10-15','AA','2123'),('1987-10-15','AA','2147'),('1987-10-15','AA','2147'),('1987-10-15','AA','2199'),('1987-10-15','AA','2199'),('1987-10-15','AA','2207'),('1987-10-15','AA','2207'),('1987-10-15','AA','2217'),('1987-10-15','AA','2230'),('1987-10-15','AA','2245'),('1987-10-15','AA','2251'),('1987-10-15','AA','2251'),('1987-10-15','AA','2275'),('1987-10-15','AA','2278'),('1987-10-15','AA','2351'),('1987-10-15','AA','2357'),('1987-10-15','AA','2361'),('1987-10-15','AA','2490'),('1987-10-15','AA','2528'),('1987-10-15','AA','2528'),('1987-10-15','AA','2735'),('1987-10-15','AA','2735'),('1987-10-15','AA','2751'),('1987-10-15','AL','2'),('1987-10-15','AL','2'),('1987-10-15','AL','7'),('1987-10-15','AL','7'),('1987-10-15','AL','26'),('1987-10-15','AL','26'),('1987-10-15','AL','34'),('1987-10-15','AL','34'),('1987-10-15','AL','36'),('1987-10-15','AL','36'),('1987-10-15','AL','45'),('1987-10-15','AL','45'),('1987-10-15','AL','45'),('1987-10-15','AL','91'),('1987-10-15','AL','91'),('1987-10-15','AL','104'),('1987-10-15','AL','104'),('1987-10-15','AL','104'),('1987-10-15','AL','109'),('1987-10-15','AL','112'),('1987-10-15','AL','112'),('1987-10-15','AL','123'),('1987-10-15','AL','149'),('1987-10-15','AL','160'),('1987-10-15','AL','160'),('1987-10-15','AL','165'),('1987-10-15','AL','171'),('1987-10-15','AL','171'),('1987-10-15','AL','176'),('1987-10-15','AL','176'),('1987-10-15','AL','179'),('1987-10-15','AL','215'),('1987-10-15','AL','231'),('1987-10-15','AL','263'),('1987-10-15','AL','263'),('1987-10-15','AL','268'),('1987-10-15','AL','268'),('1987-10-15','AL','268'),('1987-10-15','AL','281'),('1987-10-15','AL','281'),('1987-10-15','AL','287'),('1987-10-15','AL','287'),('1987-10-15','AL','309'),('1987-10-15','AL','309'),('1987-10-15','AL','341'),('1987-10-15','AL','344'),('1987-10-15','AL','344'),('1987-10-15','AL','357'),('1987-10-15','AL','357'),('1987-10-15','AL','368'),('1987-10-15','AL','381'),('1987-10-15','AL','396'),('1987-10-15','AL','397'),('1987-10-15','AL','397'),('1987-10-15','AL','416'),('1987-10-15','AL','416'),('1987-10-15','AL','417'),('1987-10-15','AL','438'),('1987-10-15','AL','438'),('1987-10-15','AL','446'),('1987-10-15','AL','451'),('1987-10-15','AL','451'),('1987-10-15','AL','491'),('1987-10-15','AL','491'),('1987-10-15','AL','523'),('1987-10-15','AL','523'),('1987-10-15','AL','523'),('1987-10-15','AL','525'),('1987-10-15','AL','525'),('1987-10-15','AL','533'),('1987-10-15','AL','533'),('1987-10-15','AL','546'),('1987-10-15','AL','546'),('1987-10-15','AL','556'),('1987-10-15','AL','556'),('1987-10-15','AL','601'),('1987-10-15','AL','601'),('1987-10-15','AL','627'),('1987-10-15','AL','629'),('1987-10-15','AL','670'),('1987-10-15','AL','670'),('1987-10-15','AL','670'),('1987-10-15','AL','673'),('1987-10-15','AL','680'),('1987-10-16','AA','2'),('1987-10-16','AA','2'),('1987-10-16','AA','2'),('1987-10-16','AA','7'),('1987-10-16','AA','7'),('1987-10-16','AA','26'),('1987-10-16','AA','34'),('1987-10-16','AA','36'),('1987-10-16','AA','91'),('1987-10-16','AA','101'),('1987-10-16','AA','101'),('1987-10-16','AA','109'),('1987-10-16','AA','109'),('1987-10-16','AA','112'),('1987-10-16','AA','123'),('1987-10-16','AA','160'),('1987-10-16','AA','165'),('1987-10-16','AA','165'),('1987-10-16','AA','176'),('1987-10-16','AA','176'),('1987-10-16','AA','176'),('1987-10-16','AA','176'),('1987-10-16','AA','179'),('1987-10-16','AA','179'),('1987-10-16','AA','215'),('1987-10-16','AA','215'),('1987-10-16','AA','231'),('1987-10-16','AA','263'),('1987-10-16','AA','263'),('1987-10-16','AA','268'),('1987-10-16','AA','281'),('1987-10-16','AA','287'),('1987-10-16','AA','287'),('1987-10-16','AA','309'),('1987-10-16','AA','309'),('1987-10-16','AA','309'),('1987-10-16','AA','341'),('1987-10-16','AA','344'),('1987-10-16','AA','344'),('1987-10-16','AA','347'),('1987-10-16','AA','347'),('1987-10-16','AA','368'),('1987-10-16','AA','381'),('1987-10-16','AA','381'),('1987-10-16','AA','381'),('1987-10-16','AA','396'),('1987-10-16','AA','396'),('1987-10-16','AA','397'),('1987-10-16','AA','417'),('1987-10-16','AA','417'),('1987-10-16','AA','446'),('1987-10-16','AA','451'),('1987-10-16','AA','451'),('1987-10-16','AA','460'),('1987-10-16','AA','460'),('1987-10-16','AA','491'),('1987-10-16','AA','504'),('1987-10-16','AA','504'),('1987-10-16','AA','519'),('1987-10-16','AA','519'),('1987-10-16','AA','523'),('1987-10-16','AA','523'),('1987-10-16','AA','525'),('1987-10-16','AA','525'),('1987-10-16','AA','533'),('1987-10-16','AA','533'),('1987-10-16','AA','546'),('1987-10-16','AA','546'),('1987-10-16','AA','546'),('1987-10-16','AA','546'),('1987-10-16','AA','556'),('1987-10-16','AA','556'),('1987-10-16','AA','556'),('1987-10-16','AA','597'),('1987-10-16','AA','597'),('1987-10-16','AA','597'),('1987-10-16','AA','601'),('1987-10-16','AA','601'),('1987-10-16','AA','627'),('1987-10-16','AA','629'),('1987-10-16','AA','629'),('1987-10-16','AA','670'),('1987-10-16','AA','673'),('1987-10-16','AA','673'),('1987-10-16','AA','680'),('1987-10-16','AA','680'),('1987-10-16','AA','817'),('1987-10-16','AA','817'),('1987-10-16','AA','824'),('1987-10-16','AA','824'),('1987-10-16','AA','824'),('1987-10-16','AA','824'),('1987-10-16','AA','832'),('1987-10-16','AA','832'),('1987-10-16','AA','852'),('1987-10-16','AA','866'),('1987-10-16','AA','866'),('1987-10-16','AA','871'),('1987-10-16','AA','871'),('1987-10-16','AA','880'),('1987-10-16','AA','880'),('1987-10-16','AA','880'),('1987-10-16','AA','880'),('1987-10-16','AA','883'),('1987-10-16','AA','883'),('1987-10-16','AA','885'),('1987-10-16','AA','885'),('1987-10-16','AA','885'),('1987-10-16','AA','890'),('1987-10-16','AA','890'),('1987-10-16','AA','893'),('1987-10-16','AA','893'),('1987-10-16','AA','905'),('1987-10-16','AA','905'),('1987-10-16','AA','915'),('1987-10-16','AA','929'),('1987-10-16','AA','929'),('1987-10-16','AA','936'),('1987-10-16','AA','936'),('1987-10-16','AA','937'),('1987-10-16','AA','937'),('1987-10-16','AA','955'),('1987-10-16','AA','955'),('1987-10-16','AA','966'),('1987-10-16','AA','1002'),('1987-10-16','AA','1002'),('1987-10-16','AA','1004'),('1987-10-16','AA','1004'),('1987-10-16','AA','1015'),('1987-10-16','AA','1015'),('1987-10-16','AA','1021'),('1987-10-16','AA','1021'),('1987-10-16','AA','1041'),('1987-10-16','AA','1041'),('1987-10-16','AA','1046'),('1987-10-16','AA','1046'),('1987-10-16','AA','1048'),('1987-10-16','AA','1048'),('1987-10-16','AA','1061'),('1987-10-16','AA','1061'),('1987-10-16','AA','1088'),('1987-10-16','AA','1088'),('1987-10-16','AA','2033'),('1987-10-16','AA','2033'),('1987-10-16','AA','2050'),('1987-10-16','AA','2058'),('1987-10-16','AA','2071'),('1987-10-16','AA','2071'),('1987-10-16','AA','2086'),('1987-10-16','AA','2105'),('1987-10-16','AA','2111'),('1987-10-16','AA','2123'),('1987-10-16','AA','2123'),('1987-10-16','AA','2147'),('1987-10-16','AA','2147'),('1987-10-16','AA','2199'),('1987-10-16','AA','2199'),('1987-10-16','AA','2207'),('1987-10-16','AA','2207'),('1987-10-16','AA','2217'),('1987-10-16','AA','2230'),('1987-10-16','AA','2245'),('1987-10-16','AA','2251'),('1987-10-16','AA','2251'),('1987-10-16','AA','2275'),('1987-10-16','AA','2278'),('1987-10-16','AA','2351'),('1987-10-16','AA','2357'),('1987-10-16','AA','2361'),('1987-10-16','AA','2490'),('1987-10-16','AA','2528'),('1987-10-16','AA','2528'),('1987-10-16','AA','2735'),('1987-10-16','AA','2735'),('1987-10-16','AA','2751'),('1987-10-16','AL','2'),('1987-10-16','AL','2'),('1987-10-16','AL','7'),('1987-10-16','AL','7'),('1987-10-16','AL','26'),('1987-10-16','AL','26'),('1987-10-16','AL','34'),('1987-10-16','AL','36'),('1987-10-16','AL','36'),('1987-10-16','AL','45'),('1987-10-16','AL','45'),('1987-10-16','AL','45'),('1987-10-16','AL','91'),('1987-10-16','AL','91'),('1987-10-16','AL','104'),('1987-10-16','AL','104'),('1987-10-16','AL','109'),('1987-10-16','AL','112'),('1987-10-16','AL','112'),('1987-10-16','AL','123'),('1987-10-16','AL','149'),('1987-10-16','AL','160'),('1987-10-16','AL','160'),('1987-10-16','AL','165'),('1987-10-16','AL','171'),('1987-10-16','AL','171'),('1987-10-16','AL','176'),('1987-10-16','AL','176'),('1987-10-16','AL','179'),('1987-10-16','AL','215'),('1987-10-16','AL','231'),('1987-10-16','AL','263'),('1987-10-16','AL','263'),('1987-10-16','AL','268'),('1987-10-16','AL','268'),('1987-10-16','AL','268'),('1987-10-16','AL','281'),('1987-10-16','AL','281'),('1987-10-16','AL','287'),('1987-10-16','AL','287'),('1987-10-16','AL','309'),('1987-10-16','AL','309'),('1987-10-16','AL','341'),('1987-10-16','AL','344'),('1987-10-16','AL','344'),('1987-10-16','AL','357'),('1987-10-16','AL','357'),('1987-10-16','AL','368'),('1987-10-16','AL','381'),('1987-10-16','AL','396'),('1987-10-16','AL','397'),('1987-10-16','AL','397'),('1987-10-16','AL','416'),('1987-10-16','AL','416'),('1987-10-16','AL','417'),('1987-10-16','AL','438'),('1987-10-16','AL','438'),('1987-10-16','AL','446'),('1987-10-16','AL','451'),('1987-10-16','AL','451'),('1987-10-16','AL','491'),('1987-10-16','AL','491'),('1987-10-16','AL','523'),('1987-10-16','AL','523'),('1987-10-16','AL','523'),('1987-10-16','AL','525'),('1987-10-16','AL','525'),('1987-10-16','AL','533'),('1987-10-16','AL','533'),('1987-10-16','AL','546'),('1987-10-16','AL','546'),('1987-10-16','AL','556'),('1987-10-16','AL','556'),('1987-10-16','AL','601'),('1987-10-16','AL','601'),('1987-10-16','AL','627'),('1987-10-16','AL','629'),('1987-10-16','AL','670'),('1987-10-16','AL','670'),('1987-10-16','AL','670'),('1987-10-16','AL','673'),('1987-10-16','AL','680'),('1987-10-17','AA','2'),('1987-10-17','AA','2'),('1987-10-17','AA','2'),('1987-10-17','AA','7'),('1987-10-17','AA','7'),('1987-10-17','AA','26'),('1987-10-17','AA','36'),('1987-10-17','AA','91'),('1987-10-17','AA','101'),('1987-10-17','AA','101'),('1987-10-17','AA','109'),('1987-10-17','AA','109'),('1987-10-17','AA','112'),('1987-10-17','AA','123'),('1987-10-17','AA','123'),('1987-10-17','AA','160'),('1987-10-17','AA','165'),('1987-10-17','AA','165'),('1987-10-17','AA','165'),('1987-10-17','AA','176'),('1987-10-17','AA','176'),('1987-10-17','AA','176'),('1987-10-17','AA','176'),('1987-10-17','AA','179'),('1987-10-17','AA','179'),('1987-10-17','AA','215'),('1987-10-17','AA','215'),('1987-10-17','AA','231'),('1987-10-17','AA','231'),('1987-10-17','AA','263'),('1987-10-17','AA','263'),('1987-10-17','AA','268'),('1987-10-17','AA','268'),('1987-10-17','AA','281'),('1987-10-17','AA','287'),('1987-10-17','AA','287'),('1987-10-17','AA','309'),('1987-10-17','AA','309'),('1987-10-17','AA','309'),('1987-10-17','AA','341'),('1987-10-17','AA','344'),('1987-10-17','AA','344'),('1987-10-17','AA','347'),('1987-10-17','AA','347'),('1987-10-17','AA','368'),('1987-10-17','AA','381'),('1987-10-17','AA','381'),('1987-10-17','AA','381'),('1987-10-17','AA','396'),('1987-10-17','AA','396'),('1987-10-17','AA','397'),('1987-10-17','AA','417'),('1987-10-17','AA','446'),('1987-10-17','AA','451'),('1987-10-17','AA','451'),('1987-10-17','AA','460'),('1987-10-17','AA','460'),('1987-10-17','AA','491'),('1987-10-17','AA','491'),('1987-10-17','AA','504'),('1987-10-17','AA','504'),('1987-10-17','AA','519'),('1987-10-17','AA','519'),('1987-10-17','AA','523'),('1987-10-17','AA','523'),('1987-10-17','AA','525'),('1987-10-17','AA','525'),('1987-10-17','AA','525'),('1987-10-17','AA','533'),('1987-10-17','AA','533'),('1987-10-17','AA','546'),('1987-10-17','AA','546'),('1987-10-17','AA','546'),('1987-10-17','AA','546'),('1987-10-17','AA','556'),('1987-10-17','AA','556'),('1987-10-17','AA','556'),('1987-10-17','AA','597'),('1987-10-17','AA','597'),('1987-10-17','AA','597'),('1987-10-17','AA','601'),('1987-10-17','AA','627'),('1987-10-17','AA','629'),('1987-10-17','AA','629'),('1987-10-17','AA','670'),('1987-10-17','AA','673'),('1987-10-17','AA','673'),('1987-10-17','AA','680'),('1987-10-17','AA','680'),('1987-10-17','AA','817'),('1987-10-17','AA','817'),('1987-10-17','AA','824'),('1987-10-17','AA','824'),('1987-10-17','AA','824'),('1987-10-17','AA','824'),('1987-10-17','AA','832'),('1987-10-17','AA','832'),('1987-10-17','AA','852'),('1987-10-17','AA','852'),('1987-10-17','AA','866'),('1987-10-17','AA','866'),('1987-10-17','AA','871'),('1987-10-17','AA','871'),('1987-10-17','AA','880'),('1987-10-17','AA','880'),('1987-10-17','AA','880'),('1987-10-17','AA','880'),('1987-10-17','AA','883'),('1987-10-17','AA','883'),('1987-10-17','AA','885'),('1987-10-17','AA','885'),('1987-10-17','AA','885'),('1987-10-17','AA','890'),('1987-10-17','AA','890'),('1987-10-17','AA','893'),('1987-10-17','AA','893'),('1987-10-17','AA','905'),('1987-10-17','AA','905'),('1987-10-17','AA','915'),('1987-10-17','AA','929'),('1987-10-17','AA','936'),('1987-10-17','AA','936'),('1987-10-17','AA','937'),('1987-10-17','AA','937'),('1987-10-17','AA','955'),('1987-10-17','AA','955'),('1987-10-17','AA','966'),('1987-10-17','AA','1002'),('1987-10-17','AA','1002'),('1987-10-17','AA','1004'),('1987-10-17','AA','1004'),('1987-10-17','AA','1015'),('1987-10-17','AA','1015'),('1987-10-17','AA','1021'),('1987-10-17','AA','1021'),('1987-10-17','AA','1041'),('1987-10-17','AA','1041'),('1987-10-17','AA','1046'),('1987-10-17','AA','1046'),('1987-10-17','AA','1048'),('1987-10-17','AA','1048'),('1987-10-17','AA','1061'),('1987-10-17','AA','1061'),('1987-10-17','AA','1088'),('1987-10-17','AA','1088'),('1987-10-17','AA','2033'),('1987-10-17','AA','2033'),('1987-10-17','AA','2050'),('1987-10-17','AA','2058'),('1987-10-17','AA','2071'),('1987-10-17','AA','2086'),('1987-10-17','AA','2105'),('1987-10-17','AA','2111'),('1987-10-17','AA','2123'),('1987-10-17','AA','2123'),('1987-10-17','AA','2147'),('1987-10-17','AA','2147'),('1987-10-17','AA','2199'),('1987-10-17','AA','2199'),('1987-10-17','AA','2207'),('1987-10-17','AA','2207'),('1987-10-17','AA','2217'),('1987-10-17','AA','2230'),('1987-10-17','AA','2251'),('1987-10-17','AA','2251'),('1987-10-17','AA','2275'),('1987-10-17','AA','2278'),('1987-10-17','AA','2351'),('1987-10-17','AA','2357'),('1987-10-17','AA','2361'),('1987-10-17','AA','2490'),('1987-10-17','AA','2528'),('1987-10-17','AA','2528'),('1987-10-17','AA','2735'),('1987-10-17','AA','2735'),('1987-10-17','AL','2'),('1987-10-17','AL','2'),('1987-10-17','AL','7'),('1987-10-17','AL','7'),('1987-10-17','AL','26'),('1987-10-17','AL','26'),('1987-10-17','AL','34'),('1987-10-17','AL','36'),('1987-10-17','AL','36'),('1987-10-17','AL','45'),('1987-10-17','AL','45'),('1987-10-17','AL','45'),('1987-10-17','AL','91'),('1987-10-17','AL','91'),('1987-10-17','AL','104'),('1987-10-17','AL','104'),('1987-10-17','AL','109'),('1987-10-17','AL','112'),('1987-10-17','AL','112'),('1987-10-17','AL','149'),('1987-10-17','AL','160'),('1987-10-17','AL','160'),('1987-10-17','AL','165'),('1987-10-17','AL','171'),('1987-10-17','AL','171'),('1987-10-17','AL','176'),('1987-10-17','AL','176'),('1987-10-17','AL','179'),('1987-10-17','AL','215'),('1987-10-17','AL','231'),('1987-10-17','AL','263'),('1987-10-17','AL','268'),('1987-10-17','AL','268'),('1987-10-17','AL','268'),('1987-10-17','AL','287'),('1987-10-17','AL','287'),('1987-10-17','AL','309'),('1987-10-17','AL','309'),('1987-10-17','AL','344'),('1987-10-17','AL','344'),('1987-10-17','AL','357'),('1987-10-17','AL','357'),('1987-10-17','AL','381'),('1987-10-17','AL','396'),('1987-10-17','AL','397'),('1987-10-17','AL','397'),('1987-10-17','AL','397'),('1987-10-17','AL','416'),('1987-10-17','AL','417'),('1987-10-17','AL','438'),('1987-10-17','AL','438'),('1987-10-17','AL','451'),('1987-10-17','AL','451'),('1987-10-17','AL','491'),('1987-10-17','AL','491'),('1987-10-17','AL','523'),('1987-10-17','AL','523'),('1987-10-17','AL','525'),('1987-10-17','AL','525'),('1987-10-17','AL','533'),('1987-10-17','AL','546'),('1987-10-17','AL','546'),('1987-10-17','AL','556'),('1987-10-17','AL','556'),('1987-10-17','AL','601'),('1987-10-17','AL','601'),('1987-10-17','AL','627'),('1987-10-17','AL','670'),('1987-10-17','AL','673'),('1987-10-17','AL','680'),('1987-10-17','AL','936'),('1987-10-17','AL','966'),('1987-10-18','AA','2'),('1987-10-18','AA','2'),('1987-10-18','AA','2'),('1987-10-18','AA','7'),('1987-10-18','AA','7'),('1987-10-18','AA','26'),('1987-10-18','AA','34'),('1987-10-18','AA','36'),('1987-10-18','AA','91'),('1987-10-18','AA','101'),('1987-10-18','AA','101'),('1987-10-18','AA','109'),('1987-10-18','AA','109'),('1987-10-18','AA','112'),('1987-10-18','AA','123'),('1987-10-18','AA','123'),('1987-10-18','AA','160'),('1987-10-18','AA','165'),('1987-10-18','AA','165'),('1987-10-18','AA','165'),('1987-10-18','AA','176'),('1987-10-18','AA','176'),('1987-10-18','AA','176'),('1987-10-18','AA','176'),('1987-10-18','AA','179'),('1987-10-18','AA','179'),('1987-10-18','AA','215'),('1987-10-18','AA','231'),('1987-10-18','AA','231'),('1987-10-18','AA','263'),('1987-10-18','AA','268'),('1987-10-18','AA','268'),('1987-10-18','AA','281'),('1987-10-18','AA','287'),('1987-10-18','AA','287'),('1987-10-18','AA','309'),('1987-10-18','AA','309'),('1987-10-18','AA','309'),('1987-10-18','AA','341'),('1987-10-18','AA','344'),('1987-10-18','AA','344'),('1987-10-18','AA','347'),('1987-10-18','AA','347'),('1987-10-18','AA','368'),('1987-10-18','AA','381'),('1987-10-18','AA','381'),('1987-10-18','AA','381'),('1987-10-18','AA','396'),('1987-10-18','AA','396'),('1987-10-18','AA','397'),('1987-10-18','AA','397'),('1987-10-18','AA','417'),('1987-10-18','AA','417'),('1987-10-18','AA','451'),('1987-10-18','AA','451'),('1987-10-18','AA','460'),('1987-10-18','AA','491'),('1987-10-18','AA','491'),('1987-10-18','AA','504'),('1987-10-18','AA','504'),('1987-10-18','AA','519'),('1987-10-18','AA','519'),('1987-10-18','AA','523'),('1987-10-18','AA','523'),('1987-10-18','AA','525'),('1987-10-18','AA','525'),('1987-10-18','AA','525'),('1987-10-18','AA','533'),('1987-10-18','AA','533'),('1987-10-18','AA','546'),('1987-10-18','AA','546'),('1987-10-18','AA','546'),('1987-10-18','AA','546'),('1987-10-18','AA','556'),('1987-10-18','AA','556'),('1987-10-18','AA','556'),('1987-10-18','AA','597'),('1987-10-18','AA','597'),('1987-10-18','AA','597'),('1987-10-18','AA','601'),('1987-10-18','AA','601'),('1987-10-18','AA','629'),('1987-10-18','AA','629'),('1987-10-18','AA','670'),('1987-10-18','AA','673'),('1987-10-18','AA','680'),('1987-10-18','AA','680'),('1987-10-18','AA','817'),('1987-10-18','AA','817'),('1987-10-18','AA','824'),('1987-10-18','AA','824'),('1987-10-18','AA','824'),('1987-10-18','AA','824'),('1987-10-18','AA','832'),('1987-10-18','AA','832'),('1987-10-18','AA','852'),('1987-10-18','AA','866'),('1987-10-18','AA','866'),('1987-10-18','AA','871'),('1987-10-18','AA','871'),('1987-10-18','AA','880'),('1987-10-18','AA','880'),('1987-10-18','AA','880'),('1987-10-18','AA','880'),('1987-10-18','AA','883'),('1987-10-18','AA','883'),('1987-10-18','AA','885'),('1987-10-18','AA','885'),('1987-10-18','AA','885'),('1987-10-18','AA','890'),('1987-10-18','AA','890'),('1987-10-18','AA','893'),('1987-10-18','AA','893'),('1987-10-18','AA','905'),('1987-10-18','AA','905'),('1987-10-18','AA','915'),('1987-10-18','AA','929'),('1987-10-18','AA','929'),('1987-10-18','AA','936'),('1987-10-18','AA','936'),('1987-10-18','AA','937'),('1987-10-18','AA','937'),('1987-10-18','AA','955'),('1987-10-18','AA','966'),('1987-10-18','AA','1002'),('1987-10-18','AA','1002'),('1987-10-18','AA','1004'),('1987-10-18','AA','1004'),('1987-10-18','AA','1015'),('1987-10-18','AA','1015'),('1987-10-18','AA','1021'),('1987-10-18','AA','1021'),('1987-10-18','AA','1041'),('1987-10-18','AA','1041'),('1987-10-18','AA','1046'),('1987-10-18','AA','1046'),('1987-10-18','AA','1048'),('1987-10-18','AA','1048'),('1987-10-18','AA','1061'),('1987-10-18','AA','1061'),('1987-10-18','AA','1088'),('1987-10-18','AA','1088'),('1987-10-18','AA','2033'),('1987-10-18','AA','2033'),('1987-10-18','AA','2050'),('1987-10-18','AA','2058'),('1987-10-18','AA','2071'),('1987-10-18','AA','2071'),('1987-10-18','AA','2086'),('1987-10-18','AA','2111'),('1987-10-18','AA','2123'),('1987-10-18','AA','2147'),('1987-10-18','AA','2147'),('1987-10-18','AA','2199'),('1987-10-18','AA','2199'),('1987-10-18','AA','2207'),('1987-10-18','AA','2207'),('1987-10-18','AA','2230'),('1987-10-18','AA','2245'),('1987-10-18','AA','2251'),('1987-10-18','AA','2251'),('1987-10-18','AA','2275'),('1987-10-18','AA','2278'),('1987-10-18','AA','2351'),('1987-10-18','AA','2357'),('1987-10-18','AA','2361'),('1987-10-18','AA','2490'),('1987-10-18','AA','2528'),('1987-10-18','AA','2528'),('1987-10-18','AA','2735'),('1987-10-18','AA','2735'),('1987-10-18','AA','2751'),('1987-10-18','AL','2'),('1987-10-18','AL','2'),('1987-10-18','AL','7'),('1987-10-18','AL','7'),('1987-10-18','AL','26'),('1987-10-18','AL','26'),('1987-10-18','AL','34'),('1987-10-18','AL','34'),('1987-10-18','AL','36'),('1987-10-18','AL','36'),('1987-10-18','AL','45'),('1987-10-18','AL','45'),('1987-10-18','AL','45'),('1987-10-18','AL','91'),('1987-10-18','AL','91'),('1987-10-18','AL','104'),('1987-10-18','AL','104'),('1987-10-18','AL','104'),('1987-10-18','AL','112'),('1987-10-18','AL','123'),('1987-10-18','AL','160'),('1987-10-18','AL','160'),('1987-10-18','AL','165'),('1987-10-18','AL','171'),('1987-10-18','AL','171'),('1987-10-18','AL','176'),('1987-10-18','AL','176'),('1987-10-18','AL','179'),('1987-10-18','AL','215'),('1987-10-18','AL','231'),('1987-10-18','AL','263'),('1987-10-18','AL','263'),('1987-10-18','AL','281'),('1987-10-18','AL','281'),('1987-10-18','AL','309'),('1987-10-18','AL','309'),('1987-10-18','AL','341'),('1987-10-18','AL','344'),('1987-10-18','AL','344'),('1987-10-18','AL','357'),('1987-10-18','AL','357'),('1987-10-18','AL','368'),('1987-10-18','AL','396'),('1987-10-18','AL','416'),('1987-10-18','AL','416'),('1987-10-18','AL','417'),('1987-10-18','AL','438'),('1987-10-18','AL','438'),('1987-10-18','AL','446'),('1987-10-18','AL','451'),('1987-10-18','AL','491'),('1987-10-18','AL','523'),('1987-10-18','AL','523'),('1987-10-18','AL','523'),('1987-10-18','AL','525'),('1987-10-18','AL','525'),('1987-10-18','AL','533'),('1987-10-18','AL','533'),('1987-10-18','AL','546'),('1987-10-18','AL','546'),('1987-10-18','AL','556'),('1987-10-18','AL','601'),('1987-10-18','AL','601'),('1987-10-18','AL','627'),('1987-10-18','AL','629'),('1987-10-18','AL','670'),('1987-10-18','AL','670'),('1987-10-18','AL','670'),('1987-10-18','AL','673'),('1987-10-18','AL','680'),('1987-10-18','AL','937'),('1987-10-18','AL','937'),('1987-10-18','AL','955'),('1987-10-19','AA','2'),('1987-10-19','AA','2'),('1987-10-19','AA','2'),('1987-10-19','AA','7'),('1987-10-19','AA','7'),('1987-10-19','AA','26'),('1987-10-19','AA','34'),('1987-10-19','AA','36'),('1987-10-19','AA','91'),('1987-10-19','AA','101'),('1987-10-19','AA','101'),('1987-10-19','AA','109'),('1987-10-19','AA','109'),('1987-10-19','AA','112'),('1987-10-19','AA','123'),('1987-10-19','AA','123'),('1987-10-19','AA','160'),('1987-10-19','AA','165'),('1987-10-19','AA','165'),('1987-10-19','AA','165'),('1987-10-19','AA','176'),('1987-10-19','AA','176'),('1987-10-19','AA','176'),('1987-10-19','AA','176'),('1987-10-19','AA','179'),('1987-10-19','AA','179'),('1987-10-19','AA','215'),('1987-10-19','AA','215'),('1987-10-19','AA','231'),('1987-10-19','AA','231'),('1987-10-19','AA','263'),('1987-10-19','AA','263'),('1987-10-19','AA','268'),('1987-10-19','AA','268'),('1987-10-19','AA','281'),('1987-10-19','AA','287'),('1987-10-19','AA','287'),('1987-10-19','AA','309'),('1987-10-19','AA','309'),('1987-10-19','AA','341'),('1987-10-19','AA','344'),('1987-10-19','AA','344'),('1987-10-19','AA','347'),('1987-10-19','AA','347'),('1987-10-19','AA','368'),('1987-10-19','AA','381'),('1987-10-19','AA','381'),('1987-10-19','AA','381'),('1987-10-19','AA','396'),('1987-10-19','AA','396'),('1987-10-19','AA','397'),('1987-10-19','AA','397'),('1987-10-19','AA','417'),('1987-10-19','AA','417'),('1987-10-19','AA','446'),('1987-10-19','AA','451'),('1987-10-19','AA','451'),('1987-10-19','AA','491'),('1987-10-19','AA','504'),('1987-10-19','AA','504'),('1987-10-19','AA','519'),('1987-10-19','AA','519'),('1987-10-19','AA','523'),('1987-10-19','AA','523'),('1987-10-19','AA','525'),('1987-10-19','AA','525'),('1987-10-19','AA','525'),('1987-10-19','AA','533'),('1987-10-19','AA','533'),('1987-10-19','AA','546'),('1987-10-19','AA','546'),('1987-10-19','AA','546'),('1987-10-19','AA','546'),('1987-10-19','AA','556'),('1987-10-19','AA','556'),('1987-10-19','AA','556'),('1987-10-19','AA','597'),('1987-10-19','AA','597'),('1987-10-19','AA','597'),('1987-10-19','AA','601'),('1987-10-19','AA','601'),('1987-10-19','AA','627'),('1987-10-19','AA','629'),('1987-10-19','AA','629'),('1987-10-19','AA','670'),('1987-10-19','AA','673'),('1987-10-19','AA','673'),('1987-10-19','AA','680'),('1987-10-19','AA','680'),('1987-10-19','AA','817'),('1987-10-19','AA','817'),('1987-10-19','AA','824'),('1987-10-19','AA','824'),('1987-10-19','AA','824'),('1987-10-19','AA','832'),('1987-10-19','AA','832'),('1987-10-19','AA','852'),('1987-10-19','AA','852'),('1987-10-19','AA','866'),('1987-10-19','AA','866'),('1987-10-19','AA','871'),('1987-10-19','AA','871'),('1987-10-19','AA','880'),('1987-10-19','AA','880'),('1987-10-19','AA','880'),('1987-10-19','AA','880'),('1987-10-19','AA','883'),('1987-10-19','AA','883'),('1987-10-19','AA','885'),('1987-10-19','AA','885'),('1987-10-19','AA','890'),('1987-10-19','AA','890'),('1987-10-19','AA','893'),('1987-10-19','AA','893'),('1987-10-19','AA','905'),('1987-10-19','AA','905'),('1987-10-19','AA','915'),('1987-10-19','AA','929'),('1987-10-19','AA','929'),('1987-10-19','AA','936'),('1987-10-19','AA','936'),('1987-10-19','AA','937'),('1987-10-19','AA','955'),('1987-10-19','AA','955'),('1987-10-19','AA','966'),('1987-10-19','AA','1002'),('1987-10-19','AA','1002'),('1987-10-19','AA','1004'),('1987-10-19','AA','1004'),('1987-10-19','AA','1015'),('1987-10-19','AA','1015'),('1987-10-19','AA','1021'),('1987-10-19','AA','1021'),('1987-10-19','AA','1041'),('1987-10-19','AA','1041'),('1987-10-19','AA','1046'),('1987-10-19','AA','1046'),('1987-10-19','AA','1048'),('1987-10-19','AA','1048'),('1987-10-19','AA','1061'),('1987-10-19','AA','1061'),('1987-10-19','AA','1088'),('1987-10-19','AA','1088'),('1987-10-19','AA','2033'),('1987-10-19','AA','2033'),('1987-10-19','AA','2050'),('1987-10-19','AA','2058'),('1987-10-19','AA','2071'),('1987-10-19','AA','2071'),('1987-10-19','AA','2086'),('1987-10-19','AA','2105'),('1987-10-19','AA','2111'),('1987-10-19','AA','2123'),('1987-10-19','AA','2123'),('1987-10-19','AA','2147'),('1987-10-19','AA','2147'),('1987-10-19','AA','2199'),('1987-10-19','AA','2199'),('1987-10-19','AA','2207'),('1987-10-19','AA','2207'),('1987-10-19','AA','2217'),('1987-10-19','AA','2230'),('1987-10-19','AA','2245'),('1987-10-19','AA','2251'),('1987-10-19','AA','2251'),('1987-10-19','AA','2275'),('1987-10-19','AA','2278'),('1987-10-19','AA','2357'),('1987-10-19','AA','2361'),('1987-10-19','AA','2490'),('1987-10-19','AA','2528'),('1987-10-19','AA','2735'),('1987-10-19','AA','2735'),('1987-10-19','AA','2751'),('1987-10-19','AL','2'),('1987-10-19','AL','2'),('1987-10-19','AL','7'),('1987-10-19','AL','7'),('1987-10-19','AL','26'),('1987-10-19','AL','26'),('1987-10-19','AL','34'),('1987-10-19','AL','34'),('1987-10-19','AL','36'),('1987-10-19','AL','36'),('1987-10-19','AL','45'),('1987-10-19','AL','45'),('1987-10-19','AL','45'),('1987-10-19','AL','91'),('1987-10-19','AL','91'),('1987-10-19','AL','104'),('1987-10-19','AL','104'),('1987-10-19','AL','104'),('1987-10-19','AL','109'),('1987-10-19','AL','112'),('1987-10-19','AL','112'),('1987-10-19','AL','123'),('1987-10-19','AL','149'),('1987-10-19','AL','160'),('1987-10-19','AL','160'),('1987-10-19','AL','165'),('1987-10-19','AL','171'),('1987-10-19','AL','171'),('1987-10-19','AL','176'),('1987-10-19','AL','176'),('1987-10-19','AL','179'),('1987-10-19','AL','215'),('1987-10-19','AL','231'),('1987-10-19','AL','263'),('1987-10-19','AL','263'),('1987-10-19','AL','268'),('1987-10-19','AL','268'),('1987-10-19','AL','268'),('1987-10-19','AL','281'),('1987-10-19','AL','281'),('1987-10-19','AL','287'),('1987-10-19','AL','287'),('1987-10-19','AL','309'),('1987-10-19','AL','309'),('1987-10-19','AL','341'),('1987-10-19','AL','344'),('1987-10-19','AL','344'),('1987-10-19','AL','357'),('1987-10-19','AL','357'),('1987-10-19','AL','368'),('1987-10-19','AL','381'),('1987-10-19','AL','396'),('1987-10-19','AL','416'),('1987-10-19','AL','416'),('1987-10-19','AL','417'),('1987-10-19','AL','438'),('1987-10-19','AL','438'),('1987-10-19','AL','446'),('1987-10-19','AL','451'),('1987-10-19','AL','451'),('1987-10-19','AL','491'),('1987-10-19','AL','491'),('1987-10-19','AL','523'),('1987-10-19','AL','523'),('1987-10-19','AL','523'),('1987-10-19','AL','525'),('1987-10-19','AL','525'),('1987-10-19','AL','533'),('1987-10-19','AL','533'),('1987-10-19','AL','546'),('1987-10-19','AL','546'),('1987-10-19','AL','556'),('1987-10-19','AL','556'),('1987-10-19','AL','601'),('1987-10-19','AL','601'),('1987-10-19','AL','627'),('1987-10-19','AL','629'),('1987-10-19','AL','670'),('1987-10-19','AL','670'),('1987-10-19','AL','670'),('1987-10-20','AA','2'),('1987-10-20','AA','2'),('1987-10-20','AA','2'),('1987-10-20','AA','7'),('1987-10-20','AA','7'),('1987-10-20','AA','34'),('1987-10-20','AA','36'),('1987-10-20','AA','91'),('1987-10-20','AA','101'),('1987-10-20','AA','101'),('1987-10-20','AA','109'),('1987-10-20','AA','109'),('1987-10-20','AA','112'),('1987-10-20','AA','123'),('1987-10-20','AA','123'),('1987-10-20','AA','160'),('1987-10-20','AA','165'),('1987-10-20','AA','165'),('1987-10-20','AA','165'),('1987-10-20','AA','176'),('1987-10-20','AA','176'),('1987-10-20','AA','176'),('1987-10-20','AA','176'),('1987-10-20','AA','179'),('1987-10-20','AA','179'),('1987-10-20','AA','215'),('1987-10-20','AA','215'),('1987-10-20','AA','231'),('1987-10-20','AA','231'),('1987-10-20','AA','263'),('1987-10-20','AA','263'),('1987-10-20','AA','268'),('1987-10-20','AA','268'),('1987-10-20','AA','281'),('1987-10-20','AA','287'),('1987-10-20','AA','287'),('1987-10-20','AA','309'),('1987-10-20','AA','309'),('1987-10-20','AA','309'),('1987-10-20','AA','341'),('1987-10-20','AA','344'),('1987-10-20','AA','344'),('1987-10-20','AA','347'),('1987-10-20','AA','347'),('1987-10-20','AA','368'),('1987-10-20','AA','381'),('1987-10-20','AA','381'),('1987-10-20','AA','381'),('1987-10-20','AA','396'),('1987-10-20','AA','396'),('1987-10-20','AA','397'),('1987-10-20','AA','397'),('1987-10-20','AA','417'),('1987-10-20','AA','417'),('1987-10-20','AA','446'),('1987-10-20','AA','460'),('1987-10-20','AA','460'),('1987-10-20','AA','491'),('1987-10-20','AA','504'),('1987-10-20','AA','504'),('1987-10-20','AA','519'),('1987-10-20','AA','519'),('1987-10-20','AA','523'),('1987-10-20','AA','525'),('1987-10-20','AA','525'),('1987-10-20','AA','525'),('1987-10-20','AA','533'),('1987-10-20','AA','533'),('1987-10-20','AA','533'),('1987-10-20','AA','546'),('1987-10-20','AA','546'),('1987-10-20','AA','546'),('1987-10-20','AA','546'),('1987-10-20','AA','556'),('1987-10-20','AA','556'),('1987-10-20','AA','597'),('1987-10-20','AA','597'),('1987-10-20','AA','601'),('1987-10-20','AA','601'),('1987-10-20','AA','629'),('1987-10-20','AA','670'),('1987-10-20','AA','673'),('1987-10-20','AA','673'),('1987-10-20','AA','680'),('1987-10-20','AA','680'),('1987-10-20','AA','817'),('1987-10-20','AA','824'),('1987-10-20','AA','824'),('1987-10-20','AA','824'),('1987-10-20','AA','832'),('1987-10-20','AA','832'),('1987-10-20','AA','852'),('1987-10-20','AA','852'),('1987-10-20','AA','866'),('1987-10-20','AA','866'),('1987-10-20','AA','871'),('1987-10-20','AA','871'),('1987-10-20','AA','880'),('1987-10-20','AA','880'),('1987-10-20','AA','880'),('1987-10-20','AA','880'),('1987-10-20','AA','883'),('1987-10-20','AA','883'),('1987-10-20','AA','885'),('1987-10-20','AA','885'),('1987-10-20','AA','885'),('1987-10-20','AA','890'),('1987-10-20','AA','890'),('1987-10-20','AA','893'),('1987-10-20','AA','893'),('1987-10-20','AA','905'),('1987-10-20','AA','905'),('1987-10-20','AA','915'),('1987-10-20','AA','929'),('1987-10-20','AA','929'),('1987-10-20','AA','936'),('1987-10-20','AA','937'),('1987-10-20','AA','937'),('1987-10-20','AA','955'),('1987-10-20','AA','955'),('1987-10-20','AA','966'),('1987-10-20','AA','1002'),('1987-10-20','AA','1002'),('1987-10-20','AA','1004'),('1987-10-20','AA','1004'),('1987-10-20','AA','1015'),('1987-10-20','AA','1015'),('1987-10-20','AA','1021'),('1987-10-20','AA','1021'),('1987-10-20','AA','1041'),('1987-10-20','AA','1041'),('1987-10-20','AA','1046'),('1987-10-20','AA','1046'),('1987-10-20','AA','1048'),('1987-10-20','AA','1048'),('1987-10-20','AA','1061'),('1987-10-20','AA','1061'),('1987-10-20','AA','1088'),('1987-10-20','AA','1088'),('1987-10-20','AA','2033'),('1987-10-20','AA','2033'),('1987-10-20','AA','2050'),('1987-10-20','AA','2058'),('1987-10-20','AA','2071'),('1987-10-20','AA','2071'),('1987-10-20','AA','2086'),('1987-10-20','AA','2105'),('1987-10-20','AA','2111'),('1987-10-20','AA','2123'),('1987-10-20','AA','2123'),('1987-10-20','AA','2147'),('1987-10-20','AA','2199'),('1987-10-20','AA','2207'),('1987-10-20','AA','2217'),('1987-10-20','AA','2230'),('1987-10-20','AA','2245'),('1987-10-20','AA','2251'),('1987-10-20','AA','2251'),('1987-10-20','AA','2275'),('1987-10-20','AA','2278'),('1987-10-20','AA','2351'),('1987-10-20','AA','2357'),('1987-10-20','AA','2361'),('1987-10-20','AA','2490'),('1987-10-20','AA','2528'),('1987-10-20','AA','2528'),('1987-10-20','AA','2735'),('1987-10-20','AA','2735'),('1987-10-20','AA','2751'),('1987-10-20','AL','2'),('1987-10-20','AL','2'),('1987-10-20','AL','7'),('1987-10-20','AL','7'),('1987-10-20','AL','26'),('1987-10-20','AL','26'),('1987-10-20','AL','34'),('1987-10-20','AL','34'),('1987-10-20','AL','36'),('1987-10-20','AL','36'),('1987-10-20','AL','45'),('1987-10-20','AL','45'),('1987-10-20','AL','45'),('1987-10-20','AL','104'),('1987-10-20','AL','104'),('1987-10-20','AL','104'),('1987-10-20','AL','109'),('1987-10-20','AL','112'),('1987-10-20','AL','112'),('1987-10-20','AL','123'),('1987-10-20','AL','149'),('1987-10-20','AL','160'),('1987-10-20','AL','160'),('1987-10-20','AL','165'),('1987-10-20','AL','171'),('1987-10-20','AL','171'),('1987-10-20','AL','176'),('1987-10-20','AL','176'),('1987-10-20','AL','179'),('1987-10-20','AL','215'),('1987-10-20','AL','231'),('1987-10-20','AL','263'),('1987-10-20','AL','263'),('1987-10-20','AL','268'),('1987-10-20','AL','268'),('1987-10-20','AL','268'),('1987-10-20','AL','281'),('1987-10-20','AL','281'),('1987-10-20','AL','287'),('1987-10-20','AL','287'),('1987-10-20','AL','309'),('1987-10-20','AL','309'),('1987-10-20','AL','341'),('1987-10-20','AL','344'),('1987-10-20','AL','344'),('1987-10-20','AL','357'),('1987-10-20','AL','357'),('1987-10-20','AL','368'),('1987-10-20','AL','381'),('1987-10-20','AL','396'),('1987-10-20','AL','397'),('1987-10-20','AL','397'),('1987-10-20','AL','416'),('1987-10-20','AL','416'),('1987-10-20','AL','417'),('1987-10-20','AL','438'),('1987-10-20','AL','438'),('1987-10-20','AL','446'),('1987-10-20','AL','451'),('1987-10-20','AL','451'),('1987-10-20','AL','491'),('1987-10-20','AL','491'),('1987-10-20','AL','523'),('1987-10-20','AL','523'),('1987-10-20','AL','523'),('1987-10-20','AL','525'),('1987-10-20','AL','525'),('1987-10-20','AL','533'),('1987-10-20','AL','533'),('1987-10-20','AL','546'),('1987-10-20','AL','546'),('1987-10-20','AL','556'),('1987-10-20','AL','556'),('1987-10-20','AL','601'),('1987-10-20','AL','601'),('1987-10-20','AL','627'),('1987-10-20','AL','629'),('1987-10-20','AL','670'),('1987-10-20','AL','670'),('1987-10-20','AL','670'),('1987-10-20','AL','673'),('1987-10-20','AL','680'),('1987-10-05','AA','2'),('1987-10-05','AA','2'),('1987-10-05','AA','2'),('1987-10-05','AA','7'),('1987-10-05','AA','7'),('1987-10-05','AA','26'),('1987-10-05','AA','34'),('1987-10-05','AA','36'),('1987-10-05','AA','91'),('1987-10-05','AA','101'),('1987-10-05','AA','101'),('1987-10-05','AA','109'),('1987-10-05','AA','109'),('1987-10-05','AA','112'),('1987-10-05','AA','123'),('1987-10-05','AA','123'),('1987-10-05','AA','165'),('1987-10-05','AA','165'),('1987-10-05','AA','165'),('1987-10-05','AA','176'),('1987-10-05','AA','176'),('1987-10-05','AA','176'),('1987-10-05','AA','176'),('1987-10-05','AA','179'),('1987-10-05','AA','179'),('1987-10-05','AA','215'),('1987-10-05','AA','215'),('1987-10-05','AA','231'),('1987-10-05','AA','263'),('1987-10-05','AA','263'),('1987-10-05','AA','281'),('1987-10-05','AA','287'),('1987-10-05','AA','287'),('1987-10-05','AA','309'),('1987-10-05','AA','309'),('1987-10-05','AA','309'),('1987-10-05','AA','341'),('1987-10-05','AA','347'),('1987-10-05','AA','347'),('1987-10-05','AA','368'),('1987-10-05','AA','381'),('1987-10-05','AA','381'),('1987-10-05','AA','381'),('1987-10-05','AA','396'),('1987-10-05','AA','396'),('1987-10-05','AA','397'),('1987-10-05','AA','397'),('1987-10-05','AA','417'),('1987-10-05','AA','417'),('1987-10-05','AA','446'),('1987-10-05','AA','451'),('1987-10-05','AA','451'),('1987-10-05','AA','460'),('1987-10-05','AA','460'),('1987-10-05','AA','491'),('1987-10-05','AA','504'),('1987-10-05','AA','504'),('1987-10-05','AA','519'),('1987-10-05','AA','519'),('1987-10-05','AA','523'),('1987-10-05','AA','523'),('1987-10-05','AA','525'),('1987-10-05','AA','525'),('1987-10-05','AA','525'),('1987-10-05','AA','533'),('1987-10-05','AA','533'),('1987-10-05','AA','533'),('1987-10-05','AA','546'),('1987-10-05','AA','546'),('1987-10-05','AA','546'),('1987-10-05','AA','546'),('1987-10-05','AA','556'),('1987-10-05','AA','556'),('1987-10-05','AA','556'),('1987-10-05','AA','597'),('1987-10-05','AA','597'),('1987-10-05','AA','597'),('1987-10-05','AA','601'),('1987-10-05','AA','601'),('1987-10-05','AA','627'),('1987-10-05','AA','629'),('1987-10-05','AA','629'),('1987-10-05','AA','670'),('1987-10-05','AA','673'),('1987-10-05','AA','673'),('1987-10-05','AA','680'),('1987-10-05','AA','680'),('1987-10-05','AA','817'),('1987-10-05','AA','817'),('1987-10-05','AA','824'),('1987-10-05','AA','824'),('1987-10-05','AA','824'),('1987-10-05','AA','824'),('1987-10-05','AA','832'),('1987-10-05','AA','832'),('1987-10-05','AA','852'),('1987-10-05','AA','852'),('1987-10-05','AA','866'),('1987-10-05','AA','866'),('1987-10-05','AA','871'),('1987-10-05','AA','871'),('1987-10-05','AA','880'),('1987-10-05','AA','880'),('1987-10-05','AA','880'),('1987-10-05','AA','880'),('1987-10-05','AA','883'),('1987-10-05','AA','883'),('1987-10-05','AA','885'),('1987-10-05','AA','885'),('1987-10-05','AA','885'),('1987-10-05','AA','890'),('1987-10-05','AA','890'),('1987-10-05','AA','893'),('1987-10-05','AA','893'),('1987-10-05','AA','905'),('1987-10-05','AA','905'),('1987-10-05','AA','915'),('1987-10-05','AA','929'),('1987-10-05','AA','929'),('1987-10-05','AA','936'),('1987-10-05','AA','936'),('1987-10-05','AA','937'),('1987-10-05','AA','937'),('1987-10-05','AA','955'),('1987-10-05','AA','955'),('1987-10-05','AA','966'),('1987-10-05','AA','1002'),('1987-10-05','AA','1002'),('1987-10-05','AA','1004'),('1987-10-05','AA','1004'),('1987-10-05','AA','1015'),('1987-10-05','AA','1015'),('1987-10-05','AA','1021'),('1987-10-05','AA','1021'),('1987-10-05','AA','1041'),('1987-10-05','AA','1041'),('1987-10-05','AA','1046'),('1987-10-05','AA','1046'),('1987-10-05','AA','1048'),('1987-10-05','AA','1048'),('1987-10-05','AA','1061'),('1987-10-05','AA','1061'),('1987-10-05','AA','1088'),('1987-10-05','AA','1088'),('1987-10-05','AA','2033'),('1987-10-05','AA','2033'),('1987-10-05','AA','2050'),('1987-10-05','AA','2058'),('1987-10-05','AA','2071'),('1987-10-05','AA','2071'),('1987-10-05','AA','2086'),('1987-10-05','AA','2105'),('1987-10-05','AA','2111'),('1987-10-05','AA','2123'),('1987-10-05','AA','2123'),('1987-10-05','AA','2147'),('1987-10-05','AA','2147'),('1987-10-05','AA','2199'),('1987-10-05','AA','2199'),('1987-10-05','AA','2207'),('1987-10-05','AA','2207'),('1987-10-05','AA','2217'),('1987-10-05','AA','2230'),('1987-10-05','AA','2245'),('1987-10-05','AA','2251'),('1987-10-05','AA','2251'),('1987-10-05','AA','2275'),('1987-10-05','AA','2278'),('1987-10-05','AA','2351'),('1987-10-05','AA','2357'),('1987-10-05','AA','2361'),('1987-10-05','AA','2528'),('1987-10-05','AA','2528'),('1987-10-05','AA','2735'),('1987-10-05','AA','2735'),('1987-10-05','AA','2751'),('1987-10-05','AL','2'),('1987-10-05','AL','2'),('1987-10-05','AL','7'),('1987-10-05','AL','7'),('1987-10-05','AL','26'),('1987-10-05','AL','26'),('1987-10-05','AL','36'),('1987-10-05','AL','36'),('1987-10-05','AL','45'),('1987-10-05','AL','45'),('1987-10-05','AL','45'),('1987-10-05','AL','91'),('1987-10-05','AL','91'),('1987-10-05','AL','104'),('1987-10-05','AL','104'),('1987-10-05','AL','104'),('1987-10-05','AL','109'),('1987-10-05','AL','112'),('1987-10-05','AL','112'),('1987-10-05','AL','123'),('1987-10-05','AL','149'),('1987-10-05','AL','160'),('1987-10-05','AL','160'),('1987-10-05','AL','165'),('1987-10-05','AL','171'),('1987-10-05','AL','171'),('1987-10-05','AL','176'),('1987-10-05','AL','176'),('1987-10-05','AL','179'),('1987-10-05','AL','215'),('1987-10-05','AL','231'),('1987-10-05','AL','263'),('1987-10-05','AL','263'),('1987-10-05','AL','268'),('1987-10-05','AL','268'),('1987-10-05','AL','268'),('1987-10-05','AL','281'),('1987-10-05','AL','281'),('1987-10-05','AL','287'),('1987-10-05','AL','287'),('1987-10-05','AL','309'),('1987-10-05','AL','309'),('1987-10-05','AL','341'),('1987-10-05','AL','344'),('1987-10-05','AL','344'),('1987-10-05','AL','357'),('1987-10-05','AL','357'),('1987-10-05','AL','368'),('1987-10-05','AL','381'),('1987-10-05','AL','396'),('1987-10-05','AL','397'),('1987-10-05','AL','397'),('1987-10-05','AL','416'),('1987-10-05','AL','416'),('1987-10-05','AL','417'),('1987-10-05','AL','438'),('1987-10-05','AL','438'),('1987-10-05','AL','446'),('1987-10-05','AL','451'),('1987-10-05','AL','451'),('1987-10-05','AL','491'),('1987-10-05','AL','491'),('1987-10-05','AL','523'),('1987-10-05','AL','523'),('1987-10-05','AL','523'),('1987-10-05','AL','525'),('1987-10-05','AL','525'),('1987-10-05','AL','533'),('1987-10-05','AL','533'),('1987-10-05','AL','546'),('1987-10-05','AL','546'),('1987-10-05','AL','601'),('1987-10-05','AL','601'),('1987-10-05','AL','627'),('1987-10-05','AL','629'),('1987-10-05','AL','670'),('1987-10-05','AL','670'),('1987-10-05','AL','670'),('1987-10-05','AL','673'),('1987-10-05','AL','680'),('1987-10-06','AA','2'),('1987-10-06','AA','2'),('1987-10-06','AA','7'),('1987-10-06','AA','7'),('1987-10-06','AA','34'),('1987-10-06','AA','36'),('1987-10-06','AA','91'),('1987-10-06','AA','101'),('1987-10-06','AA','109'),('1987-10-06','AA','109'),('1987-10-06','AA','112'),('1987-10-06','AA','123'),('1987-10-06','AA','123'),('1987-10-06','AA','165'),('1987-10-06','AA','165'),('1987-10-06','AA','165'),('1987-10-06','AA','176'),('1987-10-06','AA','176'),('1987-10-06','AA','176'),('1987-10-06','AA','176'),('1987-10-06','AA','179'),('1987-10-06','AA','179'),('1987-10-06','AA','215'),('1987-10-06','AA','215'),('1987-10-06','AA','231'),('1987-10-06','AA','231'),('1987-10-06','AA','263'),('1987-10-06','AA','263'),('1987-10-06','AA','268'),('1987-10-06','AA','268'),('1987-10-06','AA','287'),('1987-10-06','AA','287'),('1987-10-06','AA','309'),('1987-10-06','AA','309'),('1987-10-06','AA','309'),('1987-10-06','AA','341'),('1987-10-06','AA','344'),('1987-10-06','AA','344'),('1987-10-06','AA','347'),('1987-10-06','AA','347'),('1987-10-06','AA','368'),('1987-10-06','AA','381'),('1987-10-06','AA','381'),('1987-10-06','AA','381'),('1987-10-06','AA','396'),('1987-10-06','AA','396'),('1987-10-06','AA','397'),('1987-10-06','AA','397'),('1987-10-06','AA','417'),('1987-10-06','AA','417'),('1987-10-06','AA','446'),('1987-10-06','AA','451'),('1987-10-06','AA','451'),('1987-10-06','AA','460'),('1987-10-06','AA','460'),('1987-10-06','AA','491'),('1987-10-06','AA','504'),('1987-10-06','AA','504'),('1987-10-06','AA','519'),('1987-10-06','AA','519'),('1987-10-06','AA','523'),('1987-10-06','AA','523'),('1987-10-06','AA','525'),('1987-10-06','AA','525'),('1987-10-06','AA','525'),('1987-10-06','AA','533'),('1987-10-06','AA','533'),('1987-10-06','AA','533'),('1987-10-06','AA','546'),('1987-10-06','AA','546'),('1987-10-06','AA','546'),('1987-10-06','AA','546'),('1987-10-06','AA','556'),('1987-10-06','AA','556'),('1987-10-06','AA','556'),('1987-10-06','AA','597'),('1987-10-06','AA','597'),('1987-10-06','AA','597'),('1987-10-06','AA','601'),('1987-10-06','AA','601'),('1987-10-06','AA','627'),('1987-10-06','AA','629'),('1987-10-06','AA','629'),('1987-10-06','AA','670'),('1987-10-06','AA','673'),('1987-10-06','AA','673'),('1987-10-06','AA','680'),('1987-10-06','AA','680'),('1987-10-06','AA','817'),('1987-10-06','AA','817'),('1987-10-06','AA','824'),('1987-10-06','AA','824'),('1987-10-06','AA','824'),('1987-10-06','AA','824'),('1987-10-06','AA','832'),('1987-10-06','AA','832'),('1987-10-06','AA','852'),('1987-10-06','AA','852'),('1987-10-06','AA','866'),('1987-10-06','AA','871'),('1987-10-06','AA','871'),('1987-10-06','AA','880'),('1987-10-06','AA','880'),('1987-10-06','AA','880'),('1987-10-06','AA','880'),('1987-10-06','AA','883'),('1987-10-06','AA','883'),('1987-10-06','AA','885'),('1987-10-06','AA','885'),('1987-10-06','AA','885'),('1987-10-06','AA','890'),('1987-10-06','AA','890'),('1987-10-06','AA','893'),('1987-10-06','AA','893'),('1987-10-06','AA','905'),('1987-10-06','AA','905'),('1987-10-06','AA','915'),('1987-10-06','AA','929'),('1987-10-06','AA','929'),('1987-10-06','AA','936'),('1987-10-06','AA','936'),('1987-10-06','AA','937'),('1987-10-06','AA','937'),('1987-10-06','AA','955'),('1987-10-06','AA','955'),('1987-10-06','AA','966'),('1987-10-06','AA','1002'),('1987-10-06','AA','1002'),('1987-10-06','AA','1004'),('1987-10-06','AA','1004'),('1987-10-06','AA','1015'),('1987-10-06','AA','1015'),('1987-10-06','AA','1021'),('1987-10-06','AA','1021'),('1987-10-06','AA','1041'),('1987-10-06','AA','1041'),('1987-10-06','AA','1046'),('1987-10-06','AA','1046'),('1987-10-06','AA','1048'),('1987-10-06','AA','1061'),('1987-10-06','AA','1088'),('1987-10-06','AA','1088'),('1987-10-06','AA','2033'),('1987-10-06','AA','2033'),('1987-10-06','AA','2050'),('1987-10-06','AA','2058'),('1987-10-06','AA','2071'),('1987-10-06','AA','2071'),('1987-10-06','AA','2086'),('1987-10-06','AA','2105'),('1987-10-06','AA','2111'),('1987-10-06','AA','2123'),('1987-10-06','AA','2123'),('1987-10-06','AA','2147'),('1987-10-06','AA','2147'),('1987-10-06','AA','2199'),('1987-10-06','AA','2199'),('1987-10-06','AA','2207'),('1987-10-06','AA','2207'),('1987-10-06','AA','2217'),('1987-10-06','AA','2230'),('1987-10-06','AA','2245'),('1987-10-06','AA','2251'),('1987-10-06','AA','2251'),('1987-10-06','AA','2275'),('1987-10-06','AA','2278'),('1987-10-06','AA','2351'),('1987-10-06','AA','2357'),('1987-10-06','AA','2490'),('1987-10-06','AA','2528'),('1987-10-06','AA','2528'),('1987-10-06','AA','2735'),('1987-10-06','AA','2735'),('1987-10-06','AA','2751'),('1987-10-06','AL','2'),('1987-10-06','AL','2'),('1987-10-06','AL','7'),('1987-10-06','AL','7'),('1987-10-06','AL','26'),('1987-10-06','AL','26'),('1987-10-06','AL','34'),('1987-10-06','AL','34'),('1987-10-06','AL','36'),('1987-10-06','AL','36'),('1987-10-06','AL','45'),('1987-10-06','AL','45'),('1987-10-06','AL','45'),('1987-10-06','AL','91'),('1987-10-06','AL','91'),('1987-10-06','AL','104'),('1987-10-06','AL','104'),('1987-10-06','AL','104'),('1987-10-06','AL','109'),('1987-10-06','AL','112'),('1987-10-06','AL','112'),('1987-10-06','AL','123'),('1987-10-06','AL','149'),('1987-10-06','AL','160'),('1987-10-06','AL','160'),('1987-10-06','AL','165'),('1987-10-06','AL','171'),('1987-10-06','AL','171'),('1987-10-06','AL','176'),('1987-10-06','AL','176'),('1987-10-06','AL','179'),('1987-10-06','AL','231'),('1987-10-06','AL','263'),('1987-10-06','AL','263'),('1987-10-06','AL','268'),('1987-10-06','AL','268'),('1987-10-06','AL','268'),('1987-10-06','AL','281'),('1987-10-06','AL','281'),('1987-10-06','AL','287'),('1987-10-06','AL','287'),('1987-10-06','AL','309'),('1987-10-06','AL','309'),('1987-10-06','AL','341'),('1987-10-06','AL','344'),('1987-10-06','AL','344'),('1987-10-06','AL','357'),('1987-10-06','AL','357'),('1987-10-06','AL','381'),('1987-10-06','AL','397'),('1987-10-06','AL','397'),('1987-10-06','AL','416'),('1987-10-06','AL','416'),('1987-10-06','AL','417'),('1987-10-06','AL','438'),('1987-10-06','AL','438'),('1987-10-06','AL','446'),('1987-10-06','AL','451'),('1987-10-06','AL','451'),('1987-10-06','AL','491'),('1987-10-06','AL','491'),('1987-10-06','AL','523'),('1987-10-06','AL','523'),('1987-10-06','AL','523'),('1987-10-06','AL','525'),('1987-10-06','AL','525'),('1987-10-06','AL','533'),('1987-10-06','AL','533'),('1987-10-06','AL','546'),('1987-10-06','AL','546'),('1987-10-06','AL','601'),('1987-10-06','AL','601'),('1987-10-06','AL','627'),('1987-10-06','AL','629'),('1987-10-06','AL','670'),('1987-10-06','AL','670'),('1987-10-06','AL','670'),('1987-10-06','AL','673'),('1987-10-06','AL','680'),('1987-10-07','AA','2'),('1987-10-07','AA','2'),('1987-10-07','AA','2'),('1987-10-07','AA','7'),('1987-10-07','AA','7'),('1987-10-07','AA','26'),('1987-10-07','AA','34'),('1987-10-07','AA','36'),('1987-10-07','AA','91'),('1987-10-07','AA','101'),('1987-10-07','AA','101'),('1987-10-07','AA','109'),('1987-10-07','AA','112'),('1987-10-07','AA','123'),('1987-10-07','AA','123'),('1987-10-07','AA','160'),('1987-10-07','AA','165'),('1987-10-07','AA','165'),('1987-10-07','AA','165'),('1987-10-07','AA','176'),('1987-10-07','AA','176'),('1987-10-07','AA','176'),('1987-10-07','AA','176'),('1987-10-07','AA','179'),('1987-10-07','AA','179'),('1987-10-07','AA','215'),('1987-10-07','AA','215'),('1987-10-07','AA','231'),('1987-10-07','AA','231'),('1987-10-07','AA','263'),('1987-10-07','AA','263'),('1987-10-07','AA','268'),('1987-10-07','AA','268'),('1987-10-07','AA','281'),('1987-10-07','AA','287'),('1987-10-07','AA','287'),('1987-10-07','AA','309'),('1987-10-07','AA','309'),('1987-10-07','AA','309'),('1987-10-07','AA','341'),('1987-10-07','AA','344'),('1987-10-07','AA','344'),('1987-10-07','AA','347'),('1987-10-07','AA','347'),('1987-10-07','AA','368'),('1987-10-07','AA','381'),('1987-10-07','AA','381'),('1987-10-07','AA','381'),('1987-10-07','AA','396'),('1987-10-07','AA','396'),('1987-10-07','AA','397'),('1987-10-07','AA','397'),('1987-10-07','AA','417'),('1987-10-07','AA','417'),('1987-10-07','AA','446'),('1987-10-07','AA','451'),('1987-10-07','AA','451'),('1987-10-07','AA','460'),('1987-10-07','AA','460'),('1987-10-07','AA','504'),('1987-10-07','AA','504'),('1987-10-07','AA','519'),('1987-10-07','AA','519'),('1987-10-07','AA','523'),('1987-10-07','AA','523'),('1987-10-07','AA','525'),('1987-10-07','AA','525'),('1987-10-07','AA','525'),('1987-10-07','AA','533'),('1987-10-07','AA','533'),('1987-10-07','AA','533'),('1987-10-07','AA','546'),('1987-10-07','AA','546'),('1987-10-07','AA','546'),('1987-10-07','AA','546'),('1987-10-07','AA','556'),('1987-10-07','AA','556'),('1987-10-07','AA','556'),('1987-10-07','AA','597'),('1987-10-07','AA','597'),('1987-10-07','AA','597'),('1987-10-07','AA','601'),('1987-10-07','AA','601'),('1987-10-07','AA','627'),('1987-10-07','AA','629'),('1987-10-07','AA','629'),('1987-10-07','AA','670'),('1987-10-07','AA','673'),('1987-10-07','AA','673'),('1987-10-07','AA','680'),('1987-10-07','AA','680'),('1987-10-07','AA','817'),('1987-10-07','AA','817'),('1987-10-07','AA','824'),('1987-10-07','AA','824'),('1987-10-07','AA','824'),('1987-10-07','AA','824'),('1987-10-07','AA','832'),('1987-10-07','AA','832'),('1987-10-07','AA','852'),('1987-10-07','AA','852'),('1987-10-07','AA','866'),('1987-10-07','AA','866'),('1987-10-07','AA','871'),('1987-10-07','AA','871'),('1987-10-07','AA','880'),('1987-10-07','AA','880'),('1987-10-07','AA','880'),('1987-10-07','AA','880'),('1987-10-07','AA','883'),('1987-10-07','AA','883'),('1987-10-07','AA','885'),('1987-10-07','AA','885'),('1987-10-07','AA','890'),('1987-10-07','AA','890'),('1987-10-07','AA','893'),('1987-10-07','AA','893'),('1987-10-07','AA','905'),('1987-10-07','AA','905'),('1987-10-07','AA','915'),('1987-10-07','AA','929'),('1987-10-07','AA','929'),('1987-10-07','AA','936'),('1987-10-07','AA','936'),('1987-10-07','AA','937'),('1987-10-07','AA','937'),('1987-10-07','AA','955'),('1987-10-07','AA','955'),('1987-10-07','AA','966'),('1987-10-07','AA','1002'),('1987-10-07','AA','1002'),('1987-10-07','AA','1004'),('1987-10-07','AA','1004'),('1987-10-07','AA','1015'),('1987-10-07','AA','1015'),('1987-10-07','AA','1021'),('1987-10-07','AA','1021'),('1987-10-07','AA','1041'),('1987-10-07','AA','1041'),('1987-10-07','AA','1046'),('1987-10-07','AA','1046'),('1987-10-07','AA','1048'),('1987-10-07','AA','1048'),('1987-10-07','AA','1061'),('1987-10-07','AA','1061'),('1987-10-07','AA','1088'),('1987-10-07','AA','1088'),('1987-10-07','AA','2033'),('1987-10-07','AA','2033'),('1987-10-07','AA','2050'),('1987-10-07','AA','2058'),('1987-10-07','AA','2071'),('1987-10-07','AA','2071'),('1987-10-07','AA','2086'),('1987-10-07','AA','2105'),('1987-10-07','AA','2111'),('1987-10-07','AA','2123'),('1987-10-07','AA','2123'),('1987-10-07','AA','2147'),('1987-10-07','AA','2147'),('1987-10-07','AA','2199'),('1987-10-07','AA','2199'),('1987-10-07','AA','2207'),('1987-10-07','AA','2207'),('1987-10-07','AA','2217'),('1987-10-07','AA','2230'),('1987-10-07','AA','2245'),('1987-10-07','AA','2251'),('1987-10-07','AA','2251'),('1987-10-07','AA','2275'),('1987-10-07','AA','2351'),('1987-10-07','AA','2357'),('1987-10-07','AA','2361'),('1987-10-07','AA','2490'),('1987-10-07','AA','2528'),('1987-10-07','AA','2528'),('1987-10-07','AA','2735'),('1987-10-07','AA','2735'),('1987-10-07','AA','2751'),('1987-10-07','AL','2'),('1987-10-07','AL','2'),('1987-10-07','AL','7'),('1987-10-07','AL','7'),('1987-10-07','AL','26'),('1987-10-07','AL','26'),('1987-10-07','AL','34'),('1987-10-07','AL','34'),('1987-10-07','AL','36'),('1987-10-07','AL','36'),('1987-10-07','AL','45'),('1987-10-07','AL','45'),('1987-10-07','AL','45'),('1987-10-07','AL','91'),('1987-10-07','AL','91'),('1987-10-07','AL','104'),('1987-10-07','AL','104'),('1987-10-07','AL','104'),('1987-10-07','AL','109'),('1987-10-07','AL','112'),('1987-10-07','AL','112'),('1987-10-07','AL','123'),('1987-10-07','AL','149'),('1987-10-07','AL','160'),('1987-10-07','AL','160'),('1987-10-07','AL','165'),('1987-10-07','AL','171'),('1987-10-07','AL','171'),('1987-10-07','AL','176'),('1987-10-07','AL','176'),('1987-10-07','AL','179'),('1987-10-07','AL','215'),('1987-10-07','AL','231'),('1987-10-07','AL','263'),('1987-10-07','AL','263'),('1987-10-07','AL','268'),('1987-10-07','AL','268'),('1987-10-07','AL','268'),('1987-10-07','AL','281'),('1987-10-07','AL','281'),('1987-10-07','AL','287'),('1987-10-07','AL','287'),('1987-10-07','AL','309'),('1987-10-07','AL','309'),('1987-10-07','AL','341'),('1987-10-07','AL','344'),('1987-10-07','AL','344'),('1987-10-07','AL','357'),('1987-10-07','AL','357'),('1987-10-07','AL','368'),('1987-10-07','AL','381'),('1987-10-07','AL','396'),('1987-10-07','AL','397'),('1987-10-07','AL','397'),('1987-10-07','AL','416'),('1987-10-07','AL','416'),('1987-10-07','AL','417'),('1987-10-07','AL','438'),('1987-10-07','AL','438'),('1987-10-07','AL','446'),('1987-10-07','AL','451'),('1987-10-07','AL','451'),('1987-10-07','AL','491'),('1987-10-07','AL','491'),('1987-10-07','AL','523'),('1987-10-07','AL','523'),('1987-10-07','AL','523'),('1987-10-07','AL','525'),('1987-10-07','AL','525'),('1987-10-07','AL','533'),('1987-10-07','AL','533'),('1987-10-07','AL','546'),('1987-10-07','AL','546'),('1987-10-07','AL','556'),('1987-10-07','AL','556'),('1987-10-07','AL','601'),('1987-10-07','AL','627'),('1987-10-07','AL','629'),('1987-10-07','AL','670'),('1987-10-07','AL','670'),('1987-10-07','AL','670'),('1987-10-07','AL','673'),('1987-10-07','AL','680'),('1987-10-08','AA','2'),('1987-10-08','AA','2'),('1987-10-08','AA','2'),('1987-10-08','AA','7'),('1987-10-08','AA','7'),('1987-10-08','AA','26'),('1987-10-08','AA','34'),('1987-10-08','AA','36'),('1987-10-08','AA','91'),('1987-10-08','AA','101'),('1987-10-08','AA','101'),('1987-10-08','AA','109'),('1987-10-08','AA','109'),('1987-10-08','AA','112'),('1987-10-08','AA','123'),('1987-10-08','AA','123'),('1987-10-08','AA','160'),('1987-10-08','AA','165'),('1987-10-08','AA','165'),('1987-10-08','AA','165'),('1987-10-08','AA','176'),('1987-10-08','AA','176'),('1987-10-08','AA','176'),('1987-10-08','AA','176'),('1987-10-08','AA','179'),('1987-10-08','AA','179'),('1987-10-08','AA','215'),('1987-10-08','AA','215'),('1987-10-08','AA','231'),('1987-10-08','AA','231'),('1987-10-08','AA','263'),('1987-10-08','AA','263'),('1987-10-08','AA','268'),('1987-10-08','AA','268'),('1987-10-08','AA','281'),('1987-10-08','AA','287'),('1987-10-08','AA','287'),('1987-10-08','AA','309'),('1987-10-08','AA','309'),('1987-10-08','AA','309'),('1987-10-08','AA','344'),('1987-10-08','AA','344'),('1987-10-08','AA','347'),('1987-10-08','AA','347'),('1987-10-08','AA','368'),('1987-10-08','AA','381'),('1987-10-08','AA','381'),('1987-10-08','AA','381'),('1987-10-08','AA','396'),('1987-10-08','AA','396'),('1987-10-08','AA','397'),('1987-10-08','AA','397'),('1987-10-08','AA','417'),('1987-10-08','AA','417'),('1987-10-08','AA','446'),('1987-10-08','AA','451'),('1987-10-08','AA','460'),('1987-10-08','AA','460'),('1987-10-08','AA','491'),('1987-10-08','AA','504'),('1987-10-08','AA','504'),('1987-10-08','AA','519'),('1987-10-08','AA','519'),('1987-10-08','AA','523'),('1987-10-08','AA','525'),('1987-10-08','AA','533'),('1987-10-08','AA','533'),('1987-10-08','AA','533'),('1987-10-08','AA','546'),('1987-10-08','AA','546'),('1987-10-08','AA','546'),('1987-10-08','AA','546'),('1987-10-08','AA','556'),('1987-10-08','AA','556'),('1987-10-08','AA','556'),('1987-10-08','AA','597'),('1987-10-08','AA','597'),('1987-10-08','AA','597'),('1987-10-08','AA','601'),('1987-10-08','AA','601'),('1987-10-08','AA','627'),('1987-10-08','AA','629'),('1987-10-08','AA','629'),('1987-10-08','AA','670'),('1987-10-08','AA','673'),('1987-10-08','AA','673'),('1987-10-08','AA','680'),('1987-10-08','AA','680'),('1987-10-08','AA','817'),('1987-10-08','AA','817'),('1987-10-08','AA','824'),('1987-10-08','AA','824'),('1987-10-08','AA','832'),('1987-10-08','AA','832'),('1987-10-08','AA','852'),('1987-10-08','AA','866'),('1987-10-08','AA','866'),('1987-10-08','AA','871'),('1987-10-08','AA','871'),('1987-10-08','AA','880'),('1987-10-08','AA','880'),('1987-10-08','AA','880'),('1987-10-08','AA','880'),('1987-10-08','AA','883'),('1987-10-08','AA','883'),('1987-10-08','AA','885'),('1987-10-08','AA','885'),('1987-10-08','AA','885'),('1987-10-08','AA','890'),('1987-10-08','AA','890'),('1987-10-08','AA','893'),('1987-10-08','AA','893'),('1987-10-08','AA','905'),('1987-10-08','AA','905'),('1987-10-08','AA','915'),('1987-10-08','AA','929'),('1987-10-08','AA','929'),('1987-10-08','AA','936'),('1987-10-08','AA','936'),('1987-10-08','AA','937'),('1987-10-08','AA','937'),('1987-10-08','AA','955'),('1987-10-08','AA','955'),('1987-10-08','AA','966'),('1987-10-08','AA','1002'),('1987-10-08','AA','1002'),('1987-10-08','AA','1004'),('1987-10-08','AA','1004'),('1987-10-08','AA','1015'),('1987-10-08','AA','1015'),('1987-10-08','AA','1021'),('1987-10-08','AA','1021'),('1987-10-08','AA','1041'),('1987-10-08','AA','1041'),('1987-10-08','AA','1046'),('1987-10-08','AA','1046'),('1987-10-08','AA','1048'),('1987-10-08','AA','1061'),('1987-10-08','AA','1061'),('1987-10-08','AA','1088'),('1987-10-08','AA','1088'),('1987-10-08','AA','2033'),('1987-10-08','AA','2033'),('1987-10-08','AA','2050'),('1987-10-08','AA','2058'),('1987-10-08','AA','2071'),('1987-10-08','AA','2071'),('1987-10-08','AA','2086'),('1987-10-08','AA','2111'),('1987-10-08','AA','2123'),('1987-10-08','AA','2123'),('1987-10-08','AA','2147'),('1987-10-08','AA','2147'),('1987-10-08','AA','2199'),('1987-10-08','AA','2199'),('1987-10-08','AA','2207'),('1987-10-08','AA','2207'),('1987-10-08','AA','2217'),('1987-10-08','AA','2230'),('1987-10-08','AA','2245'),('1987-10-08','AA','2251'),('1987-10-08','AA','2251'),('1987-10-08','AA','2275'),('1987-10-08','AA','2278'),('1987-10-08','AA','2351'),('1987-10-08','AA','2357'),('1987-10-08','AA','2361'),('1987-10-08','AA','2490'),('1987-10-08','AA','2528'),('1987-10-08','AA','2528'),('1987-10-08','AA','2735'),('1987-10-08','AA','2735'),('1987-10-08','AA','2751'),('1987-10-08','AL','2'),('1987-10-08','AL','2'),('1987-10-08','AL','7'),('1987-10-08','AL','7'),('1987-10-08','AL','26'),('1987-10-08','AL','26'),('1987-10-08','AL','34'),('1987-10-08','AL','34'),('1987-10-08','AL','36'),('1987-10-08','AL','36'),('1987-10-08','AL','45'),('1987-10-08','AL','45'),('1987-10-08','AL','45'),('1987-10-08','AL','91'),('1987-10-08','AL','91'),('1987-10-08','AL','104'),('1987-10-08','AL','104'),('1987-10-08','AL','104'),('1987-10-08','AL','109'),('1987-10-08','AL','112'),('1987-10-08','AL','112'),('1987-10-08','AL','123'),('1987-10-08','AL','149'),('1987-10-08','AL','160'),('1987-10-08','AL','160'),('1987-10-08','AL','165'),('1987-10-08','AL','171'),('1987-10-08','AL','171'),('1987-10-08','AL','176'),('1987-10-08','AL','176'),('1987-10-08','AL','179'),('1987-10-08','AL','215'),('1987-10-08','AL','231'),('1987-10-08','AL','263'),('1987-10-08','AL','263'),('1987-10-08','AL','268'),('1987-10-08','AL','268'),('1987-10-08','AL','268'),('1987-10-08','AL','281'),('1987-10-08','AL','281'),('1987-10-08','AL','287'),('1987-10-08','AL','287'),('1987-10-08','AL','309'),('1987-10-08','AL','309'),('1987-10-08','AL','341'),('1987-10-08','AL','344'),('1987-10-08','AL','344'),('1987-10-08','AL','357'),('1987-10-08','AL','357'),('1987-10-08','AL','368'),('1987-10-08','AL','381'),('1987-10-08','AL','396'),('1987-10-08','AL','397'),('1987-10-08','AL','397'),('1987-10-08','AL','416'),('1987-10-08','AL','416'),('1987-10-08','AL','417'),('1987-10-08','AL','438'),('1987-10-08','AL','438'),('1987-10-08','AL','446'),('1987-10-08','AL','451'),('1987-10-08','AL','451'),('1987-10-08','AL','491'),('1987-10-08','AL','491'),('1987-10-08','AL','523'),('1987-10-08','AL','523'),('1987-10-08','AL','523'),('1987-10-08','AL','525'),('1987-10-08','AL','525'),('1987-10-08','AL','533'),('1987-10-08','AL','533'),('1987-10-08','AL','546'),('1987-10-08','AL','546'),('1987-10-08','AL','556'),('1987-10-08','AL','556'),('1987-10-08','AL','601'),('1987-10-08','AL','601'),('1987-10-08','AL','627'),('1987-10-08','AL','629'),('1987-10-08','AL','670'),('1987-10-08','AL','670'),('1987-10-08','AL','670'),('1987-10-08','AL','680'),('1987-10-09','AA','2'),('1987-10-09','AA','2'),('1987-10-09','AA','2'),('1987-10-09','AA','7'),('1987-10-09','AA','7'),('1987-10-09','AA','26'),('1987-10-09','AA','34'),('1987-10-09','AA','36'),('1987-10-09','AA','91'),('1987-10-09','AA','101'),('1987-10-09','AA','101'),('1987-10-09','AA','109'),('1987-10-09','AA','109'),('1987-10-09','AA','112'),('1987-10-09','AA','123'),('1987-10-09','AA','123'),('1987-10-09','AA','160'),('1987-10-09','AA','165'),('1987-10-09','AA','165'),('1987-10-09','AA','176'),('1987-10-09','AA','176'),('1987-10-09','AA','176'),('1987-10-09','AA','176'),('1987-10-09','AA','179'),('1987-10-09','AA','179'),('1987-10-09','AA','215'),('1987-10-09','AA','215'),('1987-10-09','AA','231'),('1987-10-09','AA','263'),('1987-10-09','AA','263'),('1987-10-09','AA','268'),('1987-10-09','AA','268'),('1987-10-09','AA','281'),('1987-10-09','AA','287'),('1987-10-09','AA','309'),('1987-10-09','AA','309'),('1987-10-09','AA','309'),('1987-10-09','AA','344'),('1987-10-09','AA','344'),('1987-10-09','AA','347'),('1987-10-09','AA','347'),('1987-10-09','AA','368'),('1987-10-09','AA','381'),('1987-10-09','AA','381'),('1987-10-09','AA','381'),('1987-10-09','AA','396'),('1987-10-09','AA','396'),('1987-10-09','AA','397'),('1987-10-09','AA','397'),('1987-10-09','AA','417'),('1987-10-09','AA','417'),('1987-10-09','AA','451'),('1987-10-09','AA','451'),('1987-10-09','AA','460'),('1987-10-09','AA','460'),('1987-10-09','AA','491'),('1987-10-09','AA','504'),('1987-10-09','AA','504'),('1987-10-09','AA','519'),('1987-10-09','AA','519'),('1987-10-09','AA','523'),('1987-10-09','AA','523'),('1987-10-09','AA','525'),('1987-10-09','AA','525'),('1987-10-09','AA','525'),('1987-10-09','AA','533'),('1987-10-09','AA','533'),('1987-10-09','AA','533'),('1987-10-09','AA','546'),('1987-10-09','AA','546'),('1987-10-09','AA','546'),('1987-10-09','AA','546'),('1987-10-09','AA','556'),('1987-10-09','AA','556'),('1987-10-09','AA','556'),('1987-10-09','AA','597'),('1987-10-09','AA','597'),('1987-10-09','AA','597'),('1987-10-09','AA','601'),('1987-10-09','AA','601'),('1987-10-09','AA','629'),('1987-10-09','AA','629'),('1987-10-09','AA','670'),('1987-10-09','AA','673'),('1987-10-09','AA','673'),('1987-10-09','AA','680'),('1987-10-09','AA','680'),('1987-10-09','AA','817'),('1987-10-09','AA','824'),('1987-10-09','AA','824'),('1987-10-09','AA','824'),('1987-10-09','AA','824'),('1987-10-09','AA','832'),('1987-10-09','AA','832'),('1987-10-09','AA','852'),('1987-10-09','AA','852'),('1987-10-09','AA','866'),('1987-10-09','AA','866'),('1987-10-09','AA','871'),('1987-10-09','AA','880'),('1987-10-09','AA','880'),('1987-10-09','AA','880'),('1987-10-09','AA','883'),('1987-10-09','AA','883'),('1987-10-09','AA','885'),('1987-10-09','AA','885'),('1987-10-09','AA','885'),('1987-10-09','AA','890'),('1987-10-09','AA','890'),('1987-10-09','AA','893'),('1987-10-09','AA','893'),('1987-10-09','AA','905'),('1987-10-09','AA','905'),('1987-10-09','AA','915'),('1987-10-09','AA','929'),('1987-10-09','AA','929'),('1987-10-09','AA','936'),('1987-10-09','AA','936'),('1987-10-09','AA','937'),('1987-10-09','AA','937'),('1987-10-09','AA','955'),('1987-10-09','AA','955'),('1987-10-09','AA','966'),('1987-10-09','AA','1002'),('1987-10-09','AA','1002'),('1987-10-09','AA','1004'),('1987-10-09','AA','1004'),('1987-10-09','AA','1015'),('1987-10-09','AA','1015'),('1987-10-09','AA','1021'),('1987-10-09','AA','1021'),('1987-10-09','AA','1041'),('1987-10-09','AA','1041'),('1987-10-09','AA','1046'),('1987-10-09','AA','1046'),('1987-10-09','AA','1048'),('1987-10-09','AA','1048'),('1987-10-09','AA','1061'),('1987-10-09','AA','1061'),('1987-10-09','AA','1088'),('1987-10-09','AA','1088'),('1987-10-09','AA','2033'),('1987-10-09','AA','2033'),('1987-10-09','AA','2050'),('1987-10-09','AA','2058'),('1987-10-09','AA','2071'),('1987-10-09','AA','2071'),('1987-10-09','AA','2086'),('1987-10-09','AA','2105'),('1987-10-09','AA','2111'),('1987-10-09','AA','2123'),('1987-10-09','AA','2123'),('1987-10-09','AA','2147'),('1987-10-09','AA','2147'),('1987-10-09','AA','2199'),('1987-10-09','AA','2199'),('1987-10-09','AA','2207'),('1987-10-09','AA','2207'),('1987-10-09','AA','2217'),('1987-10-09','AA','2230'),('1987-10-09','AA','2245'),('1987-10-09','AA','2251'),('1987-10-09','AA','2251'),('1987-10-09','AA','2275'),('1987-10-09','AA','2278'),('1987-10-09','AA','2351'),('1987-10-09','AA','2357'),('1987-10-09','AA','2361'),('1987-10-09','AA','2490'),('1987-10-09','AA','2528'),('1987-10-09','AA','2528'),('1987-10-09','AA','2735'),('1987-10-09','AA','2735'),('1987-10-09','AA','2751'),('1987-10-09','AL','2'),('1987-10-09','AL','2'),('1987-10-09','AL','7'),('1987-10-09','AL','7'),('1987-10-09','AL','26'),('1987-10-09','AL','34'),('1987-10-09','AL','34'),('1987-10-09','AL','36'),('1987-10-09','AL','36'),('1987-10-09','AL','45'),('1987-10-09','AL','45'),('1987-10-09','AL','45'),('1987-10-09','AL','91'),('1987-10-09','AL','91'),('1987-10-09','AL','104'),('1987-10-09','AL','104'),('1987-10-09','AL','104'),('1987-10-09','AL','109'),('1987-10-09','AL','112'),('1987-10-09','AL','112'),('1987-10-09','AL','123'),('1987-10-09','AL','149'),('1987-10-09','AL','160'),('1987-10-09','AL','160'),('1987-10-09','AL','165'),('1987-10-09','AL','171'),('1987-10-09','AL','171'),('1987-10-09','AL','176'),('1987-10-09','AL','176'),('1987-10-09','AL','179'),('1987-10-09','AL','215'),('1987-10-09','AL','231'),('1987-10-09','AL','263'),('1987-10-09','AL','263'),('1987-10-09','AL','268'),('1987-10-09','AL','268'),('1987-10-09','AL','268'),('1987-10-09','AL','281'),('1987-10-09','AL','281'),('1987-10-09','AL','287'),('1987-10-09','AL','287'),('1987-10-09','AL','309'),('1987-10-09','AL','309'),('1987-10-09','AL','341'),('1987-10-09','AL','344'),('1987-10-09','AL','344'),('1987-10-09','AL','368'),('1987-10-09','AL','381'),('1987-10-09','AL','396'),('1987-10-09','AL','397'),('1987-10-09','AL','397'),('1987-10-09','AL','416'),('1987-10-09','AL','416'),('1987-10-09','AL','417'),('1987-10-09','AL','438'),('1987-10-09','AL','438'),('1987-10-09','AL','446'),('1987-10-09','AL','451'),('1987-10-09','AL','491'),('1987-10-09','AL','491'),('1987-10-09','AL','523'),('1987-10-09','AL','523'),('1987-10-09','AL','523'),('1987-10-09','AL','525'),('1987-10-09','AL','525'),('1987-10-09','AL','533'),('1987-10-09','AL','533'),('1987-10-09','AL','546'),('1987-10-09','AL','546'),('1987-10-09','AL','556'),('1987-10-09','AL','556'),('1987-10-09','AL','601'),('1987-10-09','AL','601'),('1987-10-09','AL','627'),('1987-10-09','AL','629'),('1987-10-09','AL','670'),('1987-10-09','AL','670'),('1987-10-09','AL','670'),('1987-10-09','AL','673'),('1987-10-09','AL','680'),('1987-10-10','AA','2'),('1987-10-10','AA','2'),('1987-10-10','AA','2'),('1987-10-10','AA','7'),('1987-10-10','AA','7'),('1987-10-10','AA','26'),('1987-10-10','AA','34'),('1987-10-10','AA','36'),('1987-10-10','AA','91'),('1987-10-10','AA','101'),('1987-10-10','AA','101'),('1987-10-10','AA','109'),('1987-10-10','AA','109'),('1987-10-10','AA','112'),('1987-10-10','AA','123'),('1987-10-10','AA','123'),('1987-10-10','AA','160'),('1987-10-10','AA','165'),('1987-10-10','AA','165'),('1987-10-10','AA','165'),('1987-10-10','AA','176'),('1987-10-10','AA','176'),('1987-10-10','AA','176'),('1987-10-10','AA','176'),('1987-10-10','AA','179'),('1987-10-10','AA','179'),('1987-10-10','AA','215'),('1987-10-10','AA','215'),('1987-10-10','AA','231'),('1987-10-10','AA','263'),('1987-10-10','AA','263'),('1987-10-10','AA','268'),('1987-10-10','AA','268'),('1987-10-10','AA','281'),('1987-10-10','AA','287'),('1987-10-10','AA','287'),('1987-10-10','AA','309'),('1987-10-10','AA','309'),('1987-10-10','AA','309'),('1987-10-10','AA','341'),('1987-10-10','AA','344'),('1987-10-10','AA','344'),('1987-10-10','AA','347'),('1987-10-10','AA','347'),('1987-10-10','AA','368'),('1987-10-10','AA','381'),('1987-10-10','AA','381'),('1987-10-10','AA','381'),('1987-10-10','AA','396'),('1987-10-10','AA','396'),('1987-10-10','AA','397'),('1987-10-10','AA','417'),('1987-10-10','AA','417'),('1987-10-10','AA','446'),('1987-10-10','AA','451'),('1987-10-10','AA','451'),('1987-10-10','AA','460'),('1987-10-10','AA','460'),('1987-10-10','AA','491'),('1987-10-10','AA','491'),('1987-10-10','AA','504'),('1987-10-10','AA','504'),('1987-10-10','AA','519'),('1987-10-10','AA','523'),('1987-10-10','AA','523'),('1987-10-10','AA','525'),('1987-10-10','AA','525'),('1987-10-10','AA','525'),('1987-10-10','AA','533'),('1987-10-10','AA','533'),('1987-10-10','AA','546'),('1987-10-10','AA','546'),('1987-10-10','AA','546'),('1987-10-10','AA','546'),('1987-10-10','AA','556'),('1987-10-10','AA','556'),('1987-10-10','AA','556'),('1987-10-10','AA','597'),('1987-10-10','AA','597'),('1987-10-10','AA','597'),('1987-10-10','AA','601'),('1987-10-10','AA','601'),('1987-10-10','AA','627'),('1987-10-10','AA','629'),('1987-10-10','AA','629'),('1987-10-10','AA','670'),('1987-10-10','AA','673'),('1987-10-10','AA','673'),('1987-10-10','AA','680'),('1987-10-10','AA','680'),('1987-10-10','AA','817'),('1987-10-10','AA','817'),('1987-10-10','AA','824'),('1987-10-10','AA','824'),('1987-10-10','AA','824'),('1987-10-10','AA','824'),('1987-10-10','AA','832'),('1987-10-10','AA','832'),('1987-10-10','AA','852'),('1987-10-10','AA','852'),('1987-10-10','AA','866'),('1987-10-10','AA','866'),('1987-10-10','AA','871'),('1987-10-10','AA','871'),('1987-10-10','AA','880'),('1987-10-10','AA','880'),('1987-10-10','AA','880'),('1987-10-10','AA','880'),('1987-10-10','AA','883'),('1987-10-10','AA','883'),('1987-10-10','AA','885'),('1987-10-10','AA','885'),('1987-10-10','AA','885'),('1987-10-10','AA','890'),('1987-10-10','AA','890'),('1987-10-10','AA','893'),('1987-10-10','AA','893'),('1987-10-10','AA','905'),('1987-10-10','AA','905'),('1987-10-10','AA','915'),('1987-10-10','AA','929'),('1987-10-10','AA','929'),('1987-10-10','AA','936'),('1987-10-10','AA','936'),('1987-10-10','AA','937'),('1987-10-10','AA','955'),('1987-10-10','AA','955'),('1987-10-10','AA','966'),('1987-10-10','AA','1002'),('1987-10-10','AA','1002'),('1987-10-10','AA','1004'),('1987-10-10','AA','1004'),('1987-10-10','AA','1015'),('1987-10-10','AA','1015'),('1987-10-10','AA','1021'),('1987-10-10','AA','1021'),('1987-10-10','AA','1041'),('1987-10-10','AA','1041'),('1987-10-10','AA','1046'),('1987-10-10','AA','1046'),('1987-10-10','AA','1048'),('1987-10-10','AA','1048'),('1987-10-10','AA','1061'),('1987-10-10','AA','1061'),('1987-10-10','AA','1088'),('1987-10-10','AA','1088'),('1987-10-10','AA','2033'),('1987-10-10','AA','2033'),('1987-10-10','AA','2050'),('1987-10-10','AA','2058'),('1987-10-10','AA','2071'),('1987-10-10','AA','2071'),('1987-10-10','AA','2086'),('1987-10-10','AA','2111'),('1987-10-10','AA','2123'),('1987-10-10','AA','2123'),('1987-10-10','AA','2147'),('1987-10-10','AA','2147'),('1987-10-10','AA','2199'),('1987-10-10','AA','2207'),('1987-10-10','AA','2207'),('1987-10-10','AA','2217'),('1987-10-10','AA','2230'),('1987-10-10','AA','2245'),('1987-10-10','AA','2251'),('1987-10-10','AA','2251'),('1987-10-10','AA','2275'),('1987-10-10','AA','2278'),('1987-10-10','AA','2351'),('1987-10-10','AA','2357'),('1987-10-10','AA','2361'),('1987-10-10','AA','2490'),('1987-10-10','AA','2528'),('1987-10-10','AA','2528'),('1987-10-10','AA','2735'),('1987-10-10','AA','2735'),('1987-10-10','AL','2'),('1987-10-10','AL','2'),('1987-10-10','AL','7'),('1987-10-10','AL','7'),('1987-10-10','AL','26'),('1987-10-10','AL','26'),('1987-10-10','AL','34'),('1987-10-10','AL','34'),('1987-10-10','AL','36'),('1987-10-10','AL','36'),('1987-10-10','AL','45'),('1987-10-10','AL','45'),('1987-10-10','AL','45'),('1987-10-10','AL','91'),('1987-10-10','AL','91'),('1987-10-10','AL','104'),('1987-10-10','AL','104'),('1987-10-10','AL','109'),('1987-10-10','AL','112'),('1987-10-10','AL','112'),('1987-10-10','AL','149'),('1987-10-10','AL','160'),('1987-10-10','AL','165'),('1987-10-10','AL','171'),('1987-10-10','AL','171'),('1987-10-10','AL','176'),('1987-10-10','AL','176'),('1987-10-10','AL','179'),('1987-10-10','AL','215'),('1987-10-10','AL','231'),('1987-10-10','AL','263'),('1987-10-10','AL','268'),('1987-10-10','AL','268'),('1987-10-10','AL','268'),('1987-10-10','AL','287'),('1987-10-10','AL','287'),('1987-10-10','AL','309'),('1987-10-10','AL','309'),('1987-10-10','AL','344'),('1987-10-10','AL','344'),('1987-10-10','AL','357'),('1987-10-10','AL','396'),('1987-10-10','AL','397'),('1987-10-10','AL','397'),('1987-10-10','AL','397'),('1987-10-10','AL','416'),('1987-10-10','AL','417'),('1987-10-10','AL','438'),('1987-10-10','AL','438'),('1987-10-10','AL','451'),('1987-10-10','AL','451'),('1987-10-10','AL','491'),('1987-10-10','AL','491'),('1987-10-10','AL','523'),('1987-10-10','AL','523'),('1987-10-10','AL','525'),('1987-10-10','AL','525'),('1987-10-10','AL','533'),('1987-10-10','AL','546'),('1987-10-10','AL','546'),('1987-10-10','AL','556'),('1987-10-10','AL','556'),('1987-10-10','AL','601'),('1987-10-10','AL','601'),('1987-10-10','AL','627'),('1987-10-10','AL','670'),('1987-10-10','AL','673'),('1987-10-10','AL','680'),('1987-10-10','AL','905'),('1987-10-10','AL','936'),('1987-10-10','AL','966'),('1987-10-11','AA','2'),('1987-10-11','AA','2'),('1987-10-11','AA','2'),('1987-10-11','AA','7'),('1987-10-11','AA','7'),('1987-10-11','AA','26'),('1987-10-11','AA','36'),('1987-10-11','AA','91'),('1987-10-11','AA','101'),('1987-10-11','AA','101'),('1987-10-11','AA','109'),('1987-10-11','AA','109'),('1987-10-11','AA','112'),('1987-10-11','AA','123'),('1987-10-11','AA','160'),('1987-10-11','AA','165'),('1987-10-11','AA','165'),('1987-10-11','AA','165'),('1987-10-11','AA','176'),('1987-10-11','AA','176'),('1987-10-11','AA','176'),('1987-10-11','AA','176'),('1987-10-11','AA','179'),('1987-10-11','AA','179'),('1987-10-11','AA','215'),('1987-10-11','AA','215'),('1987-10-11','AA','231'),('1987-10-11','AA','263'),('1987-10-11','AA','263'),('1987-10-11','AA','268'),('1987-10-11','AA','268'),('1987-10-11','AA','281'),('1987-10-11','AA','287'),('1987-10-11','AA','287'),('1987-10-11','AA','309'),('1987-10-11','AA','309'),('1987-10-11','AA','309'),('1987-10-11','AA','341'),('1987-10-11','AA','344'),('1987-10-11','AA','344'),('1987-10-11','AA','347'),('1987-10-11','AA','347'),('1987-10-11','AA','368'),('1987-10-11','AA','381'),('1987-10-11','AA','381'),('1987-10-11','AA','381'),('1987-10-11','AA','396'),('1987-10-11','AA','396'),('1987-10-11','AA','397'),('1987-10-11','AA','397'),('1987-10-11','AA','417'),('1987-10-11','AA','417'),('1987-10-11','AA','446'),('1987-10-11','AA','451'),('1987-10-11','AA','451'),('1987-10-11','AA','460'),('1987-10-11','AA','460'),('1987-10-11','AA','491'),('1987-10-11','AA','491'),('1987-10-11','AA','504'),('1987-10-11','AA','504'),('1987-10-11','AA','519'),('1987-10-11','AA','519'),('1987-10-11','AA','523'),('1987-10-11','AA','523'),('1987-10-11','AA','525'),('1987-10-11','AA','525'),('1987-10-11','AA','525'),('1987-10-11','AA','533'),('1987-10-11','AA','533'),('1987-10-11','AA','533'),('1987-10-11','AA','546'),('1987-10-11','AA','546'),('1987-10-11','AA','546'),('1987-10-11','AA','546'),('1987-10-11','AA','556'),('1987-10-11','AA','556'),('1987-10-11','AA','556'),('1987-10-11','AA','597'),('1987-10-11','AA','597'),('1987-10-11','AA','597'),('1987-10-11','AA','601'),('1987-10-11','AA','601'),('1987-10-11','AA','627'),('1987-10-11','AA','629'),('1987-10-11','AA','629'),('1987-10-11','AA','670'),('1987-10-11','AA','673'),('1987-10-11','AA','673'),('1987-10-11','AA','680'),('1987-10-11','AA','680'),('1987-10-11','AA','817'),('1987-10-11','AA','817'),('1987-10-11','AA','824'),('1987-10-11','AA','824'),('1987-10-11','AA','824'),('1987-10-11','AA','824'),('1987-10-11','AA','832'),('1987-10-11','AA','832'),('1987-10-11','AA','852'),('1987-10-11','AA','852'),('1987-10-11','AA','866'),('1987-10-11','AA','866'),('1987-10-11','AA','871'),('1987-10-11','AA','871'),('1987-10-11','AA','880'),('1987-10-11','AA','880'),('1987-10-11','AA','880'),('1987-10-11','AA','880'),('1987-10-11','AA','883'),('1987-10-11','AA','883'),('1987-10-11','AA','885'),('1987-10-11','AA','885'),('1987-10-11','AA','885'),('1987-10-11','AA','890'),('1987-10-11','AA','890'),('1987-10-11','AA','893'),('1987-10-11','AA','893'),('1987-10-11','AA','905'),('1987-10-11','AA','905'),('1987-10-11','AA','915'),('1987-10-11','AA','929'),('1987-10-11','AA','929'),('1987-10-11','AA','936'),('1987-10-11','AA','936'),('1987-10-11','AA','937'),('1987-10-11','AA','937'),('1987-10-11','AA','955'),('1987-10-11','AA','955'),('1987-10-11','AA','966'),('1987-10-11','AA','1002'),('1987-10-11','AA','1002'),('1987-10-11','AA','1004'),('1987-10-11','AA','1004'),('1987-10-11','AA','1015'),('1987-10-11','AA','1015'),('1987-10-11','AA','1021'),('1987-10-11','AA','1021'),('1987-10-11','AA','1041'),('1987-10-11','AA','1041'),('1987-10-11','AA','1046'),('1987-10-11','AA','1046'),('1987-10-11','AA','1048'),('1987-10-11','AA','1048'),('1987-10-11','AA','1061'),('1987-10-11','AA','1061'),('1987-10-11','AA','1088'),('1987-10-11','AA','1088'),('1987-10-11','AA','2033'),('1987-10-11','AA','2033'),('1987-10-11','AA','2058'),('1987-10-11','AA','2071'),('1987-10-11','AA','2071'),('1987-10-11','AA','2086'),('1987-10-11','AA','2111'),('1987-10-11','AA','2123'),('1987-10-11','AA','2123'),('1987-10-11','AA','2147'),('1987-10-11','AA','2147'),('1987-10-11','AA','2199'),('1987-10-11','AA','2199'),('1987-10-11','AA','2199'),('1987-10-11','AA','2207'),('1987-10-11','AA','2207'),('1987-10-11','AA','2230'),('1987-10-11','AA','2245'),('1987-10-11','AA','2251'),('1987-10-11','AA','2251'),('1987-10-11','AA','2275'),('1987-10-11','AA','2278'),('1987-10-11','AA','2351'),('1987-10-11','AA','2357'),('1987-10-11','AA','2361'),('1987-10-11','AA','2490'),('1987-10-11','AA','2528'),('1987-10-11','AA','2528'),('1987-10-11','AA','2735'),('1987-10-11','AA','2735'),('1987-10-11','AA','2751'),('1987-10-11','AL','2'),('1987-10-11','AL','2'),('1987-10-11','AL','7'),('1987-10-11','AL','7'),('1987-10-11','AL','26'),('1987-10-11','AL','26'),('1987-10-11','AL','34'),('1987-10-11','AL','34'),('1987-10-11','AL','36'),('1987-10-11','AL','36'),('1987-10-11','AL','45'),('1987-10-11','AL','45'),('1987-10-11','AL','45'),('1987-10-11','AL','91'),('1987-10-11','AL','91'),('1987-10-11','AL','104'),('1987-10-11','AL','104'),('1987-10-11','AL','104'),('1987-10-11','AL','112'),('1987-10-11','AL','123'),('1987-10-11','AL','149'),('1987-10-11','AL','160'),('1987-10-11','AL','160'),('1987-10-11','AL','165'),('1987-10-11','AL','171'),('1987-10-11','AL','171'),('1987-10-11','AL','176'),('1987-10-11','AL','176'),('1987-10-11','AL','179'),('1987-10-11','AL','215'),('1987-10-11','AL','231'),('1987-10-11','AL','263'),('1987-10-11','AL','263'),('1987-10-11','AL','281'),('1987-10-11','AL','281'),('1987-10-11','AL','309'),('1987-10-11','AL','309'),('1987-10-11','AL','341'),('1987-10-11','AL','344'),('1987-10-11','AL','344'),('1987-10-11','AL','357'),('1987-10-11','AL','357'),('1987-10-11','AL','368'),('1987-10-11','AL','396'),('1987-10-11','AL','416'),('1987-10-11','AL','416'),('1987-10-11','AL','417'),('1987-10-11','AL','438'),('1987-10-11','AL','438'),('1987-10-11','AL','446'),('1987-10-11','AL','451'),('1987-10-11','AL','491'),('1987-10-11','AL','491'),('1987-10-11','AL','523'),('1987-10-11','AL','523'),('1987-10-11','AL','523'),('1987-10-11','AL','525'),('1987-10-11','AL','525'),('1987-10-11','AL','533'),('1987-10-11','AL','533'),('1987-10-11','AL','546'),('1987-10-11','AL','546'),('1987-10-11','AL','556'),('1987-10-11','AL','556'),('1987-10-11','AL','601'),('1987-10-11','AL','601'),('1987-10-11','AL','627'),('1987-10-11','AL','629'),('1987-10-11','AL','670'),('1987-10-11','AL','670'),('1987-10-11','AL','670'),('1987-10-11','AL','673'),('1987-10-11','AL','680'),('1987-10-11','AL','937'),('1987-10-11','AL','937'),('1987-10-11','AL','955'),('1987-10-21','AA','2'),('1987-10-21','AA','2'),('1987-10-21','AA','2'),('1987-10-21','AA','7'),('1987-10-21','AA','7'),('1987-10-21','AA','26'),('1987-10-21','AA','34'),('1987-10-21','AA','36'),('1987-10-21','AA','91'),('1987-10-21','AA','101'),('1987-10-21','AA','101'),('1987-10-21','AA','109'),('1987-10-21','AA','109'),('1987-10-21','AA','123'),('1987-10-21','AA','123'),('1987-10-21','AA','160'),('1987-10-21','AA','165'),('1987-10-21','AA','165'),('1987-10-21','AA','165'),('1987-10-21','AA','176'),('1987-10-21','AA','176'),('1987-10-21','AA','176'),('1987-10-21','AA','176'),('1987-10-21','AA','179'),('1987-10-21','AA','179'),('1987-10-21','AA','215'),('1987-10-21','AA','231'),('1987-10-21','AA','231'),('1987-10-21','AA','263'),('1987-10-21','AA','263'),('1987-10-21','AA','268'),('1987-10-21','AA','268'),('1987-10-21','AA','281'),('1987-10-21','AA','287'),('1987-10-21','AA','287'),('1987-10-21','AA','309'),('1987-10-21','AA','309'),('1987-10-21','AA','309'),('1987-10-21','AA','341'),('1987-10-21','AA','344'),('1987-10-21','AA','344'),('1987-10-21','AA','347'),('1987-10-21','AA','347'),('1987-10-21','AA','368'),('1987-10-21','AA','381'),('1987-10-21','AA','381'),('1987-10-21','AA','381'),('1987-10-21','AA','396'),('1987-10-21','AA','396'),('1987-10-21','AA','397'),('1987-10-21','AA','397'),('1987-10-21','AA','417'),('1987-10-21','AA','417'),('1987-10-21','AA','446'),('1987-10-21','AA','451'),('1987-10-21','AA','451'),('1987-10-21','AA','460'),('1987-10-21','AA','460'),('1987-10-21','AA','491'),('1987-10-21','AA','504'),('1987-10-21','AA','504'),('1987-10-21','AA','519'),('1987-10-21','AA','519'),('1987-10-21','AA','523'),('1987-10-21','AA','523'),('1987-10-21','AA','525'),('1987-10-21','AA','525'),('1987-10-21','AA','525'),('1987-10-21','AA','533'),('1987-10-21','AA','533'),('1987-10-21','AA','533'),('1987-10-21','AA','546'),('1987-10-21','AA','546'),('1987-10-21','AA','546'),('1987-10-21','AA','546'),('1987-10-21','AA','556'),('1987-10-21','AA','556'),('1987-10-21','AA','556'),('1987-10-21','AA','597'),('1987-10-21','AA','597'),('1987-10-21','AA','597'),('1987-10-21','AA','601'),('1987-10-21','AA','601'),('1987-10-21','AA','627'),('1987-10-21','AA','629'),('1987-10-21','AA','629'),('1987-10-21','AA','673'),('1987-10-21','AA','673'),('1987-10-21','AA','680'),('1987-10-21','AA','680'),('1987-10-21','AA','817'),('1987-10-21','AA','817'),('1987-10-21','AA','824'),('1987-10-21','AA','824'),('1987-10-21','AA','824'),('1987-10-21','AA','832'),('1987-10-21','AA','832'),('1987-10-21','AA','852'),('1987-10-21','AA','866'),('1987-10-21','AA','866'),('1987-10-21','AA','871'),('1987-10-21','AA','871'),('1987-10-21','AA','880'),('1987-10-21','AA','880'),('1987-10-21','AA','880'),('1987-10-21','AA','880'),('1987-10-21','AA','883'),('1987-10-21','AA','883'),('1987-10-21','AA','885'),('1987-10-21','AA','885'),('1987-10-21','AA','885'),('1987-10-21','AA','890'),('1987-10-21','AA','890'),('1987-10-21','AA','893'),('1987-10-21','AA','893'),('1987-10-21','AA','905'),('1987-10-21','AA','905'),('1987-10-21','AA','915'),('1987-10-21','AA','929'),('1987-10-21','AA','929'),('1987-10-21','AA','936'),('1987-10-21','AA','936'),('1987-10-21','AA','937'),('1987-10-21','AA','1002'),('1987-10-21','AA','1002'),('1987-10-21','AA','1004'),('1987-10-21','AA','1004'),('1987-10-21','AA','1015'),('1987-10-21','AA','1021'),('1987-10-21','AA','1021'),('1987-10-21','AA','1041'),('1987-10-21','AA','1041'),('1987-10-21','AA','1046'),('1987-10-21','AA','1046'),('1987-10-21','AA','1048'),('1987-10-21','AA','1048'),('1987-10-21','AA','1061'),('1987-10-21','AA','1061'),('1987-10-21','AA','1088'),('1987-10-21','AA','1088'),('1987-10-21','AA','2033'),('1987-10-21','AA','2033'),('1987-10-21','AA','2050'),('1987-10-21','AA','2071'),('1987-10-21','AA','2086'),('1987-10-21','AA','2105'),('1987-10-21','AA','2111'),('1987-10-21','AA','2123'),('1987-10-21','AA','2123'),('1987-10-21','AA','2147'),('1987-10-21','AA','2147'),('1987-10-21','AA','2199'),('1987-10-21','AA','2199'),('1987-10-21','AA','2207'),('1987-10-21','AA','2207'),('1987-10-21','AA','2217'),('1987-10-21','AA','2230'),('1987-10-21','AA','2245'),('1987-10-21','AA','2251'),('1987-10-21','AA','2251'),('1987-10-21','AA','2275'),('1987-10-21','AA','2278'),('1987-10-21','AA','2351'),('1987-10-21','AA','2357'),('1987-10-21','AA','2361'),('1987-10-21','AA','2490'),('1987-10-21','AA','2528'),('1987-10-21','AA','2528'),('1987-10-21','AA','2735'),('1987-10-21','AA','2735'),('1987-10-21','AA','2751'),('1987-10-21','AL','2'),('1987-10-21','AL','2'),('1987-10-21','AL','7'),('1987-10-21','AL','7'),('1987-10-21','AL','26'),('1987-10-21','AL','26'),('1987-10-21','AL','34'),('1987-10-21','AL','34'),('1987-10-21','AL','36'),('1987-10-21','AL','36'),('1987-10-21','AL','45'),('1987-10-21','AL','45'),('1987-10-21','AL','45'),('1987-10-21','AL','91'),('1987-10-21','AL','91'),('1987-10-21','AL','104'),('1987-10-21','AL','104'),('1987-10-21','AL','104'),('1987-10-21','AL','109'),('1987-10-21','AL','112'),('1987-10-21','AL','112'),('1987-10-21','AL','123'),('1987-10-21','AL','149'),('1987-10-21','AL','160'),('1987-10-21','AL','160'),('1987-10-21','AL','165'),('1987-10-21','AL','171'),('1987-10-21','AL','171'),('1987-10-21','AL','176'),('1987-10-21','AL','176'),('1987-10-21','AL','179'),('1987-10-21','AL','215'),('1987-10-21','AL','263'),('1987-10-21','AL','263'),('1987-10-21','AL','268'),('1987-10-21','AL','268'),('1987-10-21','AL','268'),('1987-10-21','AL','281'),('1987-10-21','AL','281'),('1987-10-21','AL','287'),('1987-10-21','AL','287'),('1987-10-21','AL','309'),('1987-10-21','AL','309'),('1987-10-21','AL','341'),('1987-10-21','AL','344'),('1987-10-21','AL','344'),('1987-10-21','AL','357'),('1987-10-21','AL','357'),('1987-10-21','AL','368'),('1987-10-21','AL','381'),('1987-10-21','AL','396'),('1987-10-21','AL','397'),('1987-10-21','AL','397'),('1987-10-21','AL','416'),('1987-10-21','AL','416'),('1987-10-21','AL','417'),('1987-10-21','AL','438'),('1987-10-21','AL','438'),('1987-10-21','AL','446'),('1987-10-21','AL','451'),('1987-10-21','AL','451'),('1987-10-21','AL','491'),('1987-10-21','AL','491'),('1987-10-21','AL','523'),('1987-10-21','AL','523'),('1987-10-21','AL','523'),('1987-10-21','AL','525'),('1987-10-21','AL','525'),('1987-10-21','AL','533'),('1987-10-21','AL','533'),('1987-10-21','AL','546'),('1987-10-21','AL','546'),('1987-10-21','AL','556'),('1987-10-21','AL','556'),('1987-10-21','AL','601'),('1987-10-21','AL','601'),('1987-10-21','AL','627'),('1987-10-21','AL','629'),('1987-10-21','AL','670'),('1987-10-21','AL','670'),('1987-10-21','AL','670'),('1987-10-21','AL','673'),('1987-10-21','AL','680'),('1987-10-22','AA','2'),('1987-10-22','AA','2'),('1987-10-22','AA','2'),('1987-10-22','AA','7'),('1987-10-22','AA','7'),('1987-10-22','AA','26'),('1987-10-22','AA','34'),('1987-10-22','AA','36'),('1987-10-22','AA','91'),('1987-10-22','AA','101'),('1987-10-22','AA','101'),('1987-10-22','AA','109'),('1987-10-22','AA','109'),('1987-10-22','AA','112'),('1987-10-22','AA','123'),('1987-10-22','AA','123'),('1987-10-22','AA','160'),('1987-10-22','AA','165'),('1987-10-22','AA','165'),('1987-10-22','AA','165'),('1987-10-22','AA','176'),('1987-10-22','AA','176'),('1987-10-22','AA','176'),('1987-10-22','AA','179'),('1987-10-22','AA','215'),('1987-10-22','AA','215'),('1987-10-22','AA','231'),('1987-10-22','AA','231'),('1987-10-22','AA','263'),('1987-10-22','AA','263'),('1987-10-22','AA','268'),('1987-10-22','AA','268'),('1987-10-22','AA','281'),('1987-10-22','AA','287'),('1987-10-22','AA','287'),('1987-10-22','AA','309'),('1987-10-22','AA','309'),('1987-10-22','AA','309'),('1987-10-22','AA','341'),('1987-10-22','AA','344'),('1987-10-22','AA','344'),('1987-10-22','AA','347'),('1987-10-22','AA','368'),('1987-10-22','AA','381'),('1987-10-22','AA','381'),('1987-10-22','AA','381'),('1987-10-22','AA','396'),('1987-10-22','AA','396'),('1987-10-22','AA','397'),('1987-10-22','AA','397'),('1987-10-22','AA','417'),('1987-10-22','AA','417'),('1987-10-22','AA','446'),('1987-10-22','AA','451'),('1987-10-22','AA','451'),('1987-10-22','AA','460'),('1987-10-22','AA','460'),('1987-10-22','AA','491'),('1987-10-22','AA','504'),('1987-10-22','AA','519'),('1987-10-22','AA','519'),('1987-10-22','AA','523'),('1987-10-22','AA','523'),('1987-10-22','AA','525'),('1987-10-22','AA','525'),('1987-10-22','AA','533'),('1987-10-22','AA','533'),('1987-10-22','AA','533'),('1987-10-22','AA','546'),('1987-10-22','AA','546'),('1987-10-22','AA','546'),('1987-10-22','AA','546'),('1987-10-22','AA','556'),('1987-10-22','AA','556'),('1987-10-22','AA','556'),('1987-10-22','AA','597'),('1987-10-22','AA','597'),('1987-10-22','AA','597'),('1987-10-22','AA','601'),('1987-10-22','AA','601'),('1987-10-22','AA','627'),('1987-10-22','AA','629'),('1987-10-22','AA','629'),('1987-10-22','AA','673'),('1987-10-22','AA','673'),('1987-10-22','AA','680'),('1987-10-22','AA','680'),('1987-10-22','AA','817'),('1987-10-22','AA','817'),('1987-10-22','AA','824'),('1987-10-22','AA','824'),('1987-10-22','AA','824'),('1987-10-22','AA','832'),('1987-10-22','AA','832'),('1987-10-22','AA','852'),('1987-10-22','AA','852'),('1987-10-22','AA','866'),('1987-10-22','AA','866'),('1987-10-22','AA','871'),('1987-10-22','AA','871'),('1987-10-22','AA','880'),('1987-10-22','AA','880'),('1987-10-22','AA','880'),('1987-10-22','AA','880'),('1987-10-22','AA','883'),('1987-10-22','AA','883'),('1987-10-22','AA','885'),('1987-10-22','AA','885'),('1987-10-22','AA','885'),('1987-10-22','AA','890'),('1987-10-22','AA','890'),('1987-10-22','AA','893'),('1987-10-22','AA','893'),('1987-10-22','AA','905'),('1987-10-22','AA','905'),('1987-10-22','AA','915'),('1987-10-22','AA','929'),('1987-10-22','AA','929'),('1987-10-22','AA','936'),('1987-10-22','AA','936'),('1987-10-22','AA','937'),('1987-10-22','AA','937'),('1987-10-22','AA','955'),('1987-10-22','AA','955'),('1987-10-22','AA','1002'),('1987-10-22','AA','1002'),('1987-10-22','AA','1004'),('1987-10-22','AA','1015'),('1987-10-22','AA','1015'),('1987-10-22','AA','1021'),('1987-10-22','AA','1021'),('1987-10-22','AA','1041'),('1987-10-22','AA','1041'),('1987-10-22','AA','1046'),('1987-10-22','AA','1046'),('1987-10-22','AA','1048'),('1987-10-22','AA','1048'),('1987-10-22','AA','1061'),('1987-10-22','AA','1061'),('1987-10-22','AA','1088'),('1987-10-22','AA','1088'),('1987-10-22','AA','2033'),('1987-10-22','AA','2058'),('1987-10-22','AA','2071'),('1987-10-22','AA','2071'),('1987-10-22','AA','2086'),('1987-10-22','AA','2105'),('1987-10-22','AA','2111'),('1987-10-22','AA','2147'),('1987-10-22','AA','2147'),('1987-10-22','AA','2199'),('1987-10-22','AA','2207'),('1987-10-22','AA','2207'),('1987-10-22','AA','2217'),('1987-10-22','AA','2230'),('1987-10-22','AA','2245'),('1987-10-22','AA','2251'),('1987-10-22','AA','2251'),('1987-10-22','AA','2275'),('1987-10-22','AA','2278'),('1987-10-22','AA','2351'),('1987-10-22','AA','2357'),('1987-10-22','AA','2361'),('1987-10-22','AA','2490'),('1987-10-22','AA','2528'),('1987-10-22','AA','2528'),('1987-10-22','AA','2735'),('1987-10-22','AA','2735'),('1987-10-22','AA','2751'),('1987-10-22','AL','2'),('1987-10-22','AL','2'),('1987-10-22','AL','7'),('1987-10-22','AL','7'),('1987-10-22','AL','26'),('1987-10-22','AL','26'),('1987-10-22','AL','34'),('1987-10-22','AL','34'),('1987-10-22','AL','36'),('1987-10-22','AL','36'),('1987-10-22','AL','45'),('1987-10-22','AL','45'),('1987-10-22','AL','45'),('1987-10-22','AL','91'),('1987-10-22','AL','91'),('1987-10-22','AL','104'),('1987-10-22','AL','104'),('1987-10-22','AL','104'),('1987-10-22','AL','109'),('1987-10-22','AL','112'),('1987-10-22','AL','112'),('1987-10-22','AL','123'),('1987-10-22','AL','149'),('1987-10-22','AL','160'),('1987-10-22','AL','160'),('1987-10-22','AL','165'),('1987-10-22','AL','171'),('1987-10-22','AL','171'),('1987-10-22','AL','176'),('1987-10-22','AL','176'),('1987-10-22','AL','179'),('1987-10-22','AL','215'),('1987-10-22','AL','231'),('1987-10-22','AL','263'),('1987-10-22','AL','263'),('1987-10-22','AL','268'),('1987-10-22','AL','268'),('1987-10-22','AL','268'),('1987-10-22','AL','281'),('1987-10-22','AL','281'),('1987-10-22','AL','287'),('1987-10-22','AL','287'),('1987-10-22','AL','309'),('1987-10-22','AL','309'),('1987-10-22','AL','341'),('1987-10-22','AL','344'),('1987-10-22','AL','344'),('1987-10-22','AL','357'),('1987-10-22','AL','357'),('1987-10-22','AL','368'),('1987-10-22','AL','381'),('1987-10-22','AL','396'),('1987-10-22','AL','397'),('1987-10-22','AL','397'),('1987-10-22','AL','416'),('1987-10-22','AL','417'),('1987-10-22','AL','438'),('1987-10-22','AL','438'),('1987-10-22','AL','446'),('1987-10-22','AL','451'),('1987-10-22','AL','451'),('1987-10-22','AL','491'),('1987-10-22','AL','491'),('1987-10-22','AL','523'),('1987-10-22','AL','523'),('1987-10-22','AL','523'),('1987-10-22','AL','525'),('1987-10-22','AL','525'),('1987-10-22','AL','533'),('1987-10-22','AL','533'),('1987-10-22','AL','546'),('1987-10-22','AL','546'),('1987-10-22','AL','556'),('1987-10-22','AL','556'),('1987-10-22','AL','601'),('1987-10-22','AL','601'),('1987-10-22','AL','627'),('1987-10-22','AL','629'),('1987-10-22','AL','670'),('1987-10-22','AL','670'),('1987-10-22','AL','670'),('1987-10-22','AL','673'),('1987-10-22','AL','680'),('1987-10-23','AA','2'),('1987-10-23','AA','2'),('1987-10-23','AA','2'),('1987-10-23','AA','7'),('1987-10-23','AA','7'),('1987-10-23','AA','26'),('1987-10-23','AA','34'),('1987-10-23','AA','36'),('1987-10-23','AA','91'),('1987-10-23','AA','101'),('1987-10-23','AA','109'),('1987-10-23','AA','109'),('1987-10-23','AA','112'),('1987-10-23','AA','123'),('1987-10-23','AA','123'),('1987-10-23','AA','160'),('1987-10-23','AA','165'),('1987-10-23','AA','165'),('1987-10-23','AA','165'),('1987-10-23','AA','176'),('1987-10-23','AA','176'),('1987-10-23','AA','176'),('1987-10-23','AA','176'),('1987-10-23','AA','179'),('1987-10-23','AA','179'),('1987-10-23','AA','215'),('1987-10-23','AA','215'),('1987-10-23','AA','231'),('1987-10-23','AA','231'),('1987-10-23','AA','263'),('1987-10-23','AA','263'),('1987-10-23','AA','268'),('1987-10-23','AA','268'),('1987-10-23','AA','281'),('1987-10-23','AA','287'),('1987-10-23','AA','287'),('1987-10-23','AA','309'),('1987-10-23','AA','309'),('1987-10-23','AA','309'),('1987-10-23','AA','341'),('1987-10-23','AA','344'),('1987-10-23','AA','344'),('1987-10-23','AA','347'),('1987-10-23','AA','368'),('1987-10-23','AA','381'),('1987-10-23','AA','381'),('1987-10-23','AA','381'),('1987-10-23','AA','396'),('1987-10-23','AA','396'),('1987-10-23','AA','397'),('1987-10-23','AA','397'),('1987-10-23','AA','417'),('1987-10-23','AA','417'),('1987-10-23','AA','446'),('1987-10-23','AA','451'),('1987-10-23','AA','451'),('1987-10-23','AA','460'),('1987-10-23','AA','491'),('1987-10-23','AA','504'),('1987-10-23','AA','504'),('1987-10-23','AA','519'),('1987-10-23','AA','519'),('1987-10-23','AA','523'),('1987-10-23','AA','523'),('1987-10-23','AA','525'),('1987-10-23','AA','533'),('1987-10-23','AA','533'),('1987-10-23','AA','533'),('1987-10-23','AA','546'),('1987-10-23','AA','546'),('1987-10-23','AA','546'),('1987-10-23','AA','546'),('1987-10-23','AA','556'),('1987-10-23','AA','556'),('1987-10-23','AA','556'),('1987-10-23','AA','597'),('1987-10-23','AA','597'),('1987-10-23','AA','601'),('1987-10-23','AA','601'),('1987-10-23','AA','627'),('1987-10-23','AA','629'),('1987-10-23','AA','629'),('1987-10-23','AA','673'),('1987-10-23','AA','680'),('1987-10-23','AA','680'),('1987-10-23','AA','817'),('1987-10-23','AA','817'),('1987-10-23','AA','824'),('1987-10-23','AA','824'),('1987-10-23','AA','824'),('1987-10-23','AA','824'),('1987-10-23','AA','832'),('1987-10-23','AA','832'),('1987-10-23','AA','852'),('1987-10-23','AA','866'),('1987-10-23','AA','866'),('1987-10-23','AA','871'),('1987-10-23','AA','871'),('1987-10-23','AA','880'),('1987-10-23','AA','880'),('1987-10-23','AA','880'),('1987-10-23','AA','880'),('1987-10-23','AA','883'),('1987-10-23','AA','883'),('1987-10-23','AA','885'),('1987-10-23','AA','885'),('1987-10-23','AA','885'),('1987-10-23','AA','890'),('1987-10-23','AA','890'),('1987-10-23','AA','893'),('1987-10-23','AA','893'),('1987-10-23','AA','905'),('1987-10-23','AA','905'),('1987-10-23','AA','929'),('1987-10-23','AA','929'),('1987-10-23','AA','936'),('1987-10-23','AA','936'),('1987-10-23','AA','937'),('1987-10-23','AA','937'),('1987-10-23','AA','955'),('1987-10-23','AA','955'),('1987-10-23','AA','966'),('1987-10-23','AA','1002'),('1987-10-23','AA','1002'),('1987-10-23','AA','1004'),('1987-10-23','AA','1004'),('1987-10-23','AA','1015'),('1987-10-23','AA','1015'),('1987-10-23','AA','1021'),('1987-10-23','AA','1021'),('1987-10-23','AA','1041'),('1987-10-23','AA','1041'),('1987-10-23','AA','1046'),('1987-10-23','AA','1048'),('1987-10-23','AA','1048'),('1987-10-23','AA','1061'),('1987-10-23','AA','1061'),('1987-10-23','AA','1088'),('1987-10-23','AA','1088'),('1987-10-23','AA','2033'),('1987-10-23','AA','2033'),('1987-10-23','AA','2050'),('1987-10-23','AA','2058'),('1987-10-23','AA','2071'),('1987-10-23','AA','2071'),('1987-10-23','AA','2086'),('1987-10-23','AA','2105'),('1987-10-23','AA','2111'),('1987-10-23','AA','2123'),('1987-10-23','AA','2123'),('1987-10-23','AA','2147'),('1987-10-23','AA','2147'),('1987-10-23','AA','2199'),('1987-10-23','AA','2199'),('1987-10-23','AA','2199'),('1987-10-23','AA','2207'),('1987-10-23','AA','2207'),('1987-10-23','AA','2245'),('1987-10-23','AA','2251'),('1987-10-23','AA','2275'),('1987-10-23','AA','2278'),('1987-10-23','AA','2351'),('1987-10-23','AA','2357'),('1987-10-23','AA','2361'),('1987-10-23','AA','2490'),('1987-10-23','AA','2528'),('1987-10-23','AA','2528'),('1987-10-23','AA','2735'),('1987-10-23','AA','2735'),('1987-10-23','AA','2751'),('1987-10-23','AL','2'),('1987-10-23','AL','2'),('1987-10-23','AL','7'),('1987-10-23','AL','7'),('1987-10-23','AL','26'),('1987-10-23','AL','26'),('1987-10-23','AL','34'),('1987-10-23','AL','34'),('1987-10-23','AL','36'),('1987-10-23','AL','36'),('1987-10-23','AL','45'),('1987-10-23','AL','45'),('1987-10-23','AL','45'),('1987-10-23','AL','91'),('1987-10-23','AL','91'),('1987-10-23','AL','104'),('1987-10-23','AL','104'),('1987-10-23','AL','104'),('1987-10-23','AL','109'),('1987-10-23','AL','112'),('1987-10-23','AL','112'),('1987-10-23','AL','123'),('1987-10-23','AL','149'),('1987-10-23','AL','160'),('1987-10-23','AL','160'),('1987-10-23','AL','165'),('1987-10-23','AL','171'),('1987-10-23','AL','176'),('1987-10-23','AL','176'),('1987-10-23','AL','179'),('1987-10-23','AL','215'),('1987-10-23','AL','231'),('1987-10-23','AL','263'),('1987-10-23','AL','263'),('1987-10-23','AL','268'),('1987-10-23','AL','268'),('1987-10-23','AL','268'),('1987-10-23','AL','281'),('1987-10-23','AL','281'),('1987-10-23','AL','287'),('1987-10-23','AL','287'),('1987-10-23','AL','309'),('1987-10-23','AL','309'),('1987-10-23','AL','341'),('1987-10-23','AL','344'),('1987-10-23','AL','344'),('1987-10-23','AL','357'),('1987-10-23','AL','357'),('1987-10-23','AL','368'),('1987-10-23','AL','381'),('1987-10-23','AL','396'),('1987-10-23','AL','397'),('1987-10-23','AL','397'),('1987-10-23','AL','416'),('1987-10-23','AL','416'),('1987-10-23','AL','417'),('1987-10-23','AL','438'),('1987-10-23','AL','438'),('1987-10-23','AL','446'),('1987-10-23','AL','451'),('1987-10-23','AL','451'),('1987-10-23','AL','491'),('1987-10-23','AL','491'),('1987-10-23','AL','523'),('1987-10-23','AL','523'),('1987-10-23','AL','523'),('1987-10-23','AL','525'),('1987-10-23','AL','525'),('1987-10-23','AL','533'),('1987-10-23','AL','533'),('1987-10-23','AL','546'),('1987-10-23','AL','546'),('1987-10-23','AL','556'),('1987-10-23','AL','556'),('1987-10-23','AL','601'),('1987-10-23','AL','601'),('1987-10-23','AL','627'),('1987-10-23','AL','629'),('1987-10-23','AL','670'),('1987-10-23','AL','670'),('1987-10-23','AL','670'),('1987-10-23','AL','673'),('1987-10-23','AL','680'),('1987-10-24','AA','2'),('1987-10-24','AA','2'),('1987-10-24','AA','7'),('1987-10-24','AA','7'),('1987-10-24','AA','26'),('1987-10-24','AA','34'),('1987-10-24','AA','36'),('1987-10-24','AA','91'),('1987-10-24','AA','101'),('1987-10-24','AA','101'),('1987-10-24','AA','109'),('1987-10-24','AA','109'),('1987-10-24','AA','112'),('1987-10-24','AA','123'),('1987-10-24','AA','123'),('1987-10-24','AA','160'),('1987-10-24','AA','165'),('1987-10-24','AA','165'),('1987-10-24','AA','165'),('1987-10-24','AA','176'),('1987-10-24','AA','176'),('1987-10-24','AA','176'),('1987-10-24','AA','179'),('1987-10-24','AA','179'),('1987-10-24','AA','215'),('1987-10-24','AA','215'),('1987-10-24','AA','231'),('1987-10-24','AA','263'),('1987-10-24','AA','263'),('1987-10-24','AA','268'),('1987-10-24','AA','268'),('1987-10-24','AA','281'),('1987-10-24','AA','287'),('1987-10-24','AA','287'),('1987-10-24','AA','309'),('1987-10-24','AA','309'),('1987-10-24','AA','309'),('1987-10-24','AA','344'),('1987-10-24','AA','344'),('1987-10-24','AA','347'),('1987-10-24','AA','347'),('1987-10-24','AA','368'),('1987-10-24','AA','381'),('1987-10-24','AA','381'),('1987-10-24','AA','381'),('1987-10-24','AA','396'),('1987-10-24','AA','396'),('1987-10-24','AA','397'),('1987-10-24','AA','397'),('1987-10-24','AA','417'),('1987-10-24','AA','417'),('1987-10-24','AA','446'),('1987-10-24','AA','451'),('1987-10-24','AA','451'),('1987-10-24','AA','460'),('1987-10-24','AA','460'),('1987-10-24','AA','491'),('1987-10-24','AA','491'),('1987-10-24','AA','504'),('1987-10-24','AA','504'),('1987-10-24','AA','519'),('1987-10-24','AA','519'),('1987-10-24','AA','523'),('1987-10-24','AA','523'),('1987-10-24','AA','525'),('1987-10-24','AA','525'),('1987-10-24','AA','525'),('1987-10-24','AA','533'),('1987-10-24','AA','533'),('1987-10-24','AA','546'),('1987-10-24','AA','546'),('1987-10-24','AA','546'),('1987-10-24','AA','556'),('1987-10-24','AA','556'),('1987-10-24','AA','556'),('1987-10-24','AA','597'),('1987-10-24','AA','597'),('1987-10-24','AA','597'),('1987-10-24','AA','601'),('1987-10-24','AA','601'),('1987-10-24','AA','627'),('1987-10-24','AA','629'),('1987-10-24','AA','673'),('1987-10-24','AA','673'),('1987-10-24','AA','680'),('1987-10-24','AA','680'),('1987-10-24','AA','817'),('1987-10-24','AA','817'),('1987-10-24','AA','824'),('1987-10-24','AA','824'),('1987-10-24','AA','824'),('1987-10-24','AA','832'),('1987-10-24','AA','832'),('1987-10-24','AA','852'),('1987-10-24','AA','852'),('1987-10-24','AA','866'),('1987-10-24','AA','866'),('1987-10-24','AA','871'),('1987-10-24','AA','871'),('1987-10-24','AA','880'),('1987-10-24','AA','880'),('1987-10-24','AA','880'),('1987-10-24','AA','880'),('1987-10-24','AA','883'),('1987-10-24','AA','883'),('1987-10-24','AA','885'),('1987-10-24','AA','885'),('1987-10-24','AA','885'),('1987-10-24','AA','890'),('1987-10-24','AA','890'),('1987-10-24','AA','893'),('1987-10-24','AA','893'),('1987-10-24','AA','905'),('1987-10-24','AA','905'),('1987-10-24','AA','915'),('1987-10-24','AA','929'),('1987-10-24','AA','929'),('1987-10-24','AA','936'),('1987-10-24','AA','936'),('1987-10-24','AA','937'),('1987-10-24','AA','937'),('1987-10-24','AA','955'),('1987-10-24','AA','955'),('1987-10-24','AA','966'),('1987-10-24','AA','1002'),('1987-10-24','AA','1002'),('1987-10-24','AA','1004'),('1987-10-24','AA','1004'),('1987-10-24','AA','1015'),('1987-10-24','AA','1021'),('1987-10-24','AA','1021'),('1987-10-24','AA','1041'),('1987-10-24','AA','1041'),('1987-10-24','AA','1046'),('1987-10-24','AA','1046'),('1987-10-24','AA','1048'),('1987-10-24','AA','1048'),('1987-10-24','AA','1061'),('1987-10-24','AA','1061'),('1987-10-24','AA','1088'),('1987-10-24','AA','1088'),('1987-10-24','AA','2033'),('1987-10-24','AA','2033'),('1987-10-24','AA','2050'),('1987-10-24','AA','2058'),('1987-10-24','AA','2071'),('1987-10-24','AA','2071'),('1987-10-24','AA','2086'),('1987-10-24','AA','2105'),('1987-10-24','AA','2111'),('1987-10-24','AA','2123'),('1987-10-24','AA','2147'),('1987-10-24','AA','2199'),('1987-10-24','AA','2199'),('1987-10-24','AA','2207'),('1987-10-24','AA','2217'),('1987-10-24','AA','2230'),('1987-10-24','AA','2245'),('1987-10-24','AA','2251'),('1987-10-24','AA','2251'),('1987-10-24','AA','2275'),('1987-10-24','AA','2278'),('1987-10-24','AA','2351'),('1987-10-24','AA','2357'),('1987-10-24','AA','2361'),('1987-10-24','AA','2490'),('1987-10-24','AA','2528'),('1987-10-24','AA','2528'),('1987-10-24','AA','2735'),('1987-10-24','AA','2735'),('1987-10-24','AL','2'),('1987-10-24','AL','2'),('1987-10-24','AL','7'),('1987-10-24','AL','7'),('1987-10-24','AL','26'),('1987-10-24','AL','26'),('1987-10-24','AL','34'),('1987-10-24','AL','34'),('1987-10-24','AL','36'),('1987-10-24','AL','36'),('1987-10-24','AL','45'),('1987-10-24','AL','91'),('1987-10-24','AL','91'),('1987-10-24','AL','104'),('1987-10-24','AL','104'),('1987-10-24','AL','109'),('1987-10-24','AL','112'),('1987-10-24','AL','112'),('1987-10-24','AL','149'),('1987-10-24','AL','160'),('1987-10-24','AL','160'),('1987-10-24','AL','165'),('1987-10-24','AL','171'),('1987-10-24','AL','171'),('1987-10-24','AL','176'),('1987-10-24','AL','176'),('1987-10-24','AL','179'),('1987-10-24','AL','215'),('1987-10-24','AL','231'),('1987-10-24','AL','263'),('1987-10-24','AL','268'),('1987-10-24','AL','268'),('1987-10-24','AL','268'),('1987-10-24','AL','287'),('1987-10-24','AL','287'),('1987-10-24','AL','309'),('1987-10-24','AL','309'),('1987-10-24','AL','344'),('1987-10-24','AL','344'),('1987-10-24','AL','357'),('1987-10-24','AL','357'),('1987-10-24','AL','381'),('1987-10-24','AL','396'),('1987-10-24','AL','397'),('1987-10-24','AL','397'),('1987-10-24','AL','397'),('1987-10-24','AL','416'),('1987-10-24','AL','417'),('1987-10-24','AL','438'),('1987-10-24','AL','438'),('1987-10-24','AL','451'),('1987-10-24','AL','451'),('1987-10-24','AL','491'),('1987-10-24','AL','491'),('1987-10-24','AL','523'),('1987-10-24','AL','523'),('1987-10-24','AL','525'),('1987-10-24','AL','525'),('1987-10-24','AL','533'),('1987-10-24','AL','546'),('1987-10-24','AL','546'),('1987-10-24','AL','556'),('1987-10-24','AL','556'),('1987-10-24','AL','601'),('1987-10-24','AL','601'),('1987-10-24','AL','627'),('1987-10-24','AL','670'),('1987-10-24','AL','673'),('1987-10-24','AL','680'),('1987-10-24','AL','905'),('1987-10-24','AL','936'),('1987-10-24','AL','966'),('1987-10-24','AL','982'),('1987-10-25','AA','2'),('1987-10-25','AA','2'),('1987-10-25','AA','2'),('1987-10-25','AA','7'),('1987-10-25','AA','7'),('1987-10-25','AA','26'),('1987-10-25','AA','34'),('1987-10-25','AA','36'),('1987-10-25','AA','91'),('1987-10-25','AA','101'),('1987-10-25','AA','109'),('1987-10-25','AA','109'),('1987-10-25','AA','123'),('1987-10-25','AA','123'),('1987-10-25','AA','160'),('1987-10-25','AA','165'),('1987-10-25','AA','165'),('1987-10-25','AA','165'),('1987-10-25','AA','176'),('1987-10-25','AA','176'),('1987-10-25','AA','176'),('1987-10-25','AA','176'),('1987-10-25','AA','179'),('1987-10-25','AA','179'),('1987-10-25','AA','215'),('1987-10-25','AA','215'),('1987-10-25','AA','231'),('1987-10-25','AA','231'),('1987-10-25','AA','263'),('1987-10-25','AA','263'),('1987-10-25','AA','268'),('1987-10-25','AA','268'),('1987-10-25','AA','281'),('1987-10-25','AA','287'),('1987-10-25','AA','287'),('1987-10-25','AA','309'),('1987-10-25','AA','309'),('1987-10-25','AA','309'),('1987-10-25','AA','341'),('1987-10-25','AA','344'),('1987-10-25','AA','344'),('1987-10-25','AA','347'),('1987-10-25','AA','347'),('1987-10-25','AA','368'),('1987-10-25','AA','381'),('1987-10-25','AA','381'),('1987-10-25','AA','396'),('1987-10-25','AA','397'),('1987-10-25','AA','397'),('1987-10-25','AA','417'),('1987-10-25','AA','417'),('1987-10-25','AA','446'),('1987-10-25','AA','451'),('1987-10-25','AA','460'),('1987-10-25','AA','460'),('1987-10-25','AA','491'),('1987-10-25','AA','491'),('1987-10-25','AA','504'),('1987-10-25','AA','504'),('1987-10-25','AA','519'),('1987-10-25','AA','519'),('1987-10-25','AA','523'),('1987-10-25','AA','523'),('1987-10-25','AA','525'),('1987-10-25','AA','525'),('1987-10-25','AA','525'),('1987-10-25','AA','533'),('1987-10-25','AA','533'),('1987-10-25','AA','533'),('1987-10-25','AA','546'),('1987-10-25','AA','546'),('1987-10-25','AA','546'),('1987-10-25','AA','546'),('1987-10-25','AA','556'),('1987-10-25','AA','556'),('1987-10-25','AA','556'),('1987-10-25','AA','597'),('1987-10-25','AA','597'),('1987-10-25','AA','597'),('1987-10-25','AA','601'),('1987-10-25','AA','627'),('1987-10-25','AA','629'),('1987-10-25','AA','629'),('1987-10-25','AA','670'),('1987-10-25','AA','673'),('1987-10-25','AA','673'),('1987-10-25','AA','680'),('1987-10-25','AA','680'),('1987-10-25','AA','817'),('1987-10-25','AA','817'),('1987-10-25','AA','824'),('1987-10-25','AA','824'),('1987-10-25','AA','824'),('1987-10-25','AA','824'),('1987-10-25','AA','832'),('1987-10-25','AA','832'),('1987-10-25','AA','852'),('1987-10-25','AA','852'),('1987-10-25','AA','866'),('1987-10-25','AA','866'),('1987-10-25','AA','871'),('1987-10-25','AA','871'),('1987-10-25','AA','880'),('1987-10-25','AA','880'),('1987-10-25','AA','880'),('1987-10-25','AA','880'),('1987-10-25','AA','883'),('1987-10-25','AA','883'),('1987-10-25','AA','885'),('1987-10-25','AA','885'),('1987-10-25','AA','885'),('1987-10-25','AA','890'),('1987-10-25','AA','893'),('1987-10-25','AA','893'),('1987-10-25','AA','905'),('1987-10-25','AA','905'),('1987-10-25','AA','915'),('1987-10-25','AA','929'),('1987-10-25','AA','929'),('1987-10-25','AA','936'),('1987-10-25','AA','936'),('1987-10-25','AA','937'),('1987-10-25','AA','937'),('1987-10-25','AA','955'),('1987-10-25','AA','955'),('1987-10-25','AA','1002'),('1987-10-25','AA','1002'),('1987-10-25','AA','1004'),('1987-10-25','AA','1004'),('1987-10-25','AA','1015'),('1987-10-25','AA','1015'),('1987-10-25','AA','1021'),('1987-10-25','AA','1021'),('1987-10-25','AA','1041'),('1987-10-25','AA','1041'),('1987-10-25','AA','1046'),('1987-10-25','AA','1046'),('1987-10-25','AA','1048'),('1987-10-25','AA','1048'),('1987-10-25','AA','1061'),('1987-10-25','AA','1061'),('1987-10-25','AA','1088'),('1987-10-25','AA','1088'),('1987-10-25','AA','2033'),('1987-10-25','AA','2033'),('1987-10-25','AA','2050'),('1987-10-25','AA','2058'),('1987-10-25','AA','2071'),('1987-10-25','AA','2071'),('1987-10-25','AA','2086'),('1987-10-25','AA','2111'),('1987-10-25','AA','2123'),('1987-10-25','AA','2123'),('1987-10-25','AA','2147'),('1987-10-25','AA','2199'),('1987-10-25','AA','2199'),('1987-10-25','AA','2207'),('1987-10-25','AA','2207'),('1987-10-25','AA','2230'),('1987-10-25','AA','2245'),('1987-10-25','AA','2251'),('1987-10-25','AA','2251'),('1987-10-25','AA','2275'),('1987-10-25','AA','2278'),('1987-10-25','AA','2357'),('1987-10-25','AA','2361'),('1987-10-25','AA','2490'),('1987-10-25','AA','2528'),('1987-10-25','AA','2528'),('1987-10-25','AA','2735'),('1987-10-25','AA','2735'),('1987-10-25','AA','2751'),('1987-10-25','AL','2'),('1987-10-25','AL','2'),('1987-10-25','AL','7'),('1987-10-25','AL','7'),('1987-10-25','AL','26'),('1987-10-25','AL','26'),('1987-10-25','AL','34'),('1987-10-25','AL','34'),('1987-10-25','AL','36'),('1987-10-25','AL','36'),('1987-10-25','AL','45'),('1987-10-25','AL','45'),('1987-10-25','AL','45'),('1987-10-25','AL','91'),('1987-10-25','AL','91'),('1987-10-25','AL','104'),('1987-10-25','AL','104'),('1987-10-25','AL','104'),('1987-10-25','AL','112'),('1987-10-25','AL','123'),('1987-10-25','AL','149'),('1987-10-25','AL','160'),('1987-10-25','AL','160'),('1987-10-25','AL','165'),('1987-10-25','AL','171'),('1987-10-25','AL','171'),('1987-10-25','AL','176'),('1987-10-25','AL','176'),('1987-10-25','AL','179'),('1987-10-25','AL','215'),('1987-10-25','AL','231'),('1987-10-25','AL','263'),('1987-10-25','AL','263'),('1987-10-25','AL','281'),('1987-10-25','AL','281'),('1987-10-25','AL','309'),('1987-10-25','AL','309'),('1987-10-25','AL','341'),('1987-10-25','AL','344'),('1987-10-25','AL','344'),('1987-10-25','AL','357'),('1987-10-25','AL','357'),('1987-10-25','AL','368'),('1987-10-25','AL','396'),('1987-10-25','AL','416'),('1987-10-25','AL','416'),('1987-10-25','AL','417'),('1987-10-25','AL','438'),('1987-10-25','AL','438'),('1987-10-25','AL','446'),('1987-10-25','AL','451'),('1987-10-25','AL','491'),('1987-10-25','AL','523'),('1987-10-25','AL','523'),('1987-10-25','AL','523'),('1987-10-25','AL','525'),('1987-10-25','AL','525'),('1987-10-25','AL','533'),('1987-10-25','AL','533'),('1987-10-25','AL','546'),('1987-10-25','AL','546'),('1987-10-25','AL','556'),('1987-10-25','AL','556'),('1987-10-25','AL','601'),('1987-10-25','AL','601'),('1987-10-25','AL','627'),('1987-10-25','AL','629'),('1987-10-25','AL','670'),('1987-10-25','AL','670'),('1987-10-25','AL','670'),('1987-10-25','AL','673'),('1987-10-25','AL','680'),('1987-10-25','AL','937'),('1987-10-25','AL','937'),('1987-10-25','AL','955'),('1987-10-26','AA','2'),('1987-10-26','AA','2'),('1987-10-26','AA','2'),('1987-10-26','AA','7'),('1987-10-26','AA','7'),('1987-10-26','AA','26'),('1987-10-26','AA','34'),('1987-10-26','AA','36'),('1987-10-26','AA','91'),('1987-10-26','AA','101'),('1987-10-26','AA','101'),('1987-10-26','AA','109'),('1987-10-26','AA','109'),('1987-10-26','AA','112'),('1987-10-26','AA','123'),('1987-10-26','AA','123'),('1987-10-26','AA','160'),('1987-10-26','AA','165'),('1987-10-26','AA','165'),('1987-10-26','AA','165'),('1987-10-26','AA','176'),('1987-10-26','AA','176'),('1987-10-26','AA','176'),('1987-10-26','AA','176'),('1987-10-26','AA','179'),('1987-10-26','AA','179'),('1987-10-26','AA','215'),('1987-10-26','AA','215'),('1987-10-26','AA','231'),('1987-10-26','AA','231'),('1987-10-26','AA','263'),('1987-10-26','AA','263'),('1987-10-26','AA','268'),('1987-10-26','AA','268'),('1987-10-26','AA','281'),('1987-10-26','AA','287'),('1987-10-26','AA','287'),('1987-10-26','AA','309'),('1987-10-26','AA','309'),('1987-10-26','AA','309'),('1987-10-26','AA','341'),('1987-10-26','AA','344'),('1987-10-26','AA','344'),('1987-10-26','AA','347'),('1987-10-26','AA','347'),('1987-10-26','AA','368'),('1987-10-26','AA','381'),('1987-10-26','AA','381'),('1987-10-26','AA','381'),('1987-10-26','AA','396'),('1987-10-26','AA','396'),('1987-10-26','AA','397'),('1987-10-26','AA','397'),('1987-10-26','AA','417'),('1987-10-26','AA','417'),('1987-10-26','AA','446'),('1987-10-26','AA','451'),('1987-10-26','AA','451'),('1987-10-26','AA','491'),('1987-10-26','AA','504'),('1987-10-26','AA','504'),('1987-10-26','AA','519'),('1987-10-26','AA','523'),('1987-10-26','AA','523'),('1987-10-26','AA','525'),('1987-10-26','AA','525'),('1987-10-26','AA','525'),('1987-10-26','AA','533'),('1987-10-26','AA','533'),('1987-10-26','AA','533'),('1987-10-26','AA','546'),('1987-10-26','AA','546'),('1987-10-26','AA','546'),('1987-10-26','AA','546'),('1987-10-26','AA','556'),('1987-10-26','AA','556'),('1987-10-26','AA','556'),('1987-10-26','AA','597'),('1987-10-26','AA','597'),('1987-10-26','AA','597'),('1987-10-26','AA','601'),('1987-10-26','AA','601'),('1987-10-26','AA','627'),('1987-10-26','AA','629'),('1987-10-26','AA','629'),('1987-10-26','AA','670'),('1987-10-26','AA','673'),('1987-10-26','AA','673'),('1987-10-26','AA','680'),('1987-10-26','AA','680'),('1987-10-26','AA','817'),('1987-10-26','AA','817'),('1987-10-26','AA','824'),('1987-10-26','AA','824'),('1987-10-26','AA','832'),('1987-10-26','AA','832'),('1987-10-26','AA','852'),('1987-10-26','AA','852'),('1987-10-26','AA','866'),('1987-10-26','AA','866'),('1987-10-26','AA','871'),('1987-10-26','AA','871'),('1987-10-26','AA','880'),('1987-10-26','AA','880'),('1987-10-26','AA','880'),('1987-10-26','AA','880'),('1987-10-26','AA','883'),('1987-10-26','AA','883'),('1987-10-26','AA','885'),('1987-10-26','AA','885'),('1987-10-26','AA','885'),('1987-10-26','AA','890'),('1987-10-26','AA','890'),('1987-10-26','AA','893'),('1987-10-26','AA','893'),('1987-10-26','AA','905'),('1987-10-26','AA','905'),('1987-10-26','AA','915'),('1987-10-26','AA','929'),('1987-10-26','AA','929'),('1987-10-26','AA','936'),('1987-10-26','AA','936'),('1987-10-26','AA','937'),('1987-10-26','AA','937'),('1987-10-26','AA','955'),('1987-10-26','AA','955'),('1987-10-26','AA','966'),('1987-10-26','AA','1002'),('1987-10-26','AA','1002'),('1987-10-26','AA','1004'),('1987-10-26','AA','1004'),('1987-10-26','AA','1015'),('1987-10-26','AA','1015'),('1987-10-26','AA','1021'),('1987-10-26','AA','1021'),('1987-10-26','AA','1046'),('1987-10-26','AA','1046'),('1987-10-26','AA','1048'),('1987-10-26','AA','1048'),('1987-10-26','AA','1061'),('1987-10-26','AA','1061'),('1987-10-26','AA','1088'),('1987-10-26','AA','1088'),('1987-10-26','AA','2033'),('1987-10-26','AA','2033'),('1987-10-26','AA','2050'),('1987-10-26','AA','2058'),('1987-10-26','AA','2071'),('1987-10-26','AA','2071'),('1987-10-26','AA','2086'),('1987-10-26','AA','2105'),('1987-10-26','AA','2111'),('1987-10-26','AA','2123'),('1987-10-26','AA','2123'),('1987-10-26','AA','2147'),('1987-10-26','AA','2147'),('1987-10-26','AA','2199'),('1987-10-26','AA','2199'),('1987-10-26','AA','2207'),('1987-10-26','AA','2207'),('1987-10-26','AA','2230'),('1987-10-26','AA','2245'),('1987-10-26','AA','2251'),('1987-10-26','AA','2251'),('1987-10-26','AA','2275'),('1987-10-26','AA','2278'),('1987-10-26','AA','2351'),('1987-10-26','AA','2357'),('1987-10-26','AA','2361'),('1987-10-26','AA','2490'),('1987-10-26','AA','2528'),('1987-10-26','AA','2528'),('1987-10-26','AA','2735'),('1987-10-26','AA','2735'),('1987-10-26','AA','2751'),('1987-10-26','AL','2'),('1987-10-26','AL','2'),('1987-10-26','AL','7'),('1987-10-26','AL','7'),('1987-10-26','AL','26'),('1987-10-26','AL','26'),('1987-10-26','AL','34'),('1987-10-26','AL','34'),('1987-10-26','AL','36'),('1987-10-26','AL','36'),('1987-10-26','AL','45'),('1987-10-26','AL','45'),('1987-10-26','AL','45'),('1987-10-26','AL','91'),('1987-10-26','AL','91'),('1987-10-26','AL','104'),('1987-10-26','AL','104'),('1987-10-26','AL','104'),('1987-10-26','AL','109'),('1987-10-26','AL','112'),('1987-10-26','AL','112'),('1987-10-26','AL','123'),('1987-10-26','AL','149'),('1987-10-26','AL','160'),('1987-10-26','AL','160'),('1987-10-26','AL','165'),('1987-10-26','AL','171'),('1987-10-26','AL','171'),('1987-10-26','AL','176'),('1987-10-26','AL','176'),('1987-10-26','AL','179'),('1987-10-26','AL','215'),('1987-10-26','AL','231'),('1987-10-26','AL','263'),('1987-10-26','AL','263'),('1987-10-26','AL','268'),('1987-10-26','AL','268'),('1987-10-26','AL','268'),('1987-10-26','AL','281'),('1987-10-26','AL','281'),('1987-10-26','AL','287'),('1987-10-26','AL','287'),('1987-10-26','AL','309'),('1987-10-26','AL','309'),('1987-10-26','AL','341'),('1987-10-26','AL','344'),('1987-10-26','AL','357'),('1987-10-26','AL','357'),('1987-10-26','AL','368'),('1987-10-26','AL','381'),('1987-10-26','AL','396'),('1987-10-26','AL','397'),('1987-10-26','AL','397'),('1987-10-26','AL','416'),('1987-10-26','AL','416'),('1987-10-26','AL','417'),('1987-10-26','AL','438'),('1987-10-26','AL','438'),('1987-10-26','AL','446'),('1987-10-26','AL','451'),('1987-10-26','AL','451'),('1987-10-26','AL','491'),('1987-10-26','AL','491'),('1987-10-26','AL','523'),('1987-10-26','AL','523'),('1987-10-26','AL','523'),('1987-10-26','AL','525'),('1987-10-26','AL','533'),('1987-10-26','AL','533'),('1987-10-26','AL','546'),('1987-10-26','AL','546'),('1987-10-26','AL','556'),('1987-10-26','AL','556'),('1987-10-26','AL','601'),('1987-10-26','AL','601'),('1987-10-26','AL','627'),('1987-10-26','AL','629'),('1987-10-26','AL','670'),('1987-10-26','AL','670'),('1987-10-26','AL','670'),('1987-10-26','AL','673'),('1987-10-26','AL','680'),('1987-10-27','AA','2'),('1987-10-27','AA','2'),('1987-10-27','AA','2'),('1987-10-27','AA','7'),('1987-10-27','AA','26'),('1987-10-27','AA','34'),('1987-10-27','AA','36'),('1987-10-27','AA','91'),('1987-10-27','AA','101'),('1987-10-27','AA','101'),('1987-10-27','AA','109'),('1987-10-27','AA','109'),('1987-10-27','AA','112'),('1987-10-27','AA','123'),('1987-10-27','AA','123'),('1987-10-27','AA','160'),('1987-10-27','AA','165'),('1987-10-27','AA','165'),('1987-10-27','AA','165'),('1987-10-27','AA','176'),('1987-10-27','AA','176'),('1987-10-27','AA','176'),('1987-10-27','AA','176'),('1987-10-27','AA','179'),('1987-10-27','AA','179'),('1987-10-27','AA','215'),('1987-10-27','AA','215'),('1987-10-27','AA','231'),('1987-10-27','AA','263'),('1987-10-27','AA','263'),('1987-10-27','AA','268'),('1987-10-27','AA','268'),('1987-10-27','AA','281'),('1987-10-27','AA','287'),('1987-10-27','AA','287'),('1987-10-27','AA','309'),('1987-10-27','AA','309'),('1987-10-27','AA','309'),('1987-10-27','AA','341'),('1987-10-27','AA','344'),('1987-10-27','AA','344'),('1987-10-27','AA','347'),('1987-10-27','AA','347'),('1987-10-27','AA','368'),('1987-10-27','AA','381'),('1987-10-27','AA','381'),('1987-10-27','AA','381'),('1987-10-27','AA','396'),('1987-10-27','AA','396'),('1987-10-27','AA','397'),('1987-10-27','AA','397'),('1987-10-27','AA','417'),('1987-10-27','AA','417'),('1987-10-27','AA','446'),('1987-10-27','AA','451'),('1987-10-27','AA','451'),('1987-10-27','AA','460'),('1987-10-27','AA','460'),('1987-10-27','AA','491'),('1987-10-27','AA','504'),('1987-10-27','AA','504'),('1987-10-27','AA','519'),('1987-10-27','AA','519'),('1987-10-27','AA','523'),('1987-10-27','AA','523'),('1987-10-27','AA','525'),('1987-10-27','AA','525'),('1987-10-27','AA','525'),('1987-10-27','AA','533'),('1987-10-27','AA','533'),('1987-10-27','AA','533'),('1987-10-27','AA','546'),('1987-10-27','AA','546'),('1987-10-27','AA','546'),('1987-10-27','AA','546'),('1987-10-27','AA','556'),('1987-10-27','AA','556'),('1987-10-27','AA','556'),('1987-10-27','AA','597'),('1987-10-27','AA','597'),('1987-10-27','AA','597'),('1987-10-27','AA','601'),('1987-10-27','AA','601'),('1987-10-27','AA','627'),('1987-10-27','AA','629'),('1987-10-27','AA','629'),('1987-10-27','AA','670'),('1987-10-27','AA','673'),('1987-10-27','AA','673'),('1987-10-27','AA','680'),('1987-10-27','AA','680'),('1987-10-27','AA','817'),('1987-10-27','AA','817'),('1987-10-27','AA','824'),('1987-10-27','AA','824'),('1987-10-27','AA','824'),('1987-10-27','AA','824'),('1987-10-27','AA','832'),('1987-10-27','AA','832'),('1987-10-27','AA','852'),('1987-10-27','AA','852'),('1987-10-27','AA','866'),('1987-10-27','AA','866'),('1987-10-27','AA','871'),('1987-10-27','AA','871'),('1987-10-27','AA','880'),('1987-10-27','AA','880'),('1987-10-27','AA','880'),('1987-10-27','AA','880'),('1987-10-27','AA','883'),('1987-10-27','AA','883'),('1987-10-27','AA','885'),('1987-10-27','AA','885'),('1987-10-27','AA','885'),('1987-10-27','AA','890'),('1987-10-27','AA','890'),('1987-10-27','AA','893'),('1987-10-27','AA','893'),('1987-10-27','AA','905'),('1987-10-27','AA','905'),('1987-10-27','AA','915'),('1987-10-27','AA','929'),('1987-10-27','AA','929'),('1987-10-27','AA','936'),('1987-10-27','AA','936'),('1987-10-27','AA','937'),('1987-10-27','AA','937'),('1987-10-27','AA','955'),('1987-10-27','AA','955'),('1987-10-27','AA','966'),('1987-10-27','AA','1002'),('1987-10-27','AA','1002'),('1987-10-27','AA','1004'),('1987-10-27','AA','1004'),('1987-10-27','AA','1015'),('1987-10-27','AA','1015'),('1987-10-27','AA','1021'),('1987-10-27','AA','1021'),('1987-10-27','AA','1041'),('1987-10-27','AA','1041'),('1987-10-27','AA','1046'),('1987-10-27','AA','1046'),('1987-10-27','AA','1048'),('1987-10-27','AA','1061'),('1987-10-27','AA','1061'),('1987-10-27','AA','1088'),('1987-10-27','AA','1088'),('1987-10-27','AA','2033'),('1987-10-27','AA','2033'),('1987-10-27','AA','2050'),('1987-10-27','AA','2058'),('1987-10-27','AA','2071'),('1987-10-27','AA','2071'),('1987-10-27','AA','2086'),('1987-10-27','AA','2105'),('1987-10-27','AA','2111'),('1987-10-27','AA','2123'),('1987-10-27','AA','2123'),('1987-10-27','AA','2147'),('1987-10-27','AA','2147'),('1987-10-27','AA','2199'),('1987-10-27','AA','2199'),('1987-10-27','AA','2207'),('1987-10-27','AA','2207'),('1987-10-27','AA','2217'),('1987-10-27','AA','2230'),('1987-10-27','AA','2245'),('1987-10-27','AA','2251'),('1987-10-27','AA','2251'),('1987-10-27','AA','2275'),('1987-10-27','AA','2278'),('1987-10-27','AA','2357'),('1987-10-27','AA','2490'),('1987-10-27','AA','2528'),('1987-10-27','AA','2528'),('1987-10-27','AA','2735'),('1987-10-27','AA','2735'),('1987-10-27','AL','2'),('1987-10-27','AL','2'),('1987-10-27','AL','7'),('1987-10-27','AL','7'),('1987-10-27','AL','26'),('1987-10-27','AL','26'),('1987-10-27','AL','34'),('1987-10-27','AL','34'),('1987-10-27','AL','36'),('1987-10-27','AL','36'),('1987-10-27','AL','45'),('1987-10-27','AL','45'),('1987-10-27','AL','45'),('1987-10-27','AL','91'),('1987-10-27','AL','91'),('1987-10-27','AL','104'),('1987-10-27','AL','104'),('1987-10-27','AL','104'),('1987-10-27','AL','109'),('1987-10-27','AL','112'),('1987-10-27','AL','112'),('1987-10-27','AL','123'),('1987-10-27','AL','149'),('1987-10-27','AL','160'),('1987-10-27','AL','160'),('1987-10-27','AL','165'),('1987-10-27','AL','171'),('1987-10-27','AL','171'),('1987-10-27','AL','176'),('1987-10-27','AL','176'),('1987-10-27','AL','179'),('1987-10-27','AL','215'),('1987-10-27','AL','231'),('1987-10-27','AL','263'),('1987-10-27','AL','263'),('1987-10-27','AL','268'),('1987-10-27','AL','268'),('1987-10-27','AL','268'),('1987-10-27','AL','281'),('1987-10-27','AL','281'),('1987-10-27','AL','287'),('1987-10-27','AL','287'),('1987-10-27','AL','309'),('1987-10-27','AL','309'),('1987-10-27','AL','341'),('1987-10-27','AL','344'),('1987-10-27','AL','344'),('1987-10-27','AL','357'),('1987-10-27','AL','357'),('1987-10-27','AL','368'),('1987-10-27','AL','381'),('1987-10-27','AL','396'),('1987-10-27','AL','397'),('1987-10-27','AL','397'),('1987-10-27','AL','416'),('1987-10-27','AL','416'),('1987-10-27','AL','417'),('1987-10-27','AL','438'),('1987-10-27','AL','438'),('1987-10-27','AL','446'),('1987-10-27','AL','451'),('1987-10-27','AL','451'),('1987-10-27','AL','491'),('1987-10-27','AL','491'),('1987-10-27','AL','523'),('1987-10-27','AL','523'),('1987-10-27','AL','523'),('1987-10-27','AL','525'),('1987-10-27','AL','525'),('1987-10-27','AL','533'),('1987-10-27','AL','533'),('1987-10-27','AL','546'),('1987-10-27','AL','546'),('1987-10-27','AL','556'),('1987-10-27','AL','556'),('1987-10-27','AL','601'),('1987-10-27','AL','601'),('1987-10-27','AL','627'),('1987-10-27','AL','629'),('1987-10-27','AL','670'),('1987-10-27','AL','670'),('1987-10-27','AL','670'),('1987-10-27','AL','673'),('1987-10-27','AL','680'),('1987-10-28','AA','2'),('1987-10-28','AA','2'),('1987-10-28','AA','2'),('1987-10-28','AA','7'),('1987-10-28','AA','7'),('1987-10-28','AA','26'),('1987-10-28','AA','34'),('1987-10-28','AA','36'),('1987-10-28','AA','91'),('1987-10-28','AA','101'),('1987-10-28','AA','101'),('1987-10-28','AA','109'),('1987-10-28','AA','109'),('1987-10-28','AA','112'),('1987-10-28','AA','123'),('1987-10-28','AA','123'),('1987-10-28','AA','165'),('1987-10-28','AA','165'),('1987-10-28','AA','165'),('1987-10-28','AA','176'),('1987-10-28','AA','176'),('1987-10-28','AA','176'),('1987-10-28','AA','176'),('1987-10-28','AA','179'),('1987-10-28','AA','179'),('1987-10-28','AA','215'),('1987-10-28','AA','215'),('1987-10-28','AA','231'),('1987-10-28','AA','231'),('1987-10-28','AA','263'),('1987-10-28','AA','268'),('1987-10-28','AA','268'),('1987-10-28','AA','281'),('1987-10-28','AA','287'),('1987-10-28','AA','287'),('1987-10-28','AA','309'),('1987-10-28','AA','309'),('1987-10-28','AA','309'),('1987-10-28','AA','341'),('1987-10-28','AA','344'),('1987-10-28','AA','344'),('1987-10-28','AA','347'),('1987-10-28','AA','347'),('1987-10-28','AA','368'),('1987-10-28','AA','381'),('1987-10-28','AA','381'),('1987-10-28','AA','381'),('1987-10-28','AA','396'),('1987-10-28','AA','396'),('1987-10-28','AA','397'),('1987-10-28','AA','397'),('1987-10-28','AA','417'),('1987-10-28','AA','417'),('1987-10-28','AA','446'),('1987-10-28','AA','451'),('1987-10-28','AA','451'),('1987-10-28','AA','460'),('1987-10-28','AA','460'),('1987-10-28','AA','491'),('1987-10-28','AA','504'),('1987-10-28','AA','504'),('1987-10-28','AA','519'),('1987-10-28','AA','519'),('1987-10-28','AA','523'),('1987-10-28','AA','523'),('1987-10-28','AA','525'),('1987-10-28','AA','525'),('1987-10-28','AA','525'),('1987-10-28','AA','533'),('1987-10-28','AA','533'),('1987-10-28','AA','533'),('1987-10-28','AA','546'),('1987-10-28','AA','546'),('1987-10-28','AA','546'),('1987-10-28','AA','546'),('1987-10-28','AA','556'),('1987-10-28','AA','556'),('1987-10-28','AA','556'),('1987-10-28','AA','597'),('1987-10-28','AA','597'),('1987-10-28','AA','597'),('1987-10-28','AA','601'),('1987-10-28','AA','601'),('1987-10-28','AA','627'),('1987-10-28','AA','629'),('1987-10-28','AA','629'),('1987-10-28','AA','670'),('1987-10-28','AA','673'),('1987-10-28','AA','673'),('1987-10-28','AA','680'),('1987-10-28','AA','680'),('1987-10-28','AA','817'),('1987-10-28','AA','817'),('1987-10-28','AA','824'),('1987-10-28','AA','824'),('1987-10-28','AA','824'),('1987-10-28','AA','832'),('1987-10-28','AA','832'),('1987-10-28','AA','852'),('1987-10-28','AA','852'),('1987-10-28','AA','866'),('1987-10-28','AA','866'),('1987-10-28','AA','871'),('1987-10-28','AA','871'),('1987-10-28','AA','880'),('1987-10-28','AA','880'),('1987-10-28','AA','880'),('1987-10-28','AA','880'),('1987-10-28','AA','883'),('1987-10-28','AA','883'),('1987-10-28','AA','885'),('1987-10-28','AA','885'),('1987-10-28','AA','890'),('1987-10-28','AA','890'),('1987-10-28','AA','893'),('1987-10-28','AA','893'),('1987-10-28','AA','905'),('1987-10-28','AA','905'),('1987-10-28','AA','915'),('1987-10-28','AA','929'),('1987-10-28','AA','929'),('1987-10-28','AA','936'),('1987-10-28','AA','936'),('1987-10-28','AA','937'),('1987-10-28','AA','937'),('1987-10-28','AA','955'),('1987-10-28','AA','955'),('1987-10-28','AA','966'),('1987-10-28','AA','1002'),('1987-10-28','AA','1002'),('1987-10-28','AA','1004'),('1987-10-28','AA','1004'),('1987-10-28','AA','1015'),('1987-10-28','AA','1021'),('1987-10-28','AA','1021'),('1987-10-28','AA','1041'),('1987-10-28','AA','1041'),('1987-10-28','AA','1046'),('1987-10-28','AA','1046'),('1987-10-28','AA','1048'),('1987-10-28','AA','1048'),('1987-10-28','AA','1061'),('1987-10-28','AA','1061'),('1987-10-28','AA','1088'),('1987-10-28','AA','1088'),('1987-10-28','AA','2033'),('1987-10-28','AA','2033'),('1987-10-28','AA','2050'),('1987-10-28','AA','2058'),('1987-10-28','AA','2071'),('1987-10-28','AA','2071'),('1987-10-28','AA','2086'),('1987-10-28','AA','2105'),('1987-10-28','AA','2111'),('1987-10-28','AA','2123'),('1987-10-28','AA','2123'),('1987-10-28','AA','2147'),('1987-10-28','AA','2199'),('1987-10-28','AA','2199'),('1987-10-28','AA','2207'),('1987-10-28','AA','2207'),('1987-10-28','AA','2217'),('1987-10-28','AA','2230'),('1987-10-28','AA','2245'),('1987-10-28','AA','2251'),('1987-10-28','AA','2251'),('1987-10-28','AA','2275'),('1987-10-28','AA','2278'),('1987-10-28','AA','2351'),('1987-10-28','AA','2361'),('1987-10-28','AA','2490'),('1987-10-28','AA','2528'),('1987-10-28','AA','2528'),('1987-10-28','AA','2751'),('1987-10-28','AL','2'),('1987-10-28','AL','2'),('1987-10-28','AL','7'),('1987-10-28','AL','7'),('1987-10-28','AL','26'),('1987-10-28','AL','34'),('1987-10-28','AL','34'),('1987-10-28','AL','45'),('1987-10-28','AL','91'),('1987-10-28','AL','91'),('1987-10-28','AL','104'),('1987-10-28','AL','104'),('1987-10-28','AL','104'),('1987-10-28','AL','109'),('1987-10-28','AL','112'),('1987-10-28','AL','112'),('1987-10-28','AL','123'),('1987-10-28','AL','149'),('1987-10-28','AL','160'),('1987-10-28','AL','160'),('1987-10-28','AL','165'),('1987-10-28','AL','171'),('1987-10-28','AL','171'),('1987-10-28','AL','176'),('1987-10-28','AL','176'),('1987-10-28','AL','179'),('1987-10-28','AL','215'),('1987-10-28','AL','231'),('1987-10-28','AL','263'),('1987-10-28','AL','263'),('1987-10-28','AL','268'),('1987-10-28','AL','268'),('1987-10-28','AL','268'),('1987-10-28','AL','281'),('1987-10-28','AL','281'),('1987-10-28','AL','287'),('1987-10-28','AL','287'),('1987-10-28','AL','309'),('1987-10-28','AL','309'),('1987-10-28','AL','341'),('1987-10-28','AL','344'),('1987-10-28','AL','344'),('1987-10-28','AL','357'),('1987-10-28','AL','357'),('1987-10-28','AL','368'),('1987-10-28','AL','381'),('1987-10-28','AL','396'),('1987-10-28','AL','397'),('1987-10-28','AL','397'),('1987-10-28','AL','416'),('1987-10-28','AL','416'),('1987-10-28','AL','417'),('1987-10-28','AL','438'),('1987-10-28','AL','438'),('1987-10-28','AL','446'),('1987-10-28','AL','451'),('1987-10-28','AL','451'),('1987-10-28','AL','491'),('1987-10-28','AL','491'),('1987-10-28','AL','523'),('1987-10-28','AL','523'),('1987-10-28','AL','523'),('1987-10-28','AL','525'),('1987-10-28','AL','525'),('1987-10-28','AL','533'),('1987-10-28','AL','533'),('1987-10-28','AL','546'),('1987-10-28','AL','546'),('1987-10-28','AL','556'),('1987-10-28','AL','556'),('1987-10-28','AL','601'),('1987-10-28','AL','601'),('1987-10-28','AL','627'),('1987-10-28','AL','629'),('1987-10-28','AL','670'),('1987-10-28','AL','670'),('1987-10-28','AL','670'),('1987-10-28','AL','673'),('1987-10-28','AL','680'),('1987-10-29','AA','2'),('1987-10-29','AA','2'),('1987-10-29','AA','2'),('1987-10-29','AA','7'),('1987-10-29','AA','7'),('1987-10-29','AA','26'),('1987-10-29','AA','34'),('1987-10-29','AA','36'),('1987-10-29','AA','91'),('1987-10-29','AA','101'),('1987-10-29','AA','101'),('1987-10-29','AA','109'),('1987-10-29','AA','109'),('1987-10-29','AA','112'),('1987-10-29','AA','123'),('1987-10-29','AA','123'),('1987-10-29','AA','160'),('1987-10-29','AA','165'),('1987-10-29','AA','165'),('1987-10-29','AA','165'),('1987-10-29','AA','176'),('1987-10-29','AA','176'),('1987-10-29','AA','176'),('1987-10-29','AA','176'),('1987-10-29','AA','179'),('1987-10-29','AA','179'),('1987-10-29','AA','215'),('1987-10-29','AA','215'),('1987-10-29','AA','231'),('1987-10-29','AA','231'),('1987-10-29','AA','263'),('1987-10-29','AA','263'),('1987-10-29','AA','268'),('1987-10-29','AA','268'),('1987-10-29','AA','281'),('1987-10-29','AA','287'),('1987-10-29','AA','287'),('1987-10-29','AA','309'),('1987-10-29','AA','309'),('1987-10-29','AA','309'),('1987-10-29','AA','341'),('1987-10-29','AA','344'),('1987-10-29','AA','344'),('1987-10-29','AA','347'),('1987-10-29','AA','347'),('1987-10-29','AA','368'),('1987-10-29','AA','381'),('1987-10-29','AA','381'),('1987-10-29','AA','381'),('1987-10-29','AA','396'),('1987-10-29','AA','396'),('1987-10-29','AA','397'),('1987-10-29','AA','397'),('1987-10-29','AA','417'),('1987-10-29','AA','417'),('1987-10-29','AA','451'),('1987-10-29','AA','451'),('1987-10-29','AA','460'),('1987-10-29','AA','460'),('1987-10-29','AA','491'),('1987-10-29','AA','504'),('1987-10-29','AA','504'),('1987-10-29','AA','519'),('1987-10-29','AA','519'),('1987-10-29','AA','523'),('1987-10-29','AA','523'),('1987-10-29','AA','525'),('1987-10-29','AA','525'),('1987-10-29','AA','525'),('1987-10-29','AA','533'),('1987-10-29','AA','533'),('1987-10-29','AA','533'),('1987-10-29','AA','546'),('1987-10-29','AA','546'),('1987-10-29','AA','546'),('1987-10-29','AA','546'),('1987-10-29','AA','556'),('1987-10-29','AA','556'),('1987-10-29','AA','556'),('1987-10-29','AA','597'),('1987-10-29','AA','597'),('1987-10-29','AA','597'),('1987-10-29','AA','601'),('1987-10-29','AA','601'),('1987-10-29','AA','627'),('1987-10-29','AA','629'),('1987-10-29','AA','670'),('1987-10-29','AA','673'),('1987-10-29','AA','680'),('1987-10-29','AA','680'),('1987-10-29','AA','817'),('1987-10-29','AA','817'),('1987-10-29','AA','824'),('1987-10-29','AA','824'),('1987-10-29','AA','824'),('1987-10-29','AA','824'),('1987-10-29','AA','832'),('1987-10-29','AA','832'),('1987-10-29','AA','852'),('1987-10-29','AA','852'),('1987-10-29','AA','866'),('1987-10-29','AA','866'),('1987-10-29','AA','871'),('1987-10-29','AA','871'),('1987-10-29','AA','880'),('1987-10-29','AA','880'),('1987-10-29','AA','880'),('1987-10-29','AA','880'),('1987-10-29','AA','883'),('1987-10-29','AA','883'),('1987-10-29','AA','885'),('1987-10-29','AA','885'),('1987-10-29','AA','885'),('1987-10-29','AA','890'),('1987-10-29','AA','890'),('1987-10-29','AA','893'),('1987-10-29','AA','893'),('1987-10-29','AA','905'),('1987-10-29','AA','915'),('1987-10-29','AA','929'),('1987-10-29','AA','929'),('1987-10-29','AA','936'),('1987-10-29','AA','936'),('1987-10-29','AA','937'),('1987-10-29','AA','937'),('1987-10-29','AA','955'),('1987-10-29','AA','955'),('1987-10-29','AA','966'),('1987-10-29','AA','1002'),('1987-10-29','AA','1002'),('1987-10-29','AA','1004'),('1987-10-29','AA','1004'),('1987-10-29','AA','1015'),('1987-10-29','AA','1015'),('1987-10-29','AA','1021'),('1987-10-29','AA','1021'),('1987-10-29','AA','1041'),('1987-10-29','AA','1041'),('1987-10-29','AA','1046'),('1987-10-29','AA','1048'),('1987-10-29','AA','1048'),('1987-10-29','AA','1061'),('1987-10-29','AA','1061'),('1987-10-29','AA','1088'),('1987-10-29','AA','1088'),('1987-10-29','AA','2033'),('1987-10-29','AA','2033'),('1987-10-29','AA','2050'),('1987-10-29','AA','2058'),('1987-10-29','AA','2071'),('1987-10-29','AA','2071'),('1987-10-29','AA','2086'),('1987-10-29','AA','2105'),('1987-10-29','AA','2111'),('1987-10-29','AA','2123'),('1987-10-29','AA','2123'),('1987-10-29','AA','2147'),('1987-10-29','AA','2147'),('1987-10-29','AA','2199'),('1987-10-29','AA','2199'),('1987-10-29','AA','2207'),('1987-10-29','AA','2207'),('1987-10-29','AA','2217'),('1987-10-29','AA','2230'),('1987-10-29','AA','2251'),('1987-10-29','AA','2251'),('1987-10-29','AA','2275'),('1987-10-29','AA','2278'),('1987-10-29','AA','2351'),('1987-10-29','AA','2357'),('1987-10-29','AA','2361'),('1987-10-29','AA','2490'),('1987-10-29','AA','2528'),('1987-10-29','AA','2735'),('1987-10-29','AA','2735'),('1987-10-29','AA','2751'),('1987-10-29','AL','2'),('1987-10-29','AL','2'),('1987-10-29','AL','7'),('1987-10-29','AL','7'),('1987-10-29','AL','26'),('1987-10-29','AL','26'),('1987-10-29','AL','34'),('1987-10-29','AL','34'),('1987-10-29','AL','36'),('1987-10-29','AL','36'),('1987-10-29','AL','45'),('1987-10-29','AL','45'),('1987-10-29','AL','45'),('1987-10-29','AL','91'),('1987-10-29','AL','91'),('1987-10-29','AL','104'),('1987-10-29','AL','109'),('1987-10-29','AL','112'),('1987-10-29','AL','112'),('1987-10-29','AL','123'),('1987-10-29','AL','149'),('1987-10-29','AL','160'),('1987-10-29','AL','160'),('1987-10-29','AL','165'),('1987-10-29','AL','171'),('1987-10-29','AL','171'),('1987-10-29','AL','176'),('1987-10-29','AL','176'),('1987-10-29','AL','179'),('1987-10-29','AL','215'),('1987-10-29','AL','231'),('1987-10-29','AL','263'),('1987-10-29','AL','263'),('1987-10-29','AL','268'),('1987-10-29','AL','268'),('1987-10-29','AL','268'),('1987-10-29','AL','281'),('1987-10-29','AL','281'),('1987-10-29','AL','287'),('1987-10-29','AL','287'),('1987-10-29','AL','309'),('1987-10-29','AL','309'),('1987-10-29','AL','341'),('1987-10-29','AL','344'),('1987-10-29','AL','344'),('1987-10-29','AL','357'),('1987-10-29','AL','357'),('1987-10-29','AL','368'),('1987-10-29','AL','381'),('1987-10-29','AL','396'),('1987-10-29','AL','397'),('1987-10-29','AL','397'),('1987-10-29','AL','416'),('1987-10-29','AL','416'),('1987-10-29','AL','417'),('1987-10-29','AL','438'),('1987-10-29','AL','438'),('1987-10-29','AL','446'),('1987-10-29','AL','451'),('1987-10-29','AL','451'),('1987-10-29','AL','491'),('1987-10-29','AL','491'),('1987-10-29','AL','523'),('1987-10-29','AL','523'),('1987-10-29','AL','523'),('1987-10-29','AL','525'),('1987-10-29','AL','525'),('1987-10-29','AL','533'),('1987-10-29','AL','533'),('1987-10-29','AL','546'),('1987-10-29','AL','546'),('1987-10-29','AL','556'),('1987-10-29','AL','556'),('1987-10-29','AL','601'),('1987-10-29','AL','601'),('1987-10-29','AL','627'),('1987-10-29','AL','629'),('1987-10-29','AL','670'),('1987-10-29','AL','670'),('1987-10-29','AL','670'),('1987-10-29','AL','673'),('1987-10-29','AL','680'),('1987-10-30','AA','2'),('1987-10-30','AA','2'),('1987-10-30','AA','2'),('1987-10-30','AA','7'),('1987-10-30','AA','7'),('1987-10-30','AA','26'),('1987-10-30','AA','34'),('1987-10-30','AA','91'),('1987-10-30','AA','101'),('1987-10-30','AA','101'),('1987-10-30','AA','109'),('1987-10-30','AA','109'),('1987-10-30','AA','109'),('1987-10-30','AA','112'),('1987-10-30','AA','123'),('1987-10-30','AA','165'),('1987-10-30','AA','165'),('1987-10-30','AA','165'),('1987-10-30','AA','176'),('1987-10-30','AA','176'),('1987-10-30','AA','176'),('1987-10-30','AA','176'),('1987-10-30','AA','179'),('1987-10-30','AA','179'),('1987-10-30','AA','215'),('1987-10-30','AA','215'),('1987-10-30','AA','231'),('1987-10-30','AA','231'),('1987-10-30','AA','263'),('1987-10-30','AA','268'),('1987-10-30','AA','268'),('1987-10-30','AA','281'),('1987-10-30','AA','287'),('1987-10-30','AA','287'),('1987-10-30','AA','309'),('1987-10-30','AA','309'),('1987-10-30','AA','309'),('1987-10-30','AA','344'),('1987-10-30','AA','344'),('1987-10-30','AA','347'),('1987-10-30','AA','347'),('1987-10-30','AA','368'),('1987-10-30','AA','381'),('1987-10-30','AA','381'),('1987-10-30','AA','381'),('1987-10-30','AA','396'),('1987-10-30','AA','396'),('1987-10-30','AA','397'),('1987-10-30','AA','397'),('1987-10-30','AA','417'),('1987-10-30','AA','417'),('1987-10-30','AA','446'),('1987-10-30','AA','451'),('1987-10-30','AA','451'),('1987-10-30','AA','460'),('1987-10-30','AA','460'),('1987-10-30','AA','491'),('1987-10-30','AA','504'),('1987-10-30','AA','504'),('1987-10-30','AA','519'),('1987-10-30','AA','519'),('1987-10-30','AA','523'),('1987-10-30','AA','523'),('1987-10-30','AA','525'),('1987-10-30','AA','525'),('1987-10-30','AA','525'),('1987-10-30','AA','533'),('1987-10-30','AA','533'),('1987-10-30','AA','533'),('1987-10-30','AA','546'),('1987-10-30','AA','546'),('1987-10-30','AA','546'),('1987-10-30','AA','546'),('1987-10-30','AA','556'),('1987-10-30','AA','556'),('1987-10-30','AA','556'),('1987-10-30','AA','597'),('1987-10-30','AA','597'),('1987-10-30','AA','597'),('1987-10-30','AA','601'),('1987-10-30','AA','601'),('1987-10-30','AA','627'),('1987-10-30','AA','629'),('1987-10-30','AA','629'),('1987-10-30','AA','670'),('1987-10-30','AA','673'),('1987-10-30','AA','673'),('1987-10-30','AA','680'),('1987-10-30','AA','817'),('1987-10-30','AA','817'),('1987-10-30','AA','824'),('1987-10-30','AA','824'),('1987-10-30','AA','824'),('1987-10-30','AA','824'),('1987-10-30','AA','832'),('1987-10-30','AA','832'),('1987-10-30','AA','852'),('1987-10-30','AA','866'),('1987-10-30','AA','866'),('1987-10-30','AA','871'),('1987-10-30','AA','871'),('1987-10-30','AA','880'),('1987-10-30','AA','880'),('1987-10-30','AA','880'),('1987-10-30','AA','880'),('1987-10-30','AA','883'),('1987-10-30','AA','883'),('1987-10-30','AA','885'),('1987-10-30','AA','885'),('1987-10-30','AA','885'),('1987-10-30','AA','890'),('1987-10-30','AA','890'),('1987-10-30','AA','893'),('1987-10-30','AA','893'),('1987-10-30','AA','905'),('1987-10-30','AA','905'),('1987-10-30','AA','915'),('1987-10-30','AA','929'),('1987-10-30','AA','929'),('1987-10-30','AA','936'),('1987-10-30','AA','936'),('1987-10-30','AA','937'),('1987-10-30','AA','937'),('1987-10-30','AA','955'),('1987-10-30','AA','955'),('1987-10-30','AA','966'),('1987-10-30','AA','1002'),('1987-10-30','AA','1002'),('1987-10-30','AA','1004'),('1987-10-30','AA','1004'),('1987-10-30','AA','1015'),('1987-10-30','AA','1015'),('1987-10-30','AA','1021'),('1987-10-30','AA','1021'),('1987-10-30','AA','1041'),('1987-10-30','AA','1041'),('1987-10-30','AA','1046'),('1987-10-30','AA','1046'),('1987-10-30','AA','1048'),('1987-10-30','AA','1048'),('1987-10-30','AA','1061'),('1987-10-30','AA','1061'),('1987-10-30','AA','1088'),('1987-10-30','AA','1088'),('1987-10-30','AA','2033'),('1987-10-30','AA','2033'),('1987-10-30','AA','2050'),('1987-10-30','AA','2058'),('1987-10-30','AA','2071'),('1987-10-30','AA','2071'),('1987-10-30','AA','2086'),('1987-10-30','AA','2105'),('1987-10-30','AA','2111'),('1987-10-30','AA','2123'),('1987-10-30','AA','2123'),('1987-10-30','AA','2147'),('1987-10-30','AA','2147'),('1987-10-30','AA','2199'),('1987-10-30','AA','2199'),('1987-10-30','AA','2207'),('1987-10-30','AA','2207'),('1987-10-30','AA','2217'),('1987-10-30','AA','2230'),('1987-10-30','AA','2245'),('1987-10-30','AA','2251'),('1987-10-30','AA','2275'),('1987-10-30','AA','2278'),('1987-10-30','AA','2351'),('1987-10-30','AA','2357'),('1987-10-30','AA','2361'),('1987-10-30','AA','2490'),('1987-10-30','AA','2528'),('1987-10-30','AA','2528'),('1987-10-30','AA','2735'),('1987-10-30','AA','2735'),('1987-10-30','AA','2751'),('1987-10-30','AL','2'),('1987-10-30','AL','2'),('1987-10-30','AL','7'),('1987-10-30','AL','7'),('1987-10-30','AL','26'),('1987-10-30','AL','26'),('1987-10-30','AL','34'),('1987-10-30','AL','34'),('1987-10-30','AL','36'),('1987-10-30','AL','36'),('1987-10-30','AL','45'),('1987-10-30','AL','45'),('1987-10-30','AL','45'),('1987-10-30','AL','91'),('1987-10-30','AL','91'),('1987-10-30','AL','104'),('1987-10-30','AL','104'),('1987-10-30','AL','104'),('1987-10-30','AL','109'),('1987-10-30','AL','112'),('1987-10-30','AL','112'),('1987-10-30','AL','123'),('1987-10-30','AL','149'),('1987-10-30','AL','160'),('1987-10-30','AL','160'),('1987-10-30','AL','165'),('1987-10-30','AL','171'),('1987-10-30','AL','171'),('1987-10-30','AL','176'),('1987-10-30','AL','176'),('1987-10-30','AL','179'),('1987-10-30','AL','215'),('1987-10-30','AL','231'),('1987-10-30','AL','263'),('1987-10-30','AL','263'),('1987-10-30','AL','268'),('1987-10-30','AL','268'),('1987-10-30','AL','268'),('1987-10-30','AL','281'),('1987-10-30','AL','281'),('1987-10-30','AL','287'),('1987-10-30','AL','287'),('1987-10-30','AL','309'),('1987-10-30','AL','309'),('1987-10-30','AL','341'),('1987-10-30','AL','344'),('1987-10-30','AL','344'),('1987-10-30','AL','357'),('1987-10-30','AL','357'),('1987-10-30','AL','368'),('1987-10-30','AL','381'),('1987-10-30','AL','396'),('1987-10-30','AL','397'),('1987-10-30','AL','397'),('1987-10-30','AL','416'),('1987-10-30','AL','416'),('1987-10-30','AL','417'),('1987-10-30','AL','438'),('1987-10-30','AL','438'),('1987-10-30','AL','446'),('1987-10-30','AL','451'),('1987-10-30','AL','451'),('1987-10-30','AL','491'),('1987-10-30','AL','491'),('1987-10-30','AL','523'),('1987-10-30','AL','523'),('1987-10-30','AL','523'),('1987-10-30','AL','525'),('1987-10-30','AL','525'),('1987-10-30','AL','533'),('1987-10-30','AL','533'),('1987-10-30','AL','546'),('1987-10-30','AL','546'),('1987-10-30','AL','556'),('1987-10-30','AL','556'),('1987-10-30','AL','601'),('1987-10-30','AL','601'),('1987-10-30','AL','627'),('1987-10-30','AL','629'),('1987-10-30','AL','670'),('1987-10-30','AL','670'),('1987-10-30','AL','670'),('1987-10-30','AL','673'),('1987-10-30','AL','680'),('1987-10-31','AA','2'),('1987-10-31','AA','2'),('1987-10-31','AA','2'),('1987-10-31','AA','7'),('1987-10-31','AA','7'),('1987-10-31','AA','26'),('1987-10-31','AA','34'),('1987-10-31','AA','36'),('1987-10-31','AA','91'),('1987-10-31','AA','101'),('1987-10-31','AA','101'),('1987-10-31','AA','109'),('1987-10-31','AA','109'),('1987-10-31','AA','112'),('1987-10-31','AA','123'),('1987-10-31','AA','123'),('1987-10-31','AA','160'),('1987-10-31','AA','165'),('1987-10-31','AA','165'),('1987-10-31','AA','165'),('1987-10-31','AA','176'),('1987-10-31','AA','176'),('1987-10-31','AA','176'),('1987-10-31','AA','176'),('1987-10-31','AA','179'),('1987-10-31','AA','179'),('1987-10-31','AA','215'),('1987-10-31','AA','215'),('1987-10-31','AA','231'),('1987-10-31','AA','263'),('1987-10-31','AA','268'),('1987-10-31','AA','268'),('1987-10-31','AA','281'),('1987-10-31','AA','287'),('1987-10-31','AA','287'),('1987-10-31','AA','309'),('1987-10-31','AA','309'),('1987-10-31','AA','309'),('1987-10-31','AA','341'),('1987-10-31','AA','344'),('1987-10-31','AA','344'),('1987-10-31','AA','347'),('1987-10-31','AA','347'),('1987-10-31','AA','368'),('1987-10-31','AA','381'),('1987-10-31','AA','381'),('1987-10-31','AA','381'),('1987-10-31','AA','396'),('1987-10-31','AA','396'),('1987-10-31','AA','397'),('1987-10-31','AA','417'),('1987-10-31','AA','417'),('1987-10-31','AA','446'),('1987-10-31','AA','451'),('1987-10-31','AA','451'),('1987-10-31','AA','491'),('1987-10-31','AA','491'),('1987-10-31','AA','504'),('1987-10-31','AA','504'),('1987-10-31','AA','519'),('1987-10-31','AA','519'),('1987-10-31','AA','523'),('1987-10-31','AA','523'),('1987-10-31','AA','525'),('1987-10-31','AA','525'),('1987-10-31','AA','533'),('1987-10-31','AA','533'),('1987-10-31','AA','546'),('1987-10-31','AA','546'),('1987-10-31','AA','546'),('1987-10-31','AA','546'),('1987-10-31','AA','556'),('1987-10-31','AA','556'),('1987-10-31','AA','556'),('1987-10-31','AA','597'),('1987-10-31','AA','597'),('1987-10-31','AA','597'),('1987-10-31','AA','601'),('1987-10-31','AA','601'),('1987-10-31','AA','627'),('1987-10-31','AA','629'),('1987-10-31','AA','670'),('1987-10-31','AA','673'),('1987-10-31','AA','673'),('1987-10-31','AA','680'),('1987-10-31','AA','680'),('1987-10-31','AA','817'),('1987-10-31','AA','817'),('1987-10-31','AA','824'),('1987-10-31','AA','824'),('1987-10-31','AA','824'),('1987-10-31','AA','832'),('1987-10-31','AA','832'),('1987-10-31','AA','852'),('1987-10-31','AA','852'),('1987-10-31','AA','866'),('1987-10-31','AA','871'),('1987-10-31','AA','871'),('1987-10-31','AA','880'),('1987-10-31','AA','880'),('1987-10-31','AA','880'),('1987-10-31','AA','883'),('1987-10-31','AA','885'),('1987-10-31','AA','885'),('1987-10-31','AA','885'),('1987-10-31','AA','890'),('1987-10-31','AA','890'),('1987-10-31','AA','893'),('1987-10-31','AA','893'),('1987-10-31','AA','905'),('1987-10-31','AA','905'),('1987-10-31','AA','915'),('1987-10-31','AA','929'),('1987-10-31','AA','929'),('1987-10-31','AA','936'),('1987-10-31','AA','936'),('1987-10-31','AA','937'),('1987-10-31','AA','937'),('1987-10-31','AA','955'),('1987-10-31','AA','955'),('1987-10-31','AA','1002'),('1987-10-31','AA','1002'),('1987-10-31','AA','1004'),('1987-10-31','AA','1004'),('1987-10-31','AA','1015'),('1987-10-31','AA','1015'),('1987-10-31','AA','1021'),('1987-10-31','AA','1021'),('1987-10-31','AA','1041'),('1987-10-31','AA','1041'),('1987-10-31','AA','1046'),('1987-10-31','AA','1046'),('1987-10-31','AA','1048'),('1987-10-31','AA','1048'),('1987-10-31','AA','1061'),('1987-10-31','AA','1061'),('1987-10-31','AA','1088'),('1987-10-31','AA','1088'),('1987-10-31','AA','2033'),('1987-10-31','AA','2058'),('1987-10-31','AA','2086'),('1987-10-31','AA','2105'),('1987-10-31','AA','2123'),('1987-10-31','AA','2123'),('1987-10-31','AA','2147'),('1987-10-31','AA','2147'),('1987-10-31','AA','2199'),('1987-10-31','AA','2199'),('1987-10-31','AA','2207'),('1987-10-31','AA','2207'),('1987-10-31','AA','2217'),('1987-10-31','AA','2230'),('1987-10-31','AA','2251'),('1987-10-31','AA','2251'),('1987-10-31','AA','2275'),('1987-10-31','AA','2278'),('1987-10-31','AA','2351'),('1987-10-31','AA','2357'),('1987-10-31','AA','2361'),('1987-10-31','AA','2528'),('1987-10-31','AA','2528'),('1987-10-31','AA','2735'),('1987-10-31','AA','2735'),('1987-10-31','AL','2'),('1987-10-31','AL','2'),('1987-10-31','AL','7'),('1987-10-31','AL','7'),('1987-10-31','AL','26'),('1987-10-31','AL','26'),('1987-10-31','AL','34'),('1987-10-31','AL','34'),('1987-10-31','AL','36'),('1987-10-31','AL','36'),('1987-10-31','AL','91'),('1987-10-31','AL','91'),('1987-10-31','AL','104'),('1987-10-31','AL','104'),('1987-10-31','AL','109'),('1987-10-31','AL','112'),('1987-10-31','AL','112'),('1987-10-31','AL','149'),('1987-10-31','AL','160'),('1987-10-31','AL','160'),('1987-10-31','AL','165'),('1987-10-31','AL','171'),('1987-10-31','AL','171'),('1987-10-31','AL','176'),('1987-10-31','AL','176'),('1987-10-31','AL','179'),('1987-10-31','AL','215'),('1987-10-31','AL','231'),('1987-10-31','AL','263'),('1987-10-31','AL','268'),('1987-10-31','AL','268'),('1987-10-31','AL','268'),('1987-10-31','AL','287'),('1987-10-31','AL','287'),('1987-10-31','AL','309'),('1987-10-31','AL','309'),('1987-10-31','AL','344'),('1987-10-31','AL','344'),('1987-10-31','AL','357'),('1987-10-31','AL','357'),('1987-10-31','AL','381'),('1987-10-31','AL','396'),('1987-10-31','AL','397'),('1987-10-31','AL','397'),('1987-10-31','AL','397'),('1987-10-31','AL','416'),('1987-10-31','AL','417'),('1987-10-31','AL','438'),('1987-10-31','AL','438'),('1987-10-31','AL','451'),('1987-10-31','AL','451'),('1987-10-31','AL','491'),('1987-10-31','AL','491'),('1987-10-31','AL','523'),('1987-10-31','AL','523'),('1987-10-31','AL','525'),('1987-10-31','AL','525'),('1987-10-31','AL','533'),('1987-10-31','AL','546'),('1987-10-31','AL','546'),('1987-10-31','AL','556'),('1987-10-31','AL','556'),('1987-10-31','AL','601'),('1987-10-31','AL','601'),('1987-10-31','AL','627'),('1987-10-31','AL','670'),('1987-10-31','AL','673'),('1987-10-31','AL','680'),('1987-10-31','AL','745'),('1987-10-31','AL','797'),('1987-10-31','AL','905'),('1987-10-31','AL','936'),('1987-10-31','AL','966'),('1987-10-31','AL','982'); +INSERT INTO ontime VALUES ('1987-10-01','AA','2'),('1987-10-01','AA','2'),('1987-10-01','AA','7'),('1987-10-01','AA','7'),('1987-10-01','AA','26'),('1987-10-01','AA','34'),('1987-10-01','AA','36'),('1987-10-01','AA','91'),('1987-10-01','AA','101'),('1987-10-01','AA','101'),('1987-10-01','AA','109'),('1987-10-01','AA','109'),('1987-10-01','AA','112'),('1987-10-01','AA','123'),('1987-10-01','AA','160'),('1987-10-01','AA','165'),('1987-10-01','AA','165'),('1987-10-01','AA','165'),('1987-10-01','AA','176'),('1987-10-01','AA','176'),('1987-10-01','AA','176'),('1987-10-01','AA','176'),('1987-10-01','AA','179'),('1987-10-01','AA','179'),('1987-10-01','AA','215'),('1987-10-01','AA','215'),('1987-10-01','AA','231'),('1987-10-01','AA','231'),('1987-10-01','AA','263'),('1987-10-01','AA','263'),('1987-10-01','AA','268'),('1987-10-01','AA','268'),('1987-10-01','AA','281'),('1987-10-01','AA','287'),('1987-10-01','AA','287'),('1987-10-01','AA','309'),('1987-10-01','AA','309'),('1987-10-01','AA','309'),('1987-10-01','AA','341'),('1987-10-01','AA','344'),('1987-10-01','AA','344'),('1987-10-01','AA','347'),('1987-10-01','AA','347'),('1987-10-01','AA','368'),('1987-10-01','AA','381'),('1987-10-01','AA','381'),('1987-10-01','AA','381'),('1987-10-01','AA','396'),('1987-10-01','AA','396'),('1987-10-01','AA','397'),('1987-10-01','AA','397'),('1987-10-01','AA','417'),('1987-10-01','AA','417'),('1987-10-01','AA','446'),('1987-10-01','AA','451'),('1987-10-01','AA','451'),('1987-10-01','AA','460'),('1987-10-01','AA','460'),('1987-10-01','AA','491'),('1987-10-01','AA','504'),('1987-10-01','AA','504'),('1987-10-01','AA','519'),('1987-10-01','AA','519'),('1987-10-01','AA','523'),('1987-10-01','AA','523'),('1987-10-01','AA','525'),('1987-10-01','AA','525'),('1987-10-01','AA','525'),('1987-10-01','AA','533'),('1987-10-01','AA','533'),('1987-10-01','AA','533'),('1987-10-01','AA','546'),('1987-10-01','AA','546'),('1987-10-01','AA','556'),('1987-10-01','AA','556'),('1987-10-01','AA','556'),('1987-10-01','AA','597'),('1987-10-01','AA','597'),('1987-10-01','AA','597'),('1987-10-01','AA','601'),('1987-10-01','AA','601'),('1987-10-01','AA','627'),('1987-10-01','AA','670'),('1987-10-01','AA','673'),('1987-10-01','AA','673'),('1987-10-01','AA','680'),('1987-10-01','AA','680'),('1987-10-01','AA','817'),('1987-10-01','AA','817'),('1987-10-01','AA','824'),('1987-10-01','AA','824'),('1987-10-01','AA','824'),('1987-10-01','AA','824'),('1987-10-01','AA','832'),('1987-10-01','AA','832'),('1987-10-01','AA','852'),('1987-10-01','AA','852'),('1987-10-01','AA','866'),('1987-10-01','AA','866'),('1987-10-01','AA','871'),('1987-10-01','AA','871'),('1987-10-01','AA','880'),('1987-10-01','AA','880'),('1987-10-01','AA','880'),('1987-10-01','AA','880'),('1987-10-01','AA','883'),('1987-10-01','AA','883'),('1987-10-01','AA','885'),('1987-10-01','AA','885'),('1987-10-01','AA','885'),('1987-10-01','AA','890'),('1987-10-01','AA','893'),('1987-10-01','AA','893'),('1987-10-01','AA','905'),('1987-10-01','AA','905'),('1987-10-01','AA','929'),('1987-10-01','AA','929'),('1987-10-01','AA','936'),('1987-10-01','AA','936'),('1987-10-01','AA','937'),('1987-10-01','AA','937'),('1987-10-01','AA','955'),('1987-10-01','AA','966'),('1987-10-01','AA','1002'),('1987-10-01','AA','1002'),('1987-10-01','AA','1004'),('1987-10-01','AA','1004'),('1987-10-01','AA','1015'),('1987-10-01','AA','1015'),('1987-10-01','AA','1021'),('1987-10-01','AA','1021'),('1987-10-01','AA','1041'),('1987-10-01','AA','1041'),('1987-10-01','AA','1046'),('1987-10-01','AA','1046'),('1987-10-01','AA','1048'),('1987-10-01','AA','1048'),('1987-10-01','AA','1061'),('1987-10-01','AA','1061'),('1987-10-01','AA','1088'),('1987-10-01','AA','1088'),('1987-10-01','AA','2033'),('1987-10-01','AA','2033'),('1987-10-01','AA','2050'),('1987-10-01','AA','2058'),('1987-10-01','AA','2071'),('1987-10-01','AA','2071'),('1987-10-01','AA','2086'),('1987-10-01','AA','2105'),('1987-10-01','AA','2111'),('1987-10-01','AA','2123'),('1987-10-01','AA','2123'),('1987-10-01','AA','2147'),('1987-10-01','AA','2147'),('1987-10-01','AA','2199'),('1987-10-01','AA','2199'),('1987-10-01','AA','2207'),('1987-10-01','AA','2207'),('1987-10-01','AA','2217'),('1987-10-01','AA','2230'),('1987-10-01','AA','2245'),('1987-10-01','AA','2251'),('1987-10-01','AA','2251'),('1987-10-01','AA','2275'),('1987-10-01','AA','2278'),('1987-10-01','AA','2351'),('1987-10-01','AA','2357'),('1987-10-01','AA','2490'),('1987-10-01','AA','2528'),('1987-10-01','AA','2528'),('1987-10-01','AA','2735'),('1987-10-01','AA','2735'),('1987-10-01','AA','2751'),('1987-10-01','AL','2'),('1987-10-01','AL','2'),('1987-10-01','AL','7'),('1987-10-01','AL','7'),('1987-10-01','AL','26'),('1987-10-01','AL','26'),('1987-10-01','AL','34'),('1987-10-01','AL','34'),('1987-10-01','AL','36'),('1987-10-01','AL','36'),('1987-10-01','AL','45'),('1987-10-01','AL','45'),('1987-10-01','AL','45'),('1987-10-01','AL','91'),('1987-10-01','AL','91'),('1987-10-01','AL','104'),('1987-10-01','AL','104'),('1987-10-01','AL','104'),('1987-10-01','AL','109'),('1987-10-01','AL','112'),('1987-10-01','AL','112'),('1987-10-01','AL','123'),('1987-10-01','AL','149'),('1987-10-01','AL','160'),('1987-10-01','AL','160'),('1987-10-01','AL','165'),('1987-10-01','AL','171'),('1987-10-01','AL','171'),('1987-10-01','AL','176'),('1987-10-01','AL','176'),('1987-10-01','AL','179'),('1987-10-01','AL','215'),('1987-10-01','AL','231'),('1987-10-01','AL','263'),('1987-10-01','AL','263'),('1987-10-01','AL','268'),('1987-10-01','AL','268'),('1987-10-01','AL','268'),('1987-10-01','AL','281'),('1987-10-01','AL','281'),('1987-10-01','AL','287'),('1987-10-01','AL','287'),('1987-10-01','AL','309'),('1987-10-01','AL','309'),('1987-10-01','AL','341'),('1987-10-01','AL','344'),('1987-10-01','AL','344'),('1987-10-01','AL','357'),('1987-10-01','AL','357'),('1987-10-01','AL','368'),('1987-10-01','AL','381'),('1987-10-01','AL','396'),('1987-10-01','AL','397'),('1987-10-01','AL','397'),('1987-10-01','AL','416'),('1987-10-01','AL','416'),('1987-10-01','AL','417'),('1987-10-01','AL','438'),('1987-10-01','AL','446'),('1987-10-01','AL','451'),('1987-10-01','AL','451'),('1987-10-01','AL','491'),('1987-10-01','AL','491'),('1987-10-01','AL','523'),('1987-10-01','AL','523'),('1987-10-01','AL','523'),('1987-10-01','AL','525'),('1987-10-01','AL','525'),('1987-10-01','AL','533'),('1987-10-01','AL','533'),('1987-10-01','AL','546'),('1987-10-01','AL','546'),('1987-10-01','AL','556'),('1987-10-01','AL','556'),('1987-10-01','AL','601'),('1987-10-01','AL','601'),('1987-10-01','AL','627'),('1987-10-01','AL','629'),('1987-10-01','AL','670'),('1987-10-01','AL','670'),('1987-10-01','AL','670'),('1987-10-01','AL','673'),('1987-10-01','AL','680'),('1987-10-01','AL','700'),('1987-10-02','AA','2'),('1987-10-02','AA','2'),('1987-10-02','AA','2'),('1987-10-02','AA','7'),('1987-10-02','AA','7'),('1987-10-02','AA','26'),('1987-10-02','AA','34'),('1987-10-02','AA','36'),('1987-10-02','AA','91'),('1987-10-02','AA','101'),('1987-10-02','AA','101'),('1987-10-02','AA','109'),('1987-10-02','AA','109'),('1987-10-02','AA','112'),('1987-10-02','AA','123'),('1987-10-02','AA','123'),('1987-10-02','AA','160'),('1987-10-02','AA','165'),('1987-10-02','AA','165'),('1987-10-02','AA','165'),('1987-10-02','AA','176'),('1987-10-02','AA','176'),('1987-10-02','AA','176'),('1987-10-02','AA','176'),('1987-10-02','AA','179'),('1987-10-02','AA','179'),('1987-10-02','AA','215'),('1987-10-02','AA','215'),('1987-10-02','AA','231'),('1987-10-02','AA','231'),('1987-10-02','AA','263'),('1987-10-02','AA','263'),('1987-10-02','AA','268'),('1987-10-02','AA','281'),('1987-10-02','AA','287'),('1987-10-02','AA','287'),('1987-10-02','AA','309'),('1987-10-02','AA','309'),('1987-10-02','AA','309'),('1987-10-02','AA','341'),('1987-10-02','AA','344'),('1987-10-02','AA','344'),('1987-10-02','AA','347'),('1987-10-02','AA','347'),('1987-10-02','AA','368'),('1987-10-02','AA','381'),('1987-10-02','AA','381'),('1987-10-02','AA','381'),('1987-10-02','AA','396'),('1987-10-02','AA','396'),('1987-10-02','AA','397'),('1987-10-02','AA','397'),('1987-10-02','AA','417'),('1987-10-02','AA','417'),('1987-10-02','AA','446'),('1987-10-02','AA','451'),('1987-10-02','AA','451'),('1987-10-02','AA','460'),('1987-10-02','AA','460'),('1987-10-02','AA','491'),('1987-10-02','AA','504'),('1987-10-02','AA','504'),('1987-10-02','AA','519'),('1987-10-02','AA','519'),('1987-10-02','AA','523'),('1987-10-02','AA','523'),('1987-10-02','AA','525'),('1987-10-02','AA','525'),('1987-10-02','AA','525'),('1987-10-02','AA','533'),('1987-10-02','AA','533'),('1987-10-02','AA','533'),('1987-10-02','AA','546'),('1987-10-02','AA','546'),('1987-10-02','AA','546'),('1987-10-02','AA','546'),('1987-10-02','AA','556'),('1987-10-02','AA','556'),('1987-10-02','AA','556'),('1987-10-02','AA','597'),('1987-10-02','AA','597'),('1987-10-02','AA','597'),('1987-10-02','AA','601'),('1987-10-02','AA','601'),('1987-10-02','AA','627'),('1987-10-02','AA','629'),('1987-10-02','AA','629'),('1987-10-02','AA','670'),('1987-10-02','AA','673'),('1987-10-02','AA','673'),('1987-10-02','AA','680'),('1987-10-02','AA','680'),('1987-10-02','AA','817'),('1987-10-02','AA','817'),('1987-10-02','AA','824'),('1987-10-02','AA','824'),('1987-10-02','AA','824'),('1987-10-02','AA','824'),('1987-10-02','AA','832'),('1987-10-02','AA','832'),('1987-10-02','AA','852'),('1987-10-02','AA','866'),('1987-10-02','AA','866'),('1987-10-02','AA','871'),('1987-10-02','AA','871'),('1987-10-02','AA','880'),('1987-10-02','AA','880'),('1987-10-02','AA','880'),('1987-10-02','AA','880'),('1987-10-02','AA','883'),('1987-10-02','AA','883'),('1987-10-02','AA','885'),('1987-10-02','AA','885'),('1987-10-02','AA','885'),('1987-10-02','AA','890'),('1987-10-02','AA','890'),('1987-10-02','AA','893'),('1987-10-02','AA','893'),('1987-10-02','AA','905'),('1987-10-02','AA','905'),('1987-10-02','AA','915'),('1987-10-02','AA','929'),('1987-10-02','AA','929'),('1987-10-02','AA','936'),('1987-10-02','AA','936'),('1987-10-02','AA','937'),('1987-10-02','AA','937'),('1987-10-02','AA','955'),('1987-10-02','AA','955'),('1987-10-02','AA','966'),('1987-10-02','AA','1002'),('1987-10-02','AA','1002'),('1987-10-02','AA','1004'),('1987-10-02','AA','1004'),('1987-10-02','AA','1015'),('1987-10-02','AA','1015'),('1987-10-02','AA','1021'),('1987-10-02','AA','1021'),('1987-10-02','AA','1041'),('1987-10-02','AA','1041'),('1987-10-02','AA','1046'),('1987-10-02','AA','1046'),('1987-10-02','AA','1048'),('1987-10-02','AA','1048'),('1987-10-02','AA','1061'),('1987-10-02','AA','1061'),('1987-10-02','AA','1088'),('1987-10-02','AA','1088'),('1987-10-02','AA','2033'),('1987-10-02','AA','2033'),('1987-10-02','AA','2050'),('1987-10-02','AA','2058'),('1987-10-02','AA','2071'),('1987-10-02','AA','2071'),('1987-10-02','AA','2086'),('1987-10-02','AA','2105'),('1987-10-02','AA','2111'),('1987-10-02','AA','2123'),('1987-10-02','AA','2123'),('1987-10-02','AA','2147'),('1987-10-02','AA','2147'),('1987-10-02','AA','2199'),('1987-10-02','AA','2199'),('1987-10-02','AA','2207'),('1987-10-02','AA','2207'),('1987-10-02','AA','2217'),('1987-10-02','AA','2230'),('1987-10-02','AA','2245'),('1987-10-02','AA','2251'),('1987-10-02','AA','2251'),('1987-10-02','AA','2275'),('1987-10-02','AA','2278'),('1987-10-02','AA','2351'),('1987-10-02','AA','2357'),('1987-10-02','AA','2361'),('1987-10-02','AA','2490'),('1987-10-02','AA','2528'),('1987-10-02','AA','2528'),('1987-10-02','AA','2735'),('1987-10-02','AA','2735'),('1987-10-02','AA','2751'),('1987-10-02','AL','2'),('1987-10-02','AL','2'),('1987-10-02','AL','7'),('1987-10-02','AL','7'),('1987-10-02','AL','26'),('1987-10-02','AL','26'),('1987-10-02','AL','34'),('1987-10-02','AL','34'),('1987-10-02','AL','36'),('1987-10-02','AL','36'),('1987-10-02','AL','45'),('1987-10-02','AL','45'),('1987-10-02','AL','45'),('1987-10-02','AL','91'),('1987-10-02','AL','91'),('1987-10-02','AL','104'),('1987-10-02','AL','104'),('1987-10-02','AL','104'),('1987-10-02','AL','109'),('1987-10-02','AL','112'),('1987-10-02','AL','112'),('1987-10-02','AL','123'),('1987-10-02','AL','149'),('1987-10-02','AL','160'),('1987-10-02','AL','160'),('1987-10-02','AL','165'),('1987-10-02','AL','171'),('1987-10-02','AL','171'),('1987-10-02','AL','176'),('1987-10-02','AL','176'),('1987-10-02','AL','179'),('1987-10-02','AL','215'),('1987-10-02','AL','231'),('1987-10-02','AL','263'),('1987-10-02','AL','263'),('1987-10-02','AL','268'),('1987-10-02','AL','268'),('1987-10-02','AL','268'),('1987-10-02','AL','281'),('1987-10-02','AL','281'),('1987-10-02','AL','287'),('1987-10-02','AL','287'),('1987-10-02','AL','309'),('1987-10-02','AL','309'),('1987-10-02','AL','341'),('1987-10-02','AL','344'),('1987-10-02','AL','344'),('1987-10-02','AL','357'),('1987-10-02','AL','357'),('1987-10-02','AL','368'),('1987-10-02','AL','381'),('1987-10-02','AL','396'),('1987-10-02','AL','397'),('1987-10-02','AL','397'),('1987-10-02','AL','416'),('1987-10-02','AL','416'),('1987-10-02','AL','417'),('1987-10-02','AL','438'),('1987-10-02','AL','438'),('1987-10-02','AL','446'),('1987-10-02','AL','451'),('1987-10-02','AL','451'),('1987-10-02','AL','491'),('1987-10-02','AL','491'),('1987-10-02','AL','523'),('1987-10-02','AL','523'),('1987-10-02','AL','523'),('1987-10-02','AL','525'),('1987-10-02','AL','525'),('1987-10-02','AL','533'),('1987-10-02','AL','533'),('1987-10-02','AL','546'),('1987-10-02','AL','546'),('1987-10-02','AL','556'),('1987-10-02','AL','556'),('1987-10-02','AL','601'),('1987-10-02','AL','601'),('1987-10-02','AL','627'),('1987-10-02','AL','629'),('1987-10-02','AL','670'),('1987-10-02','AL','670'),('1987-10-02','AL','670'),('1987-10-02','AL','673'),('1987-10-02','AL','680'),('1987-10-03','AA','2'),('1987-10-03','AA','2'),('1987-10-03','AA','2'),('1987-10-03','AA','7'),('1987-10-03','AA','7'),('1987-10-03','AA','26'),('1987-10-03','AA','34'),('1987-10-03','AA','36'),('1987-10-03','AA','91'),('1987-10-03','AA','101'),('1987-10-03','AA','101'),('1987-10-03','AA','109'),('1987-10-03','AA','109'),('1987-10-03','AA','112'),('1987-10-03','AA','123'),('1987-10-03','AA','123'),('1987-10-03','AA','165'),('1987-10-03','AA','165'),('1987-10-03','AA','165'),('1987-10-03','AA','176'),('1987-10-03','AA','176'),('1987-10-03','AA','176'),('1987-10-03','AA','176'),('1987-10-03','AA','179'),('1987-10-03','AA','179'),('1987-10-03','AA','215'),('1987-10-03','AA','215'),('1987-10-03','AA','231'),('1987-10-03','AA','231'),('1987-10-03','AA','263'),('1987-10-03','AA','263'),('1987-10-03','AA','268'),('1987-10-03','AA','281'),('1987-10-03','AA','287'),('1987-10-03','AA','287'),('1987-10-03','AA','309'),('1987-10-03','AA','309'),('1987-10-03','AA','309'),('1987-10-03','AA','341'),('1987-10-03','AA','344'),('1987-10-03','AA','344'),('1987-10-03','AA','347'),('1987-10-03','AA','347'),('1987-10-03','AA','368'),('1987-10-03','AA','381'),('1987-10-03','AA','381'),('1987-10-03','AA','381'),('1987-10-03','AA','396'),('1987-10-03','AA','396'),('1987-10-03','AA','397'),('1987-10-03','AA','397'),('1987-10-03','AA','417'),('1987-10-03','AA','417'),('1987-10-03','AA','446'),('1987-10-03','AA','451'),('1987-10-03','AA','451'),('1987-10-03','AA','460'),('1987-10-03','AA','460'),('1987-10-03','AA','491'),('1987-10-03','AA','491'),('1987-10-03','AA','504'),('1987-10-03','AA','504'),('1987-10-03','AA','519'),('1987-10-03','AA','519'),('1987-10-03','AA','523'),('1987-10-03','AA','523'),('1987-10-03','AA','525'),('1987-10-03','AA','525'),('1987-10-03','AA','525'),('1987-10-03','AA','533'),('1987-10-03','AA','533'),('1987-10-03','AA','546'),('1987-10-03','AA','546'),('1987-10-03','AA','546'),('1987-10-03','AA','546'),('1987-10-03','AA','556'),('1987-10-03','AA','556'),('1987-10-03','AA','556'),('1987-10-03','AA','597'),('1987-10-03','AA','597'),('1987-10-03','AA','597'),('1987-10-03','AA','601'),('1987-10-03','AA','601'),('1987-10-03','AA','627'),('1987-10-03','AA','629'),('1987-10-03','AA','629'),('1987-10-03','AA','670'),('1987-10-03','AA','673'),('1987-10-03','AA','673'),('1987-10-03','AA','680'),('1987-10-03','AA','680'),('1987-10-03','AA','817'),('1987-10-03','AA','817'),('1987-10-03','AA','824'),('1987-10-03','AA','824'),('1987-10-03','AA','824'),('1987-10-03','AA','824'),('1987-10-03','AA','832'),('1987-10-03','AA','832'),('1987-10-03','AA','852'),('1987-10-03','AA','852'),('1987-10-03','AA','866'),('1987-10-03','AA','866'),('1987-10-03','AA','871'),('1987-10-03','AA','871'),('1987-10-03','AA','880'),('1987-10-03','AA','880'),('1987-10-03','AA','880'),('1987-10-03','AA','880'),('1987-10-03','AA','883'),('1987-10-03','AA','883'),('1987-10-03','AA','885'),('1987-10-03','AA','885'),('1987-10-03','AA','885'),('1987-10-03','AA','890'),('1987-10-03','AA','890'),('1987-10-03','AA','893'),('1987-10-03','AA','893'),('1987-10-03','AA','905'),('1987-10-03','AA','905'),('1987-10-03','AA','915'),('1987-10-03','AA','929'),('1987-10-03','AA','929'),('1987-10-03','AA','936'),('1987-10-03','AA','936'),('1987-10-03','AA','937'),('1987-10-03','AA','937'),('1987-10-03','AA','955'),('1987-10-03','AA','955'),('1987-10-03','AA','966'),('1987-10-03','AA','1002'),('1987-10-03','AA','1002'),('1987-10-03','AA','1004'),('1987-10-03','AA','1004'),('1987-10-03','AA','1015'),('1987-10-03','AA','1015'),('1987-10-03','AA','1021'),('1987-10-03','AA','1041'),('1987-10-03','AA','1041'),('1987-10-03','AA','1046'),('1987-10-03','AA','1046'),('1987-10-03','AA','1048'),('1987-10-03','AA','1048'),('1987-10-03','AA','1061'),('1987-10-03','AA','1061'),('1987-10-03','AA','1088'),('1987-10-03','AA','1088'),('1987-10-03','AA','2033'),('1987-10-03','AA','2033'),('1987-10-03','AA','2050'),('1987-10-03','AA','2058'),('1987-10-03','AA','2071'),('1987-10-03','AA','2071'),('1987-10-03','AA','2086'),('1987-10-03','AA','2105'),('1987-10-03','AA','2111'),('1987-10-03','AA','2123'),('1987-10-03','AA','2123'),('1987-10-03','AA','2147'),('1987-10-03','AA','2147'),('1987-10-03','AA','2199'),('1987-10-03','AA','2207'),('1987-10-03','AA','2207'),('1987-10-03','AA','2245'),('1987-10-03','AA','2251'),('1987-10-03','AA','2251'),('1987-10-03','AA','2275'),('1987-10-03','AA','2278'),('1987-10-03','AA','2361'),('1987-10-03','AA','2490'),('1987-10-03','AA','2528'),('1987-10-03','AA','2528'),('1987-10-03','AA','2735'),('1987-10-03','AA','2735'),('1987-10-03','AL','2'),('1987-10-03','AL','2'),('1987-10-03','AL','7'),('1987-10-03','AL','7'),('1987-10-03','AL','26'),('1987-10-03','AL','26'),('1987-10-03','AL','34'),('1987-10-03','AL','34'),('1987-10-03','AL','36'),('1987-10-03','AL','36'),('1987-10-03','AL','45'),('1987-10-03','AL','45'),('1987-10-03','AL','45'),('1987-10-03','AL','91'),('1987-10-03','AL','91'),('1987-10-03','AL','104'),('1987-10-03','AL','104'),('1987-10-03','AL','109'),('1987-10-03','AL','112'),('1987-10-03','AL','112'),('1987-10-03','AL','149'),('1987-10-03','AL','160'),('1987-10-03','AL','160'),('1987-10-03','AL','165'),('1987-10-03','AL','171'),('1987-10-03','AL','171'),('1987-10-03','AL','176'),('1987-10-03','AL','176'),('1987-10-03','AL','179'),('1987-10-03','AL','215'),('1987-10-03','AL','231'),('1987-10-03','AL','263'),('1987-10-03','AL','287'),('1987-10-03','AL','287'),('1987-10-03','AL','309'),('1987-10-03','AL','309'),('1987-10-03','AL','344'),('1987-10-03','AL','344'),('1987-10-03','AL','357'),('1987-10-03','AL','357'),('1987-10-03','AL','381'),('1987-10-03','AL','396'),('1987-10-03','AL','397'),('1987-10-03','AL','397'),('1987-10-03','AL','397'),('1987-10-03','AL','416'),('1987-10-03','AL','417'),('1987-10-03','AL','438'),('1987-10-03','AL','451'),('1987-10-03','AL','451'),('1987-10-03','AL','491'),('1987-10-03','AL','491'),('1987-10-03','AL','523'),('1987-10-03','AL','523'),('1987-10-03','AL','525'),('1987-10-03','AL','525'),('1987-10-03','AL','533'),('1987-10-03','AL','546'),('1987-10-03','AL','546'),('1987-10-03','AL','556'),('1987-10-03','AL','556'),('1987-10-03','AL','601'),('1987-10-03','AL','601'),('1987-10-03','AL','627'),('1987-10-03','AL','670'),('1987-10-03','AL','673'),('1987-10-03','AL','680'),('1987-10-03','AL','905'),('1987-10-03','AL','936'),('1987-10-03','AL','966'),('1987-10-04','AA','2'),('1987-10-04','AA','2'),('1987-10-04','AA','2'),('1987-10-04','AA','7'),('1987-10-04','AA','7'),('1987-10-04','AA','26'),('1987-10-04','AA','34'),('1987-10-04','AA','36'),('1987-10-04','AA','91'),('1987-10-04','AA','101'),('1987-10-04','AA','101'),('1987-10-04','AA','109'),('1987-10-04','AA','109'),('1987-10-04','AA','112'),('1987-10-04','AA','123'),('1987-10-04','AA','123'),('1987-10-04','AA','160'),('1987-10-04','AA','165'),('1987-10-04','AA','165'),('1987-10-04','AA','165'),('1987-10-04','AA','176'),('1987-10-04','AA','176'),('1987-10-04','AA','176'),('1987-10-04','AA','176'),('1987-10-04','AA','179'),('1987-10-04','AA','179'),('1987-10-04','AA','215'),('1987-10-04','AA','215'),('1987-10-04','AA','231'),('1987-10-04','AA','231'),('1987-10-04','AA','263'),('1987-10-04','AA','263'),('1987-10-04','AA','268'),('1987-10-04','AA','268'),('1987-10-04','AA','281'),('1987-10-04','AA','287'),('1987-10-04','AA','287'),('1987-10-04','AA','309'),('1987-10-04','AA','309'),('1987-10-04','AA','309'),('1987-10-04','AA','341'),('1987-10-04','AA','344'),('1987-10-04','AA','344'),('1987-10-04','AA','347'),('1987-10-04','AA','347'),('1987-10-04','AA','381'),('1987-10-04','AA','381'),('1987-10-04','AA','381'),('1987-10-04','AA','396'),('1987-10-04','AA','396'),('1987-10-04','AA','397'),('1987-10-04','AA','397'),('1987-10-04','AA','417'),('1987-10-04','AA','417'),('1987-10-04','AA','446'),('1987-10-04','AA','451'),('1987-10-04','AA','451'),('1987-10-04','AA','460'),('1987-10-04','AA','460'),('1987-10-04','AA','491'),('1987-10-04','AA','491'),('1987-10-04','AA','504'),('1987-10-04','AA','504'),('1987-10-04','AA','519'),('1987-10-04','AA','519'),('1987-10-04','AA','523'),('1987-10-04','AA','523'),('1987-10-04','AA','525'),('1987-10-04','AA','525'),('1987-10-04','AA','525'),('1987-10-04','AA','533'),('1987-10-04','AA','533'),('1987-10-04','AA','533'),('1987-10-04','AA','546'),('1987-10-04','AA','546'),('1987-10-04','AA','546'),('1987-10-04','AA','546'),('1987-10-04','AA','556'),('1987-10-04','AA','556'),('1987-10-04','AA','556'),('1987-10-04','AA','597'),('1987-10-04','AA','597'),('1987-10-04','AA','597'),('1987-10-04','AA','601'),('1987-10-04','AA','601'),('1987-10-04','AA','627'),('1987-10-04','AA','629'),('1987-10-04','AA','629'),('1987-10-04','AA','670'),('1987-10-04','AA','673'),('1987-10-04','AA','673'),('1987-10-04','AA','680'),('1987-10-04','AA','680'),('1987-10-04','AA','817'),('1987-10-04','AA','817'),('1987-10-04','AA','824'),('1987-10-04','AA','824'),('1987-10-04','AA','824'),('1987-10-04','AA','832'),('1987-10-04','AA','832'),('1987-10-04','AA','852'),('1987-10-04','AA','852'),('1987-10-04','AA','866'),('1987-10-04','AA','866'),('1987-10-04','AA','871'),('1987-10-04','AA','871'),('1987-10-04','AA','880'),('1987-10-04','AA','880'),('1987-10-04','AA','880'),('1987-10-04','AA','880'),('1987-10-04','AA','883'),('1987-10-04','AA','883'),('1987-10-04','AA','885'),('1987-10-04','AA','885'),('1987-10-04','AA','890'),('1987-10-04','AA','890'),('1987-10-04','AA','893'),('1987-10-04','AA','893'),('1987-10-04','AA','905'),('1987-10-04','AA','905'),('1987-10-04','AA','915'),('1987-10-04','AA','929'),('1987-10-04','AA','929'),('1987-10-04','AA','936'),('1987-10-04','AA','936'),('1987-10-04','AA','937'),('1987-10-04','AA','937'),('1987-10-04','AA','955'),('1987-10-04','AA','955'),('1987-10-04','AA','966'),('1987-10-04','AA','1002'),('1987-10-04','AA','1002'),('1987-10-04','AA','1004'),('1987-10-04','AA','1004'),('1987-10-04','AA','1015'),('1987-10-04','AA','1021'),('1987-10-04','AA','1021'),('1987-10-04','AA','1041'),('1987-10-04','AA','1041'),('1987-10-04','AA','1046'),('1987-10-04','AA','1046'),('1987-10-04','AA','1048'),('1987-10-04','AA','1048'),('1987-10-04','AA','1061'),('1987-10-04','AA','1061'),('1987-10-04','AA','1088'),('1987-10-04','AA','1088'),('1987-10-04','AA','2033'),('1987-10-04','AA','2033'),('1987-10-04','AA','2050'),('1987-10-04','AA','2058'),('1987-10-04','AA','2071'),('1987-10-04','AA','2071'),('1987-10-04','AA','2086'),('1987-10-04','AA','2111'),('1987-10-04','AA','2123'),('1987-10-04','AA','2123'),('1987-10-04','AA','2147'),('1987-10-04','AA','2147'),('1987-10-04','AA','2199'),('1987-10-04','AA','2199'),('1987-10-04','AA','2207'),('1987-10-04','AA','2207'),('1987-10-04','AA','2230'),('1987-10-04','AA','2245'),('1987-10-04','AA','2251'),('1987-10-04','AA','2251'),('1987-10-04','AA','2275'),('1987-10-04','AA','2278'),('1987-10-04','AA','2357'),('1987-10-04','AA','2361'),('1987-10-04','AA','2490'),('1987-10-04','AA','2528'),('1987-10-04','AA','2528'),('1987-10-04','AA','2735'),('1987-10-04','AA','2735'),('1987-10-04','AA','2751'),('1987-10-04','AL','7'),('1987-10-04','AL','7'),('1987-10-04','AL','26'),('1987-10-04','AL','26'),('1987-10-04','AL','34'),('1987-10-04','AL','34'),('1987-10-04','AL','36'),('1987-10-04','AL','36'),('1987-10-04','AL','45'),('1987-10-04','AL','45'),('1987-10-04','AL','45'),('1987-10-04','AL','91'),('1987-10-04','AL','91'),('1987-10-04','AL','104'),('1987-10-04','AL','123'),('1987-10-04','AL','149'),('1987-10-04','AL','160'),('1987-10-04','AL','160'),('1987-10-04','AL','165'),('1987-10-04','AL','171'),('1987-10-04','AL','171'),('1987-10-04','AL','176'),('1987-10-04','AL','176'),('1987-10-04','AL','179'),('1987-10-04','AL','215'),('1987-10-04','AL','231'),('1987-10-04','AL','263'),('1987-10-04','AL','263'),('1987-10-04','AL','281'),('1987-10-04','AL','281'),('1987-10-04','AL','309'),('1987-10-04','AL','309'),('1987-10-04','AL','341'),('1987-10-04','AL','344'),('1987-10-04','AL','344'),('1987-10-04','AL','357'),('1987-10-04','AL','357'),('1987-10-04','AL','368'),('1987-10-04','AL','416'),('1987-10-04','AL','416'),('1987-10-04','AL','417'),('1987-10-04','AL','438'),('1987-10-04','AL','438'),('1987-10-04','AL','451'),('1987-10-04','AL','491'),('1987-10-04','AL','491'),('1987-10-04','AL','525'),('1987-10-04','AL','525'),('1987-10-04','AL','533'),('1987-10-04','AL','533'),('1987-10-04','AL','546'),('1987-10-04','AL','546'),('1987-10-04','AL','556'),('1987-10-04','AL','556'),('1987-10-04','AL','601'),('1987-10-04','AL','627'),('1987-10-04','AL','629'),('1987-10-04','AL','670'),('1987-10-04','AL','670'),('1987-10-04','AL','670'),('1987-10-04','AL','673'),('1987-10-04','AL','680'),('1987-10-04','AL','937'),('1987-10-04','AL','937'),('1987-10-04','AL','955'),('1987-10-12','AA','2'),('1987-10-12','AA','2'),('1987-10-12','AA','2'),('1987-10-12','AA','7'),('1987-10-12','AA','7'),('1987-10-12','AA','26'),('1987-10-12','AA','34'),('1987-10-12','AA','36'),('1987-10-12','AA','91'),('1987-10-12','AA','101'),('1987-10-12','AA','101'),('1987-10-12','AA','109'),('1987-10-12','AA','109'),('1987-10-12','AA','112'),('1987-10-12','AA','123'),('1987-10-12','AA','123'),('1987-10-12','AA','160'),('1987-10-12','AA','165'),('1987-10-12','AA','165'),('1987-10-12','AA','165'),('1987-10-12','AA','176'),('1987-10-12','AA','176'),('1987-10-12','AA','176'),('1987-10-12','AA','176'),('1987-10-12','AA','179'),('1987-10-12','AA','179'),('1987-10-12','AA','215'),('1987-10-12','AA','215'),('1987-10-12','AA','231'),('1987-10-12','AA','263'),('1987-10-12','AA','263'),('1987-10-12','AA','268'),('1987-10-12','AA','268'),('1987-10-12','AA','281'),('1987-10-12','AA','287'),('1987-10-12','AA','287'),('1987-10-12','AA','309'),('1987-10-12','AA','309'),('1987-10-12','AA','309'),('1987-10-12','AA','341'),('1987-10-12','AA','344'),('1987-10-12','AA','344'),('1987-10-12','AA','347'),('1987-10-12','AA','347'),('1987-10-12','AA','368'),('1987-10-12','AA','381'),('1987-10-12','AA','381'),('1987-10-12','AA','381'),('1987-10-12','AA','396'),('1987-10-12','AA','396'),('1987-10-12','AA','397'),('1987-10-12','AA','397'),('1987-10-12','AA','417'),('1987-10-12','AA','417'),('1987-10-12','AA','446'),('1987-10-12','AA','451'),('1987-10-12','AA','451'),('1987-10-12','AA','460'),('1987-10-12','AA','460'),('1987-10-12','AA','491'),('1987-10-12','AA','504'),('1987-10-12','AA','504'),('1987-10-12','AA','519'),('1987-10-12','AA','523'),('1987-10-12','AA','523'),('1987-10-12','AA','525'),('1987-10-12','AA','525'),('1987-10-12','AA','525'),('1987-10-12','AA','533'),('1987-10-12','AA','533'),('1987-10-12','AA','533'),('1987-10-12','AA','546'),('1987-10-12','AA','546'),('1987-10-12','AA','546'),('1987-10-12','AA','546'),('1987-10-12','AA','556'),('1987-10-12','AA','556'),('1987-10-12','AA','556'),('1987-10-12','AA','597'),('1987-10-12','AA','597'),('1987-10-12','AA','597'),('1987-10-12','AA','601'),('1987-10-12','AA','601'),('1987-10-12','AA','627'),('1987-10-12','AA','629'),('1987-10-12','AA','629'),('1987-10-12','AA','670'),('1987-10-12','AA','673'),('1987-10-12','AA','673'),('1987-10-12','AA','680'),('1987-10-12','AA','680'),('1987-10-12','AA','817'),('1987-10-12','AA','817'),('1987-10-12','AA','824'),('1987-10-12','AA','824'),('1987-10-12','AA','824'),('1987-10-12','AA','824'),('1987-10-12','AA','832'),('1987-10-12','AA','832'),('1987-10-12','AA','852'),('1987-10-12','AA','852'),('1987-10-12','AA','866'),('1987-10-12','AA','866'),('1987-10-12','AA','871'),('1987-10-12','AA','871'),('1987-10-12','AA','880'),('1987-10-12','AA','880'),('1987-10-12','AA','880'),('1987-10-12','AA','880'),('1987-10-12','AA','883'),('1987-10-12','AA','883'),('1987-10-12','AA','885'),('1987-10-12','AA','885'),('1987-10-12','AA','885'),('1987-10-12','AA','890'),('1987-10-12','AA','890'),('1987-10-12','AA','893'),('1987-10-12','AA','893'),('1987-10-12','AA','905'),('1987-10-12','AA','905'),('1987-10-12','AA','915'),('1987-10-12','AA','929'),('1987-10-12','AA','929'),('1987-10-12','AA','936'),('1987-10-12','AA','936'),('1987-10-12','AA','937'),('1987-10-12','AA','937'),('1987-10-12','AA','955'),('1987-10-12','AA','955'),('1987-10-12','AA','966'),('1987-10-12','AA','1002'),('1987-10-12','AA','1002'),('1987-10-12','AA','1004'),('1987-10-12','AA','1015'),('1987-10-12','AA','1015'),('1987-10-12','AA','1021'),('1987-10-12','AA','1021'),('1987-10-12','AA','1041'),('1987-10-12','AA','1041'),('1987-10-12','AA','1046'),('1987-10-12','AA','1046'),('1987-10-12','AA','1048'),('1987-10-12','AA','1048'),('1987-10-12','AA','1061'),('1987-10-12','AA','1061'),('1987-10-12','AA','1088'),('1987-10-12','AA','1088'),('1987-10-12','AA','2033'),('1987-10-12','AA','2033'),('1987-10-12','AA','2050'),('1987-10-12','AA','2058'),('1987-10-12','AA','2071'),('1987-10-12','AA','2071'),('1987-10-12','AA','2086'),('1987-10-12','AA','2105'),('1987-10-12','AA','2111'),('1987-10-12','AA','2123'),('1987-10-12','AA','2123'),('1987-10-12','AA','2147'),('1987-10-12','AA','2147'),('1987-10-12','AA','2199'),('1987-10-12','AA','2199'),('1987-10-12','AA','2207'),('1987-10-12','AA','2207'),('1987-10-12','AA','2217'),('1987-10-12','AA','2230'),('1987-10-12','AA','2245'),('1987-10-12','AA','2251'),('1987-10-12','AA','2251'),('1987-10-12','AA','2275'),('1987-10-12','AA','2278'),('1987-10-12','AA','2351'),('1987-10-12','AA','2357'),('1987-10-12','AA','2361'),('1987-10-12','AA','2490'),('1987-10-12','AA','2528'),('1987-10-12','AA','2528'),('1987-10-12','AA','2735'),('1987-10-12','AA','2735'),('1987-10-12','AA','2751'),('1987-10-12','AL','2'),('1987-10-12','AL','2'),('1987-10-12','AL','7'),('1987-10-12','AL','7'),('1987-10-12','AL','26'),('1987-10-12','AL','26'),('1987-10-12','AL','34'),('1987-10-12','AL','34'),('1987-10-12','AL','36'),('1987-10-12','AL','36'),('1987-10-12','AL','45'),('1987-10-12','AL','45'),('1987-10-12','AL','45'),('1987-10-12','AL','91'),('1987-10-12','AL','91'),('1987-10-12','AL','104'),('1987-10-12','AL','104'),('1987-10-12','AL','104'),('1987-10-12','AL','109'),('1987-10-12','AL','112'),('1987-10-12','AL','112'),('1987-10-12','AL','123'),('1987-10-12','AL','149'),('1987-10-12','AL','160'),('1987-10-12','AL','160'),('1987-10-12','AL','165'),('1987-10-12','AL','171'),('1987-10-12','AL','171'),('1987-10-12','AL','176'),('1987-10-12','AL','176'),('1987-10-12','AL','179'),('1987-10-12','AL','215'),('1987-10-12','AL','231'),('1987-10-12','AL','263'),('1987-10-12','AL','263'),('1987-10-12','AL','268'),('1987-10-12','AL','268'),('1987-10-12','AL','268'),('1987-10-12','AL','281'),('1987-10-12','AL','281'),('1987-10-12','AL','287'),('1987-10-12','AL','287'),('1987-10-12','AL','309'),('1987-10-12','AL','309'),('1987-10-12','AL','341'),('1987-10-12','AL','344'),('1987-10-12','AL','344'),('1987-10-12','AL','357'),('1987-10-12','AL','357'),('1987-10-12','AL','368'),('1987-10-12','AL','381'),('1987-10-12','AL','396'),('1987-10-12','AL','397'),('1987-10-12','AL','397'),('1987-10-12','AL','416'),('1987-10-12','AL','416'),('1987-10-12','AL','417'),('1987-10-12','AL','438'),('1987-10-12','AL','438'),('1987-10-12','AL','446'),('1987-10-12','AL','451'),('1987-10-12','AL','451'),('1987-10-12','AL','491'),('1987-10-12','AL','491'),('1987-10-12','AL','523'),('1987-10-12','AL','523'),('1987-10-12','AL','523'),('1987-10-12','AL','525'),('1987-10-12','AL','525'),('1987-10-12','AL','533'),('1987-10-12','AL','533'),('1987-10-12','AL','546'),('1987-10-12','AL','546'),('1987-10-12','AL','556'),('1987-10-12','AL','556'),('1987-10-12','AL','627'),('1987-10-12','AL','629'),('1987-10-12','AL','670'),('1987-10-12','AL','670'),('1987-10-12','AL','670'),('1987-10-12','AL','673'),('1987-10-13','AA','2'),('1987-10-13','AA','2'),('1987-10-13','AA','2'),('1987-10-13','AA','7'),('1987-10-13','AA','7'),('1987-10-13','AA','26'),('1987-10-13','AA','34'),('1987-10-13','AA','36'),('1987-10-13','AA','91'),('1987-10-13','AA','101'),('1987-10-13','AA','101'),('1987-10-13','AA','109'),('1987-10-13','AA','109'),('1987-10-13','AA','112'),('1987-10-13','AA','123'),('1987-10-13','AA','123'),('1987-10-13','AA','160'),('1987-10-13','AA','165'),('1987-10-13','AA','165'),('1987-10-13','AA','165'),('1987-10-13','AA','176'),('1987-10-13','AA','176'),('1987-10-13','AA','176'),('1987-10-13','AA','176'),('1987-10-13','AA','179'),('1987-10-13','AA','179'),('1987-10-13','AA','215'),('1987-10-13','AA','215'),('1987-10-13','AA','231'),('1987-10-13','AA','231'),('1987-10-13','AA','263'),('1987-10-13','AA','263'),('1987-10-13','AA','268'),('1987-10-13','AA','268'),('1987-10-13','AA','281'),('1987-10-13','AA','287'),('1987-10-13','AA','287'),('1987-10-13','AA','309'),('1987-10-13','AA','309'),('1987-10-13','AA','309'),('1987-10-13','AA','341'),('1987-10-13','AA','344'),('1987-10-13','AA','344'),('1987-10-13','AA','347'),('1987-10-13','AA','347'),('1987-10-13','AA','368'),('1987-10-13','AA','381'),('1987-10-13','AA','381'),('1987-10-13','AA','381'),('1987-10-13','AA','396'),('1987-10-13','AA','396'),('1987-10-13','AA','397'),('1987-10-13','AA','397'),('1987-10-13','AA','417'),('1987-10-13','AA','417'),('1987-10-13','AA','446'),('1987-10-13','AA','451'),('1987-10-13','AA','451'),('1987-10-13','AA','460'),('1987-10-13','AA','460'),('1987-10-13','AA','491'),('1987-10-13','AA','504'),('1987-10-13','AA','504'),('1987-10-13','AA','519'),('1987-10-13','AA','519'),('1987-10-13','AA','523'),('1987-10-13','AA','523'),('1987-10-13','AA','525'),('1987-10-13','AA','525'),('1987-10-13','AA','533'),('1987-10-13','AA','533'),('1987-10-13','AA','533'),('1987-10-13','AA','546'),('1987-10-13','AA','546'),('1987-10-13','AA','546'),('1987-10-13','AA','556'),('1987-10-13','AA','556'),('1987-10-13','AA','556'),('1987-10-13','AA','597'),('1987-10-13','AA','597'),('1987-10-13','AA','597'),('1987-10-13','AA','601'),('1987-10-13','AA','601'),('1987-10-13','AA','627'),('1987-10-13','AA','629'),('1987-10-13','AA','629'),('1987-10-13','AA','673'),('1987-10-13','AA','673'),('1987-10-13','AA','680'),('1987-10-13','AA','817'),('1987-10-13','AA','817'),('1987-10-13','AA','824'),('1987-10-13','AA','824'),('1987-10-13','AA','824'),('1987-10-13','AA','832'),('1987-10-13','AA','832'),('1987-10-13','AA','852'),('1987-10-13','AA','866'),('1987-10-13','AA','866'),('1987-10-13','AA','871'),('1987-10-13','AA','871'),('1987-10-13','AA','880'),('1987-10-13','AA','880'),('1987-10-13','AA','880'),('1987-10-13','AA','880'),('1987-10-13','AA','883'),('1987-10-13','AA','883'),('1987-10-13','AA','885'),('1987-10-13','AA','885'),('1987-10-13','AA','885'),('1987-10-13','AA','890'),('1987-10-13','AA','890'),('1987-10-13','AA','893'),('1987-10-13','AA','893'),('1987-10-13','AA','905'),('1987-10-13','AA','905'),('1987-10-13','AA','915'),('1987-10-13','AA','929'),('1987-10-13','AA','929'),('1987-10-13','AA','936'),('1987-10-13','AA','936'),('1987-10-13','AA','937'),('1987-10-13','AA','937'),('1987-10-13','AA','955'),('1987-10-13','AA','955'),('1987-10-13','AA','966'),('1987-10-13','AA','1002'),('1987-10-13','AA','1002'),('1987-10-13','AA','1004'),('1987-10-13','AA','1004'),('1987-10-13','AA','1015'),('1987-10-13','AA','1015'),('1987-10-13','AA','1021'),('1987-10-13','AA','1021'),('1987-10-13','AA','1041'),('1987-10-13','AA','1041'),('1987-10-13','AA','1046'),('1987-10-13','AA','1046'),('1987-10-13','AA','1048'),('1987-10-13','AA','1048'),('1987-10-13','AA','1061'),('1987-10-13','AA','1061'),('1987-10-13','AA','1088'),('1987-10-13','AA','1088'),('1987-10-13','AA','2033'),('1987-10-13','AA','2050'),('1987-10-13','AA','2071'),('1987-10-13','AA','2071'),('1987-10-13','AA','2086'),('1987-10-13','AA','2105'),('1987-10-13','AA','2111'),('1987-10-13','AA','2123'),('1987-10-13','AA','2123'),('1987-10-13','AA','2147'),('1987-10-13','AA','2147'),('1987-10-13','AA','2199'),('1987-10-13','AA','2199'),('1987-10-13','AA','2207'),('1987-10-13','AA','2207'),('1987-10-13','AA','2217'),('1987-10-13','AA','2230'),('1987-10-13','AA','2245'),('1987-10-13','AA','2251'),('1987-10-13','AA','2251'),('1987-10-13','AA','2275'),('1987-10-13','AA','2351'),('1987-10-13','AA','2357'),('1987-10-13','AA','2361'),('1987-10-13','AA','2490'),('1987-10-13','AA','2528'),('1987-10-13','AA','2528'),('1987-10-13','AA','2735'),('1987-10-13','AA','2735'),('1987-10-13','AA','2751'),('1987-10-13','AL','2'),('1987-10-13','AL','2'),('1987-10-13','AL','7'),('1987-10-13','AL','7'),('1987-10-13','AL','26'),('1987-10-13','AL','26'),('1987-10-13','AL','34'),('1987-10-13','AL','34'),('1987-10-13','AL','36'),('1987-10-13','AL','36'),('1987-10-13','AL','45'),('1987-10-13','AL','45'),('1987-10-13','AL','45'),('1987-10-13','AL','91'),('1987-10-13','AL','91'),('1987-10-13','AL','104'),('1987-10-13','AL','104'),('1987-10-13','AL','104'),('1987-10-13','AL','109'),('1987-10-13','AL','112'),('1987-10-13','AL','112'),('1987-10-13','AL','123'),('1987-10-13','AL','149'),('1987-10-13','AL','160'),('1987-10-13','AL','160'),('1987-10-13','AL','171'),('1987-10-13','AL','171'),('1987-10-13','AL','176'),('1987-10-13','AL','176'),('1987-10-13','AL','179'),('1987-10-13','AL','231'),('1987-10-13','AL','263'),('1987-10-13','AL','263'),('1987-10-13','AL','268'),('1987-10-13','AL','268'),('1987-10-13','AL','268'),('1987-10-13','AL','281'),('1987-10-13','AL','281'),('1987-10-13','AL','287'),('1987-10-13','AL','287'),('1987-10-13','AL','309'),('1987-10-13','AL','309'),('1987-10-13','AL','341'),('1987-10-13','AL','357'),('1987-10-13','AL','357'),('1987-10-13','AL','368'),('1987-10-13','AL','381'),('1987-10-13','AL','396'),('1987-10-13','AL','397'),('1987-10-13','AL','397'),('1987-10-13','AL','416'),('1987-10-13','AL','417'),('1987-10-13','AL','438'),('1987-10-13','AL','438'),('1987-10-13','AL','446'),('1987-10-13','AL','451'),('1987-10-13','AL','451'),('1987-10-13','AL','491'),('1987-10-13','AL','491'),('1987-10-13','AL','523'),('1987-10-13','AL','523'),('1987-10-13','AL','523'),('1987-10-13','AL','525'),('1987-10-13','AL','525'),('1987-10-13','AL','533'),('1987-10-13','AL','533'),('1987-10-13','AL','546'),('1987-10-13','AL','546'),('1987-10-13','AL','556'),('1987-10-13','AL','556'),('1987-10-13','AL','601'),('1987-10-13','AL','601'),('1987-10-13','AL','627'),('1987-10-13','AL','629'),('1987-10-13','AL','670'),('1987-10-13','AL','670'),('1987-10-13','AL','670'),('1987-10-13','AL','673'),('1987-10-13','AL','680'),('1987-10-14','AA','2'),('1987-10-14','AA','2'),('1987-10-14','AA','2'),('1987-10-14','AA','7'),('1987-10-14','AA','7'),('1987-10-14','AA','26'),('1987-10-14','AA','34'),('1987-10-14','AA','36'),('1987-10-14','AA','91'),('1987-10-14','AA','101'),('1987-10-14','AA','101'),('1987-10-14','AA','109'),('1987-10-14','AA','109'),('1987-10-14','AA','112'),('1987-10-14','AA','123'),('1987-10-14','AA','123'),('1987-10-14','AA','160'),('1987-10-14','AA','165'),('1987-10-14','AA','165'),('1987-10-14','AA','176'),('1987-10-14','AA','176'),('1987-10-14','AA','176'),('1987-10-14','AA','176'),('1987-10-14','AA','179'),('1987-10-14','AA','179'),('1987-10-14','AA','215'),('1987-10-14','AA','215'),('1987-10-14','AA','231'),('1987-10-14','AA','231'),('1987-10-14','AA','263'),('1987-10-14','AA','263'),('1987-10-14','AA','268'),('1987-10-14','AA','268'),('1987-10-14','AA','281'),('1987-10-14','AA','287'),('1987-10-14','AA','309'),('1987-10-14','AA','309'),('1987-10-14','AA','309'),('1987-10-14','AA','341'),('1987-10-14','AA','344'),('1987-10-14','AA','344'),('1987-10-14','AA','347'),('1987-10-14','AA','347'),('1987-10-14','AA','368'),('1987-10-14','AA','381'),('1987-10-14','AA','381'),('1987-10-14','AA','381'),('1987-10-14','AA','396'),('1987-10-14','AA','396'),('1987-10-14','AA','397'),('1987-10-14','AA','417'),('1987-10-14','AA','446'),('1987-10-14','AA','451'),('1987-10-14','AA','451'),('1987-10-14','AA','460'),('1987-10-14','AA','460'),('1987-10-14','AA','491'),('1987-10-14','AA','504'),('1987-10-14','AA','519'),('1987-10-14','AA','519'),('1987-10-14','AA','523'),('1987-10-14','AA','523'),('1987-10-14','AA','525'),('1987-10-14','AA','525'),('1987-10-14','AA','533'),('1987-10-14','AA','533'),('1987-10-14','AA','533'),('1987-10-14','AA','546'),('1987-10-14','AA','546'),('1987-10-14','AA','546'),('1987-10-14','AA','546'),('1987-10-14','AA','556'),('1987-10-14','AA','556'),('1987-10-14','AA','556'),('1987-10-14','AA','597'),('1987-10-14','AA','597'),('1987-10-14','AA','597'),('1987-10-14','AA','601'),('1987-10-14','AA','601'),('1987-10-14','AA','627'),('1987-10-14','AA','629'),('1987-10-14','AA','629'),('1987-10-14','AA','670'),('1987-10-14','AA','673'),('1987-10-14','AA','673'),('1987-10-14','AA','680'),('1987-10-14','AA','680'),('1987-10-14','AA','817'),('1987-10-14','AA','817'),('1987-10-14','AA','824'),('1987-10-14','AA','824'),('1987-10-14','AA','824'),('1987-10-14','AA','824'),('1987-10-14','AA','832'),('1987-10-14','AA','832'),('1987-10-14','AA','852'),('1987-10-14','AA','866'),('1987-10-14','AA','866'),('1987-10-14','AA','871'),('1987-10-14','AA','871'),('1987-10-14','AA','880'),('1987-10-14','AA','880'),('1987-10-14','AA','880'),('1987-10-14','AA','883'),('1987-10-14','AA','883'),('1987-10-14','AA','885'),('1987-10-14','AA','885'),('1987-10-14','AA','885'),('1987-10-14','AA','890'),('1987-10-14','AA','890'),('1987-10-14','AA','893'),('1987-10-14','AA','893'),('1987-10-14','AA','905'),('1987-10-14','AA','905'),('1987-10-14','AA','915'),('1987-10-14','AA','929'),('1987-10-14','AA','929'),('1987-10-14','AA','936'),('1987-10-14','AA','936'),('1987-10-14','AA','937'),('1987-10-14','AA','937'),('1987-10-14','AA','955'),('1987-10-14','AA','955'),('1987-10-14','AA','966'),('1987-10-14','AA','1002'),('1987-10-14','AA','1002'),('1987-10-14','AA','1004'),('1987-10-14','AA','1004'),('1987-10-14','AA','1015'),('1987-10-14','AA','1015'),('1987-10-14','AA','1021'),('1987-10-14','AA','1021'),('1987-10-14','AA','1041'),('1987-10-14','AA','1041'),('1987-10-14','AA','1046'),('1987-10-14','AA','1046'),('1987-10-14','AA','1048'),('1987-10-14','AA','1048'),('1987-10-14','AA','1061'),('1987-10-14','AA','1061'),('1987-10-14','AA','1088'),('1987-10-14','AA','1088'),('1987-10-14','AA','2033'),('1987-10-14','AA','2033'),('1987-10-14','AA','2050'),('1987-10-14','AA','2058'),('1987-10-14','AA','2071'),('1987-10-14','AA','2071'),('1987-10-14','AA','2086'),('1987-10-14','AA','2111'),('1987-10-14','AA','2123'),('1987-10-14','AA','2123'),('1987-10-14','AA','2147'),('1987-10-14','AA','2147'),('1987-10-14','AA','2199'),('1987-10-14','AA','2199'),('1987-10-14','AA','2207'),('1987-10-14','AA','2207'),('1987-10-14','AA','2217'),('1987-10-14','AA','2230'),('1987-10-14','AA','2251'),('1987-10-14','AA','2251'),('1987-10-14','AA','2278'),('1987-10-14','AA','2351'),('1987-10-14','AA','2357'),('1987-10-14','AA','2490'),('1987-10-14','AA','2528'),('1987-10-14','AA','2528'),('1987-10-14','AA','2735'),('1987-10-14','AA','2735'),('1987-10-14','AA','2751'),('1987-10-14','AL','2'),('1987-10-14','AL','2'),('1987-10-14','AL','7'),('1987-10-14','AL','7'),('1987-10-14','AL','26'),('1987-10-14','AL','26'),('1987-10-14','AL','34'),('1987-10-14','AL','36'),('1987-10-14','AL','36'),('1987-10-14','AL','45'),('1987-10-14','AL','45'),('1987-10-14','AL','91'),('1987-10-14','AL','91'),('1987-10-14','AL','104'),('1987-10-14','AL','104'),('1987-10-14','AL','104'),('1987-10-14','AL','109'),('1987-10-14','AL','112'),('1987-10-14','AL','112'),('1987-10-14','AL','123'),('1987-10-14','AL','149'),('1987-10-14','AL','160'),('1987-10-14','AL','160'),('1987-10-14','AL','165'),('1987-10-14','AL','171'),('1987-10-14','AL','171'),('1987-10-14','AL','176'),('1987-10-14','AL','176'),('1987-10-14','AL','179'),('1987-10-14','AL','215'),('1987-10-14','AL','231'),('1987-10-14','AL','263'),('1987-10-14','AL','263'),('1987-10-14','AL','268'),('1987-10-14','AL','268'),('1987-10-14','AL','268'),('1987-10-14','AL','281'),('1987-10-14','AL','281'),('1987-10-14','AL','287'),('1987-10-14','AL','287'),('1987-10-14','AL','309'),('1987-10-14','AL','309'),('1987-10-14','AL','341'),('1987-10-14','AL','344'),('1987-10-14','AL','344'),('1987-10-14','AL','357'),('1987-10-14','AL','357'),('1987-10-14','AL','368'),('1987-10-14','AL','381'),('1987-10-14','AL','396'),('1987-10-14','AL','397'),('1987-10-14','AL','397'),('1987-10-14','AL','416'),('1987-10-14','AL','416'),('1987-10-14','AL','417'),('1987-10-14','AL','438'),('1987-10-14','AL','438'),('1987-10-14','AL','446'),('1987-10-14','AL','451'),('1987-10-14','AL','451'),('1987-10-14','AL','491'),('1987-10-14','AL','491'),('1987-10-14','AL','523'),('1987-10-14','AL','523'),('1987-10-14','AL','523'),('1987-10-14','AL','525'),('1987-10-14','AL','525'),('1987-10-14','AL','533'),('1987-10-14','AL','533'),('1987-10-14','AL','546'),('1987-10-14','AL','546'),('1987-10-14','AL','556'),('1987-10-14','AL','556'),('1987-10-14','AL','601'),('1987-10-14','AL','601'),('1987-10-14','AL','627'),('1987-10-14','AL','629'),('1987-10-14','AL','670'),('1987-10-14','AL','670'),('1987-10-14','AL','670'),('1987-10-14','AL','673'),('1987-10-14','AL','680'),('1987-10-15','AA','2'),('1987-10-15','AA','2'),('1987-10-15','AA','2'),('1987-10-15','AA','7'),('1987-10-15','AA','7'),('1987-10-15','AA','26'),('1987-10-15','AA','34'),('1987-10-15','AA','36'),('1987-10-15','AA','91'),('1987-10-15','AA','101'),('1987-10-15','AA','101'),('1987-10-15','AA','109'),('1987-10-15','AA','109'),('1987-10-15','AA','112'),('1987-10-15','AA','123'),('1987-10-15','AA','123'),('1987-10-15','AA','160'),('1987-10-15','AA','165'),('1987-10-15','AA','165'),('1987-10-15','AA','165'),('1987-10-15','AA','176'),('1987-10-15','AA','176'),('1987-10-15','AA','176'),('1987-10-15','AA','176'),('1987-10-15','AA','179'),('1987-10-15','AA','179'),('1987-10-15','AA','215'),('1987-10-15','AA','215'),('1987-10-15','AA','231'),('1987-10-15','AA','263'),('1987-10-15','AA','263'),('1987-10-15','AA','268'),('1987-10-15','AA','268'),('1987-10-15','AA','281'),('1987-10-15','AA','287'),('1987-10-15','AA','287'),('1987-10-15','AA','309'),('1987-10-15','AA','309'),('1987-10-15','AA','309'),('1987-10-15','AA','341'),('1987-10-15','AA','344'),('1987-10-15','AA','344'),('1987-10-15','AA','347'),('1987-10-15','AA','347'),('1987-10-15','AA','368'),('1987-10-15','AA','381'),('1987-10-15','AA','381'),('1987-10-15','AA','396'),('1987-10-15','AA','396'),('1987-10-15','AA','397'),('1987-10-15','AA','397'),('1987-10-15','AA','417'),('1987-10-15','AA','417'),('1987-10-15','AA','446'),('1987-10-15','AA','451'),('1987-10-15','AA','451'),('1987-10-15','AA','460'),('1987-10-15','AA','460'),('1987-10-15','AA','491'),('1987-10-15','AA','504'),('1987-10-15','AA','504'),('1987-10-15','AA','519'),('1987-10-15','AA','519'),('1987-10-15','AA','523'),('1987-10-15','AA','523'),('1987-10-15','AA','525'),('1987-10-15','AA','525'),('1987-10-15','AA','525'),('1987-10-15','AA','533'),('1987-10-15','AA','533'),('1987-10-15','AA','533'),('1987-10-15','AA','546'),('1987-10-15','AA','546'),('1987-10-15','AA','546'),('1987-10-15','AA','546'),('1987-10-15','AA','556'),('1987-10-15','AA','556'),('1987-10-15','AA','556'),('1987-10-15','AA','597'),('1987-10-15','AA','597'),('1987-10-15','AA','597'),('1987-10-15','AA','601'),('1987-10-15','AA','601'),('1987-10-15','AA','629'),('1987-10-15','AA','629'),('1987-10-15','AA','670'),('1987-10-15','AA','673'),('1987-10-15','AA','673'),('1987-10-15','AA','680'),('1987-10-15','AA','680'),('1987-10-15','AA','817'),('1987-10-15','AA','817'),('1987-10-15','AA','824'),('1987-10-15','AA','824'),('1987-10-15','AA','824'),('1987-10-15','AA','824'),('1987-10-15','AA','832'),('1987-10-15','AA','832'),('1987-10-15','AA','852'),('1987-10-15','AA','866'),('1987-10-15','AA','866'),('1987-10-15','AA','871'),('1987-10-15','AA','871'),('1987-10-15','AA','880'),('1987-10-15','AA','880'),('1987-10-15','AA','880'),('1987-10-15','AA','883'),('1987-10-15','AA','883'),('1987-10-15','AA','885'),('1987-10-15','AA','885'),('1987-10-15','AA','885'),('1987-10-15','AA','890'),('1987-10-15','AA','890'),('1987-10-15','AA','893'),('1987-10-15','AA','893'),('1987-10-15','AA','905'),('1987-10-15','AA','905'),('1987-10-15','AA','915'),('1987-10-15','AA','929'),('1987-10-15','AA','929'),('1987-10-15','AA','936'),('1987-10-15','AA','936'),('1987-10-15','AA','937'),('1987-10-15','AA','955'),('1987-10-15','AA','955'),('1987-10-15','AA','966'),('1987-10-15','AA','1002'),('1987-10-15','AA','1002'),('1987-10-15','AA','1004'),('1987-10-15','AA','1004'),('1987-10-15','AA','1015'),('1987-10-15','AA','1015'),('1987-10-15','AA','1021'),('1987-10-15','AA','1021'),('1987-10-15','AA','1041'),('1987-10-15','AA','1041'),('1987-10-15','AA','1046'),('1987-10-15','AA','1046'),('1987-10-15','AA','1048'),('1987-10-15','AA','1048'),('1987-10-15','AA','1061'),('1987-10-15','AA','1061'),('1987-10-15','AA','1088'),('1987-10-15','AA','1088'),('1987-10-15','AA','2033'),('1987-10-15','AA','2033'),('1987-10-15','AA','2050'),('1987-10-15','AA','2058'),('1987-10-15','AA','2071'),('1987-10-15','AA','2071'),('1987-10-15','AA','2086'),('1987-10-15','AA','2105'),('1987-10-15','AA','2111'),('1987-10-15','AA','2123'),('1987-10-15','AA','2123'),('1987-10-15','AA','2147'),('1987-10-15','AA','2147'),('1987-10-15','AA','2199'),('1987-10-15','AA','2199'),('1987-10-15','AA','2207'),('1987-10-15','AA','2207'),('1987-10-15','AA','2217'),('1987-10-15','AA','2230'),('1987-10-15','AA','2245'),('1987-10-15','AA','2251'),('1987-10-15','AA','2251'),('1987-10-15','AA','2275'),('1987-10-15','AA','2278'),('1987-10-15','AA','2351'),('1987-10-15','AA','2357'),('1987-10-15','AA','2361'),('1987-10-15','AA','2490'),('1987-10-15','AA','2528'),('1987-10-15','AA','2528'),('1987-10-15','AA','2735'),('1987-10-15','AA','2735'),('1987-10-15','AA','2751'),('1987-10-15','AL','2'),('1987-10-15','AL','2'),('1987-10-15','AL','7'),('1987-10-15','AL','7'),('1987-10-15','AL','26'),('1987-10-15','AL','26'),('1987-10-15','AL','34'),('1987-10-15','AL','34'),('1987-10-15','AL','36'),('1987-10-15','AL','36'),('1987-10-15','AL','45'),('1987-10-15','AL','45'),('1987-10-15','AL','45'),('1987-10-15','AL','91'),('1987-10-15','AL','91'),('1987-10-15','AL','104'),('1987-10-15','AL','104'),('1987-10-15','AL','104'),('1987-10-15','AL','109'),('1987-10-15','AL','112'),('1987-10-15','AL','112'),('1987-10-15','AL','123'),('1987-10-15','AL','149'),('1987-10-15','AL','160'),('1987-10-15','AL','160'),('1987-10-15','AL','165'),('1987-10-15','AL','171'),('1987-10-15','AL','171'),('1987-10-15','AL','176'),('1987-10-15','AL','176'),('1987-10-15','AL','179'),('1987-10-15','AL','215'),('1987-10-15','AL','231'),('1987-10-15','AL','263'),('1987-10-15','AL','263'),('1987-10-15','AL','268'),('1987-10-15','AL','268'),('1987-10-15','AL','268'),('1987-10-15','AL','281'),('1987-10-15','AL','281'),('1987-10-15','AL','287'),('1987-10-15','AL','287'),('1987-10-15','AL','309'),('1987-10-15','AL','309'),('1987-10-15','AL','341'),('1987-10-15','AL','344'),('1987-10-15','AL','344'),('1987-10-15','AL','357'),('1987-10-15','AL','357'),('1987-10-15','AL','368'),('1987-10-15','AL','381'),('1987-10-15','AL','396'),('1987-10-15','AL','397'),('1987-10-15','AL','397'),('1987-10-15','AL','416'),('1987-10-15','AL','416'),('1987-10-15','AL','417'),('1987-10-15','AL','438'),('1987-10-15','AL','438'),('1987-10-15','AL','446'),('1987-10-15','AL','451'),('1987-10-15','AL','451'),('1987-10-15','AL','491'),('1987-10-15','AL','491'),('1987-10-15','AL','523'),('1987-10-15','AL','523'),('1987-10-15','AL','523'),('1987-10-15','AL','525'),('1987-10-15','AL','525'),('1987-10-15','AL','533'),('1987-10-15','AL','533'),('1987-10-15','AL','546'),('1987-10-15','AL','546'),('1987-10-15','AL','556'),('1987-10-15','AL','556'),('1987-10-15','AL','601'),('1987-10-15','AL','601'),('1987-10-15','AL','627'),('1987-10-15','AL','629'),('1987-10-15','AL','670'),('1987-10-15','AL','670'),('1987-10-15','AL','670'),('1987-10-15','AL','673'),('1987-10-15','AL','680'),('1987-10-16','AA','2'),('1987-10-16','AA','2'),('1987-10-16','AA','2'),('1987-10-16','AA','7'),('1987-10-16','AA','7'),('1987-10-16','AA','26'),('1987-10-16','AA','34'),('1987-10-16','AA','36'),('1987-10-16','AA','91'),('1987-10-16','AA','101'),('1987-10-16','AA','101'),('1987-10-16','AA','109'),('1987-10-16','AA','109'),('1987-10-16','AA','112'),('1987-10-16','AA','123'),('1987-10-16','AA','160'),('1987-10-16','AA','165'),('1987-10-16','AA','165'),('1987-10-16','AA','176'),('1987-10-16','AA','176'),('1987-10-16','AA','176'),('1987-10-16','AA','176'),('1987-10-16','AA','179'),('1987-10-16','AA','179'),('1987-10-16','AA','215'),('1987-10-16','AA','215'),('1987-10-16','AA','231'),('1987-10-16','AA','263'),('1987-10-16','AA','263'),('1987-10-16','AA','268'),('1987-10-16','AA','281'),('1987-10-16','AA','287'),('1987-10-16','AA','287'),('1987-10-16','AA','309'),('1987-10-16','AA','309'),('1987-10-16','AA','309'),('1987-10-16','AA','341'),('1987-10-16','AA','344'),('1987-10-16','AA','344'),('1987-10-16','AA','347'),('1987-10-16','AA','347'),('1987-10-16','AA','368'),('1987-10-16','AA','381'),('1987-10-16','AA','381'),('1987-10-16','AA','381'),('1987-10-16','AA','396'),('1987-10-16','AA','396'),('1987-10-16','AA','397'),('1987-10-16','AA','417'),('1987-10-16','AA','417'),('1987-10-16','AA','446'),('1987-10-16','AA','451'),('1987-10-16','AA','451'),('1987-10-16','AA','460'),('1987-10-16','AA','460'),('1987-10-16','AA','491'),('1987-10-16','AA','504'),('1987-10-16','AA','504'),('1987-10-16','AA','519'),('1987-10-16','AA','519'),('1987-10-16','AA','523'),('1987-10-16','AA','523'),('1987-10-16','AA','525'),('1987-10-16','AA','525'),('1987-10-16','AA','533'),('1987-10-16','AA','533'),('1987-10-16','AA','546'),('1987-10-16','AA','546'),('1987-10-16','AA','546'),('1987-10-16','AA','546'),('1987-10-16','AA','556'),('1987-10-16','AA','556'),('1987-10-16','AA','556'),('1987-10-16','AA','597'),('1987-10-16','AA','597'),('1987-10-16','AA','597'),('1987-10-16','AA','601'),('1987-10-16','AA','601'),('1987-10-16','AA','627'),('1987-10-16','AA','629'),('1987-10-16','AA','629'),('1987-10-16','AA','670'),('1987-10-16','AA','673'),('1987-10-16','AA','673'),('1987-10-16','AA','680'),('1987-10-16','AA','680'),('1987-10-16','AA','817'),('1987-10-16','AA','817'),('1987-10-16','AA','824'),('1987-10-16','AA','824'),('1987-10-16','AA','824'),('1987-10-16','AA','824'),('1987-10-16','AA','832'),('1987-10-16','AA','832'),('1987-10-16','AA','852'),('1987-10-16','AA','866'),('1987-10-16','AA','866'),('1987-10-16','AA','871'),('1987-10-16','AA','871'),('1987-10-16','AA','880'),('1987-10-16','AA','880'),('1987-10-16','AA','880'),('1987-10-16','AA','880'),('1987-10-16','AA','883'),('1987-10-16','AA','883'),('1987-10-16','AA','885'),('1987-10-16','AA','885'),('1987-10-16','AA','885'),('1987-10-16','AA','890'),('1987-10-16','AA','890'),('1987-10-16','AA','893'),('1987-10-16','AA','893'),('1987-10-16','AA','905'),('1987-10-16','AA','905'),('1987-10-16','AA','915'),('1987-10-16','AA','929'),('1987-10-16','AA','929'),('1987-10-16','AA','936'),('1987-10-16','AA','936'),('1987-10-16','AA','937'),('1987-10-16','AA','937'),('1987-10-16','AA','955'),('1987-10-16','AA','955'),('1987-10-16','AA','966'),('1987-10-16','AA','1002'),('1987-10-16','AA','1002'),('1987-10-16','AA','1004'),('1987-10-16','AA','1004'),('1987-10-16','AA','1015'),('1987-10-16','AA','1015'),('1987-10-16','AA','1021'),('1987-10-16','AA','1021'),('1987-10-16','AA','1041'),('1987-10-16','AA','1041'),('1987-10-16','AA','1046'),('1987-10-16','AA','1046'),('1987-10-16','AA','1048'),('1987-10-16','AA','1048'),('1987-10-16','AA','1061'),('1987-10-16','AA','1061'),('1987-10-16','AA','1088'),('1987-10-16','AA','1088'),('1987-10-16','AA','2033'),('1987-10-16','AA','2033'),('1987-10-16','AA','2050'),('1987-10-16','AA','2058'),('1987-10-16','AA','2071'),('1987-10-16','AA','2071'),('1987-10-16','AA','2086'),('1987-10-16','AA','2105'),('1987-10-16','AA','2111'),('1987-10-16','AA','2123'),('1987-10-16','AA','2123'),('1987-10-16','AA','2147'),('1987-10-16','AA','2147'),('1987-10-16','AA','2199'),('1987-10-16','AA','2199'),('1987-10-16','AA','2207'),('1987-10-16','AA','2207'),('1987-10-16','AA','2217'),('1987-10-16','AA','2230'),('1987-10-16','AA','2245'),('1987-10-16','AA','2251'),('1987-10-16','AA','2251'),('1987-10-16','AA','2275'),('1987-10-16','AA','2278'),('1987-10-16','AA','2351'),('1987-10-16','AA','2357'),('1987-10-16','AA','2361'),('1987-10-16','AA','2490'),('1987-10-16','AA','2528'),('1987-10-16','AA','2528'),('1987-10-16','AA','2735'),('1987-10-16','AA','2735'),('1987-10-16','AA','2751'),('1987-10-16','AL','2'),('1987-10-16','AL','2'),('1987-10-16','AL','7'),('1987-10-16','AL','7'),('1987-10-16','AL','26'),('1987-10-16','AL','26'),('1987-10-16','AL','34'),('1987-10-16','AL','36'),('1987-10-16','AL','36'),('1987-10-16','AL','45'),('1987-10-16','AL','45'),('1987-10-16','AL','45'),('1987-10-16','AL','91'),('1987-10-16','AL','91'),('1987-10-16','AL','104'),('1987-10-16','AL','104'),('1987-10-16','AL','109'),('1987-10-16','AL','112'),('1987-10-16','AL','112'),('1987-10-16','AL','123'),('1987-10-16','AL','149'),('1987-10-16','AL','160'),('1987-10-16','AL','160'),('1987-10-16','AL','165'),('1987-10-16','AL','171'),('1987-10-16','AL','171'),('1987-10-16','AL','176'),('1987-10-16','AL','176'),('1987-10-16','AL','179'),('1987-10-16','AL','215'),('1987-10-16','AL','231'),('1987-10-16','AL','263'),('1987-10-16','AL','263'),('1987-10-16','AL','268'),('1987-10-16','AL','268'),('1987-10-16','AL','268'),('1987-10-16','AL','281'),('1987-10-16','AL','281'),('1987-10-16','AL','287'),('1987-10-16','AL','287'),('1987-10-16','AL','309'),('1987-10-16','AL','309'),('1987-10-16','AL','341'),('1987-10-16','AL','344'),('1987-10-16','AL','344'),('1987-10-16','AL','357'),('1987-10-16','AL','357'),('1987-10-16','AL','368'),('1987-10-16','AL','381'),('1987-10-16','AL','396'),('1987-10-16','AL','397'),('1987-10-16','AL','397'),('1987-10-16','AL','416'),('1987-10-16','AL','416'),('1987-10-16','AL','417'),('1987-10-16','AL','438'),('1987-10-16','AL','438'),('1987-10-16','AL','446'),('1987-10-16','AL','451'),('1987-10-16','AL','451'),('1987-10-16','AL','491'),('1987-10-16','AL','491'),('1987-10-16','AL','523'),('1987-10-16','AL','523'),('1987-10-16','AL','523'),('1987-10-16','AL','525'),('1987-10-16','AL','525'),('1987-10-16','AL','533'),('1987-10-16','AL','533'),('1987-10-16','AL','546'),('1987-10-16','AL','546'),('1987-10-16','AL','556'),('1987-10-16','AL','556'),('1987-10-16','AL','601'),('1987-10-16','AL','601'),('1987-10-16','AL','627'),('1987-10-16','AL','629'),('1987-10-16','AL','670'),('1987-10-16','AL','670'),('1987-10-16','AL','670'),('1987-10-16','AL','673'),('1987-10-16','AL','680'),('1987-10-17','AA','2'),('1987-10-17','AA','2'),('1987-10-17','AA','2'),('1987-10-17','AA','7'),('1987-10-17','AA','7'),('1987-10-17','AA','26'),('1987-10-17','AA','36'),('1987-10-17','AA','91'),('1987-10-17','AA','101'),('1987-10-17','AA','101'),('1987-10-17','AA','109'),('1987-10-17','AA','109'),('1987-10-17','AA','112'),('1987-10-17','AA','123'),('1987-10-17','AA','123'),('1987-10-17','AA','160'),('1987-10-17','AA','165'),('1987-10-17','AA','165'),('1987-10-17','AA','165'),('1987-10-17','AA','176'),('1987-10-17','AA','176'),('1987-10-17','AA','176'),('1987-10-17','AA','176'),('1987-10-17','AA','179'),('1987-10-17','AA','179'),('1987-10-17','AA','215'),('1987-10-17','AA','215'),('1987-10-17','AA','231'),('1987-10-17','AA','231'),('1987-10-17','AA','263'),('1987-10-17','AA','263'),('1987-10-17','AA','268'),('1987-10-17','AA','268'),('1987-10-17','AA','281'),('1987-10-17','AA','287'),('1987-10-17','AA','287'),('1987-10-17','AA','309'),('1987-10-17','AA','309'),('1987-10-17','AA','309'),('1987-10-17','AA','341'),('1987-10-17','AA','344'),('1987-10-17','AA','344'),('1987-10-17','AA','347'),('1987-10-17','AA','347'),('1987-10-17','AA','368'),('1987-10-17','AA','381'),('1987-10-17','AA','381'),('1987-10-17','AA','381'),('1987-10-17','AA','396'),('1987-10-17','AA','396'),('1987-10-17','AA','397'),('1987-10-17','AA','417'),('1987-10-17','AA','446'),('1987-10-17','AA','451'),('1987-10-17','AA','451'),('1987-10-17','AA','460'),('1987-10-17','AA','460'),('1987-10-17','AA','491'),('1987-10-17','AA','491'),('1987-10-17','AA','504'),('1987-10-17','AA','504'),('1987-10-17','AA','519'),('1987-10-17','AA','519'),('1987-10-17','AA','523'),('1987-10-17','AA','523'),('1987-10-17','AA','525'),('1987-10-17','AA','525'),('1987-10-17','AA','525'),('1987-10-17','AA','533'),('1987-10-17','AA','533'),('1987-10-17','AA','546'),('1987-10-17','AA','546'),('1987-10-17','AA','546'),('1987-10-17','AA','546'),('1987-10-17','AA','556'),('1987-10-17','AA','556'),('1987-10-17','AA','556'),('1987-10-17','AA','597'),('1987-10-17','AA','597'),('1987-10-17','AA','597'),('1987-10-17','AA','601'),('1987-10-17','AA','627'),('1987-10-17','AA','629'),('1987-10-17','AA','629'),('1987-10-17','AA','670'),('1987-10-17','AA','673'),('1987-10-17','AA','673'),('1987-10-17','AA','680'),('1987-10-17','AA','680'),('1987-10-17','AA','817'),('1987-10-17','AA','817'),('1987-10-17','AA','824'),('1987-10-17','AA','824'),('1987-10-17','AA','824'),('1987-10-17','AA','824'),('1987-10-17','AA','832'),('1987-10-17','AA','832'),('1987-10-17','AA','852'),('1987-10-17','AA','852'),('1987-10-17','AA','866'),('1987-10-17','AA','866'),('1987-10-17','AA','871'),('1987-10-17','AA','871'),('1987-10-17','AA','880'),('1987-10-17','AA','880'),('1987-10-17','AA','880'),('1987-10-17','AA','880'),('1987-10-17','AA','883'),('1987-10-17','AA','883'),('1987-10-17','AA','885'),('1987-10-17','AA','885'),('1987-10-17','AA','885'),('1987-10-17','AA','890'),('1987-10-17','AA','890'),('1987-10-17','AA','893'),('1987-10-17','AA','893'),('1987-10-17','AA','905'),('1987-10-17','AA','905'),('1987-10-17','AA','915'),('1987-10-17','AA','929'),('1987-10-17','AA','936'),('1987-10-17','AA','936'),('1987-10-17','AA','937'),('1987-10-17','AA','937'),('1987-10-17','AA','955'),('1987-10-17','AA','955'),('1987-10-17','AA','966'),('1987-10-17','AA','1002'),('1987-10-17','AA','1002'),('1987-10-17','AA','1004'),('1987-10-17','AA','1004'),('1987-10-17','AA','1015'),('1987-10-17','AA','1015'),('1987-10-17','AA','1021'),('1987-10-17','AA','1021'),('1987-10-17','AA','1041'),('1987-10-17','AA','1041'),('1987-10-17','AA','1046'),('1987-10-17','AA','1046'),('1987-10-17','AA','1048'),('1987-10-17','AA','1048'),('1987-10-17','AA','1061'),('1987-10-17','AA','1061'),('1987-10-17','AA','1088'),('1987-10-17','AA','1088'),('1987-10-17','AA','2033'),('1987-10-17','AA','2033'),('1987-10-17','AA','2050'),('1987-10-17','AA','2058'),('1987-10-17','AA','2071'),('1987-10-17','AA','2086'),('1987-10-17','AA','2105'),('1987-10-17','AA','2111'),('1987-10-17','AA','2123'),('1987-10-17','AA','2123'),('1987-10-17','AA','2147'),('1987-10-17','AA','2147'),('1987-10-17','AA','2199'),('1987-10-17','AA','2199'),('1987-10-17','AA','2207'),('1987-10-17','AA','2207'),('1987-10-17','AA','2217'),('1987-10-17','AA','2230'),('1987-10-17','AA','2251'),('1987-10-17','AA','2251'),('1987-10-17','AA','2275'),('1987-10-17','AA','2278'),('1987-10-17','AA','2351'),('1987-10-17','AA','2357'),('1987-10-17','AA','2361'),('1987-10-17','AA','2490'),('1987-10-17','AA','2528'),('1987-10-17','AA','2528'),('1987-10-17','AA','2735'),('1987-10-17','AA','2735'),('1987-10-17','AL','2'),('1987-10-17','AL','2'),('1987-10-17','AL','7'),('1987-10-17','AL','7'),('1987-10-17','AL','26'),('1987-10-17','AL','26'),('1987-10-17','AL','34'),('1987-10-17','AL','36'),('1987-10-17','AL','36'),('1987-10-17','AL','45'),('1987-10-17','AL','45'),('1987-10-17','AL','45'),('1987-10-17','AL','91'),('1987-10-17','AL','91'),('1987-10-17','AL','104'),('1987-10-17','AL','104'),('1987-10-17','AL','109'),('1987-10-17','AL','112'),('1987-10-17','AL','112'),('1987-10-17','AL','149'),('1987-10-17','AL','160'),('1987-10-17','AL','160'),('1987-10-17','AL','165'),('1987-10-17','AL','171'),('1987-10-17','AL','171'),('1987-10-17','AL','176'),('1987-10-17','AL','176'),('1987-10-17','AL','179'),('1987-10-17','AL','215'),('1987-10-17','AL','231'),('1987-10-17','AL','263'),('1987-10-17','AL','268'),('1987-10-17','AL','268'),('1987-10-17','AL','268'),('1987-10-17','AL','287'),('1987-10-17','AL','287'),('1987-10-17','AL','309'),('1987-10-17','AL','309'),('1987-10-17','AL','344'),('1987-10-17','AL','344'),('1987-10-17','AL','357'),('1987-10-17','AL','357'),('1987-10-17','AL','381'),('1987-10-17','AL','396'),('1987-10-17','AL','397'),('1987-10-17','AL','397'),('1987-10-17','AL','397'),('1987-10-17','AL','416'),('1987-10-17','AL','417'),('1987-10-17','AL','438'),('1987-10-17','AL','438'),('1987-10-17','AL','451'),('1987-10-17','AL','451'),('1987-10-17','AL','491'),('1987-10-17','AL','491'),('1987-10-17','AL','523'),('1987-10-17','AL','523'),('1987-10-17','AL','525'),('1987-10-17','AL','525'),('1987-10-17','AL','533'),('1987-10-17','AL','546'),('1987-10-17','AL','546'),('1987-10-17','AL','556'),('1987-10-17','AL','556'),('1987-10-17','AL','601'),('1987-10-17','AL','601'),('1987-10-17','AL','627'),('1987-10-17','AL','670'),('1987-10-17','AL','673'),('1987-10-17','AL','680'),('1987-10-17','AL','936'),('1987-10-17','AL','966'),('1987-10-18','AA','2'),('1987-10-18','AA','2'),('1987-10-18','AA','2'),('1987-10-18','AA','7'),('1987-10-18','AA','7'),('1987-10-18','AA','26'),('1987-10-18','AA','34'),('1987-10-18','AA','36'),('1987-10-18','AA','91'),('1987-10-18','AA','101'),('1987-10-18','AA','101'),('1987-10-18','AA','109'),('1987-10-18','AA','109'),('1987-10-18','AA','112'),('1987-10-18','AA','123'),('1987-10-18','AA','123'),('1987-10-18','AA','160'),('1987-10-18','AA','165'),('1987-10-18','AA','165'),('1987-10-18','AA','165'),('1987-10-18','AA','176'),('1987-10-18','AA','176'),('1987-10-18','AA','176'),('1987-10-18','AA','176'),('1987-10-18','AA','179'),('1987-10-18','AA','179'),('1987-10-18','AA','215'),('1987-10-18','AA','231'),('1987-10-18','AA','231'),('1987-10-18','AA','263'),('1987-10-18','AA','268'),('1987-10-18','AA','268'),('1987-10-18','AA','281'),('1987-10-18','AA','287'),('1987-10-18','AA','287'),('1987-10-18','AA','309'),('1987-10-18','AA','309'),('1987-10-18','AA','309'),('1987-10-18','AA','341'),('1987-10-18','AA','344'),('1987-10-18','AA','344'),('1987-10-18','AA','347'),('1987-10-18','AA','347'),('1987-10-18','AA','368'),('1987-10-18','AA','381'),('1987-10-18','AA','381'),('1987-10-18','AA','381'),('1987-10-18','AA','396'),('1987-10-18','AA','396'),('1987-10-18','AA','397'),('1987-10-18','AA','397'),('1987-10-18','AA','417'),('1987-10-18','AA','417'),('1987-10-18','AA','451'),('1987-10-18','AA','451'),('1987-10-18','AA','460'),('1987-10-18','AA','491'),('1987-10-18','AA','491'),('1987-10-18','AA','504'),('1987-10-18','AA','504'),('1987-10-18','AA','519'),('1987-10-18','AA','519'),('1987-10-18','AA','523'),('1987-10-18','AA','523'),('1987-10-18','AA','525'),('1987-10-18','AA','525'),('1987-10-18','AA','525'),('1987-10-18','AA','533'),('1987-10-18','AA','533'),('1987-10-18','AA','546'),('1987-10-18','AA','546'),('1987-10-18','AA','546'),('1987-10-18','AA','546'),('1987-10-18','AA','556'),('1987-10-18','AA','556'),('1987-10-18','AA','556'),('1987-10-18','AA','597'),('1987-10-18','AA','597'),('1987-10-18','AA','597'),('1987-10-18','AA','601'),('1987-10-18','AA','601'),('1987-10-18','AA','629'),('1987-10-18','AA','629'),('1987-10-18','AA','670'),('1987-10-18','AA','673'),('1987-10-18','AA','680'),('1987-10-18','AA','680'),('1987-10-18','AA','817'),('1987-10-18','AA','817'),('1987-10-18','AA','824'),('1987-10-18','AA','824'),('1987-10-18','AA','824'),('1987-10-18','AA','824'),('1987-10-18','AA','832'),('1987-10-18','AA','832'),('1987-10-18','AA','852'),('1987-10-18','AA','866'),('1987-10-18','AA','866'),('1987-10-18','AA','871'),('1987-10-18','AA','871'),('1987-10-18','AA','880'),('1987-10-18','AA','880'),('1987-10-18','AA','880'),('1987-10-18','AA','880'),('1987-10-18','AA','883'),('1987-10-18','AA','883'),('1987-10-18','AA','885'),('1987-10-18','AA','885'),('1987-10-18','AA','885'),('1987-10-18','AA','890'),('1987-10-18','AA','890'),('1987-10-18','AA','893'),('1987-10-18','AA','893'),('1987-10-18','AA','905'),('1987-10-18','AA','905'),('1987-10-18','AA','915'),('1987-10-18','AA','929'),('1987-10-18','AA','929'),('1987-10-18','AA','936'),('1987-10-18','AA','936'),('1987-10-18','AA','937'),('1987-10-18','AA','937'),('1987-10-18','AA','955'),('1987-10-18','AA','966'),('1987-10-18','AA','1002'),('1987-10-18','AA','1002'),('1987-10-18','AA','1004'),('1987-10-18','AA','1004'),('1987-10-18','AA','1015'),('1987-10-18','AA','1015'),('1987-10-18','AA','1021'),('1987-10-18','AA','1021'),('1987-10-18','AA','1041'),('1987-10-18','AA','1041'),('1987-10-18','AA','1046'),('1987-10-18','AA','1046'),('1987-10-18','AA','1048'),('1987-10-18','AA','1048'),('1987-10-18','AA','1061'),('1987-10-18','AA','1061'),('1987-10-18','AA','1088'),('1987-10-18','AA','1088'),('1987-10-18','AA','2033'),('1987-10-18','AA','2033'),('1987-10-18','AA','2050'),('1987-10-18','AA','2058'),('1987-10-18','AA','2071'),('1987-10-18','AA','2071'),('1987-10-18','AA','2086'),('1987-10-18','AA','2111'),('1987-10-18','AA','2123'),('1987-10-18','AA','2147'),('1987-10-18','AA','2147'),('1987-10-18','AA','2199'),('1987-10-18','AA','2199'),('1987-10-18','AA','2207'),('1987-10-18','AA','2207'),('1987-10-18','AA','2230'),('1987-10-18','AA','2245'),('1987-10-18','AA','2251'),('1987-10-18','AA','2251'),('1987-10-18','AA','2275'),('1987-10-18','AA','2278'),('1987-10-18','AA','2351'),('1987-10-18','AA','2357'),('1987-10-18','AA','2361'),('1987-10-18','AA','2490'),('1987-10-18','AA','2528'),('1987-10-18','AA','2528'),('1987-10-18','AA','2735'),('1987-10-18','AA','2735'),('1987-10-18','AA','2751'),('1987-10-18','AL','2'),('1987-10-18','AL','2'),('1987-10-18','AL','7'),('1987-10-18','AL','7'),('1987-10-18','AL','26'),('1987-10-18','AL','26'),('1987-10-18','AL','34'),('1987-10-18','AL','34'),('1987-10-18','AL','36'),('1987-10-18','AL','36'),('1987-10-18','AL','45'),('1987-10-18','AL','45'),('1987-10-18','AL','45'),('1987-10-18','AL','91'),('1987-10-18','AL','91'),('1987-10-18','AL','104'),('1987-10-18','AL','104'),('1987-10-18','AL','104'),('1987-10-18','AL','112'),('1987-10-18','AL','123'),('1987-10-18','AL','160'),('1987-10-18','AL','160'),('1987-10-18','AL','165'),('1987-10-18','AL','171'),('1987-10-18','AL','171'),('1987-10-18','AL','176'),('1987-10-18','AL','176'),('1987-10-18','AL','179'),('1987-10-18','AL','215'),('1987-10-18','AL','231'),('1987-10-18','AL','263'),('1987-10-18','AL','263'),('1987-10-18','AL','281'),('1987-10-18','AL','281'),('1987-10-18','AL','309'),('1987-10-18','AL','309'),('1987-10-18','AL','341'),('1987-10-18','AL','344'),('1987-10-18','AL','344'),('1987-10-18','AL','357'),('1987-10-18','AL','357'),('1987-10-18','AL','368'),('1987-10-18','AL','396'),('1987-10-18','AL','416'),('1987-10-18','AL','416'),('1987-10-18','AL','417'),('1987-10-18','AL','438'),('1987-10-18','AL','438'),('1987-10-18','AL','446'),('1987-10-18','AL','451'),('1987-10-18','AL','491'),('1987-10-18','AL','523'),('1987-10-18','AL','523'),('1987-10-18','AL','523'),('1987-10-18','AL','525'),('1987-10-18','AL','525'),('1987-10-18','AL','533'),('1987-10-18','AL','533'),('1987-10-18','AL','546'),('1987-10-18','AL','546'),('1987-10-18','AL','556'),('1987-10-18','AL','601'),('1987-10-18','AL','601'),('1987-10-18','AL','627'),('1987-10-18','AL','629'),('1987-10-18','AL','670'),('1987-10-18','AL','670'),('1987-10-18','AL','670'),('1987-10-18','AL','673'),('1987-10-18','AL','680'),('1987-10-18','AL','937'),('1987-10-18','AL','937'),('1987-10-18','AL','955'),('1987-10-19','AA','2'),('1987-10-19','AA','2'),('1987-10-19','AA','2'),('1987-10-19','AA','7'),('1987-10-19','AA','7'),('1987-10-19','AA','26'),('1987-10-19','AA','34'),('1987-10-19','AA','36'),('1987-10-19','AA','91'),('1987-10-19','AA','101'),('1987-10-19','AA','101'),('1987-10-19','AA','109'),('1987-10-19','AA','109'),('1987-10-19','AA','112'),('1987-10-19','AA','123'),('1987-10-19','AA','123'),('1987-10-19','AA','160'),('1987-10-19','AA','165'),('1987-10-19','AA','165'),('1987-10-19','AA','165'),('1987-10-19','AA','176'),('1987-10-19','AA','176'),('1987-10-19','AA','176'),('1987-10-19','AA','176'),('1987-10-19','AA','179'),('1987-10-19','AA','179'),('1987-10-19','AA','215'),('1987-10-19','AA','215'),('1987-10-19','AA','231'),('1987-10-19','AA','231'),('1987-10-19','AA','263'),('1987-10-19','AA','263'),('1987-10-19','AA','268'),('1987-10-19','AA','268'),('1987-10-19','AA','281'),('1987-10-19','AA','287'),('1987-10-19','AA','287'),('1987-10-19','AA','309'),('1987-10-19','AA','309'),('1987-10-19','AA','341'),('1987-10-19','AA','344'),('1987-10-19','AA','344'),('1987-10-19','AA','347'),('1987-10-19','AA','347'),('1987-10-19','AA','368'),('1987-10-19','AA','381'),('1987-10-19','AA','381'),('1987-10-19','AA','381'),('1987-10-19','AA','396'),('1987-10-19','AA','396'),('1987-10-19','AA','397'),('1987-10-19','AA','397'),('1987-10-19','AA','417'),('1987-10-19','AA','417'),('1987-10-19','AA','446'),('1987-10-19','AA','451'),('1987-10-19','AA','451'),('1987-10-19','AA','491'),('1987-10-19','AA','504'),('1987-10-19','AA','504'),('1987-10-19','AA','519'),('1987-10-19','AA','519'),('1987-10-19','AA','523'),('1987-10-19','AA','523'),('1987-10-19','AA','525'),('1987-10-19','AA','525'),('1987-10-19','AA','525'),('1987-10-19','AA','533'),('1987-10-19','AA','533'),('1987-10-19','AA','546'),('1987-10-19','AA','546'),('1987-10-19','AA','546'),('1987-10-19','AA','546'),('1987-10-19','AA','556'),('1987-10-19','AA','556'),('1987-10-19','AA','556'),('1987-10-19','AA','597'),('1987-10-19','AA','597'),('1987-10-19','AA','597'),('1987-10-19','AA','601'),('1987-10-19','AA','601'),('1987-10-19','AA','627'),('1987-10-19','AA','629'),('1987-10-19','AA','629'),('1987-10-19','AA','670'),('1987-10-19','AA','673'),('1987-10-19','AA','673'),('1987-10-19','AA','680'),('1987-10-19','AA','680'),('1987-10-19','AA','817'),('1987-10-19','AA','817'),('1987-10-19','AA','824'),('1987-10-19','AA','824'),('1987-10-19','AA','824'),('1987-10-19','AA','832'),('1987-10-19','AA','832'),('1987-10-19','AA','852'),('1987-10-19','AA','852'),('1987-10-19','AA','866'),('1987-10-19','AA','866'),('1987-10-19','AA','871'),('1987-10-19','AA','871'),('1987-10-19','AA','880'),('1987-10-19','AA','880'),('1987-10-19','AA','880'),('1987-10-19','AA','880'),('1987-10-19','AA','883'),('1987-10-19','AA','883'),('1987-10-19','AA','885'),('1987-10-19','AA','885'),('1987-10-19','AA','890'),('1987-10-19','AA','890'),('1987-10-19','AA','893'),('1987-10-19','AA','893'),('1987-10-19','AA','905'),('1987-10-19','AA','905'),('1987-10-19','AA','915'),('1987-10-19','AA','929'),('1987-10-19','AA','929'),('1987-10-19','AA','936'),('1987-10-19','AA','936'),('1987-10-19','AA','937'),('1987-10-19','AA','955'),('1987-10-19','AA','955'),('1987-10-19','AA','966'),('1987-10-19','AA','1002'),('1987-10-19','AA','1002'),('1987-10-19','AA','1004'),('1987-10-19','AA','1004'),('1987-10-19','AA','1015'),('1987-10-19','AA','1015'),('1987-10-19','AA','1021'),('1987-10-19','AA','1021'),('1987-10-19','AA','1041'),('1987-10-19','AA','1041'),('1987-10-19','AA','1046'),('1987-10-19','AA','1046'),('1987-10-19','AA','1048'),('1987-10-19','AA','1048'),('1987-10-19','AA','1061'),('1987-10-19','AA','1061'),('1987-10-19','AA','1088'),('1987-10-19','AA','1088'),('1987-10-19','AA','2033'),('1987-10-19','AA','2033'),('1987-10-19','AA','2050'),('1987-10-19','AA','2058'),('1987-10-19','AA','2071'),('1987-10-19','AA','2071'),('1987-10-19','AA','2086'),('1987-10-19','AA','2105'),('1987-10-19','AA','2111'),('1987-10-19','AA','2123'),('1987-10-19','AA','2123'),('1987-10-19','AA','2147'),('1987-10-19','AA','2147'),('1987-10-19','AA','2199'),('1987-10-19','AA','2199'),('1987-10-19','AA','2207'),('1987-10-19','AA','2207'),('1987-10-19','AA','2217'),('1987-10-19','AA','2230'),('1987-10-19','AA','2245'),('1987-10-19','AA','2251'),('1987-10-19','AA','2251'),('1987-10-19','AA','2275'),('1987-10-19','AA','2278'),('1987-10-19','AA','2357'),('1987-10-19','AA','2361'),('1987-10-19','AA','2490'),('1987-10-19','AA','2528'),('1987-10-19','AA','2735'),('1987-10-19','AA','2735'),('1987-10-19','AA','2751'),('1987-10-19','AL','2'),('1987-10-19','AL','2'),('1987-10-19','AL','7'),('1987-10-19','AL','7'),('1987-10-19','AL','26'),('1987-10-19','AL','26'),('1987-10-19','AL','34'),('1987-10-19','AL','34'),('1987-10-19','AL','36'),('1987-10-19','AL','36'),('1987-10-19','AL','45'),('1987-10-19','AL','45'),('1987-10-19','AL','45'),('1987-10-19','AL','91'),('1987-10-19','AL','91'),('1987-10-19','AL','104'),('1987-10-19','AL','104'),('1987-10-19','AL','104'),('1987-10-19','AL','109'),('1987-10-19','AL','112'),('1987-10-19','AL','112'),('1987-10-19','AL','123'),('1987-10-19','AL','149'),('1987-10-19','AL','160'),('1987-10-19','AL','160'),('1987-10-19','AL','165'),('1987-10-19','AL','171'),('1987-10-19','AL','171'),('1987-10-19','AL','176'),('1987-10-19','AL','176'),('1987-10-19','AL','179'),('1987-10-19','AL','215'),('1987-10-19','AL','231'),('1987-10-19','AL','263'),('1987-10-19','AL','263'),('1987-10-19','AL','268'),('1987-10-19','AL','268'),('1987-10-19','AL','268'),('1987-10-19','AL','281'),('1987-10-19','AL','281'),('1987-10-19','AL','287'),('1987-10-19','AL','287'),('1987-10-19','AL','309'),('1987-10-19','AL','309'),('1987-10-19','AL','341'),('1987-10-19','AL','344'),('1987-10-19','AL','344'),('1987-10-19','AL','357'),('1987-10-19','AL','357'),('1987-10-19','AL','368'),('1987-10-19','AL','381'),('1987-10-19','AL','396'),('1987-10-19','AL','416'),('1987-10-19','AL','416'),('1987-10-19','AL','417'),('1987-10-19','AL','438'),('1987-10-19','AL','438'),('1987-10-19','AL','446'),('1987-10-19','AL','451'),('1987-10-19','AL','451'),('1987-10-19','AL','491'),('1987-10-19','AL','491'),('1987-10-19','AL','523'),('1987-10-19','AL','523'),('1987-10-19','AL','523'),('1987-10-19','AL','525'),('1987-10-19','AL','525'),('1987-10-19','AL','533'),('1987-10-19','AL','533'),('1987-10-19','AL','546'),('1987-10-19','AL','546'),('1987-10-19','AL','556'),('1987-10-19','AL','556'),('1987-10-19','AL','601'),('1987-10-19','AL','601'),('1987-10-19','AL','627'),('1987-10-19','AL','629'),('1987-10-19','AL','670'),('1987-10-19','AL','670'),('1987-10-19','AL','670'),('1987-10-20','AA','2'),('1987-10-20','AA','2'),('1987-10-20','AA','2'),('1987-10-20','AA','7'),('1987-10-20','AA','7'),('1987-10-20','AA','34'),('1987-10-20','AA','36'),('1987-10-20','AA','91'),('1987-10-20','AA','101'),('1987-10-20','AA','101'),('1987-10-20','AA','109'),('1987-10-20','AA','109'),('1987-10-20','AA','112'),('1987-10-20','AA','123'),('1987-10-20','AA','123'),('1987-10-20','AA','160'),('1987-10-20','AA','165'),('1987-10-20','AA','165'),('1987-10-20','AA','165'),('1987-10-20','AA','176'),('1987-10-20','AA','176'),('1987-10-20','AA','176'),('1987-10-20','AA','176'),('1987-10-20','AA','179'),('1987-10-20','AA','179'),('1987-10-20','AA','215'),('1987-10-20','AA','215'),('1987-10-20','AA','231'),('1987-10-20','AA','231'),('1987-10-20','AA','263'),('1987-10-20','AA','263'),('1987-10-20','AA','268'),('1987-10-20','AA','268'),('1987-10-20','AA','281'),('1987-10-20','AA','287'),('1987-10-20','AA','287'),('1987-10-20','AA','309'),('1987-10-20','AA','309'),('1987-10-20','AA','309'),('1987-10-20','AA','341'),('1987-10-20','AA','344'),('1987-10-20','AA','344'),('1987-10-20','AA','347'),('1987-10-20','AA','347'),('1987-10-20','AA','368'),('1987-10-20','AA','381'),('1987-10-20','AA','381'),('1987-10-20','AA','381'),('1987-10-20','AA','396'),('1987-10-20','AA','396'),('1987-10-20','AA','397'),('1987-10-20','AA','397'),('1987-10-20','AA','417'),('1987-10-20','AA','417'),('1987-10-20','AA','446'),('1987-10-20','AA','460'),('1987-10-20','AA','460'),('1987-10-20','AA','491'),('1987-10-20','AA','504'),('1987-10-20','AA','504'),('1987-10-20','AA','519'),('1987-10-20','AA','519'),('1987-10-20','AA','523'),('1987-10-20','AA','525'),('1987-10-20','AA','525'),('1987-10-20','AA','525'),('1987-10-20','AA','533'),('1987-10-20','AA','533'),('1987-10-20','AA','533'),('1987-10-20','AA','546'),('1987-10-20','AA','546'),('1987-10-20','AA','546'),('1987-10-20','AA','546'),('1987-10-20','AA','556'),('1987-10-20','AA','556'),('1987-10-20','AA','597'),('1987-10-20','AA','597'),('1987-10-20','AA','601'),('1987-10-20','AA','601'),('1987-10-20','AA','629'),('1987-10-20','AA','670'),('1987-10-20','AA','673'),('1987-10-20','AA','673'),('1987-10-20','AA','680'),('1987-10-20','AA','680'),('1987-10-20','AA','817'),('1987-10-20','AA','824'),('1987-10-20','AA','824'),('1987-10-20','AA','824'),('1987-10-20','AA','832'),('1987-10-20','AA','832'),('1987-10-20','AA','852'),('1987-10-20','AA','852'),('1987-10-20','AA','866'),('1987-10-20','AA','866'),('1987-10-20','AA','871'),('1987-10-20','AA','871'),('1987-10-20','AA','880'),('1987-10-20','AA','880'),('1987-10-20','AA','880'),('1987-10-20','AA','880'),('1987-10-20','AA','883'),('1987-10-20','AA','883'),('1987-10-20','AA','885'),('1987-10-20','AA','885'),('1987-10-20','AA','885'),('1987-10-20','AA','890'),('1987-10-20','AA','890'),('1987-10-20','AA','893'),('1987-10-20','AA','893'),('1987-10-20','AA','905'),('1987-10-20','AA','905'),('1987-10-20','AA','915'),('1987-10-20','AA','929'),('1987-10-20','AA','929'),('1987-10-20','AA','936'),('1987-10-20','AA','937'),('1987-10-20','AA','937'),('1987-10-20','AA','955'),('1987-10-20','AA','955'),('1987-10-20','AA','966'),('1987-10-20','AA','1002'),('1987-10-20','AA','1002'),('1987-10-20','AA','1004'),('1987-10-20','AA','1004'),('1987-10-20','AA','1015'),('1987-10-20','AA','1015'),('1987-10-20','AA','1021'),('1987-10-20','AA','1021'),('1987-10-20','AA','1041'),('1987-10-20','AA','1041'),('1987-10-20','AA','1046'),('1987-10-20','AA','1046'),('1987-10-20','AA','1048'),('1987-10-20','AA','1048'),('1987-10-20','AA','1061'),('1987-10-20','AA','1061'),('1987-10-20','AA','1088'),('1987-10-20','AA','1088'),('1987-10-20','AA','2033'),('1987-10-20','AA','2033'),('1987-10-20','AA','2050'),('1987-10-20','AA','2058'),('1987-10-20','AA','2071'),('1987-10-20','AA','2071'),('1987-10-20','AA','2086'),('1987-10-20','AA','2105'),('1987-10-20','AA','2111'),('1987-10-20','AA','2123'),('1987-10-20','AA','2123'),('1987-10-20','AA','2147'),('1987-10-20','AA','2199'),('1987-10-20','AA','2207'),('1987-10-20','AA','2217'),('1987-10-20','AA','2230'),('1987-10-20','AA','2245'),('1987-10-20','AA','2251'),('1987-10-20','AA','2251'),('1987-10-20','AA','2275'),('1987-10-20','AA','2278'),('1987-10-20','AA','2351'),('1987-10-20','AA','2357'),('1987-10-20','AA','2361'),('1987-10-20','AA','2490'),('1987-10-20','AA','2528'),('1987-10-20','AA','2528'),('1987-10-20','AA','2735'),('1987-10-20','AA','2735'),('1987-10-20','AA','2751'),('1987-10-20','AL','2'),('1987-10-20','AL','2'),('1987-10-20','AL','7'),('1987-10-20','AL','7'),('1987-10-20','AL','26'),('1987-10-20','AL','26'),('1987-10-20','AL','34'),('1987-10-20','AL','34'),('1987-10-20','AL','36'),('1987-10-20','AL','36'),('1987-10-20','AL','45'),('1987-10-20','AL','45'),('1987-10-20','AL','45'),('1987-10-20','AL','104'),('1987-10-20','AL','104'),('1987-10-20','AL','104'),('1987-10-20','AL','109'),('1987-10-20','AL','112'),('1987-10-20','AL','112'),('1987-10-20','AL','123'),('1987-10-20','AL','149'),('1987-10-20','AL','160'),('1987-10-20','AL','160'),('1987-10-20','AL','165'),('1987-10-20','AL','171'),('1987-10-20','AL','171'),('1987-10-20','AL','176'),('1987-10-20','AL','176'),('1987-10-20','AL','179'),('1987-10-20','AL','215'),('1987-10-20','AL','231'),('1987-10-20','AL','263'),('1987-10-20','AL','263'),('1987-10-20','AL','268'),('1987-10-20','AL','268'),('1987-10-20','AL','268'),('1987-10-20','AL','281'),('1987-10-20','AL','281'),('1987-10-20','AL','287'),('1987-10-20','AL','287'),('1987-10-20','AL','309'),('1987-10-20','AL','309'),('1987-10-20','AL','341'),('1987-10-20','AL','344'),('1987-10-20','AL','344'),('1987-10-20','AL','357'),('1987-10-20','AL','357'),('1987-10-20','AL','368'),('1987-10-20','AL','381'),('1987-10-20','AL','396'),('1987-10-20','AL','397'),('1987-10-20','AL','397'),('1987-10-20','AL','416'),('1987-10-20','AL','416'),('1987-10-20','AL','417'),('1987-10-20','AL','438'),('1987-10-20','AL','438'),('1987-10-20','AL','446'),('1987-10-20','AL','451'),('1987-10-20','AL','451'),('1987-10-20','AL','491'),('1987-10-20','AL','491'),('1987-10-20','AL','523'),('1987-10-20','AL','523'),('1987-10-20','AL','523'),('1987-10-20','AL','525'),('1987-10-20','AL','525'),('1987-10-20','AL','533'),('1987-10-20','AL','533'),('1987-10-20','AL','546'),('1987-10-20','AL','546'),('1987-10-20','AL','556'),('1987-10-20','AL','556'),('1987-10-20','AL','601'),('1987-10-20','AL','601'),('1987-10-20','AL','627'),('1987-10-20','AL','629'),('1987-10-20','AL','670'),('1987-10-20','AL','670'),('1987-10-20','AL','670'),('1987-10-20','AL','673'),('1987-10-20','AL','680'),('1987-10-05','AA','2'),('1987-10-05','AA','2'),('1987-10-05','AA','2'),('1987-10-05','AA','7'),('1987-10-05','AA','7'),('1987-10-05','AA','26'),('1987-10-05','AA','34'),('1987-10-05','AA','36'),('1987-10-05','AA','91'),('1987-10-05','AA','101'),('1987-10-05','AA','101'),('1987-10-05','AA','109'),('1987-10-05','AA','109'),('1987-10-05','AA','112'),('1987-10-05','AA','123'),('1987-10-05','AA','123'),('1987-10-05','AA','165'),('1987-10-05','AA','165'),('1987-10-05','AA','165'),('1987-10-05','AA','176'),('1987-10-05','AA','176'),('1987-10-05','AA','176'),('1987-10-05','AA','176'),('1987-10-05','AA','179'),('1987-10-05','AA','179'),('1987-10-05','AA','215'),('1987-10-05','AA','215'),('1987-10-05','AA','231'),('1987-10-05','AA','263'),('1987-10-05','AA','263'),('1987-10-05','AA','281'),('1987-10-05','AA','287'),('1987-10-05','AA','287'),('1987-10-05','AA','309'),('1987-10-05','AA','309'),('1987-10-05','AA','309'),('1987-10-05','AA','341'),('1987-10-05','AA','347'),('1987-10-05','AA','347'),('1987-10-05','AA','368'),('1987-10-05','AA','381'),('1987-10-05','AA','381'),('1987-10-05','AA','381'),('1987-10-05','AA','396'),('1987-10-05','AA','396'),('1987-10-05','AA','397'),('1987-10-05','AA','397'),('1987-10-05','AA','417'),('1987-10-05','AA','417'),('1987-10-05','AA','446'),('1987-10-05','AA','451'),('1987-10-05','AA','451'),('1987-10-05','AA','460'),('1987-10-05','AA','460'),('1987-10-05','AA','491'),('1987-10-05','AA','504'),('1987-10-05','AA','504'),('1987-10-05','AA','519'),('1987-10-05','AA','519'),('1987-10-05','AA','523'),('1987-10-05','AA','523'),('1987-10-05','AA','525'),('1987-10-05','AA','525'),('1987-10-05','AA','525'),('1987-10-05','AA','533'),('1987-10-05','AA','533'),('1987-10-05','AA','533'),('1987-10-05','AA','546'),('1987-10-05','AA','546'),('1987-10-05','AA','546'),('1987-10-05','AA','546'),('1987-10-05','AA','556'),('1987-10-05','AA','556'),('1987-10-05','AA','556'),('1987-10-05','AA','597'),('1987-10-05','AA','597'),('1987-10-05','AA','597'),('1987-10-05','AA','601'),('1987-10-05','AA','601'),('1987-10-05','AA','627'),('1987-10-05','AA','629'),('1987-10-05','AA','629'),('1987-10-05','AA','670'),('1987-10-05','AA','673'),('1987-10-05','AA','673'),('1987-10-05','AA','680'),('1987-10-05','AA','680'),('1987-10-05','AA','817'),('1987-10-05','AA','817'),('1987-10-05','AA','824'),('1987-10-05','AA','824'),('1987-10-05','AA','824'),('1987-10-05','AA','824'),('1987-10-05','AA','832'),('1987-10-05','AA','832'),('1987-10-05','AA','852'),('1987-10-05','AA','852'),('1987-10-05','AA','866'),('1987-10-05','AA','866'),('1987-10-05','AA','871'),('1987-10-05','AA','871'),('1987-10-05','AA','880'),('1987-10-05','AA','880'),('1987-10-05','AA','880'),('1987-10-05','AA','880'),('1987-10-05','AA','883'),('1987-10-05','AA','883'),('1987-10-05','AA','885'),('1987-10-05','AA','885'),('1987-10-05','AA','885'),('1987-10-05','AA','890'),('1987-10-05','AA','890'),('1987-10-05','AA','893'),('1987-10-05','AA','893'),('1987-10-05','AA','905'),('1987-10-05','AA','905'),('1987-10-05','AA','915'),('1987-10-05','AA','929'),('1987-10-05','AA','929'),('1987-10-05','AA','936'),('1987-10-05','AA','936'),('1987-10-05','AA','937'),('1987-10-05','AA','937'),('1987-10-05','AA','955'),('1987-10-05','AA','955'),('1987-10-05','AA','966'),('1987-10-05','AA','1002'),('1987-10-05','AA','1002'),('1987-10-05','AA','1004'),('1987-10-05','AA','1004'),('1987-10-05','AA','1015'),('1987-10-05','AA','1015'),('1987-10-05','AA','1021'),('1987-10-05','AA','1021'),('1987-10-05','AA','1041'),('1987-10-05','AA','1041'),('1987-10-05','AA','1046'),('1987-10-05','AA','1046'),('1987-10-05','AA','1048'),('1987-10-05','AA','1048'),('1987-10-05','AA','1061'),('1987-10-05','AA','1061'),('1987-10-05','AA','1088'),('1987-10-05','AA','1088'),('1987-10-05','AA','2033'),('1987-10-05','AA','2033'),('1987-10-05','AA','2050'),('1987-10-05','AA','2058'),('1987-10-05','AA','2071'),('1987-10-05','AA','2071'),('1987-10-05','AA','2086'),('1987-10-05','AA','2105'),('1987-10-05','AA','2111'),('1987-10-05','AA','2123'),('1987-10-05','AA','2123'),('1987-10-05','AA','2147'),('1987-10-05','AA','2147'),('1987-10-05','AA','2199'),('1987-10-05','AA','2199'),('1987-10-05','AA','2207'),('1987-10-05','AA','2207'),('1987-10-05','AA','2217'),('1987-10-05','AA','2230'),('1987-10-05','AA','2245'),('1987-10-05','AA','2251'),('1987-10-05','AA','2251'),('1987-10-05','AA','2275'),('1987-10-05','AA','2278'),('1987-10-05','AA','2351'),('1987-10-05','AA','2357'),('1987-10-05','AA','2361'),('1987-10-05','AA','2528'),('1987-10-05','AA','2528'),('1987-10-05','AA','2735'),('1987-10-05','AA','2735'),('1987-10-05','AA','2751'),('1987-10-05','AL','2'),('1987-10-05','AL','2'),('1987-10-05','AL','7'),('1987-10-05','AL','7'),('1987-10-05','AL','26'),('1987-10-05','AL','26'),('1987-10-05','AL','36'),('1987-10-05','AL','36'),('1987-10-05','AL','45'),('1987-10-05','AL','45'),('1987-10-05','AL','45'),('1987-10-05','AL','91'),('1987-10-05','AL','91'),('1987-10-05','AL','104'),('1987-10-05','AL','104'),('1987-10-05','AL','104'),('1987-10-05','AL','109'),('1987-10-05','AL','112'),('1987-10-05','AL','112'),('1987-10-05','AL','123'),('1987-10-05','AL','149'),('1987-10-05','AL','160'),('1987-10-05','AL','160'),('1987-10-05','AL','165'),('1987-10-05','AL','171'),('1987-10-05','AL','171'),('1987-10-05','AL','176'),('1987-10-05','AL','176'),('1987-10-05','AL','179'),('1987-10-05','AL','215'),('1987-10-05','AL','231'),('1987-10-05','AL','263'),('1987-10-05','AL','263'),('1987-10-05','AL','268'),('1987-10-05','AL','268'),('1987-10-05','AL','268'),('1987-10-05','AL','281'),('1987-10-05','AL','281'),('1987-10-05','AL','287'),('1987-10-05','AL','287'),('1987-10-05','AL','309'),('1987-10-05','AL','309'),('1987-10-05','AL','341'),('1987-10-05','AL','344'),('1987-10-05','AL','344'),('1987-10-05','AL','357'),('1987-10-05','AL','357'),('1987-10-05','AL','368'),('1987-10-05','AL','381'),('1987-10-05','AL','396'),('1987-10-05','AL','397'),('1987-10-05','AL','397'),('1987-10-05','AL','416'),('1987-10-05','AL','416'),('1987-10-05','AL','417'),('1987-10-05','AL','438'),('1987-10-05','AL','438'),('1987-10-05','AL','446'),('1987-10-05','AL','451'),('1987-10-05','AL','451'),('1987-10-05','AL','491'),('1987-10-05','AL','491'),('1987-10-05','AL','523'),('1987-10-05','AL','523'),('1987-10-05','AL','523'),('1987-10-05','AL','525'),('1987-10-05','AL','525'),('1987-10-05','AL','533'),('1987-10-05','AL','533'),('1987-10-05','AL','546'),('1987-10-05','AL','546'),('1987-10-05','AL','601'),('1987-10-05','AL','601'),('1987-10-05','AL','627'),('1987-10-05','AL','629'),('1987-10-05','AL','670'),('1987-10-05','AL','670'),('1987-10-05','AL','670'),('1987-10-05','AL','673'),('1987-10-05','AL','680'),('1987-10-06','AA','2'),('1987-10-06','AA','2'),('1987-10-06','AA','7'),('1987-10-06','AA','7'),('1987-10-06','AA','34'),('1987-10-06','AA','36'),('1987-10-06','AA','91'),('1987-10-06','AA','101'),('1987-10-06','AA','109'),('1987-10-06','AA','109'),('1987-10-06','AA','112'),('1987-10-06','AA','123'),('1987-10-06','AA','123'),('1987-10-06','AA','165'),('1987-10-06','AA','165'),('1987-10-06','AA','165'),('1987-10-06','AA','176'),('1987-10-06','AA','176'),('1987-10-06','AA','176'),('1987-10-06','AA','176'),('1987-10-06','AA','179'),('1987-10-06','AA','179'),('1987-10-06','AA','215'),('1987-10-06','AA','215'),('1987-10-06','AA','231'),('1987-10-06','AA','231'),('1987-10-06','AA','263'),('1987-10-06','AA','263'),('1987-10-06','AA','268'),('1987-10-06','AA','268'),('1987-10-06','AA','287'),('1987-10-06','AA','287'),('1987-10-06','AA','309'),('1987-10-06','AA','309'),('1987-10-06','AA','309'),('1987-10-06','AA','341'),('1987-10-06','AA','344'),('1987-10-06','AA','344'),('1987-10-06','AA','347'),('1987-10-06','AA','347'),('1987-10-06','AA','368'),('1987-10-06','AA','381'),('1987-10-06','AA','381'),('1987-10-06','AA','381'),('1987-10-06','AA','396'),('1987-10-06','AA','396'),('1987-10-06','AA','397'),('1987-10-06','AA','397'),('1987-10-06','AA','417'),('1987-10-06','AA','417'),('1987-10-06','AA','446'),('1987-10-06','AA','451'),('1987-10-06','AA','451'),('1987-10-06','AA','460'),('1987-10-06','AA','460'),('1987-10-06','AA','491'),('1987-10-06','AA','504'),('1987-10-06','AA','504'),('1987-10-06','AA','519'),('1987-10-06','AA','519'),('1987-10-06','AA','523'),('1987-10-06','AA','523'),('1987-10-06','AA','525'),('1987-10-06','AA','525'),('1987-10-06','AA','525'),('1987-10-06','AA','533'),('1987-10-06','AA','533'),('1987-10-06','AA','533'),('1987-10-06','AA','546'),('1987-10-06','AA','546'),('1987-10-06','AA','546'),('1987-10-06','AA','546'),('1987-10-06','AA','556'),('1987-10-06','AA','556'),('1987-10-06','AA','556'),('1987-10-06','AA','597'),('1987-10-06','AA','597'),('1987-10-06','AA','597'),('1987-10-06','AA','601'),('1987-10-06','AA','601'),('1987-10-06','AA','627'),('1987-10-06','AA','629'),('1987-10-06','AA','629'),('1987-10-06','AA','670'),('1987-10-06','AA','673'),('1987-10-06','AA','673'),('1987-10-06','AA','680'),('1987-10-06','AA','680'),('1987-10-06','AA','817'),('1987-10-06','AA','817'),('1987-10-06','AA','824'),('1987-10-06','AA','824'),('1987-10-06','AA','824'),('1987-10-06','AA','824'),('1987-10-06','AA','832'),('1987-10-06','AA','832'),('1987-10-06','AA','852'),('1987-10-06','AA','852'),('1987-10-06','AA','866'),('1987-10-06','AA','871'),('1987-10-06','AA','871'),('1987-10-06','AA','880'),('1987-10-06','AA','880'),('1987-10-06','AA','880'),('1987-10-06','AA','880'),('1987-10-06','AA','883'),('1987-10-06','AA','883'),('1987-10-06','AA','885'),('1987-10-06','AA','885'),('1987-10-06','AA','885'),('1987-10-06','AA','890'),('1987-10-06','AA','890'),('1987-10-06','AA','893'),('1987-10-06','AA','893'),('1987-10-06','AA','905'),('1987-10-06','AA','905'),('1987-10-06','AA','915'),('1987-10-06','AA','929'),('1987-10-06','AA','929'),('1987-10-06','AA','936'),('1987-10-06','AA','936'),('1987-10-06','AA','937'),('1987-10-06','AA','937'),('1987-10-06','AA','955'),('1987-10-06','AA','955'),('1987-10-06','AA','966'),('1987-10-06','AA','1002'),('1987-10-06','AA','1002'),('1987-10-06','AA','1004'),('1987-10-06','AA','1004'),('1987-10-06','AA','1015'),('1987-10-06','AA','1015'),('1987-10-06','AA','1021'),('1987-10-06','AA','1021'),('1987-10-06','AA','1041'),('1987-10-06','AA','1041'),('1987-10-06','AA','1046'),('1987-10-06','AA','1046'),('1987-10-06','AA','1048'),('1987-10-06','AA','1061'),('1987-10-06','AA','1088'),('1987-10-06','AA','1088'),('1987-10-06','AA','2033'),('1987-10-06','AA','2033'),('1987-10-06','AA','2050'),('1987-10-06','AA','2058'),('1987-10-06','AA','2071'),('1987-10-06','AA','2071'),('1987-10-06','AA','2086'),('1987-10-06','AA','2105'),('1987-10-06','AA','2111'),('1987-10-06','AA','2123'),('1987-10-06','AA','2123'),('1987-10-06','AA','2147'),('1987-10-06','AA','2147'),('1987-10-06','AA','2199'),('1987-10-06','AA','2199'),('1987-10-06','AA','2207'),('1987-10-06','AA','2207'),('1987-10-06','AA','2217'),('1987-10-06','AA','2230'),('1987-10-06','AA','2245'),('1987-10-06','AA','2251'),('1987-10-06','AA','2251'),('1987-10-06','AA','2275'),('1987-10-06','AA','2278'),('1987-10-06','AA','2351'),('1987-10-06','AA','2357'),('1987-10-06','AA','2490'),('1987-10-06','AA','2528'),('1987-10-06','AA','2528'),('1987-10-06','AA','2735'),('1987-10-06','AA','2735'),('1987-10-06','AA','2751'),('1987-10-06','AL','2'),('1987-10-06','AL','2'),('1987-10-06','AL','7'),('1987-10-06','AL','7'),('1987-10-06','AL','26'),('1987-10-06','AL','26'),('1987-10-06','AL','34'),('1987-10-06','AL','34'),('1987-10-06','AL','36'),('1987-10-06','AL','36'),('1987-10-06','AL','45'),('1987-10-06','AL','45'),('1987-10-06','AL','45'),('1987-10-06','AL','91'),('1987-10-06','AL','91'),('1987-10-06','AL','104'),('1987-10-06','AL','104'),('1987-10-06','AL','104'),('1987-10-06','AL','109'),('1987-10-06','AL','112'),('1987-10-06','AL','112'),('1987-10-06','AL','123'),('1987-10-06','AL','149'),('1987-10-06','AL','160'),('1987-10-06','AL','160'),('1987-10-06','AL','165'),('1987-10-06','AL','171'),('1987-10-06','AL','171'),('1987-10-06','AL','176'),('1987-10-06','AL','176'),('1987-10-06','AL','179'),('1987-10-06','AL','231'),('1987-10-06','AL','263'),('1987-10-06','AL','263'),('1987-10-06','AL','268'),('1987-10-06','AL','268'),('1987-10-06','AL','268'),('1987-10-06','AL','281'),('1987-10-06','AL','281'),('1987-10-06','AL','287'),('1987-10-06','AL','287'),('1987-10-06','AL','309'),('1987-10-06','AL','309'),('1987-10-06','AL','341'),('1987-10-06','AL','344'),('1987-10-06','AL','344'),('1987-10-06','AL','357'),('1987-10-06','AL','357'),('1987-10-06','AL','381'),('1987-10-06','AL','397'),('1987-10-06','AL','397'),('1987-10-06','AL','416'),('1987-10-06','AL','416'),('1987-10-06','AL','417'),('1987-10-06','AL','438'),('1987-10-06','AL','438'),('1987-10-06','AL','446'),('1987-10-06','AL','451'),('1987-10-06','AL','451'),('1987-10-06','AL','491'),('1987-10-06','AL','491'),('1987-10-06','AL','523'),('1987-10-06','AL','523'),('1987-10-06','AL','523'),('1987-10-06','AL','525'),('1987-10-06','AL','525'),('1987-10-06','AL','533'),('1987-10-06','AL','533'),('1987-10-06','AL','546'),('1987-10-06','AL','546'),('1987-10-06','AL','601'),('1987-10-06','AL','601'),('1987-10-06','AL','627'),('1987-10-06','AL','629'),('1987-10-06','AL','670'),('1987-10-06','AL','670'),('1987-10-06','AL','670'),('1987-10-06','AL','673'),('1987-10-06','AL','680'),('1987-10-07','AA','2'),('1987-10-07','AA','2'),('1987-10-07','AA','2'),('1987-10-07','AA','7'),('1987-10-07','AA','7'),('1987-10-07','AA','26'),('1987-10-07','AA','34'),('1987-10-07','AA','36'),('1987-10-07','AA','91'),('1987-10-07','AA','101'),('1987-10-07','AA','101'),('1987-10-07','AA','109'),('1987-10-07','AA','112'),('1987-10-07','AA','123'),('1987-10-07','AA','123'),('1987-10-07','AA','160'),('1987-10-07','AA','165'),('1987-10-07','AA','165'),('1987-10-07','AA','165'),('1987-10-07','AA','176'),('1987-10-07','AA','176'),('1987-10-07','AA','176'),('1987-10-07','AA','176'),('1987-10-07','AA','179'),('1987-10-07','AA','179'),('1987-10-07','AA','215'),('1987-10-07','AA','215'),('1987-10-07','AA','231'),('1987-10-07','AA','231'),('1987-10-07','AA','263'),('1987-10-07','AA','263'),('1987-10-07','AA','268'),('1987-10-07','AA','268'),('1987-10-07','AA','281'),('1987-10-07','AA','287'),('1987-10-07','AA','287'),('1987-10-07','AA','309'),('1987-10-07','AA','309'),('1987-10-07','AA','309'),('1987-10-07','AA','341'),('1987-10-07','AA','344'),('1987-10-07','AA','344'),('1987-10-07','AA','347'),('1987-10-07','AA','347'),('1987-10-07','AA','368'),('1987-10-07','AA','381'),('1987-10-07','AA','381'),('1987-10-07','AA','381'),('1987-10-07','AA','396'),('1987-10-07','AA','396'),('1987-10-07','AA','397'),('1987-10-07','AA','397'),('1987-10-07','AA','417'),('1987-10-07','AA','417'),('1987-10-07','AA','446'),('1987-10-07','AA','451'),('1987-10-07','AA','451'),('1987-10-07','AA','460'),('1987-10-07','AA','460'),('1987-10-07','AA','504'),('1987-10-07','AA','504'),('1987-10-07','AA','519'),('1987-10-07','AA','519'),('1987-10-07','AA','523'),('1987-10-07','AA','523'),('1987-10-07','AA','525'),('1987-10-07','AA','525'),('1987-10-07','AA','525'),('1987-10-07','AA','533'),('1987-10-07','AA','533'),('1987-10-07','AA','533'),('1987-10-07','AA','546'),('1987-10-07','AA','546'),('1987-10-07','AA','546'),('1987-10-07','AA','546'),('1987-10-07','AA','556'),('1987-10-07','AA','556'),('1987-10-07','AA','556'),('1987-10-07','AA','597'),('1987-10-07','AA','597'),('1987-10-07','AA','597'),('1987-10-07','AA','601'),('1987-10-07','AA','601'),('1987-10-07','AA','627'),('1987-10-07','AA','629'),('1987-10-07','AA','629'),('1987-10-07','AA','670'),('1987-10-07','AA','673'),('1987-10-07','AA','673'),('1987-10-07','AA','680'),('1987-10-07','AA','680'),('1987-10-07','AA','817'),('1987-10-07','AA','817'),('1987-10-07','AA','824'),('1987-10-07','AA','824'),('1987-10-07','AA','824'),('1987-10-07','AA','824'),('1987-10-07','AA','832'),('1987-10-07','AA','832'),('1987-10-07','AA','852'),('1987-10-07','AA','852'),('1987-10-07','AA','866'),('1987-10-07','AA','866'),('1987-10-07','AA','871'),('1987-10-07','AA','871'),('1987-10-07','AA','880'),('1987-10-07','AA','880'),('1987-10-07','AA','880'),('1987-10-07','AA','880'),('1987-10-07','AA','883'),('1987-10-07','AA','883'),('1987-10-07','AA','885'),('1987-10-07','AA','885'),('1987-10-07','AA','890'),('1987-10-07','AA','890'),('1987-10-07','AA','893'),('1987-10-07','AA','893'),('1987-10-07','AA','905'),('1987-10-07','AA','905'),('1987-10-07','AA','915'),('1987-10-07','AA','929'),('1987-10-07','AA','929'),('1987-10-07','AA','936'),('1987-10-07','AA','936'),('1987-10-07','AA','937'),('1987-10-07','AA','937'),('1987-10-07','AA','955'),('1987-10-07','AA','955'),('1987-10-07','AA','966'),('1987-10-07','AA','1002'),('1987-10-07','AA','1002'),('1987-10-07','AA','1004'),('1987-10-07','AA','1004'),('1987-10-07','AA','1015'),('1987-10-07','AA','1015'),('1987-10-07','AA','1021'),('1987-10-07','AA','1021'),('1987-10-07','AA','1041'),('1987-10-07','AA','1041'),('1987-10-07','AA','1046'),('1987-10-07','AA','1046'),('1987-10-07','AA','1048'),('1987-10-07','AA','1048'),('1987-10-07','AA','1061'),('1987-10-07','AA','1061'),('1987-10-07','AA','1088'),('1987-10-07','AA','1088'),('1987-10-07','AA','2033'),('1987-10-07','AA','2033'),('1987-10-07','AA','2050'),('1987-10-07','AA','2058'),('1987-10-07','AA','2071'),('1987-10-07','AA','2071'),('1987-10-07','AA','2086'),('1987-10-07','AA','2105'),('1987-10-07','AA','2111'),('1987-10-07','AA','2123'),('1987-10-07','AA','2123'),('1987-10-07','AA','2147'),('1987-10-07','AA','2147'),('1987-10-07','AA','2199'),('1987-10-07','AA','2199'),('1987-10-07','AA','2207'),('1987-10-07','AA','2207'),('1987-10-07','AA','2217'),('1987-10-07','AA','2230'),('1987-10-07','AA','2245'),('1987-10-07','AA','2251'),('1987-10-07','AA','2251'),('1987-10-07','AA','2275'),('1987-10-07','AA','2351'),('1987-10-07','AA','2357'),('1987-10-07','AA','2361'),('1987-10-07','AA','2490'),('1987-10-07','AA','2528'),('1987-10-07','AA','2528'),('1987-10-07','AA','2735'),('1987-10-07','AA','2735'),('1987-10-07','AA','2751'),('1987-10-07','AL','2'),('1987-10-07','AL','2'),('1987-10-07','AL','7'),('1987-10-07','AL','7'),('1987-10-07','AL','26'),('1987-10-07','AL','26'),('1987-10-07','AL','34'),('1987-10-07','AL','34'),('1987-10-07','AL','36'),('1987-10-07','AL','36'),('1987-10-07','AL','45'),('1987-10-07','AL','45'),('1987-10-07','AL','45'),('1987-10-07','AL','91'),('1987-10-07','AL','91'),('1987-10-07','AL','104'),('1987-10-07','AL','104'),('1987-10-07','AL','104'),('1987-10-07','AL','109'),('1987-10-07','AL','112'),('1987-10-07','AL','112'),('1987-10-07','AL','123'),('1987-10-07','AL','149'),('1987-10-07','AL','160'),('1987-10-07','AL','160'),('1987-10-07','AL','165'),('1987-10-07','AL','171'),('1987-10-07','AL','171'),('1987-10-07','AL','176'),('1987-10-07','AL','176'),('1987-10-07','AL','179'),('1987-10-07','AL','215'),('1987-10-07','AL','231'),('1987-10-07','AL','263'),('1987-10-07','AL','263'),('1987-10-07','AL','268'),('1987-10-07','AL','268'),('1987-10-07','AL','268'),('1987-10-07','AL','281'),('1987-10-07','AL','281'),('1987-10-07','AL','287'),('1987-10-07','AL','287'),('1987-10-07','AL','309'),('1987-10-07','AL','309'),('1987-10-07','AL','341'),('1987-10-07','AL','344'),('1987-10-07','AL','344'),('1987-10-07','AL','357'),('1987-10-07','AL','357'),('1987-10-07','AL','368'),('1987-10-07','AL','381'),('1987-10-07','AL','396'),('1987-10-07','AL','397'),('1987-10-07','AL','397'),('1987-10-07','AL','416'),('1987-10-07','AL','416'),('1987-10-07','AL','417'),('1987-10-07','AL','438'),('1987-10-07','AL','438'),('1987-10-07','AL','446'),('1987-10-07','AL','451'),('1987-10-07','AL','451'),('1987-10-07','AL','491'),('1987-10-07','AL','491'),('1987-10-07','AL','523'),('1987-10-07','AL','523'),('1987-10-07','AL','523'),('1987-10-07','AL','525'),('1987-10-07','AL','525'),('1987-10-07','AL','533'),('1987-10-07','AL','533'),('1987-10-07','AL','546'),('1987-10-07','AL','546'),('1987-10-07','AL','556'),('1987-10-07','AL','556'),('1987-10-07','AL','601'),('1987-10-07','AL','627'),('1987-10-07','AL','629'),('1987-10-07','AL','670'),('1987-10-07','AL','670'),('1987-10-07','AL','670'),('1987-10-07','AL','673'),('1987-10-07','AL','680'),('1987-10-08','AA','2'),('1987-10-08','AA','2'),('1987-10-08','AA','2'),('1987-10-08','AA','7'),('1987-10-08','AA','7'),('1987-10-08','AA','26'),('1987-10-08','AA','34'),('1987-10-08','AA','36'),('1987-10-08','AA','91'),('1987-10-08','AA','101'),('1987-10-08','AA','101'),('1987-10-08','AA','109'),('1987-10-08','AA','109'),('1987-10-08','AA','112'),('1987-10-08','AA','123'),('1987-10-08','AA','123'),('1987-10-08','AA','160'),('1987-10-08','AA','165'),('1987-10-08','AA','165'),('1987-10-08','AA','165'),('1987-10-08','AA','176'),('1987-10-08','AA','176'),('1987-10-08','AA','176'),('1987-10-08','AA','176'),('1987-10-08','AA','179'),('1987-10-08','AA','179'),('1987-10-08','AA','215'),('1987-10-08','AA','215'),('1987-10-08','AA','231'),('1987-10-08','AA','231'),('1987-10-08','AA','263'),('1987-10-08','AA','263'),('1987-10-08','AA','268'),('1987-10-08','AA','268'),('1987-10-08','AA','281'),('1987-10-08','AA','287'),('1987-10-08','AA','287'),('1987-10-08','AA','309'),('1987-10-08','AA','309'),('1987-10-08','AA','309'),('1987-10-08','AA','344'),('1987-10-08','AA','344'),('1987-10-08','AA','347'),('1987-10-08','AA','347'),('1987-10-08','AA','368'),('1987-10-08','AA','381'),('1987-10-08','AA','381'),('1987-10-08','AA','381'),('1987-10-08','AA','396'),('1987-10-08','AA','396'),('1987-10-08','AA','397'),('1987-10-08','AA','397'),('1987-10-08','AA','417'),('1987-10-08','AA','417'),('1987-10-08','AA','446'),('1987-10-08','AA','451'),('1987-10-08','AA','460'),('1987-10-08','AA','460'),('1987-10-08','AA','491'),('1987-10-08','AA','504'),('1987-10-08','AA','504'),('1987-10-08','AA','519'),('1987-10-08','AA','519'),('1987-10-08','AA','523'),('1987-10-08','AA','525'),('1987-10-08','AA','533'),('1987-10-08','AA','533'),('1987-10-08','AA','533'),('1987-10-08','AA','546'),('1987-10-08','AA','546'),('1987-10-08','AA','546'),('1987-10-08','AA','546'),('1987-10-08','AA','556'),('1987-10-08','AA','556'),('1987-10-08','AA','556'),('1987-10-08','AA','597'),('1987-10-08','AA','597'),('1987-10-08','AA','597'),('1987-10-08','AA','601'),('1987-10-08','AA','601'),('1987-10-08','AA','627'),('1987-10-08','AA','629'),('1987-10-08','AA','629'),('1987-10-08','AA','670'),('1987-10-08','AA','673'),('1987-10-08','AA','673'),('1987-10-08','AA','680'),('1987-10-08','AA','680'),('1987-10-08','AA','817'),('1987-10-08','AA','817'),('1987-10-08','AA','824'),('1987-10-08','AA','824'),('1987-10-08','AA','832'),('1987-10-08','AA','832'),('1987-10-08','AA','852'),('1987-10-08','AA','866'),('1987-10-08','AA','866'),('1987-10-08','AA','871'),('1987-10-08','AA','871'),('1987-10-08','AA','880'),('1987-10-08','AA','880'),('1987-10-08','AA','880'),('1987-10-08','AA','880'),('1987-10-08','AA','883'),('1987-10-08','AA','883'),('1987-10-08','AA','885'),('1987-10-08','AA','885'),('1987-10-08','AA','885'),('1987-10-08','AA','890'),('1987-10-08','AA','890'),('1987-10-08','AA','893'),('1987-10-08','AA','893'),('1987-10-08','AA','905'),('1987-10-08','AA','905'),('1987-10-08','AA','915'),('1987-10-08','AA','929'),('1987-10-08','AA','929'),('1987-10-08','AA','936'),('1987-10-08','AA','936'),('1987-10-08','AA','937'),('1987-10-08','AA','937'),('1987-10-08','AA','955'),('1987-10-08','AA','955'),('1987-10-08','AA','966'),('1987-10-08','AA','1002'),('1987-10-08','AA','1002'),('1987-10-08','AA','1004'),('1987-10-08','AA','1004'),('1987-10-08','AA','1015'),('1987-10-08','AA','1015'),('1987-10-08','AA','1021'),('1987-10-08','AA','1021'),('1987-10-08','AA','1041'),('1987-10-08','AA','1041'),('1987-10-08','AA','1046'),('1987-10-08','AA','1046'),('1987-10-08','AA','1048'),('1987-10-08','AA','1061'),('1987-10-08','AA','1061'),('1987-10-08','AA','1088'),('1987-10-08','AA','1088'),('1987-10-08','AA','2033'),('1987-10-08','AA','2033'),('1987-10-08','AA','2050'),('1987-10-08','AA','2058'),('1987-10-08','AA','2071'),('1987-10-08','AA','2071'),('1987-10-08','AA','2086'),('1987-10-08','AA','2111'),('1987-10-08','AA','2123'),('1987-10-08','AA','2123'),('1987-10-08','AA','2147'),('1987-10-08','AA','2147'),('1987-10-08','AA','2199'),('1987-10-08','AA','2199'),('1987-10-08','AA','2207'),('1987-10-08','AA','2207'),('1987-10-08','AA','2217'),('1987-10-08','AA','2230'),('1987-10-08','AA','2245'),('1987-10-08','AA','2251'),('1987-10-08','AA','2251'),('1987-10-08','AA','2275'),('1987-10-08','AA','2278'),('1987-10-08','AA','2351'),('1987-10-08','AA','2357'),('1987-10-08','AA','2361'),('1987-10-08','AA','2490'),('1987-10-08','AA','2528'),('1987-10-08','AA','2528'),('1987-10-08','AA','2735'),('1987-10-08','AA','2735'),('1987-10-08','AA','2751'),('1987-10-08','AL','2'),('1987-10-08','AL','2'),('1987-10-08','AL','7'),('1987-10-08','AL','7'),('1987-10-08','AL','26'),('1987-10-08','AL','26'),('1987-10-08','AL','34'),('1987-10-08','AL','34'),('1987-10-08','AL','36'),('1987-10-08','AL','36'),('1987-10-08','AL','45'),('1987-10-08','AL','45'),('1987-10-08','AL','45'),('1987-10-08','AL','91'),('1987-10-08','AL','91'),('1987-10-08','AL','104'),('1987-10-08','AL','104'),('1987-10-08','AL','104'),('1987-10-08','AL','109'),('1987-10-08','AL','112'),('1987-10-08','AL','112'),('1987-10-08','AL','123'),('1987-10-08','AL','149'),('1987-10-08','AL','160'),('1987-10-08','AL','160'),('1987-10-08','AL','165'),('1987-10-08','AL','171'),('1987-10-08','AL','171'),('1987-10-08','AL','176'),('1987-10-08','AL','176'),('1987-10-08','AL','179'),('1987-10-08','AL','215'),('1987-10-08','AL','231'),('1987-10-08','AL','263'),('1987-10-08','AL','263'),('1987-10-08','AL','268'),('1987-10-08','AL','268'),('1987-10-08','AL','268'),('1987-10-08','AL','281'),('1987-10-08','AL','281'),('1987-10-08','AL','287'),('1987-10-08','AL','287'),('1987-10-08','AL','309'),('1987-10-08','AL','309'),('1987-10-08','AL','341'),('1987-10-08','AL','344'),('1987-10-08','AL','344'),('1987-10-08','AL','357'),('1987-10-08','AL','357'),('1987-10-08','AL','368'),('1987-10-08','AL','381'),('1987-10-08','AL','396'),('1987-10-08','AL','397'),('1987-10-08','AL','397'),('1987-10-08','AL','416'),('1987-10-08','AL','416'),('1987-10-08','AL','417'),('1987-10-08','AL','438'),('1987-10-08','AL','438'),('1987-10-08','AL','446'),('1987-10-08','AL','451'),('1987-10-08','AL','451'),('1987-10-08','AL','491'),('1987-10-08','AL','491'),('1987-10-08','AL','523'),('1987-10-08','AL','523'),('1987-10-08','AL','523'),('1987-10-08','AL','525'),('1987-10-08','AL','525'),('1987-10-08','AL','533'),('1987-10-08','AL','533'),('1987-10-08','AL','546'),('1987-10-08','AL','546'),('1987-10-08','AL','556'),('1987-10-08','AL','556'),('1987-10-08','AL','601'),('1987-10-08','AL','601'),('1987-10-08','AL','627'),('1987-10-08','AL','629'),('1987-10-08','AL','670'),('1987-10-08','AL','670'),('1987-10-08','AL','670'),('1987-10-08','AL','680'),('1987-10-09','AA','2'),('1987-10-09','AA','2'),('1987-10-09','AA','2'),('1987-10-09','AA','7'),('1987-10-09','AA','7'),('1987-10-09','AA','26'),('1987-10-09','AA','34'),('1987-10-09','AA','36'),('1987-10-09','AA','91'),('1987-10-09','AA','101'),('1987-10-09','AA','101'),('1987-10-09','AA','109'),('1987-10-09','AA','109'),('1987-10-09','AA','112'),('1987-10-09','AA','123'),('1987-10-09','AA','123'),('1987-10-09','AA','160'),('1987-10-09','AA','165'),('1987-10-09','AA','165'),('1987-10-09','AA','176'),('1987-10-09','AA','176'),('1987-10-09','AA','176'),('1987-10-09','AA','176'),('1987-10-09','AA','179'),('1987-10-09','AA','179'),('1987-10-09','AA','215'),('1987-10-09','AA','215'),('1987-10-09','AA','231'),('1987-10-09','AA','263'),('1987-10-09','AA','263'),('1987-10-09','AA','268'),('1987-10-09','AA','268'),('1987-10-09','AA','281'),('1987-10-09','AA','287'),('1987-10-09','AA','309'),('1987-10-09','AA','309'),('1987-10-09','AA','309'),('1987-10-09','AA','344'),('1987-10-09','AA','344'),('1987-10-09','AA','347'),('1987-10-09','AA','347'),('1987-10-09','AA','368'),('1987-10-09','AA','381'),('1987-10-09','AA','381'),('1987-10-09','AA','381'),('1987-10-09','AA','396'),('1987-10-09','AA','396'),('1987-10-09','AA','397'),('1987-10-09','AA','397'),('1987-10-09','AA','417'),('1987-10-09','AA','417'),('1987-10-09','AA','451'),('1987-10-09','AA','451'),('1987-10-09','AA','460'),('1987-10-09','AA','460'),('1987-10-09','AA','491'),('1987-10-09','AA','504'),('1987-10-09','AA','504'),('1987-10-09','AA','519'),('1987-10-09','AA','519'),('1987-10-09','AA','523'),('1987-10-09','AA','523'),('1987-10-09','AA','525'),('1987-10-09','AA','525'),('1987-10-09','AA','525'),('1987-10-09','AA','533'),('1987-10-09','AA','533'),('1987-10-09','AA','533'),('1987-10-09','AA','546'),('1987-10-09','AA','546'),('1987-10-09','AA','546'),('1987-10-09','AA','546'),('1987-10-09','AA','556'),('1987-10-09','AA','556'),('1987-10-09','AA','556'),('1987-10-09','AA','597'),('1987-10-09','AA','597'),('1987-10-09','AA','597'),('1987-10-09','AA','601'),('1987-10-09','AA','601'),('1987-10-09','AA','629'),('1987-10-09','AA','629'),('1987-10-09','AA','670'),('1987-10-09','AA','673'),('1987-10-09','AA','673'),('1987-10-09','AA','680'),('1987-10-09','AA','680'),('1987-10-09','AA','817'),('1987-10-09','AA','824'),('1987-10-09','AA','824'),('1987-10-09','AA','824'),('1987-10-09','AA','824'),('1987-10-09','AA','832'),('1987-10-09','AA','832'),('1987-10-09','AA','852'),('1987-10-09','AA','852'),('1987-10-09','AA','866'),('1987-10-09','AA','866'),('1987-10-09','AA','871'),('1987-10-09','AA','880'),('1987-10-09','AA','880'),('1987-10-09','AA','880'),('1987-10-09','AA','883'),('1987-10-09','AA','883'),('1987-10-09','AA','885'),('1987-10-09','AA','885'),('1987-10-09','AA','885'),('1987-10-09','AA','890'),('1987-10-09','AA','890'),('1987-10-09','AA','893'),('1987-10-09','AA','893'),('1987-10-09','AA','905'),('1987-10-09','AA','905'),('1987-10-09','AA','915'),('1987-10-09','AA','929'),('1987-10-09','AA','929'),('1987-10-09','AA','936'),('1987-10-09','AA','936'),('1987-10-09','AA','937'),('1987-10-09','AA','937'),('1987-10-09','AA','955'),('1987-10-09','AA','955'),('1987-10-09','AA','966'),('1987-10-09','AA','1002'),('1987-10-09','AA','1002'),('1987-10-09','AA','1004'),('1987-10-09','AA','1004'),('1987-10-09','AA','1015'),('1987-10-09','AA','1015'),('1987-10-09','AA','1021'),('1987-10-09','AA','1021'),('1987-10-09','AA','1041'),('1987-10-09','AA','1041'),('1987-10-09','AA','1046'),('1987-10-09','AA','1046'),('1987-10-09','AA','1048'),('1987-10-09','AA','1048'),('1987-10-09','AA','1061'),('1987-10-09','AA','1061'),('1987-10-09','AA','1088'),('1987-10-09','AA','1088'),('1987-10-09','AA','2033'),('1987-10-09','AA','2033'),('1987-10-09','AA','2050'),('1987-10-09','AA','2058'),('1987-10-09','AA','2071'),('1987-10-09','AA','2071'),('1987-10-09','AA','2086'),('1987-10-09','AA','2105'),('1987-10-09','AA','2111'),('1987-10-09','AA','2123'),('1987-10-09','AA','2123'),('1987-10-09','AA','2147'),('1987-10-09','AA','2147'),('1987-10-09','AA','2199'),('1987-10-09','AA','2199'),('1987-10-09','AA','2207'),('1987-10-09','AA','2207'),('1987-10-09','AA','2217'),('1987-10-09','AA','2230'),('1987-10-09','AA','2245'),('1987-10-09','AA','2251'),('1987-10-09','AA','2251'),('1987-10-09','AA','2275'),('1987-10-09','AA','2278'),('1987-10-09','AA','2351'),('1987-10-09','AA','2357'),('1987-10-09','AA','2361'),('1987-10-09','AA','2490'),('1987-10-09','AA','2528'),('1987-10-09','AA','2528'),('1987-10-09','AA','2735'),('1987-10-09','AA','2735'),('1987-10-09','AA','2751'),('1987-10-09','AL','2'),('1987-10-09','AL','2'),('1987-10-09','AL','7'),('1987-10-09','AL','7'),('1987-10-09','AL','26'),('1987-10-09','AL','34'),('1987-10-09','AL','34'),('1987-10-09','AL','36'),('1987-10-09','AL','36'),('1987-10-09','AL','45'),('1987-10-09','AL','45'),('1987-10-09','AL','45'),('1987-10-09','AL','91'),('1987-10-09','AL','91'),('1987-10-09','AL','104'),('1987-10-09','AL','104'),('1987-10-09','AL','104'),('1987-10-09','AL','109'),('1987-10-09','AL','112'),('1987-10-09','AL','112'),('1987-10-09','AL','123'),('1987-10-09','AL','149'),('1987-10-09','AL','160'),('1987-10-09','AL','160'),('1987-10-09','AL','165'),('1987-10-09','AL','171'),('1987-10-09','AL','171'),('1987-10-09','AL','176'),('1987-10-09','AL','176'),('1987-10-09','AL','179'),('1987-10-09','AL','215'),('1987-10-09','AL','231'),('1987-10-09','AL','263'),('1987-10-09','AL','263'),('1987-10-09','AL','268'),('1987-10-09','AL','268'),('1987-10-09','AL','268'),('1987-10-09','AL','281'),('1987-10-09','AL','281'),('1987-10-09','AL','287'),('1987-10-09','AL','287'),('1987-10-09','AL','309'),('1987-10-09','AL','309'),('1987-10-09','AL','341'),('1987-10-09','AL','344'),('1987-10-09','AL','344'),('1987-10-09','AL','368'),('1987-10-09','AL','381'),('1987-10-09','AL','396'),('1987-10-09','AL','397'),('1987-10-09','AL','397'),('1987-10-09','AL','416'),('1987-10-09','AL','416'),('1987-10-09','AL','417'),('1987-10-09','AL','438'),('1987-10-09','AL','438'),('1987-10-09','AL','446'),('1987-10-09','AL','451'),('1987-10-09','AL','491'),('1987-10-09','AL','491'),('1987-10-09','AL','523'),('1987-10-09','AL','523'),('1987-10-09','AL','523'),('1987-10-09','AL','525'),('1987-10-09','AL','525'),('1987-10-09','AL','533'),('1987-10-09','AL','533'),('1987-10-09','AL','546'),('1987-10-09','AL','546'),('1987-10-09','AL','556'),('1987-10-09','AL','556'),('1987-10-09','AL','601'),('1987-10-09','AL','601'),('1987-10-09','AL','627'),('1987-10-09','AL','629'),('1987-10-09','AL','670'),('1987-10-09','AL','670'),('1987-10-09','AL','670'),('1987-10-09','AL','673'),('1987-10-09','AL','680'),('1987-10-10','AA','2'),('1987-10-10','AA','2'),('1987-10-10','AA','2'),('1987-10-10','AA','7'),('1987-10-10','AA','7'),('1987-10-10','AA','26'),('1987-10-10','AA','34'),('1987-10-10','AA','36'),('1987-10-10','AA','91'),('1987-10-10','AA','101'),('1987-10-10','AA','101'),('1987-10-10','AA','109'),('1987-10-10','AA','109'),('1987-10-10','AA','112'),('1987-10-10','AA','123'),('1987-10-10','AA','123'),('1987-10-10','AA','160'),('1987-10-10','AA','165'),('1987-10-10','AA','165'),('1987-10-10','AA','165'),('1987-10-10','AA','176'),('1987-10-10','AA','176'),('1987-10-10','AA','176'),('1987-10-10','AA','176'),('1987-10-10','AA','179'),('1987-10-10','AA','179'),('1987-10-10','AA','215'),('1987-10-10','AA','215'),('1987-10-10','AA','231'),('1987-10-10','AA','263'),('1987-10-10','AA','263'),('1987-10-10','AA','268'),('1987-10-10','AA','268'),('1987-10-10','AA','281'),('1987-10-10','AA','287'),('1987-10-10','AA','287'),('1987-10-10','AA','309'),('1987-10-10','AA','309'),('1987-10-10','AA','309'),('1987-10-10','AA','341'),('1987-10-10','AA','344'),('1987-10-10','AA','344'),('1987-10-10','AA','347'),('1987-10-10','AA','347'),('1987-10-10','AA','368'),('1987-10-10','AA','381'),('1987-10-10','AA','381'),('1987-10-10','AA','381'),('1987-10-10','AA','396'),('1987-10-10','AA','396'),('1987-10-10','AA','397'),('1987-10-10','AA','417'),('1987-10-10','AA','417'),('1987-10-10','AA','446'),('1987-10-10','AA','451'),('1987-10-10','AA','451'),('1987-10-10','AA','460'),('1987-10-10','AA','460'),('1987-10-10','AA','491'),('1987-10-10','AA','491'),('1987-10-10','AA','504'),('1987-10-10','AA','504'),('1987-10-10','AA','519'),('1987-10-10','AA','523'),('1987-10-10','AA','523'),('1987-10-10','AA','525'),('1987-10-10','AA','525'),('1987-10-10','AA','525'),('1987-10-10','AA','533'),('1987-10-10','AA','533'),('1987-10-10','AA','546'),('1987-10-10','AA','546'),('1987-10-10','AA','546'),('1987-10-10','AA','546'),('1987-10-10','AA','556'),('1987-10-10','AA','556'),('1987-10-10','AA','556'),('1987-10-10','AA','597'),('1987-10-10','AA','597'),('1987-10-10','AA','597'),('1987-10-10','AA','601'),('1987-10-10','AA','601'),('1987-10-10','AA','627'),('1987-10-10','AA','629'),('1987-10-10','AA','629'),('1987-10-10','AA','670'),('1987-10-10','AA','673'),('1987-10-10','AA','673'),('1987-10-10','AA','680'),('1987-10-10','AA','680'),('1987-10-10','AA','817'),('1987-10-10','AA','817'),('1987-10-10','AA','824'),('1987-10-10','AA','824'),('1987-10-10','AA','824'),('1987-10-10','AA','824'),('1987-10-10','AA','832'),('1987-10-10','AA','832'),('1987-10-10','AA','852'),('1987-10-10','AA','852'),('1987-10-10','AA','866'),('1987-10-10','AA','866'),('1987-10-10','AA','871'),('1987-10-10','AA','871'),('1987-10-10','AA','880'),('1987-10-10','AA','880'),('1987-10-10','AA','880'),('1987-10-10','AA','880'),('1987-10-10','AA','883'),('1987-10-10','AA','883'),('1987-10-10','AA','885'),('1987-10-10','AA','885'),('1987-10-10','AA','885'),('1987-10-10','AA','890'),('1987-10-10','AA','890'),('1987-10-10','AA','893'),('1987-10-10','AA','893'),('1987-10-10','AA','905'),('1987-10-10','AA','905'),('1987-10-10','AA','915'),('1987-10-10','AA','929'),('1987-10-10','AA','929'),('1987-10-10','AA','936'),('1987-10-10','AA','936'),('1987-10-10','AA','937'),('1987-10-10','AA','955'),('1987-10-10','AA','955'),('1987-10-10','AA','966'),('1987-10-10','AA','1002'),('1987-10-10','AA','1002'),('1987-10-10','AA','1004'),('1987-10-10','AA','1004'),('1987-10-10','AA','1015'),('1987-10-10','AA','1015'),('1987-10-10','AA','1021'),('1987-10-10','AA','1021'),('1987-10-10','AA','1041'),('1987-10-10','AA','1041'),('1987-10-10','AA','1046'),('1987-10-10','AA','1046'),('1987-10-10','AA','1048'),('1987-10-10','AA','1048'),('1987-10-10','AA','1061'),('1987-10-10','AA','1061'),('1987-10-10','AA','1088'),('1987-10-10','AA','1088'),('1987-10-10','AA','2033'),('1987-10-10','AA','2033'),('1987-10-10','AA','2050'),('1987-10-10','AA','2058'),('1987-10-10','AA','2071'),('1987-10-10','AA','2071'),('1987-10-10','AA','2086'),('1987-10-10','AA','2111'),('1987-10-10','AA','2123'),('1987-10-10','AA','2123'),('1987-10-10','AA','2147'),('1987-10-10','AA','2147'),('1987-10-10','AA','2199'),('1987-10-10','AA','2207'),('1987-10-10','AA','2207'),('1987-10-10','AA','2217'),('1987-10-10','AA','2230'),('1987-10-10','AA','2245'),('1987-10-10','AA','2251'),('1987-10-10','AA','2251'),('1987-10-10','AA','2275'),('1987-10-10','AA','2278'),('1987-10-10','AA','2351'),('1987-10-10','AA','2357'),('1987-10-10','AA','2361'),('1987-10-10','AA','2490'),('1987-10-10','AA','2528'),('1987-10-10','AA','2528'),('1987-10-10','AA','2735'),('1987-10-10','AA','2735'),('1987-10-10','AL','2'),('1987-10-10','AL','2'),('1987-10-10','AL','7'),('1987-10-10','AL','7'),('1987-10-10','AL','26'),('1987-10-10','AL','26'),('1987-10-10','AL','34'),('1987-10-10','AL','34'),('1987-10-10','AL','36'),('1987-10-10','AL','36'),('1987-10-10','AL','45'),('1987-10-10','AL','45'),('1987-10-10','AL','45'),('1987-10-10','AL','91'),('1987-10-10','AL','91'),('1987-10-10','AL','104'),('1987-10-10','AL','104'),('1987-10-10','AL','109'),('1987-10-10','AL','112'),('1987-10-10','AL','112'),('1987-10-10','AL','149'),('1987-10-10','AL','160'),('1987-10-10','AL','165'),('1987-10-10','AL','171'),('1987-10-10','AL','171'),('1987-10-10','AL','176'),('1987-10-10','AL','176'),('1987-10-10','AL','179'),('1987-10-10','AL','215'),('1987-10-10','AL','231'),('1987-10-10','AL','263'),('1987-10-10','AL','268'),('1987-10-10','AL','268'),('1987-10-10','AL','268'),('1987-10-10','AL','287'),('1987-10-10','AL','287'),('1987-10-10','AL','309'),('1987-10-10','AL','309'),('1987-10-10','AL','344'),('1987-10-10','AL','344'),('1987-10-10','AL','357'),('1987-10-10','AL','396'),('1987-10-10','AL','397'),('1987-10-10','AL','397'),('1987-10-10','AL','397'),('1987-10-10','AL','416'),('1987-10-10','AL','417'),('1987-10-10','AL','438'),('1987-10-10','AL','438'),('1987-10-10','AL','451'),('1987-10-10','AL','451'),('1987-10-10','AL','491'),('1987-10-10','AL','491'),('1987-10-10','AL','523'),('1987-10-10','AL','523'),('1987-10-10','AL','525'),('1987-10-10','AL','525'),('1987-10-10','AL','533'),('1987-10-10','AL','546'),('1987-10-10','AL','546'),('1987-10-10','AL','556'),('1987-10-10','AL','556'),('1987-10-10','AL','601'),('1987-10-10','AL','601'),('1987-10-10','AL','627'),('1987-10-10','AL','670'),('1987-10-10','AL','673'),('1987-10-10','AL','680'),('1987-10-10','AL','905'),('1987-10-10','AL','936'),('1987-10-10','AL','966'),('1987-10-11','AA','2'),('1987-10-11','AA','2'),('1987-10-11','AA','2'),('1987-10-11','AA','7'),('1987-10-11','AA','7'),('1987-10-11','AA','26'),('1987-10-11','AA','36'),('1987-10-11','AA','91'),('1987-10-11','AA','101'),('1987-10-11','AA','101'),('1987-10-11','AA','109'),('1987-10-11','AA','109'),('1987-10-11','AA','112'),('1987-10-11','AA','123'),('1987-10-11','AA','160'),('1987-10-11','AA','165'),('1987-10-11','AA','165'),('1987-10-11','AA','165'),('1987-10-11','AA','176'),('1987-10-11','AA','176'),('1987-10-11','AA','176'),('1987-10-11','AA','176'),('1987-10-11','AA','179'),('1987-10-11','AA','179'),('1987-10-11','AA','215'),('1987-10-11','AA','215'),('1987-10-11','AA','231'),('1987-10-11','AA','263'),('1987-10-11','AA','263'),('1987-10-11','AA','268'),('1987-10-11','AA','268'),('1987-10-11','AA','281'),('1987-10-11','AA','287'),('1987-10-11','AA','287'),('1987-10-11','AA','309'),('1987-10-11','AA','309'),('1987-10-11','AA','309'),('1987-10-11','AA','341'),('1987-10-11','AA','344'),('1987-10-11','AA','344'),('1987-10-11','AA','347'),('1987-10-11','AA','347'),('1987-10-11','AA','368'),('1987-10-11','AA','381'),('1987-10-11','AA','381'),('1987-10-11','AA','381'),('1987-10-11','AA','396'),('1987-10-11','AA','396'),('1987-10-11','AA','397'),('1987-10-11','AA','397'),('1987-10-11','AA','417'),('1987-10-11','AA','417'),('1987-10-11','AA','446'),('1987-10-11','AA','451'),('1987-10-11','AA','451'),('1987-10-11','AA','460'),('1987-10-11','AA','460'),('1987-10-11','AA','491'),('1987-10-11','AA','491'),('1987-10-11','AA','504'),('1987-10-11','AA','504'),('1987-10-11','AA','519'),('1987-10-11','AA','519'),('1987-10-11','AA','523'),('1987-10-11','AA','523'),('1987-10-11','AA','525'),('1987-10-11','AA','525'),('1987-10-11','AA','525'),('1987-10-11','AA','533'),('1987-10-11','AA','533'),('1987-10-11','AA','533'),('1987-10-11','AA','546'),('1987-10-11','AA','546'),('1987-10-11','AA','546'),('1987-10-11','AA','546'),('1987-10-11','AA','556'),('1987-10-11','AA','556'),('1987-10-11','AA','556'),('1987-10-11','AA','597'),('1987-10-11','AA','597'),('1987-10-11','AA','597'),('1987-10-11','AA','601'),('1987-10-11','AA','601'),('1987-10-11','AA','627'),('1987-10-11','AA','629'),('1987-10-11','AA','629'),('1987-10-11','AA','670'),('1987-10-11','AA','673'),('1987-10-11','AA','673'),('1987-10-11','AA','680'),('1987-10-11','AA','680'),('1987-10-11','AA','817'),('1987-10-11','AA','817'),('1987-10-11','AA','824'),('1987-10-11','AA','824'),('1987-10-11','AA','824'),('1987-10-11','AA','824'),('1987-10-11','AA','832'),('1987-10-11','AA','832'),('1987-10-11','AA','852'),('1987-10-11','AA','852'),('1987-10-11','AA','866'),('1987-10-11','AA','866'),('1987-10-11','AA','871'),('1987-10-11','AA','871'),('1987-10-11','AA','880'),('1987-10-11','AA','880'),('1987-10-11','AA','880'),('1987-10-11','AA','880'),('1987-10-11','AA','883'),('1987-10-11','AA','883'),('1987-10-11','AA','885'),('1987-10-11','AA','885'),('1987-10-11','AA','885'),('1987-10-11','AA','890'),('1987-10-11','AA','890'),('1987-10-11','AA','893'),('1987-10-11','AA','893'),('1987-10-11','AA','905'),('1987-10-11','AA','905'),('1987-10-11','AA','915'),('1987-10-11','AA','929'),('1987-10-11','AA','929'),('1987-10-11','AA','936'),('1987-10-11','AA','936'),('1987-10-11','AA','937'),('1987-10-11','AA','937'),('1987-10-11','AA','955'),('1987-10-11','AA','955'),('1987-10-11','AA','966'),('1987-10-11','AA','1002'),('1987-10-11','AA','1002'),('1987-10-11','AA','1004'),('1987-10-11','AA','1004'),('1987-10-11','AA','1015'),('1987-10-11','AA','1015'),('1987-10-11','AA','1021'),('1987-10-11','AA','1021'),('1987-10-11','AA','1041'),('1987-10-11','AA','1041'),('1987-10-11','AA','1046'),('1987-10-11','AA','1046'),('1987-10-11','AA','1048'),('1987-10-11','AA','1048'),('1987-10-11','AA','1061'),('1987-10-11','AA','1061'),('1987-10-11','AA','1088'),('1987-10-11','AA','1088'),('1987-10-11','AA','2033'),('1987-10-11','AA','2033'),('1987-10-11','AA','2058'),('1987-10-11','AA','2071'),('1987-10-11','AA','2071'),('1987-10-11','AA','2086'),('1987-10-11','AA','2111'),('1987-10-11','AA','2123'),('1987-10-11','AA','2123'),('1987-10-11','AA','2147'),('1987-10-11','AA','2147'),('1987-10-11','AA','2199'),('1987-10-11','AA','2199'),('1987-10-11','AA','2199'),('1987-10-11','AA','2207'),('1987-10-11','AA','2207'),('1987-10-11','AA','2230'),('1987-10-11','AA','2245'),('1987-10-11','AA','2251'),('1987-10-11','AA','2251'),('1987-10-11','AA','2275'),('1987-10-11','AA','2278'),('1987-10-11','AA','2351'),('1987-10-11','AA','2357'),('1987-10-11','AA','2361'),('1987-10-11','AA','2490'),('1987-10-11','AA','2528'),('1987-10-11','AA','2528'),('1987-10-11','AA','2735'),('1987-10-11','AA','2735'),('1987-10-11','AA','2751'),('1987-10-11','AL','2'),('1987-10-11','AL','2'),('1987-10-11','AL','7'),('1987-10-11','AL','7'),('1987-10-11','AL','26'),('1987-10-11','AL','26'),('1987-10-11','AL','34'),('1987-10-11','AL','34'),('1987-10-11','AL','36'),('1987-10-11','AL','36'),('1987-10-11','AL','45'),('1987-10-11','AL','45'),('1987-10-11','AL','45'),('1987-10-11','AL','91'),('1987-10-11','AL','91'),('1987-10-11','AL','104'),('1987-10-11','AL','104'),('1987-10-11','AL','104'),('1987-10-11','AL','112'),('1987-10-11','AL','123'),('1987-10-11','AL','149'),('1987-10-11','AL','160'),('1987-10-11','AL','160'),('1987-10-11','AL','165'),('1987-10-11','AL','171'),('1987-10-11','AL','171'),('1987-10-11','AL','176'),('1987-10-11','AL','176'),('1987-10-11','AL','179'),('1987-10-11','AL','215'),('1987-10-11','AL','231'),('1987-10-11','AL','263'),('1987-10-11','AL','263'),('1987-10-11','AL','281'),('1987-10-11','AL','281'),('1987-10-11','AL','309'),('1987-10-11','AL','309'),('1987-10-11','AL','341'),('1987-10-11','AL','344'),('1987-10-11','AL','344'),('1987-10-11','AL','357'),('1987-10-11','AL','357'),('1987-10-11','AL','368'),('1987-10-11','AL','396'),('1987-10-11','AL','416'),('1987-10-11','AL','416'),('1987-10-11','AL','417'),('1987-10-11','AL','438'),('1987-10-11','AL','438'),('1987-10-11','AL','446'),('1987-10-11','AL','451'),('1987-10-11','AL','491'),('1987-10-11','AL','491'),('1987-10-11','AL','523'),('1987-10-11','AL','523'),('1987-10-11','AL','523'),('1987-10-11','AL','525'),('1987-10-11','AL','525'),('1987-10-11','AL','533'),('1987-10-11','AL','533'),('1987-10-11','AL','546'),('1987-10-11','AL','546'),('1987-10-11','AL','556'),('1987-10-11','AL','556'),('1987-10-11','AL','601'),('1987-10-11','AL','601'),('1987-10-11','AL','627'),('1987-10-11','AL','629'),('1987-10-11','AL','670'),('1987-10-11','AL','670'),('1987-10-11','AL','670'),('1987-10-11','AL','673'),('1987-10-11','AL','680'),('1987-10-11','AL','937'),('1987-10-11','AL','937'),('1987-10-11','AL','955'),('1987-10-21','AA','2'),('1987-10-21','AA','2'),('1987-10-21','AA','2'),('1987-10-21','AA','7'),('1987-10-21','AA','7'),('1987-10-21','AA','26'),('1987-10-21','AA','34'),('1987-10-21','AA','36'),('1987-10-21','AA','91'),('1987-10-21','AA','101'),('1987-10-21','AA','101'),('1987-10-21','AA','109'),('1987-10-21','AA','109'),('1987-10-21','AA','123'),('1987-10-21','AA','123'),('1987-10-21','AA','160'),('1987-10-21','AA','165'),('1987-10-21','AA','165'),('1987-10-21','AA','165'),('1987-10-21','AA','176'),('1987-10-21','AA','176'),('1987-10-21','AA','176'),('1987-10-21','AA','176'),('1987-10-21','AA','179'),('1987-10-21','AA','179'),('1987-10-21','AA','215'),('1987-10-21','AA','231'),('1987-10-21','AA','231'),('1987-10-21','AA','263'),('1987-10-21','AA','263'),('1987-10-21','AA','268'),('1987-10-21','AA','268'),('1987-10-21','AA','281'),('1987-10-21','AA','287'),('1987-10-21','AA','287'),('1987-10-21','AA','309'),('1987-10-21','AA','309'),('1987-10-21','AA','309'),('1987-10-21','AA','341'),('1987-10-21','AA','344'),('1987-10-21','AA','344'),('1987-10-21','AA','347'),('1987-10-21','AA','347'),('1987-10-21','AA','368'),('1987-10-21','AA','381'),('1987-10-21','AA','381'),('1987-10-21','AA','381'),('1987-10-21','AA','396'),('1987-10-21','AA','396'),('1987-10-21','AA','397'),('1987-10-21','AA','397'),('1987-10-21','AA','417'),('1987-10-21','AA','417'),('1987-10-21','AA','446'),('1987-10-21','AA','451'),('1987-10-21','AA','451'),('1987-10-21','AA','460'),('1987-10-21','AA','460'),('1987-10-21','AA','491'),('1987-10-21','AA','504'),('1987-10-21','AA','504'),('1987-10-21','AA','519'),('1987-10-21','AA','519'),('1987-10-21','AA','523'),('1987-10-21','AA','523'),('1987-10-21','AA','525'),('1987-10-21','AA','525'),('1987-10-21','AA','525'),('1987-10-21','AA','533'),('1987-10-21','AA','533'),('1987-10-21','AA','533'),('1987-10-21','AA','546'),('1987-10-21','AA','546'),('1987-10-21','AA','546'),('1987-10-21','AA','546'),('1987-10-21','AA','556'),('1987-10-21','AA','556'),('1987-10-21','AA','556'),('1987-10-21','AA','597'),('1987-10-21','AA','597'),('1987-10-21','AA','597'),('1987-10-21','AA','601'),('1987-10-21','AA','601'),('1987-10-21','AA','627'),('1987-10-21','AA','629'),('1987-10-21','AA','629'),('1987-10-21','AA','673'),('1987-10-21','AA','673'),('1987-10-21','AA','680'),('1987-10-21','AA','680'),('1987-10-21','AA','817'),('1987-10-21','AA','817'),('1987-10-21','AA','824'),('1987-10-21','AA','824'),('1987-10-21','AA','824'),('1987-10-21','AA','832'),('1987-10-21','AA','832'),('1987-10-21','AA','852'),('1987-10-21','AA','866'),('1987-10-21','AA','866'),('1987-10-21','AA','871'),('1987-10-21','AA','871'),('1987-10-21','AA','880'),('1987-10-21','AA','880'),('1987-10-21','AA','880'),('1987-10-21','AA','880'),('1987-10-21','AA','883'),('1987-10-21','AA','883'),('1987-10-21','AA','885'),('1987-10-21','AA','885'),('1987-10-21','AA','885'),('1987-10-21','AA','890'),('1987-10-21','AA','890'),('1987-10-21','AA','893'),('1987-10-21','AA','893'),('1987-10-21','AA','905'),('1987-10-21','AA','905'),('1987-10-21','AA','915'),('1987-10-21','AA','929'),('1987-10-21','AA','929'),('1987-10-21','AA','936'),('1987-10-21','AA','936'),('1987-10-21','AA','937'),('1987-10-21','AA','1002'),('1987-10-21','AA','1002'),('1987-10-21','AA','1004'),('1987-10-21','AA','1004'),('1987-10-21','AA','1015'),('1987-10-21','AA','1021'),('1987-10-21','AA','1021'),('1987-10-21','AA','1041'),('1987-10-21','AA','1041'),('1987-10-21','AA','1046'),('1987-10-21','AA','1046'),('1987-10-21','AA','1048'),('1987-10-21','AA','1048'),('1987-10-21','AA','1061'),('1987-10-21','AA','1061'),('1987-10-21','AA','1088'),('1987-10-21','AA','1088'),('1987-10-21','AA','2033'),('1987-10-21','AA','2033'),('1987-10-21','AA','2050'),('1987-10-21','AA','2071'),('1987-10-21','AA','2086'),('1987-10-21','AA','2105'),('1987-10-21','AA','2111'),('1987-10-21','AA','2123'),('1987-10-21','AA','2123'),('1987-10-21','AA','2147'),('1987-10-21','AA','2147'),('1987-10-21','AA','2199'),('1987-10-21','AA','2199'),('1987-10-21','AA','2207'),('1987-10-21','AA','2207'),('1987-10-21','AA','2217'),('1987-10-21','AA','2230'),('1987-10-21','AA','2245'),('1987-10-21','AA','2251'),('1987-10-21','AA','2251'),('1987-10-21','AA','2275'),('1987-10-21','AA','2278'),('1987-10-21','AA','2351'),('1987-10-21','AA','2357'),('1987-10-21','AA','2361'),('1987-10-21','AA','2490'),('1987-10-21','AA','2528'),('1987-10-21','AA','2528'),('1987-10-21','AA','2735'),('1987-10-21','AA','2735'),('1987-10-21','AA','2751'),('1987-10-21','AL','2'),('1987-10-21','AL','2'),('1987-10-21','AL','7'),('1987-10-21','AL','7'),('1987-10-21','AL','26'),('1987-10-21','AL','26'),('1987-10-21','AL','34'),('1987-10-21','AL','34'),('1987-10-21','AL','36'),('1987-10-21','AL','36'),('1987-10-21','AL','45'),('1987-10-21','AL','45'),('1987-10-21','AL','45'),('1987-10-21','AL','91'),('1987-10-21','AL','91'),('1987-10-21','AL','104'),('1987-10-21','AL','104'),('1987-10-21','AL','104'),('1987-10-21','AL','109'),('1987-10-21','AL','112'),('1987-10-21','AL','112'),('1987-10-21','AL','123'),('1987-10-21','AL','149'),('1987-10-21','AL','160'),('1987-10-21','AL','160'),('1987-10-21','AL','165'),('1987-10-21','AL','171'),('1987-10-21','AL','171'),('1987-10-21','AL','176'),('1987-10-21','AL','176'),('1987-10-21','AL','179'),('1987-10-21','AL','215'),('1987-10-21','AL','263'),('1987-10-21','AL','263'),('1987-10-21','AL','268'),('1987-10-21','AL','268'),('1987-10-21','AL','268'),('1987-10-21','AL','281'),('1987-10-21','AL','281'),('1987-10-21','AL','287'),('1987-10-21','AL','287'),('1987-10-21','AL','309'),('1987-10-21','AL','309'),('1987-10-21','AL','341'),('1987-10-21','AL','344'),('1987-10-21','AL','344'),('1987-10-21','AL','357'),('1987-10-21','AL','357'),('1987-10-21','AL','368'),('1987-10-21','AL','381'),('1987-10-21','AL','396'),('1987-10-21','AL','397'),('1987-10-21','AL','397'),('1987-10-21','AL','416'),('1987-10-21','AL','416'),('1987-10-21','AL','417'),('1987-10-21','AL','438'),('1987-10-21','AL','438'),('1987-10-21','AL','446'),('1987-10-21','AL','451'),('1987-10-21','AL','451'),('1987-10-21','AL','491'),('1987-10-21','AL','491'),('1987-10-21','AL','523'),('1987-10-21','AL','523'),('1987-10-21','AL','523'),('1987-10-21','AL','525'),('1987-10-21','AL','525'),('1987-10-21','AL','533'),('1987-10-21','AL','533'),('1987-10-21','AL','546'),('1987-10-21','AL','546'),('1987-10-21','AL','556'),('1987-10-21','AL','556'),('1987-10-21','AL','601'),('1987-10-21','AL','601'),('1987-10-21','AL','627'),('1987-10-21','AL','629'),('1987-10-21','AL','670'),('1987-10-21','AL','670'),('1987-10-21','AL','670'),('1987-10-21','AL','673'),('1987-10-21','AL','680'),('1987-10-22','AA','2'),('1987-10-22','AA','2'),('1987-10-22','AA','2'),('1987-10-22','AA','7'),('1987-10-22','AA','7'),('1987-10-22','AA','26'),('1987-10-22','AA','34'),('1987-10-22','AA','36'),('1987-10-22','AA','91'),('1987-10-22','AA','101'),('1987-10-22','AA','101'),('1987-10-22','AA','109'),('1987-10-22','AA','109'),('1987-10-22','AA','112'),('1987-10-22','AA','123'),('1987-10-22','AA','123'),('1987-10-22','AA','160'),('1987-10-22','AA','165'),('1987-10-22','AA','165'),('1987-10-22','AA','165'),('1987-10-22','AA','176'),('1987-10-22','AA','176'),('1987-10-22','AA','176'),('1987-10-22','AA','179'),('1987-10-22','AA','215'),('1987-10-22','AA','215'),('1987-10-22','AA','231'),('1987-10-22','AA','231'),('1987-10-22','AA','263'),('1987-10-22','AA','263'),('1987-10-22','AA','268'),('1987-10-22','AA','268'),('1987-10-22','AA','281'),('1987-10-22','AA','287'),('1987-10-22','AA','287'),('1987-10-22','AA','309'),('1987-10-22','AA','309'),('1987-10-22','AA','309'),('1987-10-22','AA','341'),('1987-10-22','AA','344'),('1987-10-22','AA','344'),('1987-10-22','AA','347'),('1987-10-22','AA','368'),('1987-10-22','AA','381'),('1987-10-22','AA','381'),('1987-10-22','AA','381'),('1987-10-22','AA','396'),('1987-10-22','AA','396'),('1987-10-22','AA','397'),('1987-10-22','AA','397'),('1987-10-22','AA','417'),('1987-10-22','AA','417'),('1987-10-22','AA','446'),('1987-10-22','AA','451'),('1987-10-22','AA','451'),('1987-10-22','AA','460'),('1987-10-22','AA','460'),('1987-10-22','AA','491'),('1987-10-22','AA','504'),('1987-10-22','AA','519'),('1987-10-22','AA','519'),('1987-10-22','AA','523'),('1987-10-22','AA','523'),('1987-10-22','AA','525'),('1987-10-22','AA','525'),('1987-10-22','AA','533'),('1987-10-22','AA','533'),('1987-10-22','AA','533'),('1987-10-22','AA','546'),('1987-10-22','AA','546'),('1987-10-22','AA','546'),('1987-10-22','AA','546'),('1987-10-22','AA','556'),('1987-10-22','AA','556'),('1987-10-22','AA','556'),('1987-10-22','AA','597'),('1987-10-22','AA','597'),('1987-10-22','AA','597'),('1987-10-22','AA','601'),('1987-10-22','AA','601'),('1987-10-22','AA','627'),('1987-10-22','AA','629'),('1987-10-22','AA','629'),('1987-10-22','AA','673'),('1987-10-22','AA','673'),('1987-10-22','AA','680'),('1987-10-22','AA','680'),('1987-10-22','AA','817'),('1987-10-22','AA','817'),('1987-10-22','AA','824'),('1987-10-22','AA','824'),('1987-10-22','AA','824'),('1987-10-22','AA','832'),('1987-10-22','AA','832'),('1987-10-22','AA','852'),('1987-10-22','AA','852'),('1987-10-22','AA','866'),('1987-10-22','AA','866'),('1987-10-22','AA','871'),('1987-10-22','AA','871'),('1987-10-22','AA','880'),('1987-10-22','AA','880'),('1987-10-22','AA','880'),('1987-10-22','AA','880'),('1987-10-22','AA','883'),('1987-10-22','AA','883'),('1987-10-22','AA','885'),('1987-10-22','AA','885'),('1987-10-22','AA','885'),('1987-10-22','AA','890'),('1987-10-22','AA','890'),('1987-10-22','AA','893'),('1987-10-22','AA','893'),('1987-10-22','AA','905'),('1987-10-22','AA','905'),('1987-10-22','AA','915'),('1987-10-22','AA','929'),('1987-10-22','AA','929'),('1987-10-22','AA','936'),('1987-10-22','AA','936'),('1987-10-22','AA','937'),('1987-10-22','AA','937'),('1987-10-22','AA','955'),('1987-10-22','AA','955'),('1987-10-22','AA','1002'),('1987-10-22','AA','1002'),('1987-10-22','AA','1004'),('1987-10-22','AA','1015'),('1987-10-22','AA','1015'),('1987-10-22','AA','1021'),('1987-10-22','AA','1021'),('1987-10-22','AA','1041'),('1987-10-22','AA','1041'),('1987-10-22','AA','1046'),('1987-10-22','AA','1046'),('1987-10-22','AA','1048'),('1987-10-22','AA','1048'),('1987-10-22','AA','1061'),('1987-10-22','AA','1061'),('1987-10-22','AA','1088'),('1987-10-22','AA','1088'),('1987-10-22','AA','2033'),('1987-10-22','AA','2058'),('1987-10-22','AA','2071'),('1987-10-22','AA','2071'),('1987-10-22','AA','2086'),('1987-10-22','AA','2105'),('1987-10-22','AA','2111'),('1987-10-22','AA','2147'),('1987-10-22','AA','2147'),('1987-10-22','AA','2199'),('1987-10-22','AA','2207'),('1987-10-22','AA','2207'),('1987-10-22','AA','2217'),('1987-10-22','AA','2230'),('1987-10-22','AA','2245'),('1987-10-22','AA','2251'),('1987-10-22','AA','2251'),('1987-10-22','AA','2275'),('1987-10-22','AA','2278'),('1987-10-22','AA','2351'),('1987-10-22','AA','2357'),('1987-10-22','AA','2361'),('1987-10-22','AA','2490'),('1987-10-22','AA','2528'),('1987-10-22','AA','2528'),('1987-10-22','AA','2735'),('1987-10-22','AA','2735'),('1987-10-22','AA','2751'),('1987-10-22','AL','2'),('1987-10-22','AL','2'),('1987-10-22','AL','7'),('1987-10-22','AL','7'),('1987-10-22','AL','26'),('1987-10-22','AL','26'),('1987-10-22','AL','34'),('1987-10-22','AL','34'),('1987-10-22','AL','36'),('1987-10-22','AL','36'),('1987-10-22','AL','45'),('1987-10-22','AL','45'),('1987-10-22','AL','45'),('1987-10-22','AL','91'),('1987-10-22','AL','91'),('1987-10-22','AL','104'),('1987-10-22','AL','104'),('1987-10-22','AL','104'),('1987-10-22','AL','109'),('1987-10-22','AL','112'),('1987-10-22','AL','112'),('1987-10-22','AL','123'),('1987-10-22','AL','149'),('1987-10-22','AL','160'),('1987-10-22','AL','160'),('1987-10-22','AL','165'),('1987-10-22','AL','171'),('1987-10-22','AL','171'),('1987-10-22','AL','176'),('1987-10-22','AL','176'),('1987-10-22','AL','179'),('1987-10-22','AL','215'),('1987-10-22','AL','231'),('1987-10-22','AL','263'),('1987-10-22','AL','263'),('1987-10-22','AL','268'),('1987-10-22','AL','268'),('1987-10-22','AL','268'),('1987-10-22','AL','281'),('1987-10-22','AL','281'),('1987-10-22','AL','287'),('1987-10-22','AL','287'),('1987-10-22','AL','309'),('1987-10-22','AL','309'),('1987-10-22','AL','341'),('1987-10-22','AL','344'),('1987-10-22','AL','344'),('1987-10-22','AL','357'),('1987-10-22','AL','357'),('1987-10-22','AL','368'),('1987-10-22','AL','381'),('1987-10-22','AL','396'),('1987-10-22','AL','397'),('1987-10-22','AL','397'),('1987-10-22','AL','416'),('1987-10-22','AL','417'),('1987-10-22','AL','438'),('1987-10-22','AL','438'),('1987-10-22','AL','446'),('1987-10-22','AL','451'),('1987-10-22','AL','451'),('1987-10-22','AL','491'),('1987-10-22','AL','491'),('1987-10-22','AL','523'),('1987-10-22','AL','523'),('1987-10-22','AL','523'),('1987-10-22','AL','525'),('1987-10-22','AL','525'),('1987-10-22','AL','533'),('1987-10-22','AL','533'),('1987-10-22','AL','546'),('1987-10-22','AL','546'),('1987-10-22','AL','556'),('1987-10-22','AL','556'),('1987-10-22','AL','601'),('1987-10-22','AL','601'),('1987-10-22','AL','627'),('1987-10-22','AL','629'),('1987-10-22','AL','670'),('1987-10-22','AL','670'),('1987-10-22','AL','670'),('1987-10-22','AL','673'),('1987-10-22','AL','680'),('1987-10-23','AA','2'),('1987-10-23','AA','2'),('1987-10-23','AA','2'),('1987-10-23','AA','7'),('1987-10-23','AA','7'),('1987-10-23','AA','26'),('1987-10-23','AA','34'),('1987-10-23','AA','36'),('1987-10-23','AA','91'),('1987-10-23','AA','101'),('1987-10-23','AA','109'),('1987-10-23','AA','109'),('1987-10-23','AA','112'),('1987-10-23','AA','123'),('1987-10-23','AA','123'),('1987-10-23','AA','160'),('1987-10-23','AA','165'),('1987-10-23','AA','165'),('1987-10-23','AA','165'),('1987-10-23','AA','176'),('1987-10-23','AA','176'),('1987-10-23','AA','176'),('1987-10-23','AA','176'),('1987-10-23','AA','179'),('1987-10-23','AA','179'),('1987-10-23','AA','215'),('1987-10-23','AA','215'),('1987-10-23','AA','231'),('1987-10-23','AA','231'),('1987-10-23','AA','263'),('1987-10-23','AA','263'),('1987-10-23','AA','268'),('1987-10-23','AA','268'),('1987-10-23','AA','281'),('1987-10-23','AA','287'),('1987-10-23','AA','287'),('1987-10-23','AA','309'),('1987-10-23','AA','309'),('1987-10-23','AA','309'),('1987-10-23','AA','341'),('1987-10-23','AA','344'),('1987-10-23','AA','344'),('1987-10-23','AA','347'),('1987-10-23','AA','368'),('1987-10-23','AA','381'),('1987-10-23','AA','381'),('1987-10-23','AA','381'),('1987-10-23','AA','396'),('1987-10-23','AA','396'),('1987-10-23','AA','397'),('1987-10-23','AA','397'),('1987-10-23','AA','417'),('1987-10-23','AA','417'),('1987-10-23','AA','446'),('1987-10-23','AA','451'),('1987-10-23','AA','451'),('1987-10-23','AA','460'),('1987-10-23','AA','491'),('1987-10-23','AA','504'),('1987-10-23','AA','504'),('1987-10-23','AA','519'),('1987-10-23','AA','519'),('1987-10-23','AA','523'),('1987-10-23','AA','523'),('1987-10-23','AA','525'),('1987-10-23','AA','533'),('1987-10-23','AA','533'),('1987-10-23','AA','533'),('1987-10-23','AA','546'),('1987-10-23','AA','546'),('1987-10-23','AA','546'),('1987-10-23','AA','546'),('1987-10-23','AA','556'),('1987-10-23','AA','556'),('1987-10-23','AA','556'),('1987-10-23','AA','597'),('1987-10-23','AA','597'),('1987-10-23','AA','601'),('1987-10-23','AA','601'),('1987-10-23','AA','627'),('1987-10-23','AA','629'),('1987-10-23','AA','629'),('1987-10-23','AA','673'),('1987-10-23','AA','680'),('1987-10-23','AA','680'),('1987-10-23','AA','817'),('1987-10-23','AA','817'),('1987-10-23','AA','824'),('1987-10-23','AA','824'),('1987-10-23','AA','824'),('1987-10-23','AA','824'),('1987-10-23','AA','832'),('1987-10-23','AA','832'),('1987-10-23','AA','852'),('1987-10-23','AA','866'),('1987-10-23','AA','866'),('1987-10-23','AA','871'),('1987-10-23','AA','871'),('1987-10-23','AA','880'),('1987-10-23','AA','880'),('1987-10-23','AA','880'),('1987-10-23','AA','880'),('1987-10-23','AA','883'),('1987-10-23','AA','883'),('1987-10-23','AA','885'),('1987-10-23','AA','885'),('1987-10-23','AA','885'),('1987-10-23','AA','890'),('1987-10-23','AA','890'),('1987-10-23','AA','893'),('1987-10-23','AA','893'),('1987-10-23','AA','905'),('1987-10-23','AA','905'),('1987-10-23','AA','929'),('1987-10-23','AA','929'),('1987-10-23','AA','936'),('1987-10-23','AA','936'),('1987-10-23','AA','937'),('1987-10-23','AA','937'),('1987-10-23','AA','955'),('1987-10-23','AA','955'),('1987-10-23','AA','966'),('1987-10-23','AA','1002'),('1987-10-23','AA','1002'),('1987-10-23','AA','1004'),('1987-10-23','AA','1004'),('1987-10-23','AA','1015'),('1987-10-23','AA','1015'),('1987-10-23','AA','1021'),('1987-10-23','AA','1021'),('1987-10-23','AA','1041'),('1987-10-23','AA','1041'),('1987-10-23','AA','1046'),('1987-10-23','AA','1048'),('1987-10-23','AA','1048'),('1987-10-23','AA','1061'),('1987-10-23','AA','1061'),('1987-10-23','AA','1088'),('1987-10-23','AA','1088'),('1987-10-23','AA','2033'),('1987-10-23','AA','2033'),('1987-10-23','AA','2050'),('1987-10-23','AA','2058'),('1987-10-23','AA','2071'),('1987-10-23','AA','2071'),('1987-10-23','AA','2086'),('1987-10-23','AA','2105'),('1987-10-23','AA','2111'),('1987-10-23','AA','2123'),('1987-10-23','AA','2123'),('1987-10-23','AA','2147'),('1987-10-23','AA','2147'),('1987-10-23','AA','2199'),('1987-10-23','AA','2199'),('1987-10-23','AA','2199'),('1987-10-23','AA','2207'),('1987-10-23','AA','2207'),('1987-10-23','AA','2245'),('1987-10-23','AA','2251'),('1987-10-23','AA','2275'),('1987-10-23','AA','2278'),('1987-10-23','AA','2351'),('1987-10-23','AA','2357'),('1987-10-23','AA','2361'),('1987-10-23','AA','2490'),('1987-10-23','AA','2528'),('1987-10-23','AA','2528'),('1987-10-23','AA','2735'),('1987-10-23','AA','2735'),('1987-10-23','AA','2751'),('1987-10-23','AL','2'),('1987-10-23','AL','2'),('1987-10-23','AL','7'),('1987-10-23','AL','7'),('1987-10-23','AL','26'),('1987-10-23','AL','26'),('1987-10-23','AL','34'),('1987-10-23','AL','34'),('1987-10-23','AL','36'),('1987-10-23','AL','36'),('1987-10-23','AL','45'),('1987-10-23','AL','45'),('1987-10-23','AL','45'),('1987-10-23','AL','91'),('1987-10-23','AL','91'),('1987-10-23','AL','104'),('1987-10-23','AL','104'),('1987-10-23','AL','104'),('1987-10-23','AL','109'),('1987-10-23','AL','112'),('1987-10-23','AL','112'),('1987-10-23','AL','123'),('1987-10-23','AL','149'),('1987-10-23','AL','160'),('1987-10-23','AL','160'),('1987-10-23','AL','165'),('1987-10-23','AL','171'),('1987-10-23','AL','176'),('1987-10-23','AL','176'),('1987-10-23','AL','179'),('1987-10-23','AL','215'),('1987-10-23','AL','231'),('1987-10-23','AL','263'),('1987-10-23','AL','263'),('1987-10-23','AL','268'),('1987-10-23','AL','268'),('1987-10-23','AL','268'),('1987-10-23','AL','281'),('1987-10-23','AL','281'),('1987-10-23','AL','287'),('1987-10-23','AL','287'),('1987-10-23','AL','309'),('1987-10-23','AL','309'),('1987-10-23','AL','341'),('1987-10-23','AL','344'),('1987-10-23','AL','344'),('1987-10-23','AL','357'),('1987-10-23','AL','357'),('1987-10-23','AL','368'),('1987-10-23','AL','381'),('1987-10-23','AL','396'),('1987-10-23','AL','397'),('1987-10-23','AL','397'),('1987-10-23','AL','416'),('1987-10-23','AL','416'),('1987-10-23','AL','417'),('1987-10-23','AL','438'),('1987-10-23','AL','438'),('1987-10-23','AL','446'),('1987-10-23','AL','451'),('1987-10-23','AL','451'),('1987-10-23','AL','491'),('1987-10-23','AL','491'),('1987-10-23','AL','523'),('1987-10-23','AL','523'),('1987-10-23','AL','523'),('1987-10-23','AL','525'),('1987-10-23','AL','525'),('1987-10-23','AL','533'),('1987-10-23','AL','533'),('1987-10-23','AL','546'),('1987-10-23','AL','546'),('1987-10-23','AL','556'),('1987-10-23','AL','556'),('1987-10-23','AL','601'),('1987-10-23','AL','601'),('1987-10-23','AL','627'),('1987-10-23','AL','629'),('1987-10-23','AL','670'),('1987-10-23','AL','670'),('1987-10-23','AL','670'),('1987-10-23','AL','673'),('1987-10-23','AL','680'),('1987-10-24','AA','2'),('1987-10-24','AA','2'),('1987-10-24','AA','7'),('1987-10-24','AA','7'),('1987-10-24','AA','26'),('1987-10-24','AA','34'),('1987-10-24','AA','36'),('1987-10-24','AA','91'),('1987-10-24','AA','101'),('1987-10-24','AA','101'),('1987-10-24','AA','109'),('1987-10-24','AA','109'),('1987-10-24','AA','112'),('1987-10-24','AA','123'),('1987-10-24','AA','123'),('1987-10-24','AA','160'),('1987-10-24','AA','165'),('1987-10-24','AA','165'),('1987-10-24','AA','165'),('1987-10-24','AA','176'),('1987-10-24','AA','176'),('1987-10-24','AA','176'),('1987-10-24','AA','179'),('1987-10-24','AA','179'),('1987-10-24','AA','215'),('1987-10-24','AA','215'),('1987-10-24','AA','231'),('1987-10-24','AA','263'),('1987-10-24','AA','263'),('1987-10-24','AA','268'),('1987-10-24','AA','268'),('1987-10-24','AA','281'),('1987-10-24','AA','287'),('1987-10-24','AA','287'),('1987-10-24','AA','309'),('1987-10-24','AA','309'),('1987-10-24','AA','309'),('1987-10-24','AA','344'),('1987-10-24','AA','344'),('1987-10-24','AA','347'),('1987-10-24','AA','347'),('1987-10-24','AA','368'),('1987-10-24','AA','381'),('1987-10-24','AA','381'),('1987-10-24','AA','381'),('1987-10-24','AA','396'),('1987-10-24','AA','396'),('1987-10-24','AA','397'),('1987-10-24','AA','397'),('1987-10-24','AA','417'),('1987-10-24','AA','417'),('1987-10-24','AA','446'),('1987-10-24','AA','451'),('1987-10-24','AA','451'),('1987-10-24','AA','460'),('1987-10-24','AA','460'),('1987-10-24','AA','491'),('1987-10-24','AA','491'),('1987-10-24','AA','504'),('1987-10-24','AA','504'),('1987-10-24','AA','519'),('1987-10-24','AA','519'),('1987-10-24','AA','523'),('1987-10-24','AA','523'),('1987-10-24','AA','525'),('1987-10-24','AA','525'),('1987-10-24','AA','525'),('1987-10-24','AA','533'),('1987-10-24','AA','533'),('1987-10-24','AA','546'),('1987-10-24','AA','546'),('1987-10-24','AA','546'),('1987-10-24','AA','556'),('1987-10-24','AA','556'),('1987-10-24','AA','556'),('1987-10-24','AA','597'),('1987-10-24','AA','597'),('1987-10-24','AA','597'),('1987-10-24','AA','601'),('1987-10-24','AA','601'),('1987-10-24','AA','627'),('1987-10-24','AA','629'),('1987-10-24','AA','673'),('1987-10-24','AA','673'),('1987-10-24','AA','680'),('1987-10-24','AA','680'),('1987-10-24','AA','817'),('1987-10-24','AA','817'),('1987-10-24','AA','824'),('1987-10-24','AA','824'),('1987-10-24','AA','824'),('1987-10-24','AA','832'),('1987-10-24','AA','832'),('1987-10-24','AA','852'),('1987-10-24','AA','852'),('1987-10-24','AA','866'),('1987-10-24','AA','866'),('1987-10-24','AA','871'),('1987-10-24','AA','871'),('1987-10-24','AA','880'),('1987-10-24','AA','880'),('1987-10-24','AA','880'),('1987-10-24','AA','880'),('1987-10-24','AA','883'),('1987-10-24','AA','883'),('1987-10-24','AA','885'),('1987-10-24','AA','885'),('1987-10-24','AA','885'),('1987-10-24','AA','890'),('1987-10-24','AA','890'),('1987-10-24','AA','893'),('1987-10-24','AA','893'),('1987-10-24','AA','905'),('1987-10-24','AA','905'),('1987-10-24','AA','915'),('1987-10-24','AA','929'),('1987-10-24','AA','929'),('1987-10-24','AA','936'),('1987-10-24','AA','936'),('1987-10-24','AA','937'),('1987-10-24','AA','937'),('1987-10-24','AA','955'),('1987-10-24','AA','955'),('1987-10-24','AA','966'),('1987-10-24','AA','1002'),('1987-10-24','AA','1002'),('1987-10-24','AA','1004'),('1987-10-24','AA','1004'),('1987-10-24','AA','1015'),('1987-10-24','AA','1021'),('1987-10-24','AA','1021'),('1987-10-24','AA','1041'),('1987-10-24','AA','1041'),('1987-10-24','AA','1046'),('1987-10-24','AA','1046'),('1987-10-24','AA','1048'),('1987-10-24','AA','1048'),('1987-10-24','AA','1061'),('1987-10-24','AA','1061'),('1987-10-24','AA','1088'),('1987-10-24','AA','1088'),('1987-10-24','AA','2033'),('1987-10-24','AA','2033'),('1987-10-24','AA','2050'),('1987-10-24','AA','2058'),('1987-10-24','AA','2071'),('1987-10-24','AA','2071'),('1987-10-24','AA','2086'),('1987-10-24','AA','2105'),('1987-10-24','AA','2111'),('1987-10-24','AA','2123'),('1987-10-24','AA','2147'),('1987-10-24','AA','2199'),('1987-10-24','AA','2199'),('1987-10-24','AA','2207'),('1987-10-24','AA','2217'),('1987-10-24','AA','2230'),('1987-10-24','AA','2245'),('1987-10-24','AA','2251'),('1987-10-24','AA','2251'),('1987-10-24','AA','2275'),('1987-10-24','AA','2278'),('1987-10-24','AA','2351'),('1987-10-24','AA','2357'),('1987-10-24','AA','2361'),('1987-10-24','AA','2490'),('1987-10-24','AA','2528'),('1987-10-24','AA','2528'),('1987-10-24','AA','2735'),('1987-10-24','AA','2735'),('1987-10-24','AL','2'),('1987-10-24','AL','2'),('1987-10-24','AL','7'),('1987-10-24','AL','7'),('1987-10-24','AL','26'),('1987-10-24','AL','26'),('1987-10-24','AL','34'),('1987-10-24','AL','34'),('1987-10-24','AL','36'),('1987-10-24','AL','36'),('1987-10-24','AL','45'),('1987-10-24','AL','91'),('1987-10-24','AL','91'),('1987-10-24','AL','104'),('1987-10-24','AL','104'),('1987-10-24','AL','109'),('1987-10-24','AL','112'),('1987-10-24','AL','112'),('1987-10-24','AL','149'),('1987-10-24','AL','160'),('1987-10-24','AL','160'),('1987-10-24','AL','165'),('1987-10-24','AL','171'),('1987-10-24','AL','171'),('1987-10-24','AL','176'),('1987-10-24','AL','176'),('1987-10-24','AL','179'),('1987-10-24','AL','215'),('1987-10-24','AL','231'),('1987-10-24','AL','263'),('1987-10-24','AL','268'),('1987-10-24','AL','268'),('1987-10-24','AL','268'),('1987-10-24','AL','287'),('1987-10-24','AL','287'),('1987-10-24','AL','309'),('1987-10-24','AL','309'),('1987-10-24','AL','344'),('1987-10-24','AL','344'),('1987-10-24','AL','357'),('1987-10-24','AL','357'),('1987-10-24','AL','381'),('1987-10-24','AL','396'),('1987-10-24','AL','397'),('1987-10-24','AL','397'),('1987-10-24','AL','397'),('1987-10-24','AL','416'),('1987-10-24','AL','417'),('1987-10-24','AL','438'),('1987-10-24','AL','438'),('1987-10-24','AL','451'),('1987-10-24','AL','451'),('1987-10-24','AL','491'),('1987-10-24','AL','491'),('1987-10-24','AL','523'),('1987-10-24','AL','523'),('1987-10-24','AL','525'),('1987-10-24','AL','525'),('1987-10-24','AL','533'),('1987-10-24','AL','546'),('1987-10-24','AL','546'),('1987-10-24','AL','556'),('1987-10-24','AL','556'),('1987-10-24','AL','601'),('1987-10-24','AL','601'),('1987-10-24','AL','627'),('1987-10-24','AL','670'),('1987-10-24','AL','673'),('1987-10-24','AL','680'),('1987-10-24','AL','905'),('1987-10-24','AL','936'),('1987-10-24','AL','966'),('1987-10-24','AL','982'),('1987-10-25','AA','2'),('1987-10-25','AA','2'),('1987-10-25','AA','2'),('1987-10-25','AA','7'),('1987-10-25','AA','7'),('1987-10-25','AA','26'),('1987-10-25','AA','34'),('1987-10-25','AA','36'),('1987-10-25','AA','91'),('1987-10-25','AA','101'),('1987-10-25','AA','109'),('1987-10-25','AA','109'),('1987-10-25','AA','123'),('1987-10-25','AA','123'),('1987-10-25','AA','160'),('1987-10-25','AA','165'),('1987-10-25','AA','165'),('1987-10-25','AA','165'),('1987-10-25','AA','176'),('1987-10-25','AA','176'),('1987-10-25','AA','176'),('1987-10-25','AA','176'),('1987-10-25','AA','179'),('1987-10-25','AA','179'),('1987-10-25','AA','215'),('1987-10-25','AA','215'),('1987-10-25','AA','231'),('1987-10-25','AA','231'),('1987-10-25','AA','263'),('1987-10-25','AA','263'),('1987-10-25','AA','268'),('1987-10-25','AA','268'),('1987-10-25','AA','281'),('1987-10-25','AA','287'),('1987-10-25','AA','287'),('1987-10-25','AA','309'),('1987-10-25','AA','309'),('1987-10-25','AA','309'),('1987-10-25','AA','341'),('1987-10-25','AA','344'),('1987-10-25','AA','344'),('1987-10-25','AA','347'),('1987-10-25','AA','347'),('1987-10-25','AA','368'),('1987-10-25','AA','381'),('1987-10-25','AA','381'),('1987-10-25','AA','396'),('1987-10-25','AA','397'),('1987-10-25','AA','397'),('1987-10-25','AA','417'),('1987-10-25','AA','417'),('1987-10-25','AA','446'),('1987-10-25','AA','451'),('1987-10-25','AA','460'),('1987-10-25','AA','460'),('1987-10-25','AA','491'),('1987-10-25','AA','491'),('1987-10-25','AA','504'),('1987-10-25','AA','504'),('1987-10-25','AA','519'),('1987-10-25','AA','519'),('1987-10-25','AA','523'),('1987-10-25','AA','523'),('1987-10-25','AA','525'),('1987-10-25','AA','525'),('1987-10-25','AA','525'),('1987-10-25','AA','533'),('1987-10-25','AA','533'),('1987-10-25','AA','533'),('1987-10-25','AA','546'),('1987-10-25','AA','546'),('1987-10-25','AA','546'),('1987-10-25','AA','546'),('1987-10-25','AA','556'),('1987-10-25','AA','556'),('1987-10-25','AA','556'),('1987-10-25','AA','597'),('1987-10-25','AA','597'),('1987-10-25','AA','597'),('1987-10-25','AA','601'),('1987-10-25','AA','627'),('1987-10-25','AA','629'),('1987-10-25','AA','629'),('1987-10-25','AA','670'),('1987-10-25','AA','673'),('1987-10-25','AA','673'),('1987-10-25','AA','680'),('1987-10-25','AA','680'),('1987-10-25','AA','817'),('1987-10-25','AA','817'),('1987-10-25','AA','824'),('1987-10-25','AA','824'),('1987-10-25','AA','824'),('1987-10-25','AA','824'),('1987-10-25','AA','832'),('1987-10-25','AA','832'),('1987-10-25','AA','852'),('1987-10-25','AA','852'),('1987-10-25','AA','866'),('1987-10-25','AA','866'),('1987-10-25','AA','871'),('1987-10-25','AA','871'),('1987-10-25','AA','880'),('1987-10-25','AA','880'),('1987-10-25','AA','880'),('1987-10-25','AA','880'),('1987-10-25','AA','883'),('1987-10-25','AA','883'),('1987-10-25','AA','885'),('1987-10-25','AA','885'),('1987-10-25','AA','885'),('1987-10-25','AA','890'),('1987-10-25','AA','893'),('1987-10-25','AA','893'),('1987-10-25','AA','905'),('1987-10-25','AA','905'),('1987-10-25','AA','915'),('1987-10-25','AA','929'),('1987-10-25','AA','929'),('1987-10-25','AA','936'),('1987-10-25','AA','936'),('1987-10-25','AA','937'),('1987-10-25','AA','937'),('1987-10-25','AA','955'),('1987-10-25','AA','955'),('1987-10-25','AA','1002'),('1987-10-25','AA','1002'),('1987-10-25','AA','1004'),('1987-10-25','AA','1004'),('1987-10-25','AA','1015'),('1987-10-25','AA','1015'),('1987-10-25','AA','1021'),('1987-10-25','AA','1021'),('1987-10-25','AA','1041'),('1987-10-25','AA','1041'),('1987-10-25','AA','1046'),('1987-10-25','AA','1046'),('1987-10-25','AA','1048'),('1987-10-25','AA','1048'),('1987-10-25','AA','1061'),('1987-10-25','AA','1061'),('1987-10-25','AA','1088'),('1987-10-25','AA','1088'),('1987-10-25','AA','2033'),('1987-10-25','AA','2033'),('1987-10-25','AA','2050'),('1987-10-25','AA','2058'),('1987-10-25','AA','2071'),('1987-10-25','AA','2071'),('1987-10-25','AA','2086'),('1987-10-25','AA','2111'),('1987-10-25','AA','2123'),('1987-10-25','AA','2123'),('1987-10-25','AA','2147'),('1987-10-25','AA','2199'),('1987-10-25','AA','2199'),('1987-10-25','AA','2207'),('1987-10-25','AA','2207'),('1987-10-25','AA','2230'),('1987-10-25','AA','2245'),('1987-10-25','AA','2251'),('1987-10-25','AA','2251'),('1987-10-25','AA','2275'),('1987-10-25','AA','2278'),('1987-10-25','AA','2357'),('1987-10-25','AA','2361'),('1987-10-25','AA','2490'),('1987-10-25','AA','2528'),('1987-10-25','AA','2528'),('1987-10-25','AA','2735'),('1987-10-25','AA','2735'),('1987-10-25','AA','2751'),('1987-10-25','AL','2'),('1987-10-25','AL','2'),('1987-10-25','AL','7'),('1987-10-25','AL','7'),('1987-10-25','AL','26'),('1987-10-25','AL','26'),('1987-10-25','AL','34'),('1987-10-25','AL','34'),('1987-10-25','AL','36'),('1987-10-25','AL','36'),('1987-10-25','AL','45'),('1987-10-25','AL','45'),('1987-10-25','AL','45'),('1987-10-25','AL','91'),('1987-10-25','AL','91'),('1987-10-25','AL','104'),('1987-10-25','AL','104'),('1987-10-25','AL','104'),('1987-10-25','AL','112'),('1987-10-25','AL','123'),('1987-10-25','AL','149'),('1987-10-25','AL','160'),('1987-10-25','AL','160'),('1987-10-25','AL','165'),('1987-10-25','AL','171'),('1987-10-25','AL','171'),('1987-10-25','AL','176'),('1987-10-25','AL','176'),('1987-10-25','AL','179'),('1987-10-25','AL','215'),('1987-10-25','AL','231'),('1987-10-25','AL','263'),('1987-10-25','AL','263'),('1987-10-25','AL','281'),('1987-10-25','AL','281'),('1987-10-25','AL','309'),('1987-10-25','AL','309'),('1987-10-25','AL','341'),('1987-10-25','AL','344'),('1987-10-25','AL','344'),('1987-10-25','AL','357'),('1987-10-25','AL','357'),('1987-10-25','AL','368'),('1987-10-25','AL','396'),('1987-10-25','AL','416'),('1987-10-25','AL','416'),('1987-10-25','AL','417'),('1987-10-25','AL','438'),('1987-10-25','AL','438'),('1987-10-25','AL','446'),('1987-10-25','AL','451'),('1987-10-25','AL','491'),('1987-10-25','AL','523'),('1987-10-25','AL','523'),('1987-10-25','AL','523'),('1987-10-25','AL','525'),('1987-10-25','AL','525'),('1987-10-25','AL','533'),('1987-10-25','AL','533'),('1987-10-25','AL','546'),('1987-10-25','AL','546'),('1987-10-25','AL','556'),('1987-10-25','AL','556'),('1987-10-25','AL','601'),('1987-10-25','AL','601'),('1987-10-25','AL','627'),('1987-10-25','AL','629'),('1987-10-25','AL','670'),('1987-10-25','AL','670'),('1987-10-25','AL','670'),('1987-10-25','AL','673'),('1987-10-25','AL','680'),('1987-10-25','AL','937'),('1987-10-25','AL','937'),('1987-10-25','AL','955'),('1987-10-26','AA','2'),('1987-10-26','AA','2'),('1987-10-26','AA','2'),('1987-10-26','AA','7'),('1987-10-26','AA','7'),('1987-10-26','AA','26'),('1987-10-26','AA','34'),('1987-10-26','AA','36'),('1987-10-26','AA','91'),('1987-10-26','AA','101'),('1987-10-26','AA','101'),('1987-10-26','AA','109'),('1987-10-26','AA','109'),('1987-10-26','AA','112'),('1987-10-26','AA','123'),('1987-10-26','AA','123'),('1987-10-26','AA','160'),('1987-10-26','AA','165'),('1987-10-26','AA','165'),('1987-10-26','AA','165'),('1987-10-26','AA','176'),('1987-10-26','AA','176'),('1987-10-26','AA','176'),('1987-10-26','AA','176'),('1987-10-26','AA','179'),('1987-10-26','AA','179'),('1987-10-26','AA','215'),('1987-10-26','AA','215'),('1987-10-26','AA','231'),('1987-10-26','AA','231'),('1987-10-26','AA','263'),('1987-10-26','AA','263'),('1987-10-26','AA','268'),('1987-10-26','AA','268'),('1987-10-26','AA','281'),('1987-10-26','AA','287'),('1987-10-26','AA','287'),('1987-10-26','AA','309'),('1987-10-26','AA','309'),('1987-10-26','AA','309'),('1987-10-26','AA','341'),('1987-10-26','AA','344'),('1987-10-26','AA','344'),('1987-10-26','AA','347'),('1987-10-26','AA','347'),('1987-10-26','AA','368'),('1987-10-26','AA','381'),('1987-10-26','AA','381'),('1987-10-26','AA','381'),('1987-10-26','AA','396'),('1987-10-26','AA','396'),('1987-10-26','AA','397'),('1987-10-26','AA','397'),('1987-10-26','AA','417'),('1987-10-26','AA','417'),('1987-10-26','AA','446'),('1987-10-26','AA','451'),('1987-10-26','AA','451'),('1987-10-26','AA','491'),('1987-10-26','AA','504'),('1987-10-26','AA','504'),('1987-10-26','AA','519'),('1987-10-26','AA','523'),('1987-10-26','AA','523'),('1987-10-26','AA','525'),('1987-10-26','AA','525'),('1987-10-26','AA','525'),('1987-10-26','AA','533'),('1987-10-26','AA','533'),('1987-10-26','AA','533'),('1987-10-26','AA','546'),('1987-10-26','AA','546'),('1987-10-26','AA','546'),('1987-10-26','AA','546'),('1987-10-26','AA','556'),('1987-10-26','AA','556'),('1987-10-26','AA','556'),('1987-10-26','AA','597'),('1987-10-26','AA','597'),('1987-10-26','AA','597'),('1987-10-26','AA','601'),('1987-10-26','AA','601'),('1987-10-26','AA','627'),('1987-10-26','AA','629'),('1987-10-26','AA','629'),('1987-10-26','AA','670'),('1987-10-26','AA','673'),('1987-10-26','AA','673'),('1987-10-26','AA','680'),('1987-10-26','AA','680'),('1987-10-26','AA','817'),('1987-10-26','AA','817'),('1987-10-26','AA','824'),('1987-10-26','AA','824'),('1987-10-26','AA','832'),('1987-10-26','AA','832'),('1987-10-26','AA','852'),('1987-10-26','AA','852'),('1987-10-26','AA','866'),('1987-10-26','AA','866'),('1987-10-26','AA','871'),('1987-10-26','AA','871'),('1987-10-26','AA','880'),('1987-10-26','AA','880'),('1987-10-26','AA','880'),('1987-10-26','AA','880'),('1987-10-26','AA','883'),('1987-10-26','AA','883'),('1987-10-26','AA','885'),('1987-10-26','AA','885'),('1987-10-26','AA','885'),('1987-10-26','AA','890'),('1987-10-26','AA','890'),('1987-10-26','AA','893'),('1987-10-26','AA','893'),('1987-10-26','AA','905'),('1987-10-26','AA','905'),('1987-10-26','AA','915'),('1987-10-26','AA','929'),('1987-10-26','AA','929'),('1987-10-26','AA','936'),('1987-10-26','AA','936'),('1987-10-26','AA','937'),('1987-10-26','AA','937'),('1987-10-26','AA','955'),('1987-10-26','AA','955'),('1987-10-26','AA','966'),('1987-10-26','AA','1002'),('1987-10-26','AA','1002'),('1987-10-26','AA','1004'),('1987-10-26','AA','1004'),('1987-10-26','AA','1015'),('1987-10-26','AA','1015'),('1987-10-26','AA','1021'),('1987-10-26','AA','1021'),('1987-10-26','AA','1046'),('1987-10-26','AA','1046'),('1987-10-26','AA','1048'),('1987-10-26','AA','1048'),('1987-10-26','AA','1061'),('1987-10-26','AA','1061'),('1987-10-26','AA','1088'),('1987-10-26','AA','1088'),('1987-10-26','AA','2033'),('1987-10-26','AA','2033'),('1987-10-26','AA','2050'),('1987-10-26','AA','2058'),('1987-10-26','AA','2071'),('1987-10-26','AA','2071'),('1987-10-26','AA','2086'),('1987-10-26','AA','2105'),('1987-10-26','AA','2111'),('1987-10-26','AA','2123'),('1987-10-26','AA','2123'),('1987-10-26','AA','2147'),('1987-10-26','AA','2147'),('1987-10-26','AA','2199'),('1987-10-26','AA','2199'),('1987-10-26','AA','2207'),('1987-10-26','AA','2207'),('1987-10-26','AA','2230'),('1987-10-26','AA','2245'),('1987-10-26','AA','2251'),('1987-10-26','AA','2251'),('1987-10-26','AA','2275'),('1987-10-26','AA','2278'),('1987-10-26','AA','2351'),('1987-10-26','AA','2357'),('1987-10-26','AA','2361'),('1987-10-26','AA','2490'),('1987-10-26','AA','2528'),('1987-10-26','AA','2528'),('1987-10-26','AA','2735'),('1987-10-26','AA','2735'),('1987-10-26','AA','2751'),('1987-10-26','AL','2'),('1987-10-26','AL','2'),('1987-10-26','AL','7'),('1987-10-26','AL','7'),('1987-10-26','AL','26'),('1987-10-26','AL','26'),('1987-10-26','AL','34'),('1987-10-26','AL','34'),('1987-10-26','AL','36'),('1987-10-26','AL','36'),('1987-10-26','AL','45'),('1987-10-26','AL','45'),('1987-10-26','AL','45'),('1987-10-26','AL','91'),('1987-10-26','AL','91'),('1987-10-26','AL','104'),('1987-10-26','AL','104'),('1987-10-26','AL','104'),('1987-10-26','AL','109'),('1987-10-26','AL','112'),('1987-10-26','AL','112'),('1987-10-26','AL','123'),('1987-10-26','AL','149'),('1987-10-26','AL','160'),('1987-10-26','AL','160'),('1987-10-26','AL','165'),('1987-10-26','AL','171'),('1987-10-26','AL','171'),('1987-10-26','AL','176'),('1987-10-26','AL','176'),('1987-10-26','AL','179'),('1987-10-26','AL','215'),('1987-10-26','AL','231'),('1987-10-26','AL','263'),('1987-10-26','AL','263'),('1987-10-26','AL','268'),('1987-10-26','AL','268'),('1987-10-26','AL','268'),('1987-10-26','AL','281'),('1987-10-26','AL','281'),('1987-10-26','AL','287'),('1987-10-26','AL','287'),('1987-10-26','AL','309'),('1987-10-26','AL','309'),('1987-10-26','AL','341'),('1987-10-26','AL','344'),('1987-10-26','AL','357'),('1987-10-26','AL','357'),('1987-10-26','AL','368'),('1987-10-26','AL','381'),('1987-10-26','AL','396'),('1987-10-26','AL','397'),('1987-10-26','AL','397'),('1987-10-26','AL','416'),('1987-10-26','AL','416'),('1987-10-26','AL','417'),('1987-10-26','AL','438'),('1987-10-26','AL','438'),('1987-10-26','AL','446'),('1987-10-26','AL','451'),('1987-10-26','AL','451'),('1987-10-26','AL','491'),('1987-10-26','AL','491'),('1987-10-26','AL','523'),('1987-10-26','AL','523'),('1987-10-26','AL','523'),('1987-10-26','AL','525'),('1987-10-26','AL','533'),('1987-10-26','AL','533'),('1987-10-26','AL','546'),('1987-10-26','AL','546'),('1987-10-26','AL','556'),('1987-10-26','AL','556'),('1987-10-26','AL','601'),('1987-10-26','AL','601'),('1987-10-26','AL','627'),('1987-10-26','AL','629'),('1987-10-26','AL','670'),('1987-10-26','AL','670'),('1987-10-26','AL','670'),('1987-10-26','AL','673'),('1987-10-26','AL','680'),('1987-10-27','AA','2'),('1987-10-27','AA','2'),('1987-10-27','AA','2'),('1987-10-27','AA','7'),('1987-10-27','AA','26'),('1987-10-27','AA','34'),('1987-10-27','AA','36'),('1987-10-27','AA','91'),('1987-10-27','AA','101'),('1987-10-27','AA','101'),('1987-10-27','AA','109'),('1987-10-27','AA','109'),('1987-10-27','AA','112'),('1987-10-27','AA','123'),('1987-10-27','AA','123'),('1987-10-27','AA','160'),('1987-10-27','AA','165'),('1987-10-27','AA','165'),('1987-10-27','AA','165'),('1987-10-27','AA','176'),('1987-10-27','AA','176'),('1987-10-27','AA','176'),('1987-10-27','AA','176'),('1987-10-27','AA','179'),('1987-10-27','AA','179'),('1987-10-27','AA','215'),('1987-10-27','AA','215'),('1987-10-27','AA','231'),('1987-10-27','AA','263'),('1987-10-27','AA','263'),('1987-10-27','AA','268'),('1987-10-27','AA','268'),('1987-10-27','AA','281'),('1987-10-27','AA','287'),('1987-10-27','AA','287'),('1987-10-27','AA','309'),('1987-10-27','AA','309'),('1987-10-27','AA','309'),('1987-10-27','AA','341'),('1987-10-27','AA','344'),('1987-10-27','AA','344'),('1987-10-27','AA','347'),('1987-10-27','AA','347'),('1987-10-27','AA','368'),('1987-10-27','AA','381'),('1987-10-27','AA','381'),('1987-10-27','AA','381'),('1987-10-27','AA','396'),('1987-10-27','AA','396'),('1987-10-27','AA','397'),('1987-10-27','AA','397'),('1987-10-27','AA','417'),('1987-10-27','AA','417'),('1987-10-27','AA','446'),('1987-10-27','AA','451'),('1987-10-27','AA','451'),('1987-10-27','AA','460'),('1987-10-27','AA','460'),('1987-10-27','AA','491'),('1987-10-27','AA','504'),('1987-10-27','AA','504'),('1987-10-27','AA','519'),('1987-10-27','AA','519'),('1987-10-27','AA','523'),('1987-10-27','AA','523'),('1987-10-27','AA','525'),('1987-10-27','AA','525'),('1987-10-27','AA','525'),('1987-10-27','AA','533'),('1987-10-27','AA','533'),('1987-10-27','AA','533'),('1987-10-27','AA','546'),('1987-10-27','AA','546'),('1987-10-27','AA','546'),('1987-10-27','AA','546'),('1987-10-27','AA','556'),('1987-10-27','AA','556'),('1987-10-27','AA','556'),('1987-10-27','AA','597'),('1987-10-27','AA','597'),('1987-10-27','AA','597'),('1987-10-27','AA','601'),('1987-10-27','AA','601'),('1987-10-27','AA','627'),('1987-10-27','AA','629'),('1987-10-27','AA','629'),('1987-10-27','AA','670'),('1987-10-27','AA','673'),('1987-10-27','AA','673'),('1987-10-27','AA','680'),('1987-10-27','AA','680'),('1987-10-27','AA','817'),('1987-10-27','AA','817'),('1987-10-27','AA','824'),('1987-10-27','AA','824'),('1987-10-27','AA','824'),('1987-10-27','AA','824'),('1987-10-27','AA','832'),('1987-10-27','AA','832'),('1987-10-27','AA','852'),('1987-10-27','AA','852'),('1987-10-27','AA','866'),('1987-10-27','AA','866'),('1987-10-27','AA','871'),('1987-10-27','AA','871'),('1987-10-27','AA','880'),('1987-10-27','AA','880'),('1987-10-27','AA','880'),('1987-10-27','AA','880'),('1987-10-27','AA','883'),('1987-10-27','AA','883'),('1987-10-27','AA','885'),('1987-10-27','AA','885'),('1987-10-27','AA','885'),('1987-10-27','AA','890'),('1987-10-27','AA','890'),('1987-10-27','AA','893'),('1987-10-27','AA','893'),('1987-10-27','AA','905'),('1987-10-27','AA','905'),('1987-10-27','AA','915'),('1987-10-27','AA','929'),('1987-10-27','AA','929'),('1987-10-27','AA','936'),('1987-10-27','AA','936'),('1987-10-27','AA','937'),('1987-10-27','AA','937'),('1987-10-27','AA','955'),('1987-10-27','AA','955'),('1987-10-27','AA','966'),('1987-10-27','AA','1002'),('1987-10-27','AA','1002'),('1987-10-27','AA','1004'),('1987-10-27','AA','1004'),('1987-10-27','AA','1015'),('1987-10-27','AA','1015'),('1987-10-27','AA','1021'),('1987-10-27','AA','1021'),('1987-10-27','AA','1041'),('1987-10-27','AA','1041'),('1987-10-27','AA','1046'),('1987-10-27','AA','1046'),('1987-10-27','AA','1048'),('1987-10-27','AA','1061'),('1987-10-27','AA','1061'),('1987-10-27','AA','1088'),('1987-10-27','AA','1088'),('1987-10-27','AA','2033'),('1987-10-27','AA','2033'),('1987-10-27','AA','2050'),('1987-10-27','AA','2058'),('1987-10-27','AA','2071'),('1987-10-27','AA','2071'),('1987-10-27','AA','2086'),('1987-10-27','AA','2105'),('1987-10-27','AA','2111'),('1987-10-27','AA','2123'),('1987-10-27','AA','2123'),('1987-10-27','AA','2147'),('1987-10-27','AA','2147'),('1987-10-27','AA','2199'),('1987-10-27','AA','2199'),('1987-10-27','AA','2207'),('1987-10-27','AA','2207'),('1987-10-27','AA','2217'),('1987-10-27','AA','2230'),('1987-10-27','AA','2245'),('1987-10-27','AA','2251'),('1987-10-27','AA','2251'),('1987-10-27','AA','2275'),('1987-10-27','AA','2278'),('1987-10-27','AA','2357'),('1987-10-27','AA','2490'),('1987-10-27','AA','2528'),('1987-10-27','AA','2528'),('1987-10-27','AA','2735'),('1987-10-27','AA','2735'),('1987-10-27','AL','2'),('1987-10-27','AL','2'),('1987-10-27','AL','7'),('1987-10-27','AL','7'),('1987-10-27','AL','26'),('1987-10-27','AL','26'),('1987-10-27','AL','34'),('1987-10-27','AL','34'),('1987-10-27','AL','36'),('1987-10-27','AL','36'),('1987-10-27','AL','45'),('1987-10-27','AL','45'),('1987-10-27','AL','45'),('1987-10-27','AL','91'),('1987-10-27','AL','91'),('1987-10-27','AL','104'),('1987-10-27','AL','104'),('1987-10-27','AL','104'),('1987-10-27','AL','109'),('1987-10-27','AL','112'),('1987-10-27','AL','112'),('1987-10-27','AL','123'),('1987-10-27','AL','149'),('1987-10-27','AL','160'),('1987-10-27','AL','160'),('1987-10-27','AL','165'),('1987-10-27','AL','171'),('1987-10-27','AL','171'),('1987-10-27','AL','176'),('1987-10-27','AL','176'),('1987-10-27','AL','179'),('1987-10-27','AL','215'),('1987-10-27','AL','231'),('1987-10-27','AL','263'),('1987-10-27','AL','263'),('1987-10-27','AL','268'),('1987-10-27','AL','268'),('1987-10-27','AL','268'),('1987-10-27','AL','281'),('1987-10-27','AL','281'),('1987-10-27','AL','287'),('1987-10-27','AL','287'),('1987-10-27','AL','309'),('1987-10-27','AL','309'),('1987-10-27','AL','341'),('1987-10-27','AL','344'),('1987-10-27','AL','344'),('1987-10-27','AL','357'),('1987-10-27','AL','357'),('1987-10-27','AL','368'),('1987-10-27','AL','381'),('1987-10-27','AL','396'),('1987-10-27','AL','397'),('1987-10-27','AL','397'),('1987-10-27','AL','416'),('1987-10-27','AL','416'),('1987-10-27','AL','417'),('1987-10-27','AL','438'),('1987-10-27','AL','438'),('1987-10-27','AL','446'),('1987-10-27','AL','451'),('1987-10-27','AL','451'),('1987-10-27','AL','491'),('1987-10-27','AL','491'),('1987-10-27','AL','523'),('1987-10-27','AL','523'),('1987-10-27','AL','523'),('1987-10-27','AL','525'),('1987-10-27','AL','525'),('1987-10-27','AL','533'),('1987-10-27','AL','533'),('1987-10-27','AL','546'),('1987-10-27','AL','546'),('1987-10-27','AL','556'),('1987-10-27','AL','556'),('1987-10-27','AL','601'),('1987-10-27','AL','601'),('1987-10-27','AL','627'),('1987-10-27','AL','629'),('1987-10-27','AL','670'),('1987-10-27','AL','670'),('1987-10-27','AL','670'),('1987-10-27','AL','673'),('1987-10-27','AL','680'),('1987-10-28','AA','2'),('1987-10-28','AA','2'),('1987-10-28','AA','2'),('1987-10-28','AA','7'),('1987-10-28','AA','7'),('1987-10-28','AA','26'),('1987-10-28','AA','34'),('1987-10-28','AA','36'),('1987-10-28','AA','91'),('1987-10-28','AA','101'),('1987-10-28','AA','101'),('1987-10-28','AA','109'),('1987-10-28','AA','109'),('1987-10-28','AA','112'),('1987-10-28','AA','123'),('1987-10-28','AA','123'),('1987-10-28','AA','165'),('1987-10-28','AA','165'),('1987-10-28','AA','165'),('1987-10-28','AA','176'),('1987-10-28','AA','176'),('1987-10-28','AA','176'),('1987-10-28','AA','176'),('1987-10-28','AA','179'),('1987-10-28','AA','179'),('1987-10-28','AA','215'),('1987-10-28','AA','215'),('1987-10-28','AA','231'),('1987-10-28','AA','231'),('1987-10-28','AA','263'),('1987-10-28','AA','268'),('1987-10-28','AA','268'),('1987-10-28','AA','281'),('1987-10-28','AA','287'),('1987-10-28','AA','287'),('1987-10-28','AA','309'),('1987-10-28','AA','309'),('1987-10-28','AA','309'),('1987-10-28','AA','341'),('1987-10-28','AA','344'),('1987-10-28','AA','344'),('1987-10-28','AA','347'),('1987-10-28','AA','347'),('1987-10-28','AA','368'),('1987-10-28','AA','381'),('1987-10-28','AA','381'),('1987-10-28','AA','381'),('1987-10-28','AA','396'),('1987-10-28','AA','396'),('1987-10-28','AA','397'),('1987-10-28','AA','397'),('1987-10-28','AA','417'),('1987-10-28','AA','417'),('1987-10-28','AA','446'),('1987-10-28','AA','451'),('1987-10-28','AA','451'),('1987-10-28','AA','460'),('1987-10-28','AA','460'),('1987-10-28','AA','491'),('1987-10-28','AA','504'),('1987-10-28','AA','504'),('1987-10-28','AA','519'),('1987-10-28','AA','519'),('1987-10-28','AA','523'),('1987-10-28','AA','523'),('1987-10-28','AA','525'),('1987-10-28','AA','525'),('1987-10-28','AA','525'),('1987-10-28','AA','533'),('1987-10-28','AA','533'),('1987-10-28','AA','533'),('1987-10-28','AA','546'),('1987-10-28','AA','546'),('1987-10-28','AA','546'),('1987-10-28','AA','546'),('1987-10-28','AA','556'),('1987-10-28','AA','556'),('1987-10-28','AA','556'),('1987-10-28','AA','597'),('1987-10-28','AA','597'),('1987-10-28','AA','597'),('1987-10-28','AA','601'),('1987-10-28','AA','601'),('1987-10-28','AA','627'),('1987-10-28','AA','629'),('1987-10-28','AA','629'),('1987-10-28','AA','670'),('1987-10-28','AA','673'),('1987-10-28','AA','673'),('1987-10-28','AA','680'),('1987-10-28','AA','680'),('1987-10-28','AA','817'),('1987-10-28','AA','817'),('1987-10-28','AA','824'),('1987-10-28','AA','824'),('1987-10-28','AA','824'),('1987-10-28','AA','832'),('1987-10-28','AA','832'),('1987-10-28','AA','852'),('1987-10-28','AA','852'),('1987-10-28','AA','866'),('1987-10-28','AA','866'),('1987-10-28','AA','871'),('1987-10-28','AA','871'),('1987-10-28','AA','880'),('1987-10-28','AA','880'),('1987-10-28','AA','880'),('1987-10-28','AA','880'),('1987-10-28','AA','883'),('1987-10-28','AA','883'),('1987-10-28','AA','885'),('1987-10-28','AA','885'),('1987-10-28','AA','890'),('1987-10-28','AA','890'),('1987-10-28','AA','893'),('1987-10-28','AA','893'),('1987-10-28','AA','905'),('1987-10-28','AA','905'),('1987-10-28','AA','915'),('1987-10-28','AA','929'),('1987-10-28','AA','929'),('1987-10-28','AA','936'),('1987-10-28','AA','936'),('1987-10-28','AA','937'),('1987-10-28','AA','937'),('1987-10-28','AA','955'),('1987-10-28','AA','955'),('1987-10-28','AA','966'),('1987-10-28','AA','1002'),('1987-10-28','AA','1002'),('1987-10-28','AA','1004'),('1987-10-28','AA','1004'),('1987-10-28','AA','1015'),('1987-10-28','AA','1021'),('1987-10-28','AA','1021'),('1987-10-28','AA','1041'),('1987-10-28','AA','1041'),('1987-10-28','AA','1046'),('1987-10-28','AA','1046'),('1987-10-28','AA','1048'),('1987-10-28','AA','1048'),('1987-10-28','AA','1061'),('1987-10-28','AA','1061'),('1987-10-28','AA','1088'),('1987-10-28','AA','1088'),('1987-10-28','AA','2033'),('1987-10-28','AA','2033'),('1987-10-28','AA','2050'),('1987-10-28','AA','2058'),('1987-10-28','AA','2071'),('1987-10-28','AA','2071'),('1987-10-28','AA','2086'),('1987-10-28','AA','2105'),('1987-10-28','AA','2111'),('1987-10-28','AA','2123'),('1987-10-28','AA','2123'),('1987-10-28','AA','2147'),('1987-10-28','AA','2199'),('1987-10-28','AA','2199'),('1987-10-28','AA','2207'),('1987-10-28','AA','2207'),('1987-10-28','AA','2217'),('1987-10-28','AA','2230'),('1987-10-28','AA','2245'),('1987-10-28','AA','2251'),('1987-10-28','AA','2251'),('1987-10-28','AA','2275'),('1987-10-28','AA','2278'),('1987-10-28','AA','2351'),('1987-10-28','AA','2361'),('1987-10-28','AA','2490'),('1987-10-28','AA','2528'),('1987-10-28','AA','2528'),('1987-10-28','AA','2751'),('1987-10-28','AL','2'),('1987-10-28','AL','2'),('1987-10-28','AL','7'),('1987-10-28','AL','7'),('1987-10-28','AL','26'),('1987-10-28','AL','34'),('1987-10-28','AL','34'),('1987-10-28','AL','45'),('1987-10-28','AL','91'),('1987-10-28','AL','91'),('1987-10-28','AL','104'),('1987-10-28','AL','104'),('1987-10-28','AL','104'),('1987-10-28','AL','109'),('1987-10-28','AL','112'),('1987-10-28','AL','112'),('1987-10-28','AL','123'),('1987-10-28','AL','149'),('1987-10-28','AL','160'),('1987-10-28','AL','160'),('1987-10-28','AL','165'),('1987-10-28','AL','171'),('1987-10-28','AL','171'),('1987-10-28','AL','176'),('1987-10-28','AL','176'),('1987-10-28','AL','179'),('1987-10-28','AL','215'),('1987-10-28','AL','231'),('1987-10-28','AL','263'),('1987-10-28','AL','263'),('1987-10-28','AL','268'),('1987-10-28','AL','268'),('1987-10-28','AL','268'),('1987-10-28','AL','281'),('1987-10-28','AL','281'),('1987-10-28','AL','287'),('1987-10-28','AL','287'),('1987-10-28','AL','309'),('1987-10-28','AL','309'),('1987-10-28','AL','341'),('1987-10-28','AL','344'),('1987-10-28','AL','344'),('1987-10-28','AL','357'),('1987-10-28','AL','357'),('1987-10-28','AL','368'),('1987-10-28','AL','381'),('1987-10-28','AL','396'),('1987-10-28','AL','397'),('1987-10-28','AL','397'),('1987-10-28','AL','416'),('1987-10-28','AL','416'),('1987-10-28','AL','417'),('1987-10-28','AL','438'),('1987-10-28','AL','438'),('1987-10-28','AL','446'),('1987-10-28','AL','451'),('1987-10-28','AL','451'),('1987-10-28','AL','491'),('1987-10-28','AL','491'),('1987-10-28','AL','523'),('1987-10-28','AL','523'),('1987-10-28','AL','523'),('1987-10-28','AL','525'),('1987-10-28','AL','525'),('1987-10-28','AL','533'),('1987-10-28','AL','533'),('1987-10-28','AL','546'),('1987-10-28','AL','546'),('1987-10-28','AL','556'),('1987-10-28','AL','556'),('1987-10-28','AL','601'),('1987-10-28','AL','601'),('1987-10-28','AL','627'),('1987-10-28','AL','629'),('1987-10-28','AL','670'),('1987-10-28','AL','670'),('1987-10-28','AL','670'),('1987-10-28','AL','673'),('1987-10-28','AL','680'),('1987-10-29','AA','2'),('1987-10-29','AA','2'),('1987-10-29','AA','2'),('1987-10-29','AA','7'),('1987-10-29','AA','7'),('1987-10-29','AA','26'),('1987-10-29','AA','34'),('1987-10-29','AA','36'),('1987-10-29','AA','91'),('1987-10-29','AA','101'),('1987-10-29','AA','101'),('1987-10-29','AA','109'),('1987-10-29','AA','109'),('1987-10-29','AA','112'),('1987-10-29','AA','123'),('1987-10-29','AA','123'),('1987-10-29','AA','160'),('1987-10-29','AA','165'),('1987-10-29','AA','165'),('1987-10-29','AA','165'),('1987-10-29','AA','176'),('1987-10-29','AA','176'),('1987-10-29','AA','176'),('1987-10-29','AA','176'),('1987-10-29','AA','179'),('1987-10-29','AA','179'),('1987-10-29','AA','215'),('1987-10-29','AA','215'),('1987-10-29','AA','231'),('1987-10-29','AA','231'),('1987-10-29','AA','263'),('1987-10-29','AA','263'),('1987-10-29','AA','268'),('1987-10-29','AA','268'),('1987-10-29','AA','281'),('1987-10-29','AA','287'),('1987-10-29','AA','287'),('1987-10-29','AA','309'),('1987-10-29','AA','309'),('1987-10-29','AA','309'),('1987-10-29','AA','341'),('1987-10-29','AA','344'),('1987-10-29','AA','344'),('1987-10-29','AA','347'),('1987-10-29','AA','347'),('1987-10-29','AA','368'),('1987-10-29','AA','381'),('1987-10-29','AA','381'),('1987-10-29','AA','381'),('1987-10-29','AA','396'),('1987-10-29','AA','396'),('1987-10-29','AA','397'),('1987-10-29','AA','397'),('1987-10-29','AA','417'),('1987-10-29','AA','417'),('1987-10-29','AA','451'),('1987-10-29','AA','451'),('1987-10-29','AA','460'),('1987-10-29','AA','460'),('1987-10-29','AA','491'),('1987-10-29','AA','504'),('1987-10-29','AA','504'),('1987-10-29','AA','519'),('1987-10-29','AA','519'),('1987-10-29','AA','523'),('1987-10-29','AA','523'),('1987-10-29','AA','525'),('1987-10-29','AA','525'),('1987-10-29','AA','525'),('1987-10-29','AA','533'),('1987-10-29','AA','533'),('1987-10-29','AA','533'),('1987-10-29','AA','546'),('1987-10-29','AA','546'),('1987-10-29','AA','546'),('1987-10-29','AA','546'),('1987-10-29','AA','556'),('1987-10-29','AA','556'),('1987-10-29','AA','556'),('1987-10-29','AA','597'),('1987-10-29','AA','597'),('1987-10-29','AA','597'),('1987-10-29','AA','601'),('1987-10-29','AA','601'),('1987-10-29','AA','627'),('1987-10-29','AA','629'),('1987-10-29','AA','670'),('1987-10-29','AA','673'),('1987-10-29','AA','680'),('1987-10-29','AA','680'),('1987-10-29','AA','817'),('1987-10-29','AA','817'),('1987-10-29','AA','824'),('1987-10-29','AA','824'),('1987-10-29','AA','824'),('1987-10-29','AA','824'),('1987-10-29','AA','832'),('1987-10-29','AA','832'),('1987-10-29','AA','852'),('1987-10-29','AA','852'),('1987-10-29','AA','866'),('1987-10-29','AA','866'),('1987-10-29','AA','871'),('1987-10-29','AA','871'),('1987-10-29','AA','880'),('1987-10-29','AA','880'),('1987-10-29','AA','880'),('1987-10-29','AA','880'),('1987-10-29','AA','883'),('1987-10-29','AA','883'),('1987-10-29','AA','885'),('1987-10-29','AA','885'),('1987-10-29','AA','885'),('1987-10-29','AA','890'),('1987-10-29','AA','890'),('1987-10-29','AA','893'),('1987-10-29','AA','893'),('1987-10-29','AA','905'),('1987-10-29','AA','915'),('1987-10-29','AA','929'),('1987-10-29','AA','929'),('1987-10-29','AA','936'),('1987-10-29','AA','936'),('1987-10-29','AA','937'),('1987-10-29','AA','937'),('1987-10-29','AA','955'),('1987-10-29','AA','955'),('1987-10-29','AA','966'),('1987-10-29','AA','1002'),('1987-10-29','AA','1002'),('1987-10-29','AA','1004'),('1987-10-29','AA','1004'),('1987-10-29','AA','1015'),('1987-10-29','AA','1015'),('1987-10-29','AA','1021'),('1987-10-29','AA','1021'),('1987-10-29','AA','1041'),('1987-10-29','AA','1041'),('1987-10-29','AA','1046'),('1987-10-29','AA','1048'),('1987-10-29','AA','1048'),('1987-10-29','AA','1061'),('1987-10-29','AA','1061'),('1987-10-29','AA','1088'),('1987-10-29','AA','1088'),('1987-10-29','AA','2033'),('1987-10-29','AA','2033'),('1987-10-29','AA','2050'),('1987-10-29','AA','2058'),('1987-10-29','AA','2071'),('1987-10-29','AA','2071'),('1987-10-29','AA','2086'),('1987-10-29','AA','2105'),('1987-10-29','AA','2111'),('1987-10-29','AA','2123'),('1987-10-29','AA','2123'),('1987-10-29','AA','2147'),('1987-10-29','AA','2147'),('1987-10-29','AA','2199'),('1987-10-29','AA','2199'),('1987-10-29','AA','2207'),('1987-10-29','AA','2207'),('1987-10-29','AA','2217'),('1987-10-29','AA','2230'),('1987-10-29','AA','2251'),('1987-10-29','AA','2251'),('1987-10-29','AA','2275'),('1987-10-29','AA','2278'),('1987-10-29','AA','2351'),('1987-10-29','AA','2357'),('1987-10-29','AA','2361'),('1987-10-29','AA','2490'),('1987-10-29','AA','2528'),('1987-10-29','AA','2735'),('1987-10-29','AA','2735'),('1987-10-29','AA','2751'),('1987-10-29','AL','2'),('1987-10-29','AL','2'),('1987-10-29','AL','7'),('1987-10-29','AL','7'),('1987-10-29','AL','26'),('1987-10-29','AL','26'),('1987-10-29','AL','34'),('1987-10-29','AL','34'),('1987-10-29','AL','36'),('1987-10-29','AL','36'),('1987-10-29','AL','45'),('1987-10-29','AL','45'),('1987-10-29','AL','45'),('1987-10-29','AL','91'),('1987-10-29','AL','91'),('1987-10-29','AL','104'),('1987-10-29','AL','109'),('1987-10-29','AL','112'),('1987-10-29','AL','112'),('1987-10-29','AL','123'),('1987-10-29','AL','149'),('1987-10-29','AL','160'),('1987-10-29','AL','160'),('1987-10-29','AL','165'),('1987-10-29','AL','171'),('1987-10-29','AL','171'),('1987-10-29','AL','176'),('1987-10-29','AL','176'),('1987-10-29','AL','179'),('1987-10-29','AL','215'),('1987-10-29','AL','231'),('1987-10-29','AL','263'),('1987-10-29','AL','263'),('1987-10-29','AL','268'),('1987-10-29','AL','268'),('1987-10-29','AL','268'),('1987-10-29','AL','281'),('1987-10-29','AL','281'),('1987-10-29','AL','287'),('1987-10-29','AL','287'),('1987-10-29','AL','309'),('1987-10-29','AL','309'),('1987-10-29','AL','341'),('1987-10-29','AL','344'),('1987-10-29','AL','344'),('1987-10-29','AL','357'),('1987-10-29','AL','357'),('1987-10-29','AL','368'),('1987-10-29','AL','381'),('1987-10-29','AL','396'),('1987-10-29','AL','397'),('1987-10-29','AL','397'),('1987-10-29','AL','416'),('1987-10-29','AL','416'),('1987-10-29','AL','417'),('1987-10-29','AL','438'),('1987-10-29','AL','438'),('1987-10-29','AL','446'),('1987-10-29','AL','451'),('1987-10-29','AL','451'),('1987-10-29','AL','491'),('1987-10-29','AL','491'),('1987-10-29','AL','523'),('1987-10-29','AL','523'),('1987-10-29','AL','523'),('1987-10-29','AL','525'),('1987-10-29','AL','525'),('1987-10-29','AL','533'),('1987-10-29','AL','533'),('1987-10-29','AL','546'),('1987-10-29','AL','546'),('1987-10-29','AL','556'),('1987-10-29','AL','556'),('1987-10-29','AL','601'),('1987-10-29','AL','601'),('1987-10-29','AL','627'),('1987-10-29','AL','629'),('1987-10-29','AL','670'),('1987-10-29','AL','670'),('1987-10-29','AL','670'),('1987-10-29','AL','673'),('1987-10-29','AL','680'),('1987-10-30','AA','2'),('1987-10-30','AA','2'),('1987-10-30','AA','2'),('1987-10-30','AA','7'),('1987-10-30','AA','7'),('1987-10-30','AA','26'),('1987-10-30','AA','34'),('1987-10-30','AA','91'),('1987-10-30','AA','101'),('1987-10-30','AA','101'),('1987-10-30','AA','109'),('1987-10-30','AA','109'),('1987-10-30','AA','109'),('1987-10-30','AA','112'),('1987-10-30','AA','123'),('1987-10-30','AA','165'),('1987-10-30','AA','165'),('1987-10-30','AA','165'),('1987-10-30','AA','176'),('1987-10-30','AA','176'),('1987-10-30','AA','176'),('1987-10-30','AA','176'),('1987-10-30','AA','179'),('1987-10-30','AA','179'),('1987-10-30','AA','215'),('1987-10-30','AA','215'),('1987-10-30','AA','231'),('1987-10-30','AA','231'),('1987-10-30','AA','263'),('1987-10-30','AA','268'),('1987-10-30','AA','268'),('1987-10-30','AA','281'),('1987-10-30','AA','287'),('1987-10-30','AA','287'),('1987-10-30','AA','309'),('1987-10-30','AA','309'),('1987-10-30','AA','309'),('1987-10-30','AA','344'),('1987-10-30','AA','344'),('1987-10-30','AA','347'),('1987-10-30','AA','347'),('1987-10-30','AA','368'),('1987-10-30','AA','381'),('1987-10-30','AA','381'),('1987-10-30','AA','381'),('1987-10-30','AA','396'),('1987-10-30','AA','396'),('1987-10-30','AA','397'),('1987-10-30','AA','397'),('1987-10-30','AA','417'),('1987-10-30','AA','417'),('1987-10-30','AA','446'),('1987-10-30','AA','451'),('1987-10-30','AA','451'),('1987-10-30','AA','460'),('1987-10-30','AA','460'),('1987-10-30','AA','491'),('1987-10-30','AA','504'),('1987-10-30','AA','504'),('1987-10-30','AA','519'),('1987-10-30','AA','519'),('1987-10-30','AA','523'),('1987-10-30','AA','523'),('1987-10-30','AA','525'),('1987-10-30','AA','525'),('1987-10-30','AA','525'),('1987-10-30','AA','533'),('1987-10-30','AA','533'),('1987-10-30','AA','533'),('1987-10-30','AA','546'),('1987-10-30','AA','546'),('1987-10-30','AA','546'),('1987-10-30','AA','546'),('1987-10-30','AA','556'),('1987-10-30','AA','556'),('1987-10-30','AA','556'),('1987-10-30','AA','597'),('1987-10-30','AA','597'),('1987-10-30','AA','597'),('1987-10-30','AA','601'),('1987-10-30','AA','601'),('1987-10-30','AA','627'),('1987-10-30','AA','629'),('1987-10-30','AA','629'),('1987-10-30','AA','670'),('1987-10-30','AA','673'),('1987-10-30','AA','673'),('1987-10-30','AA','680'),('1987-10-30','AA','817'),('1987-10-30','AA','817'),('1987-10-30','AA','824'),('1987-10-30','AA','824'),('1987-10-30','AA','824'),('1987-10-30','AA','824'),('1987-10-30','AA','832'),('1987-10-30','AA','832'),('1987-10-30','AA','852'),('1987-10-30','AA','866'),('1987-10-30','AA','866'),('1987-10-30','AA','871'),('1987-10-30','AA','871'),('1987-10-30','AA','880'),('1987-10-30','AA','880'),('1987-10-30','AA','880'),('1987-10-30','AA','880'),('1987-10-30','AA','883'),('1987-10-30','AA','883'),('1987-10-30','AA','885'),('1987-10-30','AA','885'),('1987-10-30','AA','885'),('1987-10-30','AA','890'),('1987-10-30','AA','890'),('1987-10-30','AA','893'),('1987-10-30','AA','893'),('1987-10-30','AA','905'),('1987-10-30','AA','905'),('1987-10-30','AA','915'),('1987-10-30','AA','929'),('1987-10-30','AA','929'),('1987-10-30','AA','936'),('1987-10-30','AA','936'),('1987-10-30','AA','937'),('1987-10-30','AA','937'),('1987-10-30','AA','955'),('1987-10-30','AA','955'),('1987-10-30','AA','966'),('1987-10-30','AA','1002'),('1987-10-30','AA','1002'),('1987-10-30','AA','1004'),('1987-10-30','AA','1004'),('1987-10-30','AA','1015'),('1987-10-30','AA','1015'),('1987-10-30','AA','1021'),('1987-10-30','AA','1021'),('1987-10-30','AA','1041'),('1987-10-30','AA','1041'),('1987-10-30','AA','1046'),('1987-10-30','AA','1046'),('1987-10-30','AA','1048'),('1987-10-30','AA','1048'),('1987-10-30','AA','1061'),('1987-10-30','AA','1061'),('1987-10-30','AA','1088'),('1987-10-30','AA','1088'),('1987-10-30','AA','2033'),('1987-10-30','AA','2033'),('1987-10-30','AA','2050'),('1987-10-30','AA','2058'),('1987-10-30','AA','2071'),('1987-10-30','AA','2071'),('1987-10-30','AA','2086'),('1987-10-30','AA','2105'),('1987-10-30','AA','2111'),('1987-10-30','AA','2123'),('1987-10-30','AA','2123'),('1987-10-30','AA','2147'),('1987-10-30','AA','2147'),('1987-10-30','AA','2199'),('1987-10-30','AA','2199'),('1987-10-30','AA','2207'),('1987-10-30','AA','2207'),('1987-10-30','AA','2217'),('1987-10-30','AA','2230'),('1987-10-30','AA','2245'),('1987-10-30','AA','2251'),('1987-10-30','AA','2275'),('1987-10-30','AA','2278'),('1987-10-30','AA','2351'),('1987-10-30','AA','2357'),('1987-10-30','AA','2361'),('1987-10-30','AA','2490'),('1987-10-30','AA','2528'),('1987-10-30','AA','2528'),('1987-10-30','AA','2735'),('1987-10-30','AA','2735'),('1987-10-30','AA','2751'),('1987-10-30','AL','2'),('1987-10-30','AL','2'),('1987-10-30','AL','7'),('1987-10-30','AL','7'),('1987-10-30','AL','26'),('1987-10-30','AL','26'),('1987-10-30','AL','34'),('1987-10-30','AL','34'),('1987-10-30','AL','36'),('1987-10-30','AL','36'),('1987-10-30','AL','45'),('1987-10-30','AL','45'),('1987-10-30','AL','45'),('1987-10-30','AL','91'),('1987-10-30','AL','91'),('1987-10-30','AL','104'),('1987-10-30','AL','104'),('1987-10-30','AL','104'),('1987-10-30','AL','109'),('1987-10-30','AL','112'),('1987-10-30','AL','112'),('1987-10-30','AL','123'),('1987-10-30','AL','149'),('1987-10-30','AL','160'),('1987-10-30','AL','160'),('1987-10-30','AL','165'),('1987-10-30','AL','171'),('1987-10-30','AL','171'),('1987-10-30','AL','176'),('1987-10-30','AL','176'),('1987-10-30','AL','179'),('1987-10-30','AL','215'),('1987-10-30','AL','231'),('1987-10-30','AL','263'),('1987-10-30','AL','263'),('1987-10-30','AL','268'),('1987-10-30','AL','268'),('1987-10-30','AL','268'),('1987-10-30','AL','281'),('1987-10-30','AL','281'),('1987-10-30','AL','287'),('1987-10-30','AL','287'),('1987-10-30','AL','309'),('1987-10-30','AL','309'),('1987-10-30','AL','341'),('1987-10-30','AL','344'),('1987-10-30','AL','344'),('1987-10-30','AL','357'),('1987-10-30','AL','357'),('1987-10-30','AL','368'),('1987-10-30','AL','381'),('1987-10-30','AL','396'),('1987-10-30','AL','397'),('1987-10-30','AL','397'),('1987-10-30','AL','416'),('1987-10-30','AL','416'),('1987-10-30','AL','417'),('1987-10-30','AL','438'),('1987-10-30','AL','438'),('1987-10-30','AL','446'),('1987-10-30','AL','451'),('1987-10-30','AL','451'),('1987-10-30','AL','491'),('1987-10-30','AL','491'),('1987-10-30','AL','523'),('1987-10-30','AL','523'),('1987-10-30','AL','523'),('1987-10-30','AL','525'),('1987-10-30','AL','525'),('1987-10-30','AL','533'),('1987-10-30','AL','533'),('1987-10-30','AL','546'),('1987-10-30','AL','546'),('1987-10-30','AL','556'),('1987-10-30','AL','556'),('1987-10-30','AL','601'),('1987-10-30','AL','601'),('1987-10-30','AL','627'),('1987-10-30','AL','629'),('1987-10-30','AL','670'),('1987-10-30','AL','670'),('1987-10-30','AL','670'),('1987-10-30','AL','673'),('1987-10-30','AL','680'),('1987-10-31','AA','2'),('1987-10-31','AA','2'),('1987-10-31','AA','2'),('1987-10-31','AA','7'),('1987-10-31','AA','7'),('1987-10-31','AA','26'),('1987-10-31','AA','34'),('1987-10-31','AA','36'),('1987-10-31','AA','91'),('1987-10-31','AA','101'),('1987-10-31','AA','101'),('1987-10-31','AA','109'),('1987-10-31','AA','109'),('1987-10-31','AA','112'),('1987-10-31','AA','123'),('1987-10-31','AA','123'),('1987-10-31','AA','160'),('1987-10-31','AA','165'),('1987-10-31','AA','165'),('1987-10-31','AA','165'),('1987-10-31','AA','176'),('1987-10-31','AA','176'),('1987-10-31','AA','176'),('1987-10-31','AA','176'),('1987-10-31','AA','179'),('1987-10-31','AA','179'),('1987-10-31','AA','215'),('1987-10-31','AA','215'),('1987-10-31','AA','231'),('1987-10-31','AA','263'),('1987-10-31','AA','268'),('1987-10-31','AA','268'),('1987-10-31','AA','281'),('1987-10-31','AA','287'),('1987-10-31','AA','287'),('1987-10-31','AA','309'),('1987-10-31','AA','309'),('1987-10-31','AA','309'),('1987-10-31','AA','341'),('1987-10-31','AA','344'),('1987-10-31','AA','344'),('1987-10-31','AA','347'),('1987-10-31','AA','347'),('1987-10-31','AA','368'),('1987-10-31','AA','381'),('1987-10-31','AA','381'),('1987-10-31','AA','381'),('1987-10-31','AA','396'),('1987-10-31','AA','396'),('1987-10-31','AA','397'),('1987-10-31','AA','417'),('1987-10-31','AA','417'),('1987-10-31','AA','446'),('1987-10-31','AA','451'),('1987-10-31','AA','451'),('1987-10-31','AA','491'),('1987-10-31','AA','491'),('1987-10-31','AA','504'),('1987-10-31','AA','504'),('1987-10-31','AA','519'),('1987-10-31','AA','519'),('1987-10-31','AA','523'),('1987-10-31','AA','523'),('1987-10-31','AA','525'),('1987-10-31','AA','525'),('1987-10-31','AA','533'),('1987-10-31','AA','533'),('1987-10-31','AA','546'),('1987-10-31','AA','546'),('1987-10-31','AA','546'),('1987-10-31','AA','546'),('1987-10-31','AA','556'),('1987-10-31','AA','556'),('1987-10-31','AA','556'),('1987-10-31','AA','597'),('1987-10-31','AA','597'),('1987-10-31','AA','597'),('1987-10-31','AA','601'),('1987-10-31','AA','601'),('1987-10-31','AA','627'),('1987-10-31','AA','629'),('1987-10-31','AA','670'),('1987-10-31','AA','673'),('1987-10-31','AA','673'),('1987-10-31','AA','680'),('1987-10-31','AA','680'),('1987-10-31','AA','817'),('1987-10-31','AA','817'),('1987-10-31','AA','824'),('1987-10-31','AA','824'),('1987-10-31','AA','824'),('1987-10-31','AA','832'),('1987-10-31','AA','832'),('1987-10-31','AA','852'),('1987-10-31','AA','852'),('1987-10-31','AA','866'),('1987-10-31','AA','871'),('1987-10-31','AA','871'),('1987-10-31','AA','880'),('1987-10-31','AA','880'),('1987-10-31','AA','880'),('1987-10-31','AA','883'),('1987-10-31','AA','885'),('1987-10-31','AA','885'),('1987-10-31','AA','885'),('1987-10-31','AA','890'),('1987-10-31','AA','890'),('1987-10-31','AA','893'),('1987-10-31','AA','893'),('1987-10-31','AA','905'),('1987-10-31','AA','905'),('1987-10-31','AA','915'),('1987-10-31','AA','929'),('1987-10-31','AA','929'),('1987-10-31','AA','936'),('1987-10-31','AA','936'),('1987-10-31','AA','937'),('1987-10-31','AA','937'),('1987-10-31','AA','955'),('1987-10-31','AA','955'),('1987-10-31','AA','1002'),('1987-10-31','AA','1002'),('1987-10-31','AA','1004'),('1987-10-31','AA','1004'),('1987-10-31','AA','1015'),('1987-10-31','AA','1015'),('1987-10-31','AA','1021'),('1987-10-31','AA','1021'),('1987-10-31','AA','1041'),('1987-10-31','AA','1041'),('1987-10-31','AA','1046'),('1987-10-31','AA','1046'),('1987-10-31','AA','1048'),('1987-10-31','AA','1048'),('1987-10-31','AA','1061'),('1987-10-31','AA','1061'),('1987-10-31','AA','1088'),('1987-10-31','AA','1088'),('1987-10-31','AA','2033'),('1987-10-31','AA','2058'),('1987-10-31','AA','2086'),('1987-10-31','AA','2105'),('1987-10-31','AA','2123'),('1987-10-31','AA','2123'),('1987-10-31','AA','2147'),('1987-10-31','AA','2147'),('1987-10-31','AA','2199'),('1987-10-31','AA','2199'),('1987-10-31','AA','2207'),('1987-10-31','AA','2207'),('1987-10-31','AA','2217'),('1987-10-31','AA','2230'),('1987-10-31','AA','2251'),('1987-10-31','AA','2251'),('1987-10-31','AA','2275'),('1987-10-31','AA','2278'),('1987-10-31','AA','2351'),('1987-10-31','AA','2357'),('1987-10-31','AA','2361'),('1987-10-31','AA','2528'),('1987-10-31','AA','2528'),('1987-10-31','AA','2735'),('1987-10-31','AA','2735'),('1987-10-31','AL','2'),('1987-10-31','AL','2'),('1987-10-31','AL','7'),('1987-10-31','AL','7'),('1987-10-31','AL','26'),('1987-10-31','AL','26'),('1987-10-31','AL','34'),('1987-10-31','AL','34'),('1987-10-31','AL','36'),('1987-10-31','AL','36'),('1987-10-31','AL','91'),('1987-10-31','AL','91'),('1987-10-31','AL','104'),('1987-10-31','AL','104'),('1987-10-31','AL','109'),('1987-10-31','AL','112'),('1987-10-31','AL','112'),('1987-10-31','AL','149'),('1987-10-31','AL','160'),('1987-10-31','AL','160'),('1987-10-31','AL','165'),('1987-10-31','AL','171'),('1987-10-31','AL','171'),('1987-10-31','AL','176'),('1987-10-31','AL','176'),('1987-10-31','AL','179'),('1987-10-31','AL','215'),('1987-10-31','AL','231'),('1987-10-31','AL','263'),('1987-10-31','AL','268'),('1987-10-31','AL','268'),('1987-10-31','AL','268'),('1987-10-31','AL','287'),('1987-10-31','AL','287'),('1987-10-31','AL','309'),('1987-10-31','AL','309'),('1987-10-31','AL','344'),('1987-10-31','AL','344'),('1987-10-31','AL','357'),('1987-10-31','AL','357'),('1987-10-31','AL','381'),('1987-10-31','AL','396'),('1987-10-31','AL','397'),('1987-10-31','AL','397'),('1987-10-31','AL','397'),('1987-10-31','AL','416'),('1987-10-31','AL','417'),('1987-10-31','AL','438'),('1987-10-31','AL','438'),('1987-10-31','AL','451'),('1987-10-31','AL','451'),('1987-10-31','AL','491'),('1987-10-31','AL','491'),('1987-10-31','AL','523'),('1987-10-31','AL','523'),('1987-10-31','AL','525'),('1987-10-31','AL','525'),('1987-10-31','AL','533'),('1987-10-31','AL','546'),('1987-10-31','AL','546'),('1987-10-31','AL','556'),('1987-10-31','AL','556'),('1987-10-31','AL','601'),('1987-10-31','AL','601'),('1987-10-31','AL','627'),('1987-10-31','AL','670'),('1987-10-31','AL','673'),('1987-10-31','AL','680'),('1987-10-31','AL','745'),('1987-10-31','AL','797'),('1987-10-31','AL','905'),('1987-10-31','AL','936'),('1987-10-31','AL','966'),('1987-10-31','AL','982'); -SELECT ignore(finalizeAggregation(Users)) FROM (SELECT FlightDate, Carrier, uniqState(FlightNum) AS Users FROM test.ontime GROUP BY FlightDate, Carrier LIMIT 1); +SELECT ignore(finalizeAggregation(Users)) FROM (SELECT FlightDate, Carrier, uniqState(FlightNum) AS Users FROM ontime GROUP BY FlightDate, Carrier LIMIT 1); -DROP TABLE test.ontime; +DROP TABLE ontime; diff --git a/dbms/tests/queries/0_stateless/00335_bom.sh b/dbms/tests/queries/0_stateless/00335_bom.sh index 4aca4707bd1..aa1ef818026 100755 --- a/dbms/tests/queries/0_stateless/00335_bom.sh +++ b/dbms/tests/queries/0_stateless/00335_bom.sh @@ -3,9 +3,9 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -echo 'DROP TABLE IF EXISTS test.bom' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo 'CREATE TABLE test.bom (a UInt8, b UInt8, c UInt8) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo -ne '1,2,3\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.bom+FORMAT+CSV" --data-binary @- -echo -ne '\xEF\xBB\xBF4,5,6\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.bom+FORMAT+CSV" --data-binary @- -echo 'SELECT * FROM test.bom ORDER BY a' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo 'DROP TABLE test.bom' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- +echo 'DROP TABLE IF EXISTS bom' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- +echo 'CREATE TABLE bom (a UInt8, b UInt8, c UInt8) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- +echo -ne '1,2,3\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+bom+FORMAT+CSV" --data-binary @- +echo -ne '\xEF\xBB\xBF4,5,6\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+bom+FORMAT+CSV" --data-binary @- +echo 'SELECT * FROM bom ORDER BY a' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- +echo 'DROP TABLE bom' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- diff --git a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql b/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql index 40078981c47..9ec8981a573 100644 --- a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql +++ b/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql @@ -1,28 +1,28 @@ -DROP TABLE IF EXISTS test.bad_arrays; -CREATE TABLE test.bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory; +DROP TABLE IF EXISTS bad_arrays; +CREATE TABLE bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory; -INSERT INTO test.bad_arrays VALUES ([''],[]),([''],[1]); +INSERT INTO bad_arrays VALUES ([''],[]),([''],[1]); -SELECT a FROM test.bad_arrays ARRAY JOIN b; +SELECT a FROM bad_arrays ARRAY JOIN b; -DROP TABLE test.bad_arrays; +DROP TABLE bad_arrays; -DROP TABLE IF EXISTS test.bad_arrays; -CREATE TABLE test.bad_arrays (a Array(String), b Array(String)) ENGINE = Memory; +DROP TABLE IF EXISTS bad_arrays; +CREATE TABLE bad_arrays (a Array(String), b Array(String)) ENGINE = Memory; -INSERT INTO test.bad_arrays VALUES ([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['abc'],['223750']),(['ноутбук acer aspire e5-532-p3p2'],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['лучшие моноблоки 2016'],[]),(['лучшие моноблоки 2016'],[]),([''],[]),([''],[]); +INSERT INTO bad_arrays VALUES ([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['abc'],['223750']),(['ноутбук acer aspire e5-532-p3p2'],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['лучшие моноблоки 2016'],[]),(['лучшие моноблоки 2016'],[]),([''],[]),([''],[]); -SELECT a FROM test.bad_arrays ARRAY JOIN b; +SELECT a FROM bad_arrays ARRAY JOIN b; -DROP TABLE test.bad_arrays; +DROP TABLE bad_arrays; -DROP TABLE IF EXISTS test.bad_arrays; -CREATE TABLE test.bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory; +DROP TABLE IF EXISTS bad_arrays; +CREATE TABLE bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory; -INSERT INTO test.bad_arrays VALUES (['abc','def'],[1,2,3]),([],[1,2]),(['a','b'],[]),(['Hello'],[1,2]),([],[]),(['x','y','z'],[4,5,6]); +INSERT INTO bad_arrays VALUES (['abc','def'],[1,2,3]),([],[1,2]),(['a','b'],[]),(['Hello'],[1,2]),([],[]),(['x','y','z'],[4,5,6]); -SELECT a, b FROM test.bad_arrays ARRAY JOIN b; +SELECT a, b FROM bad_arrays ARRAY JOIN b; -DROP TABLE test.bad_arrays; +DROP TABLE bad_arrays; diff --git a/dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh b/dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh index 7c1d1e290f7..7363c1ea7c3 100755 --- a/dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh +++ b/dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh @@ -3,9 +3,9 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'DROP TABLE IF EXISTS test.bad_arrays' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'CREATE TABLE test.bad_arrays (a Array(String)) ENGINE = Memory' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'INSERT INTO test.bad_arrays VALUES ([123])' 2>&1 | grep -c 'Exception' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "INSERT INTO test.bad_arrays VALUES (['123', concat('Hello', ' world!'), toString(123)])" -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'SELECT * FROM test.bad_arrays' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'DROP TABLE test.bad_arrays' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'DROP TABLE IF EXISTS bad_arrays' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'CREATE TABLE bad_arrays (a Array(String)) ENGINE = Memory' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'INSERT INTO bad_arrays VALUES ([123])' 2>&1 | grep -c 'Exception' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "INSERT INTO bad_arrays VALUES (['123', concat('Hello', ' world!'), toString(123)])" +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'SELECT * FROM bad_arrays' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d 'DROP TABLE bad_arrays' diff --git a/dbms/tests/queries/0_stateless/00340_squashing_insert_select.sql b/dbms/tests/queries/0_stateless/00340_squashing_insert_select.sql index 97ce68e42af..65b82f4b4f9 100644 --- a/dbms/tests/queries/0_stateless/00340_squashing_insert_select.sql +++ b/dbms/tests/queries/0_stateless/00340_squashing_insert_select.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.numbers_squashed; -CREATE TABLE test.numbers_squashed AS system.numbers ENGINE = StripeLog; +DROP TABLE IF EXISTS numbers_squashed; +CREATE TABLE numbers_squashed AS system.numbers ENGINE = StripeLog; SET max_block_size = 10000; SET min_insert_block_size_rows = 1000000; SET min_insert_block_size_bytes = 0; -INSERT INTO test.numbers_squashed SELECT * FROM system.numbers LIMIT 10000000; -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC; +INSERT INTO numbers_squashed SELECT * FROM system.numbers LIMIT 10000000; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC; SET min_insert_block_size_bytes = 1000000; -INSERT INTO test.numbers_squashed SELECT * FROM system.numbers LIMIT 10000000; -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC; +INSERT INTO numbers_squashed SELECT * FROM system.numbers LIMIT 10000000; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC; -SELECT count() FROM test.numbers_squashed; +SELECT count() FROM numbers_squashed; -DROP TABLE test.numbers_squashed; +DROP TABLE numbers_squashed; diff --git a/dbms/tests/queries/0_stateless/00341_squashing_insert_select2.sql b/dbms/tests/queries/0_stateless/00341_squashing_insert_select2.sql index dc4e6d2a40c..469fdaaa64a 100644 --- a/dbms/tests/queries/0_stateless/00341_squashing_insert_select2.sql +++ b/dbms/tests/queries/0_stateless/00341_squashing_insert_select2.sql @@ -1,41 +1,41 @@ -DROP TABLE IF EXISTS test.numbers_squashed; -CREATE TABLE test.numbers_squashed (number UInt8) ENGINE = Memory; +DROP TABLE IF EXISTS numbers_squashed; +CREATE TABLE numbers_squashed (number UInt8) ENGINE = Memory; SET min_insert_block_size_rows = 100; SET min_insert_block_size_bytes = 0; SET max_threads = 1; -INSERT INTO test.numbers_squashed +INSERT INTO numbers_squashed SELECT arrayJoin(range(10)) AS number UNION ALL SELECT arrayJoin(range(100)) UNION ALL SELECT arrayJoin(range(10)); -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; -SELECT count() FROM test.numbers_squashed; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; +SELECT count() FROM numbers_squashed; -INSERT INTO test.numbers_squashed +INSERT INTO numbers_squashed SELECT arrayJoin(range(100)) AS number UNION ALL SELECT arrayJoin(range(10)) UNION ALL SELECT arrayJoin(range(100)); -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; -SELECT count() FROM test.numbers_squashed; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; +SELECT count() FROM numbers_squashed; -INSERT INTO test.numbers_squashed +INSERT INTO numbers_squashed SELECT arrayJoin(range(10)) AS number UNION ALL SELECT arrayJoin(range(100)) UNION ALL SELECT arrayJoin(range(100)); -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; -SELECT count() FROM test.numbers_squashed; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; +SELECT count() FROM numbers_squashed; -INSERT INTO test.numbers_squashed +INSERT INTO numbers_squashed SELECT arrayJoin(range(10)) AS number UNION ALL SELECT arrayJoin(range(10)) @@ -46,12 +46,12 @@ SELECT arrayJoin(range(100)) UNION ALL SELECT arrayJoin(range(10)); -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; -SELECT count() FROM test.numbers_squashed; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; +SELECT count() FROM numbers_squashed; SET min_insert_block_size_rows = 10; -INSERT INTO test.numbers_squashed +INSERT INTO numbers_squashed SELECT arrayJoin(range(10)) AS number UNION ALL SELECT arrayJoin(range(10)) @@ -62,7 +62,7 @@ SELECT arrayJoin(range(100)) UNION ALL SELECT arrayJoin(range(10)); -SELECT blockSize() AS b, count() / b AS c FROM test.numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; -SELECT count() FROM test.numbers_squashed; +SELECT blockSize() AS b, count() / b AS c FROM numbers_squashed GROUP BY blockSize() ORDER BY c DESC, b ASC; +SELECT count() FROM numbers_squashed; -DROP TABLE test.numbers_squashed; +DROP TABLE numbers_squashed; diff --git a/dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql b/dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql index b1920663010..138a93990cf 100644 --- a/dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql +++ b/dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql @@ -1,20 +1,20 @@ -DROP TABLE IF EXISTS test.index; +DROP TABLE IF EXISTS index; -CREATE TABLE test.index +CREATE TABLE index ( key Int32, name String, merge_date Date ) ENGINE = MergeTree(merge_date, key, 8192); -insert into test.index values (1,'1','2016-07-07'); -insert into test.index values (-1,'-1','2016-07-07'); +insert into index values (1,'1','2016-07-07'); +insert into index values (-1,'-1','2016-07-07'); -select * from test.index where key = 1; -select * from test.index where key = -1; -OPTIMIZE TABLE test.index; -select * from test.index where key = 1; -select * from test.index where key = -1; -select * from test.index where key < -0.5; +select * from index where key = 1; +select * from index where key = -1; +OPTIMIZE TABLE index; +select * from index where key = 1; +select * from index where key = -1; +select * from index where key < -0.5; -DROP TABLE test.index; +DROP TABLE index; diff --git a/dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql b/dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql index d7227578ec5..6160edd05b7 100644 --- a/dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql +++ b/dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql @@ -1,17 +1,17 @@ -DROP TABLE IF EXISTS test.nested1; -DROP TABLE IF EXISTS test.nested2; +DROP TABLE IF EXISTS nested1; +DROP TABLE IF EXISTS nested2; -CREATE TABLE test.nested1 (d Date DEFAULT '2000-01-01', x UInt64, n Nested(a String, b String)) ENGINE = MergeTree(d, x, 1); -INSERT INTO test.nested1 (x, n.a, n.b) VALUES (1, ['Hello', 'World'], ['abc', 'def']), (2, [], []); +CREATE TABLE nested1 (d Date DEFAULT '2000-01-01', x UInt64, n Nested(a String, b String)) ENGINE = MergeTree(d, x, 1); +INSERT INTO nested1 (x, n.a, n.b) VALUES (1, ['Hello', 'World'], ['abc', 'def']), (2, [], []); SET max_block_size = 1; -SELECT * FROM test.nested1 ORDER BY x; +SELECT * FROM nested1 ORDER BY x; -CREATE TABLE test.nested2 (d Date DEFAULT '2000-01-01', x UInt64, n Nested(a String, b String)) ENGINE = MergeTree(d, x, 1); +CREATE TABLE nested2 (d Date DEFAULT '2000-01-01', x UInt64, n Nested(a String, b String)) ENGINE = MergeTree(d, x, 1); -INSERT INTO test.nested2 SELECT * FROM test.nested1; +INSERT INTO nested2 SELECT * FROM nested1; -SELECT * FROM test.nested2 ORDER BY x; +SELECT * FROM nested2 ORDER BY x; -DROP TABLE test.nested1; -DROP TABLE test.nested2; +DROP TABLE nested1; +DROP TABLE nested2; diff --git a/dbms/tests/queries/0_stateless/00363_defaults.sql b/dbms/tests/queries/0_stateless/00363_defaults.sql index cc79c4a9d7a..4ebcc7b0f61 100644 --- a/dbms/tests/queries/0_stateless/00363_defaults.sql +++ b/dbms/tests/queries/0_stateless/00363_defaults.sql @@ -1,19 +1,19 @@ -DROP TABLE IF EXISTS test.prewhere_defaults; +DROP TABLE IF EXISTS prewhere_defaults; -CREATE TABLE test.prewhere_defaults (d Date DEFAULT '2000-01-01', k UInt64 DEFAULT 0, x UInt16) ENGINE = MergeTree(d, k, 1); +CREATE TABLE prewhere_defaults (d Date DEFAULT '2000-01-01', k UInt64 DEFAULT 0, x UInt16) ENGINE = MergeTree(d, k, 1); -INSERT INTO test.prewhere_defaults (x) VALUES (1); +INSERT INTO prewhere_defaults (x) VALUES (1); SET max_block_size = 1; -SELECT * FROM test.prewhere_defaults PREWHERE x != 0 ORDER BY x; +SELECT * FROM prewhere_defaults PREWHERE x != 0 ORDER BY x; -ALTER TABLE test.prewhere_defaults ADD COLUMN y UInt16 DEFAULT x; +ALTER TABLE prewhere_defaults ADD COLUMN y UInt16 DEFAULT x; -SELECT * FROM test.prewhere_defaults PREWHERE x != 0 ORDER BY x; +SELECT * FROM prewhere_defaults PREWHERE x != 0 ORDER BY x; -INSERT INTO test.prewhere_defaults (x) VALUES (2); +INSERT INTO prewhere_defaults (x) VALUES (2); -SELECT * FROM test.prewhere_defaults PREWHERE x != 0 ORDER BY x; +SELECT * FROM prewhere_defaults PREWHERE x != 0 ORDER BY x; -DROP TABLE test.prewhere_defaults; +DROP TABLE prewhere_defaults; diff --git a/dbms/tests/queries/0_stateless/00366_multi_statements.sh b/dbms/tests/queries/0_stateless/00366_multi_statements.sh index aa47c0dd0cb..0f2652e0f2e 100755 --- a/dbms/tests/queries/0_stateless/00366_multi_statements.sh +++ b/dbms/tests/queries/0_stateless/00366_multi_statements.sh @@ -18,33 +18,33 @@ $CLICKHOUSE_CLIENT -n --query="SELECT 1; SELECT 2" $CLICKHOUSE_CLIENT -n --query="SELECT 1; SELECT 2;" $CLICKHOUSE_CLIENT -n --query="SELECT 1; SELECT 2; SELECT" 2>&1 | grep -o 'Syntax error' -$CLICKHOUSE_CLIENT -n --query="DROP TABLE IF EXISTS test.t; CREATE TABLE test.t (x UInt64) ENGINE = TinyLog;" +$CLICKHOUSE_CLIENT -n --query="DROP TABLE IF EXISTS t; CREATE TABLE t (x UInt64) ENGINE = TinyLog;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.t VALUES (1),(2),(3);" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.t" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.t VALUES" <<< "(4),(5),(6)" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.t" +$CLICKHOUSE_CLIENT --query="INSERT INTO t VALUES (1),(2),(3);" +$CLICKHOUSE_CLIENT --query="SELECT * FROM t" +$CLICKHOUSE_CLIENT --query="INSERT INTO t VALUES" <<< "(4),(5),(6)" +$CLICKHOUSE_CLIENT --query="SELECT * FROM t" -$CLICKHOUSE_CLIENT -n --query="INSERT INTO test.t VALUES (1),(2),(3);" -$CLICKHOUSE_CLIENT -n --query="SELECT * FROM test.t" -$CLICKHOUSE_CLIENT -n --query="INSERT INTO test.t VALUES" <<< "(4),(5),(6)" -$CLICKHOUSE_CLIENT -n --query="SELECT * FROM test.t" +$CLICKHOUSE_CLIENT -n --query="INSERT INTO t VALUES (1),(2),(3);" +$CLICKHOUSE_CLIENT -n --query="SELECT * FROM t" +$CLICKHOUSE_CLIENT -n --query="INSERT INTO t VALUES" <<< "(4),(5),(6)" +$CLICKHOUSE_CLIENT -n --query="SELECT * FROM t" -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1" -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1;" -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1; " -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1 ; " +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1" +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1;" +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1; " +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1 ; " -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1; S" 2>&1 | grep -o 'Syntax error' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1; SELECT 2" 2>&1 | grep -o 'Syntax error' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1; SELECT 2;" 2>&1 | grep -o 'Syntax error' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "SELECT 1; SELECT 2; SELECT" 2>&1 | grep -o 'Syntax error' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1; S" 2>&1 | grep -o 'Syntax error' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1; SELECT 2" 2>&1 | grep -o 'Syntax error' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1; SELECT 2;" 2>&1 | grep -o 'Syntax error' +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "SELECT 1; SELECT 2; SELECT" 2>&1 | grep -o 'Syntax error' -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d "INSERT INTO test.t VALUES (1),(2),(3);" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.t" -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT" -d "INTO test.t VALUES (4),(5),(6);" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.t" -${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.t+VALUES" -d "(7),(8),(9)" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.t" +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" -d "INSERT INTO t VALUES (1),(2),(3);" +$CLICKHOUSE_CLIENT --query="SELECT * FROM t" +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}&query=INSERT" -d "INTO t VALUES (4),(5),(6);" +$CLICKHOUSE_CLIENT --query="SELECT * FROM t" +${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}&query=INSERT+INTO+t+VALUES" -d "(7),(8),(9)" +$CLICKHOUSE_CLIENT --query="SELECT * FROM t" -$CLICKHOUSE_CLIENT -n --query="DROP TABLE test.t;" +$CLICKHOUSE_CLIENT -n --query="DROP TABLE t;" diff --git a/dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh b/dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh index 538a46e0fda..789be95aa38 100755 --- a/dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh +++ b/dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh @@ -5,8 +5,8 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.json_noisy" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.json_noisy (d1 UInt8, d2 String) ENGINE = Memory" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS json_noisy" +$CLICKHOUSE_CLIENT -q "CREATE TABLE json_noisy (d1 UInt8, d2 String) ENGINE = Memory" echo '{"d1" : 1, "d2" : "ok"} { } @@ -15,20 +15,20 @@ echo '{"d1" : 1, "d2" : "ok"} {"d2":"ok","t1":[[[]],true, null, false, "1","2", 0.03, 1], "d1":"1", "t2":["1","2"]} {"d2":"ok","t1":{"a":{"b": {} ,"c":false},"b":[true,null, false]}, "t2": { "a": [ ] } , "d1":1} {"t0" : -0.1, "t1" : +1, "t2" : 0, "t3" : [0.0, -0.1], "d2" : "ok", "d1" : 1}' \ -| $CLICKHOUSE_CLIENT --input_format_skip_unknown_fields=1 -q "INSERT INTO test.json_noisy FORMAT JSONEachRow" +| $CLICKHOUSE_CLIENT --input_format_skip_unknown_fields=1 -q "INSERT INTO json_noisy FORMAT JSONEachRow" -$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM test.json_noisy" -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.json_noisy" +$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM json_noisy" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS json_noisy" # Regular test for DateTime echo -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.json_each_row" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.json_each_row (d DateTime('Europe/Moscow')) ENGINE = Memory" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS json_each_row" +$CLICKHOUSE_CLIENT -q "CREATE TABLE json_each_row (d DateTime('Europe/Moscow')) ENGINE = Memory" echo '{"d" : "2017-08-31 18:36:48", "t" : ""} {"d" : "1504193808", "t" : -1} {"d" : 1504193808, "t" : []} {"d" : 01504193808, "t" : []}' \ -| $CLICKHOUSE_CLIENT --input_format_skip_unknown_fields=1 -q "INSERT INTO test.json_each_row FORMAT JSONEachRow" -$CLICKHOUSE_CLIENT -q "SELECT DISTINCT * FROM test.json_each_row" -$CLICKHOUSE_CLIENT -q "DROP TABLE test.json_each_row" +| $CLICKHOUSE_CLIENT --input_format_skip_unknown_fields=1 -q "INSERT INTO json_each_row FORMAT JSONEachRow" +$CLICKHOUSE_CLIENT -q "SELECT DISTINCT * FROM json_each_row" +$CLICKHOUSE_CLIENT -q "DROP TABLE json_each_row" diff --git a/dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql b/dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql index 0814789d6d6..0c614602866 100644 --- a/dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql +++ b/dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql @@ -1,22 +1,22 @@ -DROP TABLE IF EXISTS test.aggregates; -CREATE TABLE test.aggregates (d Date, s AggregateFunction(uniq, UInt64)) ENGINE = MergeTree(d, d, 8192); +DROP TABLE IF EXISTS aggregates; +CREATE TABLE aggregates (d Date, s AggregateFunction(uniq, UInt64)) ENGINE = MergeTree(d, d, 8192); -INSERT INTO test.aggregates +INSERT INTO aggregates SELECT toDate('2016-10-31') AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s UNION ALL SELECT toDate('2016-11-01') AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s; -INSERT INTO test.aggregates SELECT toDate('2016-10-31') + number AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s FROM (SELECT * FROM system.numbers LIMIT 2) GROUP BY d; +INSERT INTO aggregates SELECT toDate('2016-10-31') + number AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s FROM (SELECT * FROM system.numbers LIMIT 2) GROUP BY d; -SELECT d, uniqMerge(s) FROM test.aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(s) FROM aggregates GROUP BY d ORDER BY d; -INSERT INTO test.aggregates +INSERT INTO aggregates SELECT toDate('2016-12-01') AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s UNION ALL SELECT toDate('2016-12-02') AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s UNION ALL SELECT toDate('2016-12-03') AS d, uniqState(toUInt64(arrayJoin(range(100)))) AS s; -SELECT d, uniqMerge(s) FROM test.aggregates GROUP BY d ORDER BY d; +SELECT d, uniqMerge(s) FROM aggregates GROUP BY d ORDER BY d; -DROP TABLE test.aggregates; +DROP TABLE aggregates; diff --git a/dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh b/dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh index 69771ea9247..f6e44e73e60 100755 --- a/dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh +++ b/dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh @@ -8,23 +8,23 @@ TABLE_HASH="cityHash64(groupArray(cityHash64(*)))" function pack_unpack_compare() { - local buf_file="${CLICKHOUSE_TMP}/test.buf.'.$3" + local buf_file="${CLICKHOUSE_TMP}/buf.'.$3" - ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.buf" - ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.buf_file" + ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS buf" + ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS buf_file" - ${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.buf ENGINE = Memory AS $1" - local res_orig=$(${CLICKHOUSE_CLIENT} --max_threads=1 --query "SELECT $TABLE_HASH FROM test.buf") + ${CLICKHOUSE_CLIENT} --query "CREATE TABLE buf ENGINE = Memory AS $1" + local res_orig=$(${CLICKHOUSE_CLIENT} --max_threads=1 --query "SELECT $TABLE_HASH FROM buf") - ${CLICKHOUSE_CLIENT} --max_threads=1 --query "CREATE TABLE test.buf_file ENGINE = File($3) AS SELECT * FROM test.buf" - local res_db_file=$(${CLICKHOUSE_CLIENT} --max_threads=1 --query "SELECT $TABLE_HASH FROM test.buf_file") + ${CLICKHOUSE_CLIENT} --max_threads=1 --query "CREATE TABLE buf_file ENGINE = File($3) AS SELECT * FROM buf" + local res_db_file=$(${CLICKHOUSE_CLIENT} --max_threads=1 --query "SELECT $TABLE_HASH FROM buf_file") - ${CLICKHOUSE_CLIENT} --max_threads=1 --query "SELECT * FROM test.buf FORMAT $3" > "$buf_file" + ${CLICKHOUSE_CLIENT} --max_threads=1 --query "SELECT * FROM buf FORMAT $3" > "$buf_file" local res_ch_local1=$(${CLICKHOUSE_LOCAL} --structure "$2" --file "$buf_file" --table "my super table" --input-format "$3" --output-format TabSeparated --query "SELECT $TABLE_HASH FROM \`my super table\`") local res_ch_local2=$(${CLICKHOUSE_LOCAL} --structure "$2" --table "my super table" --input-format "$3" --output-format TabSeparated --query "SELECT $TABLE_HASH FROM \`my super table\`" < "$buf_file") - ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.buf" - ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.buf_file" + ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS buf" + ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS buf_file" rm -f "$buf_file" stderr echo $((res_orig - res_db_file)) $((res_orig - res_ch_local1)) $((res_orig - res_ch_local2)) diff --git a/dbms/tests/queries/0_stateless/00386_enum_in_pk.sql b/dbms/tests/queries/0_stateless/00386_enum_in_pk.sql index 2aa89c4636f..f02f37e23d3 100644 --- a/dbms/tests/queries/0_stateless/00386_enum_in_pk.sql +++ b/dbms/tests/queries/0_stateless/00386_enum_in_pk.sql @@ -1,42 +1,42 @@ -DROP TABLE IF EXISTS test.enum_pk; -CREATE TABLE test.enum_pk (date Date DEFAULT '0000-00-00', x Enum8('0' = 0, '1' = 1, '2' = 2), d Enum8('0' = 0, '1' = 1, '2' = 2)) ENGINE = MergeTree(date, x, 1); -INSERT INTO test.enum_pk (x, d) VALUES ('0', '0')('1', '1')('0', '0')('1', '1')('1', '1')('0', '0')('0', '0')('2', '2')('0', '0')('1', '1')('1', '1')('1', '1')('1', '1')('0', '0'); +DROP TABLE IF EXISTS enum_pk; +CREATE TABLE enum_pk (date Date DEFAULT '0000-00-00', x Enum8('0' = 0, '1' = 1, '2' = 2), d Enum8('0' = 0, '1' = 1, '2' = 2)) ENGINE = MergeTree(date, x, 1); +INSERT INTO enum_pk (x, d) VALUES ('0', '0')('1', '1')('0', '0')('1', '1')('1', '1')('0', '0')('0', '0')('2', '2')('0', '0')('1', '1')('1', '1')('1', '1')('1', '1')('0', '0'); -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE x = '0'; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE d = '0'; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE x = '0'; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE d = '0'; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE x != '0'; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE d != '0'; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE x != '0'; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE d != '0'; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE x = '1'; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE d = '1'; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE x = '1'; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE d = '1'; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE exp2(toInt64(x != '1')) > 1; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE exp2(toInt64(d != '1')) > 1; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE exp2(toInt64(x != '1')) > 1; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE exp2(toInt64(d != '1')) > 1; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE x = toString(0); -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE d = toString(0); +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE x = toString(0); +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE d = toString(0); -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE (x = toString(0)) > 0; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE (d = toString(0)) > 0; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE (x = toString(0)) > 0; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE (d = toString(0)) > 0; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE ((x != toString(1)) > 0) > 0; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE ((d != toString(1)) > 0) > 0; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE ((x != toString(1)) > 0) > 0; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE ((d != toString(1)) > 0) > 0; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE exp2((x != toString(0)) != 0) > 1; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE exp2((d != toString(0)) != 0) > 1; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE exp2((x != toString(0)) != 0) > 1; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE exp2((d != toString(0)) != 0) > 1; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE (-(x != toString(0)) = -1) > 0; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE (-(d != toString(0)) = -1) > 0; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE (-(x != toString(0)) = -1) > 0; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE (-(d != toString(0)) = -1) > 0; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE 1 = 1; -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE 1 = 1; +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE 1 = 1; +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE 1 = 1; -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE (x = '0' OR x = '1'); -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE (d = '0' OR d = '1'); +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE (x = '0' OR x = '1'); +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE (d = '0' OR d = '1'); -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE x IN ('0', '1'); -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE d IN ('0', '1'); +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE x IN ('0', '1'); +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE d IN ('0', '1'); -SELECT cityHash64(groupArray(x)) FROM test.enum_pk WHERE (x != '0' AND x != '1'); -SELECT cityHash64(groupArray(d)) FROM test.enum_pk WHERE (d != '0' AND d != '1'); +SELECT cityHash64(groupArray(x)) FROM enum_pk WHERE (x != '0' AND x != '1'); +SELECT cityHash64(groupArray(d)) FROM enum_pk WHERE (d != '0' AND d != '1'); diff --git a/dbms/tests/queries/0_stateless/00386_long_in_pk.python b/dbms/tests/queries/0_stateless/00386_long_in_pk.python index 4dddb86c718..327e268dc21 100644 --- a/dbms/tests/queries/0_stateless/00386_long_in_pk.python +++ b/dbms/tests/queries/0_stateless/00386_long_in_pk.python @@ -1,10 +1,10 @@ #!/usr/bin/env python def gen_queries(): - create_template = 'create table test.tab (a Int8, b String, c Tuple(Int8), d Tuple(Tuple(Int8)), e Tuple(Int8, String), f Tuple(Tuple(Int8, String))) engine = MergeTree order by ({}) partition by {}' - drop_query = 'drop table if exists test.tab' + create_template = 'create table tab (a Int8, b String, c Tuple(Int8), d Tuple(Tuple(Int8)), e Tuple(Int8, String), f Tuple(Tuple(Int8, String))) engine = MergeTree order by ({}) partition by {}' + drop_query = 'drop table if exists tab' values = ('1', "'a'", 'tuple(1)', 'tuple(tuple(1))', "(1, 'a')", "tuple((1, 'a'))") - insert_query = "insert into test.tab values (1, 'a', tuple(1), tuple(tuple(1)), (1, 'a'), tuple((1, 'a')))" + insert_query = "insert into tab values (1, 'a', tuple(1), tuple(tuple(1)), (1, 'a'), tuple((1, 'a')))" columns = tuple('a b c d'.split()) order_by_columns = tuple('a b c'.split()) partition_by_columns = tuple(' tuple() a'.split()) @@ -17,24 +17,24 @@ def gen_queries(): yield q for column, value in zip(columns, values): - yield 'select {} in {} from test.tab'.format(column, value) - yield 'select {} in tuple({}) from test.tab'.format(column, value) - yield 'select {} in (select {} from test.tab) from test.tab'.format(column, column) + yield 'select {} in {} from tab'.format(column, value) + yield 'select {} in tuple({}) from tab'.format(column, value) + yield 'select {} in (select {} from tab) from tab'.format(column, column) for i in range(len(columns)): for j in range(i, len(columns)): - yield 'select ({}, {}) in tuple({}, {}) from test.tab'.format(columns[i], columns[j], values[i], values[j]) - yield 'select ({}, {}) in (select {}, {} from test.tab) from test.tab'.format(columns[i], columns[j], columns[i], columns[j]) - yield 'select ({}, {}) in (select ({}, {}) from test.tab) from test.tab'.format(columns[i], columns[j], columns[i], columns[j]) + yield 'select ({}, {}) in tuple({}, {}) from tab'.format(columns[i], columns[j], values[i], values[j]) + yield 'select ({}, {}) in (select {}, {} from tab) from tab'.format(columns[i], columns[j], columns[i], columns[j]) + yield 'select ({}, {}) in (select ({}, {}) from tab) from tab'.format(columns[i], columns[j], columns[i], columns[j]) - yield "select e in (1, 'a') from test.tab" - yield "select f in tuple((1, 'a')) from test.tab" - yield "select f in tuple(tuple((1, 'a'))) from test.tab" + yield "select e in (1, 'a') from tab" + yield "select f in tuple((1, 'a')) from tab" + yield "select f in tuple(tuple((1, 'a'))) from tab" - yield 'select e in (select a, b from test.tab) from test.tab' - yield 'select e in (select (a, b) from test.tab) from test.tab' - yield 'select f in (select tuple((a, b)) from test.tab) from test.tab' - yield 'select tuple(f) in (select tuple(tuple((a, b))) from test.tab) from test.tab' + yield 'select e in (select a, b from tab) from tab' + yield 'select e in (select (a, b) from tab) from tab' + yield 'select f in (select tuple((a, b)) from tab) from tab' + yield 'select tuple(f) in (select tuple(tuple((a, b))) from tab) from tab' import requests import os diff --git a/dbms/tests/queries/0_stateless/00388_enum_with_totals.sql b/dbms/tests/queries/0_stateless/00388_enum_with_totals.sql index 3afa5deb092..289174f13fc 100644 --- a/dbms/tests/queries/0_stateless/00388_enum_with_totals.sql +++ b/dbms/tests/queries/0_stateless/00388_enum_with_totals.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.enum_totals; -CREATE TABLE test.enum_totals (e Enum8('hello' = 1, 'world' = 2)) ENGINE = Memory; -INSERT INTO test.enum_totals VALUES ('hello'), ('world'), ('world'); +DROP TABLE IF EXISTS enum_totals; +CREATE TABLE enum_totals (e Enum8('hello' = 1, 'world' = 2)) ENGINE = Memory; +INSERT INTO enum_totals VALUES ('hello'), ('world'), ('world'); -SELECT e, count() FROM test.enum_totals GROUP BY e WITH TOTALS ORDER BY e; -DROP TABLE test.enum_totals; +SELECT e, count() FROM enum_totals GROUP BY e WITH TOTALS ORDER BY e; +DROP TABLE enum_totals; diff --git a/dbms/tests/queries/0_stateless/00392_enum_nested_alter.sql b/dbms/tests/queries/0_stateless/00392_enum_nested_alter.sql index 4221ef79f51..205b9a7fec0 100644 --- a/dbms/tests/queries/0_stateless/00392_enum_nested_alter.sql +++ b/dbms/tests/queries/0_stateless/00392_enum_nested_alter.sql @@ -1,34 +1,34 @@ -DROP TABLE IF EXISTS test.enum_nested_alter; -CREATE TABLE test.enum_nested_alter +DROP TABLE IF EXISTS enum_nested_alter; +CREATE TABLE enum_nested_alter (d Date DEFAULT '2000-01-01', x UInt64, n Nested(a String, e Enum8('Hello' = 1), b UInt8)) ENGINE = MergeTree(d, x, 1); -INSERT INTO test.enum_nested_alter (x, n.e) VALUES (1, ['Hello']); -SELECT * FROM test.enum_nested_alter; +INSERT INTO enum_nested_alter (x, n.e) VALUES (1, ['Hello']); +SELECT * FROM enum_nested_alter; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(Enum8('Hello' = 1, 'World' = 2)); -INSERT INTO test.enum_nested_alter (x, n.e) VALUES (2, ['World']); -SELECT * FROM test.enum_nested_alter ORDER BY x; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(Enum8('Hello' = 1, 'World' = 2)); +INSERT INTO enum_nested_alter (x, n.e) VALUES (2, ['World']); +SELECT * FROM enum_nested_alter ORDER BY x; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(Enum16('Hello' = 1, 'World' = 2, 'a' = 300)); -SELECT * FROM test.enum_nested_alter ORDER BY x; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(Enum16('Hello' = 1, 'World' = 2, 'a' = 300)); +SELECT * FROM enum_nested_alter ORDER BY x; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(UInt16); -SELECT * FROM test.enum_nested_alter ORDER BY x; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(UInt16); +SELECT * FROM enum_nested_alter ORDER BY x; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(Enum16('Hello' = 1, 'World' = 2, 'a' = 300)); -SELECT * FROM test.enum_nested_alter ORDER BY x; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(Enum16('Hello' = 1, 'World' = 2, 'a' = 300)); +SELECT * FROM enum_nested_alter ORDER BY x; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(String); -SELECT * FROM test.enum_nested_alter ORDER BY x; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(String); +SELECT * FROM enum_nested_alter ORDER BY x; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(Enum16('Hello' = 1, 'World' = 2, 'a' = 300)); -SELECT * FROM test.enum_nested_alter ORDER BY x; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(Enum16('Hello' = 1, 'World' = 2, 'a' = 300)); +SELECT * FROM enum_nested_alter ORDER BY x; -DROP TABLE test.enum_nested_alter; +DROP TABLE enum_nested_alter; -CREATE TABLE test.enum_nested_alter +CREATE TABLE enum_nested_alter ( d Date DEFAULT '2000-01-01', x UInt64, @@ -39,30 +39,30 @@ CREATE TABLE test.enum_nested_alter status Enum16('hello' = 1, 'world' = 2))) ENGINE = MergeTree(d, x, 1); -INSERT INTO test.enum_nested_alter (x, tasks.errcategory, tasks.status) VALUES (1, ['system', 'rtb.client'], ['hello', 'world']); -SELECT * FROM test.enum_nested_alter ORDER BY x; +INSERT INTO enum_nested_alter (x, tasks.errcategory, tasks.status) VALUES (1, ['system', 'rtb.client'], ['hello', 'world']); +SELECT * FROM enum_nested_alter ORDER BY x; -ALTER TABLE test.enum_nested_alter +ALTER TABLE enum_nested_alter MODIFY COLUMN tasks.errcategory Array(Enum8( 'undefined' = 0, 'system' = 1, 'generic' = 2, 'asio.netdb' = 3, 'asio.misc' = 4, 'asio.addrinfo' = 5, 'rtb.client' = 6, 'rtb.logic' = 7, 'http.status' = 8, 'http.code' = 9)), MODIFY COLUMN tasks.status Array(Enum8('hello' = 1, 'world' = 2, 'goodbye' = 3)); -INSERT INTO test.enum_nested_alter (x, tasks.errcategory, tasks.status) VALUES (2, ['http.status', 'http.code'], ['hello', 'goodbye']); -SELECT * FROM test.enum_nested_alter ORDER BY x; +INSERT INTO enum_nested_alter (x, tasks.errcategory, tasks.status) VALUES (2, ['http.status', 'http.code'], ['hello', 'goodbye']); +SELECT * FROM enum_nested_alter ORDER BY x; -DROP TABLE test.enum_nested_alter; +DROP TABLE enum_nested_alter; -DROP TABLE IF EXISTS test.enum_nested_alter; -CREATE TABLE test.enum_nested_alter +DROP TABLE IF EXISTS enum_nested_alter; +CREATE TABLE enum_nested_alter (d Date DEFAULT '2000-01-01', x UInt64, n Nested(a String, e Enum8('Hello.world' = 1), b UInt8)) ENGINE = MergeTree(d, x, 1); -INSERT INTO test.enum_nested_alter (x, n.e) VALUES (1, ['Hello.world']); -SELECT * FROM test.enum_nested_alter; +INSERT INTO enum_nested_alter (x, n.e) VALUES (1, ['Hello.world']); +SELECT * FROM enum_nested_alter; -ALTER TABLE test.enum_nested_alter MODIFY COLUMN n.e Array(Enum8('Hello.world' = 1, 'a' = 2)); -SELECT * FROM test.enum_nested_alter; +ALTER TABLE enum_nested_alter MODIFY COLUMN n.e Array(Enum8('Hello.world' = 1, 'a' = 2)); +SELECT * FROM enum_nested_alter; -DROP TABLE test.enum_nested_alter; +DROP TABLE enum_nested_alter; diff --git a/dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql b/dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql index e0f38ed48c1..cb1679e3b53 100644 --- a/dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql +++ b/dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql @@ -1,17 +1,17 @@ -DROP TABLE IF EXISTS test.alter; -CREATE TABLE test.alter (d Date, k UInt64, i32 Int32, n Nested(ui8 UInt8, s String)) ENGINE=MergeTree(d, k, 8192); +DROP TABLE IF EXISTS alter; +CREATE TABLE alter (d Date, k UInt64, i32 Int32, n Nested(ui8 UInt8, s String)) ENGINE=MergeTree(d, k, 8192); -INSERT INTO test.alter VALUES ('2015-01-01', 3, 30, [1,2,3], ['1','12','123']); -INSERT INTO test.alter VALUES ('2015-01-01', 2, 20, [1,2], ['1','12']); -INSERT INTO test.alter VALUES ('2015-01-01', 1, 10, [1], ['1']); +INSERT INTO alter VALUES ('2015-01-01', 3, 30, [1,2,3], ['1','12','123']); +INSERT INTO alter VALUES ('2015-01-01', 2, 20, [1,2], ['1','12']); +INSERT INTO alter VALUES ('2015-01-01', 1, 10, [1], ['1']); -ALTER TABLE test.alter ADD COLUMN `n.i8` Array(Int8) AFTER i32; +ALTER TABLE alter ADD COLUMN `n.i8` Array(Int8) AFTER i32; -SELECT `n.i8`, `n.ui8`, `n.s` FROM test.alter ORDER BY k; -SELECT `n.i8` FROM test.alter ORDER BY k; +SELECT `n.i8`, `n.ui8`, `n.s` FROM alter ORDER BY k; +SELECT `n.i8` FROM alter ORDER BY k; -OPTIMIZE TABLE test.alter; +OPTIMIZE TABLE alter; -SELECT `n.i8` FROM test.alter ORDER BY k; +SELECT `n.i8` FROM alter ORDER BY k; -DROP TABLE IF EXISTS test.alter; +DROP TABLE IF EXISTS alter; diff --git a/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql b/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql index 75d693d11e7..47ab3fe4a1c 100644 --- a/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql +++ b/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql @@ -1,24 +1,24 @@ -DROP TABLE IF EXISTS test.replaceall; -CREATE TABLE test.replaceall (str FixedString(3)) ENGINE = Memory; +DROP TABLE IF EXISTS replaceall; +CREATE TABLE replaceall (str FixedString(3)) ENGINE = Memory; -INSERT INTO test.replaceall VALUES ('foo'); -INSERT INTO test.replaceall VALUES ('boa'); -INSERT INTO test.replaceall VALUES ('bar'); -INSERT INTO test.replaceall VALUES ('bao'); +INSERT INTO replaceall VALUES ('foo'); +INSERT INTO replaceall VALUES ('boa'); +INSERT INTO replaceall VALUES ('bar'); +INSERT INTO replaceall VALUES ('bao'); SELECT str, replaceAll(str, 'o', '*') AS replaced -FROM test.replaceall +FROM replaceall ORDER BY str ASC; -DROP TABLE test.replaceall; +DROP TABLE replaceall; -CREATE TABLE test.replaceall (date Date DEFAULT today(), fs FixedString(16)) ENGINE = MergeTree(date, (date, fs), 8192); -INSERT INTO test.replaceall (fs) VALUES ('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10'), ('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10'); +CREATE TABLE replaceall (date Date DEFAULT today(), fs FixedString(16)) ENGINE = MergeTree(date, (date, fs), 8192); +INSERT INTO replaceall (fs) VALUES ('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10'), ('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10'); SELECT fs, replaceAll(fs, '\0', '*') -FROM test.replaceall +FROM replaceall ORDER BY fs ASC; -DROP TABLE test.replaceall; +DROP TABLE replaceall; diff --git a/dbms/tests/queries/0_stateless/00395_nullable.sql b/dbms/tests/queries/0_stateless/00395_nullable.sql index 66ac1766087..77efc018a8a 100644 --- a/dbms/tests/queries/0_stateless/00395_nullable.sql +++ b/dbms/tests/queries/0_stateless/00395_nullable.sql @@ -8,124 +8,124 @@ SELECT NULL + NULL; SELECT '----- MergeTree engine -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1( +DROP TABLE IF EXISTS test1; +CREATE TABLE test1( col1 UInt64, col2 Nullable(UInt64), col3 String, col4 Nullable(String), col5 Array(UInt64), col6 Array(Nullable(UInt64)), col7 Array(String), col8 Array(Nullable(String)), d Date) Engine = MergeTree(d, (col1, d), 8192); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); -SELECT * FROM test.test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); +SELECT * FROM test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; SELECT '----- Memory engine -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1( +DROP TABLE IF EXISTS test1; +CREATE TABLE test1( col1 UInt64, col2 Nullable(UInt64), col3 String, col4 Nullable(String), col5 Array(UInt64), col6 Array(Nullable(UInt64)), col7 Array(String), col8 Array(Nullable(String)), d Date) Engine = Memory; -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); -SELECT * FROM test.test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); +SELECT * FROM test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; SELECT '----- TinyLog engine -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1( +DROP TABLE IF EXISTS test1; +CREATE TABLE test1( col1 UInt64, col2 Nullable(UInt64), col3 String, col4 Nullable(String), col5 Array(UInt64), col6 Array(Nullable(UInt64)), col7 Array(String), col8 Array(Nullable(String)), d Date) Engine = TinyLog; -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); -SELECT * FROM test.test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); +SELECT * FROM test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; SELECT '----- Log engine -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1( +DROP TABLE IF EXISTS test1; +CREATE TABLE test1( col1 UInt64, col2 Nullable(UInt64), col3 String, col4 Nullable(String), col5 Array(UInt64), col6 Array(Nullable(UInt64)), col7 Array(String), col8 Array(Nullable(String)), d Date) Engine = Log; -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); -SELECT * FROM test.test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); +SELECT * FROM test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; SELECT '----- StripeLog engine -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1( +DROP TABLE IF EXISTS test1; +CREATE TABLE test1( col1 UInt64, col2 Nullable(UInt64), col3 String, col4 Nullable(String), col5 Array(UInt64), col6 Array(Nullable(UInt64)), col7 Array(String), col8 Array(Nullable(String)), d Date) Engine = StripeLog; -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); -INSERT INTO test.test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); -SELECT * FROM test.test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, NULL, 'a', 'a', [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', NULL, [1], [1], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [NULL], ['a'], ['a'], '2000-01-01'); +INSERT INTO test1 VALUES (1, 1, 'a', 'a', [1], [1], ['a'], [NULL], '2000-01-01'); +SELECT * FROM test1 ORDER BY col1,col2,col3,col4,col5,col6,col7,col8 ASC; SELECT '----- Insert with expression -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt64))) Engine=Memory; -INSERT INTO test.test1(col1) VALUES ([1+1]); -SELECT col1 FROM test.test1 ORDER BY col1 ASC; +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt64))) Engine=Memory; +INSERT INTO test1(col1) VALUES ([1+1]); +SELECT col1 FROM test1 ORDER BY col1 ASC; SELECT '----- Insert. Source and target columns have same types up to nullability. -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64) Engine=Memory; -DROP TABLE IF EXISTS test.test2; -CREATE TABLE test.test2(col1 UInt64, col2 Nullable(UInt64)) Engine=Memory; -INSERT INTO test.test1(col1,col2) VALUES (2,7)(6,9)(5,1)(4,3)(8,2); -INSERT INTO test.test2(col1,col2) SELECT col1,col2 FROM test.test1; -SELECT col1,col2 FROM test.test2 ORDER BY col1,col2 ASC; +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(UInt64), col2 UInt64) Engine=Memory; +DROP TABLE IF EXISTS test2; +CREATE TABLE test2(col1 UInt64, col2 Nullable(UInt64)) Engine=Memory; +INSERT INTO test1(col1,col2) VALUES (2,7)(6,9)(5,1)(4,3)(8,2); +INSERT INTO test2(col1,col2) SELECT col1,col2 FROM test1; +SELECT col1,col2 FROM test2 ORDER BY col1,col2 ASC; SELECT '----- Apply functions and aggregate functions on columns that may contain null values -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(UInt64), col2 Nullable(UInt64)) Engine=Memory; -INSERT INTO test.test1(col1,col2) VALUES (2,7)(NULL,6)(9,NULL)(NULL,NULL)(5,1)(42,42); -SELECT col1, col2, col1 + col2, col1 * 7 FROM test.test1 ORDER BY col1,col2 ASC; -SELECT sum(col1) FROM test.test1; -SELECT sum(col1 * 7) FROM test.test1; +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(UInt64), col2 Nullable(UInt64)) Engine=Memory; +INSERT INTO test1(col1,col2) VALUES (2,7)(NULL,6)(9,NULL)(NULL,NULL)(5,1)(42,42); +SELECT col1, col2, col1 + col2, col1 * 7 FROM test1 ORDER BY col1,col2 ASC; +SELECT sum(col1) FROM test1; +SELECT sum(col1 * 7) FROM test1; SELECT '----- isNull, isNotNull -----'; -SELECT col1, col2, isNull(col1), isNotNull(col2) FROM test.test1 ORDER BY col1,col2 ASC; +SELECT col1, col2, isNull(col1), isNotNull(col2) FROM test1 ORDER BY col1,col2 ASC; SELECT '----- ifNull, nullIf -----'; -SELECT col1, col2, ifNull(col1,col2) FROM test.test1 ORDER BY col1,col2 ASC; -SELECT col1, col2, nullIf(col1,col2) FROM test.test1 ORDER BY col1,col2 ASC; +SELECT col1, col2, ifNull(col1,col2) FROM test1 ORDER BY col1,col2 ASC; +SELECT col1, col2, nullIf(col1,col2) FROM test1 ORDER BY col1,col2 ASC; SELECT '----- coalesce -----'; @@ -134,17 +134,17 @@ SELECT coalesce(NULL, 1); SELECT coalesce(NULL, NULL, 1); SELECT coalesce(NULL, 42, NULL, 1); SELECT coalesce(NULL, NULL, NULL); -SELECT col1, col2, coalesce(col1, col2) FROM test.test1 ORDER BY col1, col2 ASC; -SELECT col1, col2, coalesce(col1, col2, 99) FROM test.test1 ORDER BY col1, col2 ASC; +SELECT col1, col2, coalesce(col1, col2) FROM test1 ORDER BY col1, col2 ASC; +SELECT col1, col2, coalesce(col1, col2, 99) FROM test1 ORDER BY col1, col2 ASC; SELECT '----- assumeNotNull -----'; -SELECT res FROM (SELECT col1, assumeNotNull(col1) AS res FROM test.test1) WHERE col1 IS NOT NULL ORDER BY res ASC; +SELECT res FROM (SELECT col1, assumeNotNull(col1) AS res FROM test1) WHERE col1 IS NOT NULL ORDER BY res ASC; SELECT '----- IS NULL, IS NOT NULL -----'; -SELECT col1 FROM test.test1 WHERE col1 IS NOT NULL ORDER BY col1 ASC; -SELECT col1 FROM test.test1 WHERE col1 IS NULL; +SELECT col1 FROM test1 WHERE col1 IS NOT NULL ORDER BY col1 ASC; +SELECT col1 FROM test1 WHERE col1 IS NULL; SELECT '----- multiIf -----'; @@ -158,15 +158,15 @@ SELECT multiIf(1, toFixedString('A', 16), 1, NULL, toFixedString('DEF', 16)); SELECT multiIf(NULL, 2, 1, 3, 4); SELECT multiIf(1, 2, NULL, 3, 4); -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(Int8), col2 Nullable(UInt16), col3 Nullable(Float32)) Engine=TinyLog; -INSERT INTO test.test1(col1,col2,col3) VALUES (toInt8(1),toUInt16(2),toFloat32(3))(NULL,toUInt16(1),toFloat32(2))(toInt8(1),NULL,toFloat32(2))(toInt8(1),toUInt16(2),NULL); -SELECT multiIf(col1 == 1, col2, col2 == 2, col3, col3 == 3, col1, 42) FROM test.test1; +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(Int8), col2 Nullable(UInt16), col3 Nullable(Float32)) Engine=TinyLog; +INSERT INTO test1(col1,col2,col3) VALUES (toInt8(1),toUInt16(2),toFloat32(3))(NULL,toUInt16(1),toFloat32(2))(toInt8(1),NULL,toFloat32(2))(toInt8(1),toUInt16(2),NULL); +SELECT multiIf(col1 == 1, col2, col2 == 2, col3, col3 == 3, col1, 42) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(cond1 Nullable(UInt8), then1 Int8, cond2 UInt8, then2 Nullable(UInt16), then3 Nullable(Float32)) Engine=TinyLog; -INSERT INTO test.test1(cond1,then1,cond2,then2,then3) VALUES(1,1,1,42,99)(0,7,1,99,42)(NULL,6,2,99,NULL); -SELECT multiIf(cond1,then1,cond2,then2,then3) FROM test.test1; +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(cond1 Nullable(UInt8), then1 Int8, cond2 UInt8, then2 Nullable(UInt16), then3 Nullable(Float32)) Engine=TinyLog; +INSERT INTO test1(cond1,then1,cond2,then2,then3) VALUES(1,1,1,42,99)(0,7,1,99,42)(NULL,6,2,99,NULL); +SELECT multiIf(cond1,then1,cond2,then2,then3) FROM test1; SELECT '----- Array functions -----'; @@ -194,59 +194,59 @@ SELECT arrayElement(['a',NULL,'c','d'], 2); SELECT arrayElement(['a',NULL,'c','d'], 3); SELECT arrayElement(['a',NULL,'c','d'], 4); -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 UInt64) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES(1),(2),(3),(4); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 UInt64) Engine=TinyLog; +INSERT INTO test1(col1) VALUES(1),(2),(3),(4); -SELECT arrayElement([1,NULL,2,3], col1) FROM test.test1; +SELECT arrayElement([1,NULL,2,3], col1) FROM test1; SELECT '----- variable arrays -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt64))) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES([2,3,7,NULL]); -INSERT INTO test.test1(col1) VALUES([NULL,3,7,4]); -INSERT INTO test.test1(col1) VALUES([2,NULL,7,NULL]); -INSERT INTO test.test1(col1) VALUES([2,3,NULL,4]); -INSERT INTO test.test1(col1) VALUES([NULL,NULL,NULL,NULL]); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt64))) Engine=TinyLog; +INSERT INTO test1(col1) VALUES([2,3,7,NULL]); +INSERT INTO test1(col1) VALUES([NULL,3,7,4]); +INSERT INTO test1(col1) VALUES([2,NULL,7,NULL]); +INSERT INTO test1(col1) VALUES([2,3,NULL,4]); +INSERT INTO test1(col1) VALUES([NULL,NULL,NULL,NULL]); -SELECT arrayElement(col1, 1) FROM test.test1; -SELECT arrayElement(col1, 2) FROM test.test1; -SELECT arrayElement(col1, 3) FROM test.test1; -SELECT arrayElement(col1, 4) FROM test.test1; +SELECT arrayElement(col1, 1) FROM test1; +SELECT arrayElement(col1, 2) FROM test1; +SELECT arrayElement(col1, 3) FROM test1; +SELECT arrayElement(col1, 4) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(String))) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES(['a','bc','def',NULL]); -INSERT INTO test.test1(col1) VALUES([NULL,'bc','def','ghij']); -INSERT INTO test.test1(col1) VALUES(['a',NULL,'def',NULL]); -INSERT INTO test.test1(col1) VALUES(['a','bc',NULL,'ghij']); -INSERT INTO test.test1(col1) VALUES([NULL,NULL,NULL,NULL]); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(String))) Engine=TinyLog; +INSERT INTO test1(col1) VALUES(['a','bc','def',NULL]); +INSERT INTO test1(col1) VALUES([NULL,'bc','def','ghij']); +INSERT INTO test1(col1) VALUES(['a',NULL,'def',NULL]); +INSERT INTO test1(col1) VALUES(['a','bc',NULL,'ghij']); +INSERT INTO test1(col1) VALUES([NULL,NULL,NULL,NULL]); -SELECT arrayElement(col1, 1) FROM test.test1; -SELECT arrayElement(col1, 2) FROM test.test1; -SELECT arrayElement(col1, 3) FROM test.test1; -SELECT arrayElement(col1, 4) FROM test.test1; +SELECT arrayElement(col1, 1) FROM test1; +SELECT arrayElement(col1, 2) FROM test1; +SELECT arrayElement(col1, 3) FROM test1; +SELECT arrayElement(col1, 4) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt64)), col2 UInt64) Engine=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES([2,3,7,NULL], 1); -INSERT INTO test.test1(col1,col2) VALUES([NULL,3,7,4], 2); -INSERT INTO test.test1(col1,col2) VALUES([2,NULL,7,NULL], 3); -INSERT INTO test.test1(col1,col2) VALUES([2,3,NULL,4],4); -INSERT INTO test.test1(col1,col2) VALUES([NULL,NULL,NULL,NULL],3); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt64)), col2 UInt64) Engine=TinyLog; +INSERT INTO test1(col1,col2) VALUES([2,3,7,NULL], 1); +INSERT INTO test1(col1,col2) VALUES([NULL,3,7,4], 2); +INSERT INTO test1(col1,col2) VALUES([2,NULL,7,NULL], 3); +INSERT INTO test1(col1,col2) VALUES([2,3,NULL,4],4); +INSERT INTO test1(col1,col2) VALUES([NULL,NULL,NULL,NULL],3); -SELECT arrayElement(col1,col2) FROM test.test1; +SELECT arrayElement(col1,col2) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(String)), col2 UInt64) Engine=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES(['a','bc','def',NULL], 1); -INSERT INTO test.test1(col1,col2) VALUES([NULL,'bc','def','ghij'], 2); -INSERT INTO test.test1(col1,col2) VALUES(['a',NULL,'def','ghij'], 3); -INSERT INTO test.test1(col1,col2) VALUES(['a','bc',NULL,'ghij'],4); -INSERT INTO test.test1(col1,col2) VALUES([NULL,NULL,NULL,NULL],3); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(String)), col2 UInt64) Engine=TinyLog; +INSERT INTO test1(col1,col2) VALUES(['a','bc','def',NULL], 1); +INSERT INTO test1(col1,col2) VALUES([NULL,'bc','def','ghij'], 2); +INSERT INTO test1(col1,col2) VALUES(['a',NULL,'def','ghij'], 3); +INSERT INTO test1(col1,col2) VALUES(['a','bc',NULL,'ghij'],4); +INSERT INTO test1(col1,col2) VALUES([NULL,NULL,NULL,NULL],3); -SELECT arrayElement(col1,col2) FROM test.test1; +SELECT arrayElement(col1,col2) FROM test1; SELECT '----- has -----'; @@ -263,220 +263,220 @@ SELECT has(['a',NULL,'def','ghij'], NULL); SELECT has(['a',NULL,'def','ghij'], 'def'); SELECT has(['a',NULL,'def','ghij'], 'ghij'); -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 UInt64) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES(1),(2),(3),(4); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 UInt64) Engine=TinyLog; +INSERT INTO test1(col1) VALUES(1),(2),(3),(4); -SELECT has([1,NULL,2,3], col1) FROM test.test1; +SELECT has([1,NULL,2,3], col1) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(UInt64)) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES(1),(2),(3),(4),(NULL); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(UInt64)) Engine=TinyLog; +INSERT INTO test1(col1) VALUES(1),(2),(3),(4),(NULL); -SELECT has([1,NULL,2,3], col1) FROM test.test1; +SELECT has([1,NULL,2,3], col1) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 String) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES('a'),('bc'),('def'),('ghij'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 String) Engine=TinyLog; +INSERT INTO test1(col1) VALUES('a'),('bc'),('def'),('ghij'); -SELECT has(['a',NULL,'def','ghij'], col1) FROM test.test1; +SELECT has(['a',NULL,'def','ghij'], col1) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(String)) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES('a'),('bc'),('def'),('ghij'),(NULL); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(String)) Engine=TinyLog; +INSERT INTO test1(col1) VALUES('a'),('bc'),('def'),('ghij'),(NULL); -SELECT has(['a',NULL,'def','ghij'], col1) FROM test.test1; +SELECT has(['a',NULL,'def','ghij'], col1) FROM test1; SELECT '----- variable arrays -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt64))) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES([2,3,7,NULL]); -INSERT INTO test.test1(col1) VALUES([NULL,3,7,4]); -INSERT INTO test.test1(col1) VALUES([2,NULL,7,NULL]); -INSERT INTO test.test1(col1) VALUES([2,3,NULL,4]); -INSERT INTO test.test1(col1) VALUES([NULL,NULL,NULL,NULL]); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt64))) Engine=TinyLog; +INSERT INTO test1(col1) VALUES([2,3,7,NULL]); +INSERT INTO test1(col1) VALUES([NULL,3,7,4]); +INSERT INTO test1(col1) VALUES([2,NULL,7,NULL]); +INSERT INTO test1(col1) VALUES([2,3,NULL,4]); +INSERT INTO test1(col1) VALUES([NULL,NULL,NULL,NULL]); -SELECT has(col1, 2) FROM test.test1; -SELECT has(col1, 3) FROM test.test1; -SELECT has(col1, 4) FROM test.test1; -SELECT has(col1, 5) FROM test.test1; -SELECT has(col1, 7) FROM test.test1; -SELECT has(col1, NULL) FROM test.test1; +SELECT has(col1, 2) FROM test1; +SELECT has(col1, 3) FROM test1; +SELECT has(col1, 4) FROM test1; +SELECT has(col1, 5) FROM test1; +SELECT has(col1, 7) FROM test1; +SELECT has(col1, NULL) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(String))) Engine=TinyLog; -INSERT INTO test.test1(col1) VALUES(['a','bc','def',NULL]); -INSERT INTO test.test1(col1) VALUES([NULL,'bc','def','ghij']); -INSERT INTO test.test1(col1) VALUES(['a',NULL,'def',NULL]); -INSERT INTO test.test1(col1) VALUES(['a','bc',NULL,'ghij']); -INSERT INTO test.test1(col1) VALUES([NULL,NULL,NULL,NULL]); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(String))) Engine=TinyLog; +INSERT INTO test1(col1) VALUES(['a','bc','def',NULL]); +INSERT INTO test1(col1) VALUES([NULL,'bc','def','ghij']); +INSERT INTO test1(col1) VALUES(['a',NULL,'def',NULL]); +INSERT INTO test1(col1) VALUES(['a','bc',NULL,'ghij']); +INSERT INTO test1(col1) VALUES([NULL,NULL,NULL,NULL]); -SELECT has(col1, 'a') FROM test.test1; -SELECT has(col1, 'bc') FROM test.test1; -SELECT has(col1, 'def') FROM test.test1; -SELECT has(col1, 'ghij') FROM test.test1; -SELECT has(col1, NULL) FROM test.test1; +SELECT has(col1, 'a') FROM test1; +SELECT has(col1, 'bc') FROM test1; +SELECT has(col1, 'def') FROM test1; +SELECT has(col1, 'ghij') FROM test1; +SELECT has(col1, NULL) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt64)), col2 UInt64) Engine=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES([2,3,7,NULL], 2); -INSERT INTO test.test1(col1,col2) VALUES([NULL,3,7,4], 3); -INSERT INTO test.test1(col1,col2) VALUES([2,NULL,7,NULL], 7); -INSERT INTO test.test1(col1,col2) VALUES([2,3,NULL,4],5); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt64)), col2 UInt64) Engine=TinyLog; +INSERT INTO test1(col1,col2) VALUES([2,3,7,NULL], 2); +INSERT INTO test1(col1,col2) VALUES([NULL,3,7,4], 3); +INSERT INTO test1(col1,col2) VALUES([2,NULL,7,NULL], 7); +INSERT INTO test1(col1,col2) VALUES([2,3,NULL,4],5); -SELECT has(col1,col2) FROM test.test1; +SELECT has(col1,col2) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt64)), col2 Nullable(UInt64)) Engine=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES([2,3,7,NULL], 2); -INSERT INTO test.test1(col1,col2) VALUES([NULL,3,7,4], 3); -INSERT INTO test.test1(col1,col2) VALUES([2,NULL,7,NULL], 7); -INSERT INTO test.test1(col1,col2) VALUES([2,3,NULL,4],5); -INSERT INTO test.test1(col1,col2) VALUES([NULL,NULL,NULL,NULL],NULL); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt64)), col2 Nullable(UInt64)) Engine=TinyLog; +INSERT INTO test1(col1,col2) VALUES([2,3,7,NULL], 2); +INSERT INTO test1(col1,col2) VALUES([NULL,3,7,4], 3); +INSERT INTO test1(col1,col2) VALUES([2,NULL,7,NULL], 7); +INSERT INTO test1(col1,col2) VALUES([2,3,NULL,4],5); +INSERT INTO test1(col1,col2) VALUES([NULL,NULL,NULL,NULL],NULL); -SELECT has(col1,col2) FROM test.test1; +SELECT has(col1,col2) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(String)), col2 String) Engine=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES(['a','bc','def',NULL], 'a'); -INSERT INTO test.test1(col1,col2) VALUES([NULL,'bc','def','ghij'], 'bc'); -INSERT INTO test.test1(col1,col2) VALUES(['a',NULL,'def','ghij'], 'def'); -INSERT INTO test.test1(col1,col2) VALUES(['a','bc',NULL,'ghij'], 'ghij'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(String)), col2 String) Engine=TinyLog; +INSERT INTO test1(col1,col2) VALUES(['a','bc','def',NULL], 'a'); +INSERT INTO test1(col1,col2) VALUES([NULL,'bc','def','ghij'], 'bc'); +INSERT INTO test1(col1,col2) VALUES(['a',NULL,'def','ghij'], 'def'); +INSERT INTO test1(col1,col2) VALUES(['a','bc',NULL,'ghij'], 'ghij'); -SELECT has(col1,col2) FROM test.test1; +SELECT has(col1,col2) FROM test1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(String)), col2 Nullable(String)) Engine=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES(['a','bc','def',NULL], 'a'); -INSERT INTO test.test1(col1,col2) VALUES([NULL,'bc','def','ghij'], 'bc'); -INSERT INTO test.test1(col1,col2) VALUES(['a',NULL,'def','ghij'], 'def'); -INSERT INTO test.test1(col1,col2) VALUES(['a','bc',NULL,'ghij'], 'ghij'); -INSERT INTO test.test1(col1,col2) VALUES([NULL,NULL,NULL,NULL], NULL); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(String)), col2 Nullable(String)) Engine=TinyLog; +INSERT INTO test1(col1,col2) VALUES(['a','bc','def',NULL], 'a'); +INSERT INTO test1(col1,col2) VALUES([NULL,'bc','def','ghij'], 'bc'); +INSERT INTO test1(col1,col2) VALUES(['a',NULL,'def','ghij'], 'def'); +INSERT INTO test1(col1,col2) VALUES(['a','bc',NULL,'ghij'], 'ghij'); +INSERT INTO test1(col1,col2) VALUES([NULL,NULL,NULL,NULL], NULL); -SELECT has(col1,col2) FROM test.test1; +SELECT has(col1,col2) FROM test1; SELECT '----- Aggregation -----'; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(String), col2 Nullable(UInt8), col3 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 0, 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 0, 'BACDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 1, 'BCADEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 1, 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', 1, 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 1, 'ACDEFGBH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, NULL, 'ACDEFGHB'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(String), col2 Nullable(UInt8), col3 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2,col3) VALUES('A', 0, 'ABCDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('A', 0, 'BACDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('A', 1, 'BCADEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('A', 1, 'BCDAEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEAFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEFAGH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGAH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGHA'); +INSERT INTO test1(col1,col2,col3) VALUES('C', 1, 'ACBDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('C', NULL, 'ACDBEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('C', NULL, 'ACDEBFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH'); +INSERT INTO test1(col1,col2,col3) VALUES(NULL, 1, 'ACDEFGBH'); +INSERT INTO test1(col1,col2,col3) VALUES(NULL, NULL, 'ACDEFGHB'); -SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2; +SELECT col1, col2, count() FROM test1 GROUP BY col1, col2 ORDER BY col1, col2; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 String, col2 Nullable(UInt8), col3 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 0, 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 0, 'BACDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 1, 'BCADEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('A', 1, 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', 1, 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 String, col2 Nullable(UInt8), col3 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2,col3) VALUES('A', 0, 'ABCDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('A', 0, 'BACDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('A', 1, 'BCADEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('A', 1, 'BCDAEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEAFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEFAGH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGAH'); +INSERT INTO test1(col1,col2,col3) VALUES('B', 1, 'BCDEFGHA'); +INSERT INTO test1(col1,col2,col3) VALUES('C', 1, 'ACBDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('C', NULL, 'ACDBEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('C', NULL, 'ACDEBFGH'); +INSERT INTO test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH'); -SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2; +SELECT col1, col2, count() FROM test1 GROUP BY col1, col2 ORDER BY col1, col2; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(String), col2 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES('A', 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES('A', 'BACDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES('A', 'BCADEFGH'); -INSERT INTO test.test1(col1,col2) VALUES('A', 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2) VALUES('B', 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2) VALUES('B', 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2) VALUES('B', 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2) VALUES('B', 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2) VALUES('C', 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES('C', 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2) VALUES('C', 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2) VALUES('C', 'ACDEFBGH'); -INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFGBH'); -INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFGHB'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(String), col2 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2) VALUES('A', 'ABCDEFGH'); +INSERT INTO test1(col1,col2) VALUES('A', 'BACDEFGH'); +INSERT INTO test1(col1,col2) VALUES('A', 'BCADEFGH'); +INSERT INTO test1(col1,col2) VALUES('A', 'BCDAEFGH'); +INSERT INTO test1(col1,col2) VALUES('B', 'BCDEAFGH'); +INSERT INTO test1(col1,col2) VALUES('B', 'BCDEFAGH'); +INSERT INTO test1(col1,col2) VALUES('B', 'BCDEFGAH'); +INSERT INTO test1(col1,col2) VALUES('B', 'BCDEFGHA'); +INSERT INTO test1(col1,col2) VALUES('C', 'ACBDEFGH'); +INSERT INTO test1(col1,col2) VALUES('C', 'ACDBEFGH'); +INSERT INTO test1(col1,col2) VALUES('C', 'ACDEBFGH'); +INSERT INTO test1(col1,col2) VALUES('C', 'ACDEFBGH'); +INSERT INTO test1(col1,col2) VALUES(NULL, 'ACDEFGBH'); +INSERT INTO test1(col1,col2) VALUES(NULL, 'ACDEFGHB'); -SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1; +SELECT col1, count() FROM test1 GROUP BY col1 ORDER BY col1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(UInt8), col2 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES(0, 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES(0, 'BACDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'BCADEFGH'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2) VALUES(1, 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFBGH'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(UInt8), col2 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2) VALUES(0, 'ABCDEFGH'); +INSERT INTO test1(col1,col2) VALUES(0, 'BACDEFGH'); +INSERT INTO test1(col1,col2) VALUES(1, 'BCADEFGH'); +INSERT INTO test1(col1,col2) VALUES(1, 'BCDAEFGH'); +INSERT INTO test1(col1,col2) VALUES(1, 'BCDEAFGH'); +INSERT INTO test1(col1,col2) VALUES(1, 'BCDEFAGH'); +INSERT INTO test1(col1,col2) VALUES(1, 'BCDEFGAH'); +INSERT INTO test1(col1,col2) VALUES(1, 'BCDEFGHA'); +INSERT INTO test1(col1,col2) VALUES(1, 'ACBDEFGH'); +INSERT INTO test1(col1,col2) VALUES(NULL, 'ACDBEFGH'); +INSERT INTO test1(col1,col2) VALUES(NULL, 'ACDEBFGH'); +INSERT INTO test1(col1,col2) VALUES(NULL, 'ACDEFBGH'); -SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1; +SELECT col1, count() FROM test1 GROUP BY col1 ORDER BY col1; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64, col3 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2,col3) VALUES(0, 2, 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(0, 3, 'BACDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 5, 'BCADEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 2, 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 3, 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 5, 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 2, 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 3, 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2,col3) VALUES(1, 5, 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 2, 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEFBGH'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(UInt64), col2 UInt64, col3 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2,col3) VALUES(0, 2, 'ABCDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(0, 3, 'BACDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 5, 'BCADEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 2, 'BCDAEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 3, 'BCDEAFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 5, 'BCDEFAGH'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 2, 'BCDEFGAH'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 3, 'BCDEFGHA'); +INSERT INTO test1(col1,col2,col3) VALUES(1, 5, 'ACBDEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(NULL, 2, 'ACDBEFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEBFGH'); +INSERT INTO test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEFBGH'); -SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2; +SELECT col1, col2, count() FROM test1 GROUP BY col1, col2 ORDER BY col1, col2; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64, col3 Nullable(UInt64), col4 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(0, 2, 1, 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(0, 3, NULL, 'BACDEFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 5, 1, 'BCADEFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 2, NULL, 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 3, 1, 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 5, NULL, 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 2, 1, 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 3, NULL, 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(1, 5, 1, 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 2, NULL, 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 3, 1, 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 3, NULL, 'ACDEFBGH'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Nullable(UInt64), col2 UInt64, col3 Nullable(UInt64), col4 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2,col3,col4) VALUES(0, 2, 1, 'ABCDEFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(0, 3, NULL, 'BACDEFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 5, 1, 'BCADEFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 2, NULL, 'BCDAEFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 3, 1, 'BCDEAFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 5, NULL, 'BCDEFAGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 2, 1, 'BCDEFGAH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 3, NULL, 'BCDEFGHA'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(1, 5, 1, 'ACBDEFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(NULL, 2, NULL, 'ACDBEFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(NULL, 3, 1, 'ACDEBFGH'); +INSERT INTO test1(col1,col2,col3,col4) VALUES(NULL, 3, NULL, 'ACDEFBGH'); -SELECT col1, col2, col3, count() FROM test.test1 GROUP BY col1, col2, col3 ORDER BY col1, col2, col3; +SELECT col1, col2, col3, count() FROM test1 GROUP BY col1, col2, col3 ORDER BY col1, col2, col3; -DROP TABLE IF EXISTS test.test1; -CREATE TABLE test.test1(col1 Array(Nullable(UInt8)), col2 String) ENGINE=TinyLog; -INSERT INTO test.test1(col1,col2) VALUES([0], 'ABCDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES([0], 'BACDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'BCADEFGH'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'BCDAEFGH'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'BCDEAFGH'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'BCDEFAGH'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'BCDEFGAH'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'BCDEFGHA'); -INSERT INTO test.test1(col1,col2) VALUES([1], 'ACBDEFGH'); -INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDBEFGH'); -INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDEBFGH'); -INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDEFBGH'); +DROP TABLE IF EXISTS test1; +CREATE TABLE test1(col1 Array(Nullable(UInt8)), col2 String) ENGINE=TinyLog; +INSERT INTO test1(col1,col2) VALUES([0], 'ABCDEFGH'); +INSERT INTO test1(col1,col2) VALUES([0], 'BACDEFGH'); +INSERT INTO test1(col1,col2) VALUES([1], 'BCADEFGH'); +INSERT INTO test1(col1,col2) VALUES([1], 'BCDAEFGH'); +INSERT INTO test1(col1,col2) VALUES([1], 'BCDEAFGH'); +INSERT INTO test1(col1,col2) VALUES([1], 'BCDEFAGH'); +INSERT INTO test1(col1,col2) VALUES([1], 'BCDEFGAH'); +INSERT INTO test1(col1,col2) VALUES([1], 'BCDEFGHA'); +INSERT INTO test1(col1,col2) VALUES([1], 'ACBDEFGH'); +INSERT INTO test1(col1,col2) VALUES([NULL], 'ACDBEFGH'); +INSERT INTO test1(col1,col2) VALUES([NULL], 'ACDEBFGH'); +INSERT INTO test1(col1,col2) VALUES([NULL], 'ACDEFBGH'); -SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1; +SELECT col1, count() FROM test1 GROUP BY col1 ORDER BY col1; diff --git a/dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql b/dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql index 8f760b5cac6..231005d46cc 100644 --- a/dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql +++ b/dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql @@ -1,5 +1,5 @@ -DROP TABLE IF EXISTS test.grop_uniq_array_date; -CREATE TABLE test.grop_uniq_array_date (d Date, dt DateTime) ENGINE = Memory; -INSERT INTO test.grop_uniq_array_date VALUES (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00')) (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00')); -SELECT groupUniqArray(d), groupUniqArray(dt) FROM test.grop_uniq_array_date; -DROP TABLE IF EXISTS test.grop_uniq_array_date; +DROP TABLE IF EXISTS grop_uniq_array_date; +CREATE TABLE grop_uniq_array_date (d Date, dt DateTime) ENGINE = Memory; +INSERT INTO grop_uniq_array_date VALUES (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00')) (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00')); +SELECT groupUniqArray(d), groupUniqArray(dt) FROM grop_uniq_array_date; +DROP TABLE IF EXISTS grop_uniq_array_date; diff --git a/dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql b/dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql index 1953947153a..3bbfefbaf2f 100644 --- a/dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql +++ b/dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql @@ -1,48 +1,48 @@ -DROP TABLE IF EXISTS test.stripe1; -DROP TABLE IF EXISTS test.stripe2; -DROP TABLE IF EXISTS test.stripe3; -DROP TABLE IF EXISTS test.stripe4; -DROP TABLE IF EXISTS test.stripe5; -DROP TABLE IF EXISTS test.stripe6; -DROP TABLE IF EXISTS test.stripe7; -DROP TABLE IF EXISTS test.stripe8; -DROP TABLE IF EXISTS test.stripe9; -DROP TABLE IF EXISTS test.stripe10; -DROP TABLE IF EXISTS test.merge; +DROP TABLE IF EXISTS stripe1; +DROP TABLE IF EXISTS stripe2; +DROP TABLE IF EXISTS stripe3; +DROP TABLE IF EXISTS stripe4; +DROP TABLE IF EXISTS stripe5; +DROP TABLE IF EXISTS stripe6; +DROP TABLE IF EXISTS stripe7; +DROP TABLE IF EXISTS stripe8; +DROP TABLE IF EXISTS stripe9; +DROP TABLE IF EXISTS stripe10; +DROP TABLE IF EXISTS merge; -CREATE TABLE test.stripe1 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe2 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe3 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe4 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe5 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe6 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe7 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe8 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe9 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.stripe10 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe1 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe2 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe3 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe4 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe5 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe6 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe7 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe8 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe9 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; +CREATE TABLE stripe10 ENGINE = StripeLog AS SELECT number AS x FROM system.numbers LIMIT 10; -CREATE TABLE test.merge AS test.stripe1 ENGINE = Merge(test, '^stripe\\d+'); +CREATE TABLE merge AS stripe1 ENGINE = Merge(test, '^stripe\\d+'); -SELECT x, count() FROM test.merge GROUP BY x ORDER BY x; +SELECT x, count() FROM merge GROUP BY x ORDER BY x; SET max_threads = 1; -SELECT x, count() FROM test.merge GROUP BY x ORDER BY x; +SELECT x, count() FROM merge GROUP BY x ORDER BY x; SET max_threads = 2; -SELECT x, count() FROM test.merge GROUP BY x ORDER BY x; +SELECT x, count() FROM merge GROUP BY x ORDER BY x; SET max_threads = 5; -SELECT x, count() FROM test.merge GROUP BY x ORDER BY x; +SELECT x, count() FROM merge GROUP BY x ORDER BY x; SET max_threads = 10; -SELECT x, count() FROM test.merge GROUP BY x ORDER BY x; +SELECT x, count() FROM merge GROUP BY x ORDER BY x; SET max_threads = 20; -SELECT x, count() FROM test.merge GROUP BY x ORDER BY x; +SELECT x, count() FROM merge GROUP BY x ORDER BY x; -DROP TABLE IF EXISTS test.stripe1; -DROP TABLE IF EXISTS test.stripe2; -DROP TABLE IF EXISTS test.stripe3; -DROP TABLE IF EXISTS test.stripe4; -DROP TABLE IF EXISTS test.stripe5; -DROP TABLE IF EXISTS test.stripe6; -DROP TABLE IF EXISTS test.stripe7; -DROP TABLE IF EXISTS test.stripe8; -DROP TABLE IF EXISTS test.stripe9; -DROP TABLE IF EXISTS test.stripe10; -DROP TABLE IF EXISTS test.merge; +DROP TABLE IF EXISTS stripe1; +DROP TABLE IF EXISTS stripe2; +DROP TABLE IF EXISTS stripe3; +DROP TABLE IF EXISTS stripe4; +DROP TABLE IF EXISTS stripe5; +DROP TABLE IF EXISTS stripe6; +DROP TABLE IF EXISTS stripe7; +DROP TABLE IF EXISTS stripe8; +DROP TABLE IF EXISTS stripe9; +DROP TABLE IF EXISTS stripe10; +DROP TABLE IF EXISTS merge; diff --git a/dbms/tests/queries/0_stateless/00409_shard_limit_by.sql b/dbms/tests/queries/0_stateless/00409_shard_limit_by.sql index 57d9182a9c8..430b29376a1 100644 --- a/dbms/tests/queries/0_stateless/00409_shard_limit_by.sql +++ b/dbms/tests/queries/0_stateless/00409_shard_limit_by.sql @@ -1,27 +1,27 @@ -DROP TABLE IF EXISTS test.limit_by; -CREATE TABLE test.limit_by (Num UInt32, Name String) ENGINE = Memory; +DROP TABLE IF EXISTS limit_by; +CREATE TABLE limit_by (Num UInt32, Name String) ENGINE = Memory; -INSERT INTO test.limit_by (Num, Name) VALUES (1, 'John'); -INSERT INTO test.limit_by (Num, Name) VALUES (1, 'John'); -INSERT INTO test.limit_by (Num, Name) VALUES (3, 'Mary'); -INSERT INTO test.limit_by (Num, Name) VALUES (3, 'Mary'); -INSERT INTO test.limit_by (Num, Name) VALUES (3, 'Mary'); -INSERT INTO test.limit_by (Num, Name) VALUES (4, 'Mary'); -INSERT INTO test.limit_by (Num, Name) VALUES (4, 'Mary'); -INSERT INTO test.limit_by (Num, Name) VALUES (5, 'Bill'); -INSERT INTO test.limit_by (Num, Name) VALUES (7, 'Bill'); -INSERT INTO test.limit_by (Num, Name) VALUES (7, 'Bill'); -INSERT INTO test.limit_by (Num, Name) VALUES (7, 'Mary'); -INSERT INTO test.limit_by (Num, Name) VALUES (7, 'John'); +INSERT INTO limit_by (Num, Name) VALUES (1, 'John'); +INSERT INTO limit_by (Num, Name) VALUES (1, 'John'); +INSERT INTO limit_by (Num, Name) VALUES (3, 'Mary'); +INSERT INTO limit_by (Num, Name) VALUES (3, 'Mary'); +INSERT INTO limit_by (Num, Name) VALUES (3, 'Mary'); +INSERT INTO limit_by (Num, Name) VALUES (4, 'Mary'); +INSERT INTO limit_by (Num, Name) VALUES (4, 'Mary'); +INSERT INTO limit_by (Num, Name) VALUES (5, 'Bill'); +INSERT INTO limit_by (Num, Name) VALUES (7, 'Bill'); +INSERT INTO limit_by (Num, Name) VALUES (7, 'Bill'); +INSERT INTO limit_by (Num, Name) VALUES (7, 'Mary'); +INSERT INTO limit_by (Num, Name) VALUES (7, 'John'); -- Two elemens in each group -SELECT Num FROM test.limit_by ORDER BY Num LIMIT 2 BY Num; +SELECT Num FROM limit_by ORDER BY Num LIMIT 2 BY Num; -- LIMIT BY doesn't affect result of GROUP BY -SELECT Num, count(*) FROM test.limit_by GROUP BY Num ORDER BY Num LIMIT 2 BY Num; +SELECT Num, count(*) FROM limit_by GROUP BY Num ORDER BY Num LIMIT 2 BY Num; -- LIMIT BY can be combined with LIMIT -SELECT Num, Name FROM test.limit_by ORDER BY Num LIMIT 1 BY Num, Name LIMIT 3; +SELECT Num, Name FROM limit_by ORDER BY Num LIMIT 1 BY Num, Name LIMIT 3; -- Distributed LIMIT BY SELECT dummy FROM remote('127.0.0.{2,3}', system.one) LIMIT 1 BY dummy; @@ -32,4 +32,4 @@ SELECT 1 as one FROM remote('127.0.0.{2,3}', system.one) LIMIT 1 BY one; -- Distributed LIMIT BY with LIMIT SELECT toInt8(number / 5 + 100) AS x FROM remote('127.0.0.1', system.numbers) LIMIT 2 BY x LIMIT 5; -DROP TABLE IF EXISTS test.limit_by; +DROP TABLE IF EXISTS limit_by; diff --git a/dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql b/dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql index ba6670f8b16..67f5cc54afd 100644 --- a/dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql +++ b/dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.arena; -CREATE TABLE test.arena (k UInt8, d String) ENGINE = Memory; -INSERT INTO test.arena SELECT number % 10 AS k, hex(intDiv(number, 10) % 1000) AS d FROM system.numbers LIMIT 10000000; -SELECT length(groupUniqArrayIf(d, d != hex(0))) FROM test.arena GROUP BY k; -SELECT length(groupUniqArrayMerge(ds)) FROM (SELECT k, groupUniqArrayState(d) AS ds FROM test.arena GROUP BY k) GROUP BY k; -DROP TABLE IF EXISTS test.arena; +DROP TABLE IF EXISTS arena; +CREATE TABLE arena (k UInt8, d String) ENGINE = Memory; +INSERT INTO arena SELECT number % 10 AS k, hex(intDiv(number, 10) % 1000) AS d FROM system.numbers LIMIT 10000000; +SELECT length(groupUniqArrayIf(d, d != hex(0))) FROM arena GROUP BY k; +SELECT length(groupUniqArrayMerge(ds)) FROM (SELECT k, groupUniqArrayState(d) AS ds FROM arena GROUP BY k) GROUP BY k; +DROP TABLE IF EXISTS arena; SELECT length(arrayReduce('groupUniqArray', [[1, 2], [1], emptyArrayUInt8(), [1], [1, 2]])); SELECT min(x), max(x) FROM (SELECT length(arrayReduce('groupUniqArray', [hex(number), hex(number+1), hex(number)])) AS x FROM system.numbers LIMIT 100000); diff --git a/dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql b/dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql index a88eafa0f49..614f838c2eb 100644 --- a/dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql +++ b/dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.const_in_const; -CREATE TABLE test.const_in_const (id UInt64, date Date, uid UInt32, name String, Sign Int8) ENGINE = CollapsingMergeTree(date, intHash32(uid), (id, date, intHash32(uid)), 8192, Sign); -INSERT INTO test.const_in_const VALUES(1, now(), 1, 'test1', 1); -INSERT INTO test.const_in_const VALUES(2, now(), 1, 'test2', 1); -INSERT INTO test.const_in_const VALUES(3, now(), 1, 'test3', 1); -INSERT INTO test.const_in_const VALUES(4, now(), 2, 'test4', 1); -INSERT INTO test.const_in_const VALUES(5, now(), 3, 'test5', 1); +DROP TABLE IF EXISTS const_in_const; +CREATE TABLE const_in_const (id UInt64, date Date, uid UInt32, name String, Sign Int8) ENGINE = CollapsingMergeTree(date, intHash32(uid), (id, date, intHash32(uid)), 8192, Sign); +INSERT INTO const_in_const VALUES(1, now(), 1, 'test1', 1); +INSERT INTO const_in_const VALUES(2, now(), 1, 'test2', 1); +INSERT INTO const_in_const VALUES(3, now(), 1, 'test3', 1); +INSERT INTO const_in_const VALUES(4, now(), 2, 'test4', 1); +INSERT INTO const_in_const VALUES(5, now(), 3, 'test5', 1); -SELECT 1 from test.const_in_const where 42 in (225); -SELECT name FROM test.const_in_const WHERE 1 IN (125, 1, 2) ORDER BY name LIMIT 1; +SELECT 1 from const_in_const where 42 in (225); +SELECT name FROM const_in_const WHERE 1 IN (125, 1, 2) ORDER BY name LIMIT 1; -DROP TABLE IF EXISTS test.const_in_const; +DROP TABLE IF EXISTS const_in_const; diff --git a/dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql b/dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql index c37aaa21efe..5f8b15e980a 100644 --- a/dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql +++ b/dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.merge_tree; -CREATE TABLE test.merge_tree (x UInt64, date Date) ENGINE = MergeTree(date, x, 1); +DROP TABLE IF EXISTS merge_tree; +CREATE TABLE merge_tree (x UInt64, date Date) ENGINE = MergeTree(date, x, 1); -INSERT INTO test.merge_tree VALUES (1, '2000-01-01'); -SELECT x AS y, y FROM test.merge_tree; +INSERT INTO merge_tree VALUES (1, '2000-01-01'); +SELECT x AS y, y FROM merge_tree; -DROP TABLE IF EXISTS test.merge_tree; +DROP TABLE IF EXISTS merge_tree; diff --git a/dbms/tests/queries/0_stateless/00413_distinct.sql b/dbms/tests/queries/0_stateless/00413_distinct.sql index 6fa8c3180d3..8c6cb6fead2 100644 --- a/dbms/tests/queries/0_stateless/00413_distinct.sql +++ b/dbms/tests/queries/0_stateless/00413_distinct.sql @@ -1,22 +1,22 @@ -DROP TABLE IF EXISTS test.distinct; -CREATE TABLE test.distinct (Num UInt32, Name String) ENGINE = Memory; +DROP TABLE IF EXISTS distinct; +CREATE TABLE distinct (Num UInt32, Name String) ENGINE = Memory; -INSERT INTO test.distinct (Num, Name) VALUES (1, 'John'); -INSERT INTO test.distinct (Num, Name) VALUES (1, 'John'); -INSERT INTO test.distinct (Num, Name) VALUES (3, 'Mary'); -INSERT INTO test.distinct (Num, Name) VALUES (3, 'Mary'); -INSERT INTO test.distinct (Num, Name) VALUES (3, 'Mary'); -INSERT INTO test.distinct (Num, Name) VALUES (4, 'Mary'); -INSERT INTO test.distinct (Num, Name) VALUES (4, 'Mary'); -INSERT INTO test.distinct (Num, Name) VALUES (5, 'Bill'); -INSERT INTO test.distinct (Num, Name) VALUES (7, 'Bill'); -INSERT INTO test.distinct (Num, Name) VALUES (7, 'Bill'); -INSERT INTO test.distinct (Num, Name) VALUES (7, 'Mary'); -INSERT INTO test.distinct (Num, Name) VALUES (7, 'John'); +INSERT INTO distinct (Num, Name) VALUES (1, 'John'); +INSERT INTO distinct (Num, Name) VALUES (1, 'John'); +INSERT INTO distinct (Num, Name) VALUES (3, 'Mary'); +INSERT INTO distinct (Num, Name) VALUES (3, 'Mary'); +INSERT INTO distinct (Num, Name) VALUES (3, 'Mary'); +INSERT INTO distinct (Num, Name) VALUES (4, 'Mary'); +INSERT INTO distinct (Num, Name) VALUES (4, 'Mary'); +INSERT INTO distinct (Num, Name) VALUES (5, 'Bill'); +INSERT INTO distinct (Num, Name) VALUES (7, 'Bill'); +INSERT INTO distinct (Num, Name) VALUES (7, 'Bill'); +INSERT INTO distinct (Num, Name) VALUES (7, 'Mary'); +INSERT INTO distinct (Num, Name) VALUES (7, 'John'); -- String field -SELECT Name FROM (SELECT DISTINCT Name FROM test.distinct) ORDER BY Name; +SELECT Name FROM (SELECT DISTINCT Name FROM distinct) ORDER BY Name; -- Num field -SELECT Num FROM (SELECT DISTINCT Num FROM test.distinct) ORDER BY Num; +SELECT Num FROM (SELECT DISTINCT Num FROM distinct) ORDER BY Num; -DROP TABLE IF EXISTS test.distinct; +DROP TABLE IF EXISTS distinct; diff --git a/dbms/tests/queries/0_stateless/00418_input_format_allow_errors.sh b/dbms/tests/queries/0_stateless/00418_input_format_allow_errors.sh index 8cadeeac8a4..d490010ceb0 100755 --- a/dbms/tests/queries/0_stateless/00418_input_format_allow_errors.sh +++ b/dbms/tests/queries/0_stateless/00418_input_format_allow_errors.sh @@ -3,25 +3,25 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.formats_test" -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.formats_test (x UInt64, s String) ENGINE = Memory" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS formats_test" +$CLICKHOUSE_CLIENT --query="CREATE TABLE formats_test (x UInt64, s String) ENGINE = Memory" -echo -ne '1\tHello\n \n3\tGoodbye\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.1 --query="INSERT INTO test.formats_test FORMAT TSV" +echo -ne '1\tHello\n \n3\tGoodbye\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.1 --query="INSERT INTO formats_test FORMAT TSV" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.formats_test ORDER BY x, s" +$CLICKHOUSE_CLIENT --query="SELECT * FROM formats_test ORDER BY x, s" -echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.1 --query="INSERT INTO test.formats_test FORMAT TSV" 2> /dev/null; echo $? +echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.1 --query="INSERT INTO formats_test FORMAT TSV" 2> /dev/null; echo $? -echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=2 --input_format_allow_errors_ratio=0.1 --query="INSERT INTO test.formats_test FORMAT TSV" +echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=2 --input_format_allow_errors_ratio=0.1 --query="INSERT INTO formats_test FORMAT TSV" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.formats_test ORDER BY x, s" +$CLICKHOUSE_CLIENT --query="SELECT * FROM formats_test ORDER BY x, s" -echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.4 --query="INSERT INTO test.formats_test FORMAT TSV" 2> /dev/null; echo $? +echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.4 --query="INSERT INTO formats_test FORMAT TSV" 2> /dev/null; echo $? -echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.6 --query="INSERT INTO test.formats_test FORMAT TSV" +echo -ne '1\tHello\n2\n3\tGoodbye\n\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=1 --input_format_allow_errors_ratio=0.6 --query="INSERT INTO formats_test FORMAT TSV" -echo -ne 'x=1\ts=TSKV\nx=minus2\ts=trash1\ns=trash2\tx=-3\ns=TSKV Ok\tx=4\ns=trash3\tx=-5\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=3 -q "INSERT INTO test.formats_test FORMAT TSKV" +echo -ne 'x=1\ts=TSKV\nx=minus2\ts=trash1\ns=trash2\tx=-3\ns=TSKV Ok\tx=4\ns=trash3\tx=-5\n' | $CLICKHOUSE_CLIENT --input_format_allow_errors_num=3 -q "INSERT INTO formats_test FORMAT TSKV" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.formats_test ORDER BY x, s" +$CLICKHOUSE_CLIENT --query="SELECT * FROM formats_test ORDER BY x, s" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.formats_test" +$CLICKHOUSE_CLIENT --query="DROP TABLE formats_test" diff --git a/dbms/tests/queries/0_stateless/00421_storage_merge__table_index.sh b/dbms/tests/queries/0_stateless/00421_storage_merge__table_index.sh index 1baa5344a4c..60d1e50fc7b 100755 --- a/dbms/tests/queries/0_stateless/00421_storage_merge__table_index.sh +++ b/dbms/tests/queries/0_stateless/00421_storage_merge__table_index.sh @@ -6,14 +6,14 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh for i in `seq -w 0 2 20`; do - $CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.merge_item_$i" - $CLICKHOUSE_CLIENT -q "CREATE TABLE test.merge_item_$i (d Int8) ENGINE = Memory" - $CLICKHOUSE_CLIENT -q "INSERT INTO test.merge_item_$i VALUES ($i)" + $CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS merge_item_$i" + $CLICKHOUSE_CLIENT -q "CREATE TABLE merge_item_$i (d Int8) ENGINE = Memory" + $CLICKHOUSE_CLIENT -q "INSERT INTO merge_item_$i VALUES ($i)" done -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.merge_storage" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.merge_storage (d Int8) ENGINE = Merge('test', '^merge_item_')" -$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT _table, d FROM test.merge_storage WHERE _table LIKE 'merge_item_1%' ORDER BY _table" -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.merge_storage" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS merge_storage" +$CLICKHOUSE_CLIENT -q "CREATE TABLE merge_storage (d Int8) ENGINE = Merge('${CLICKHOUSE_DATABASE}', '^merge_item_')" +$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT _table, d FROM merge_storage WHERE _table LIKE 'merge_item_1%' ORDER BY _table" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS merge_storage" -for i in `seq -w 0 2 20`; do $CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.merge_item_$i"; done +for i in `seq -w 0 2 20`; do $CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS merge_item_$i"; done diff --git a/dbms/tests/queries/0_stateless/00423_storage_log_single_thread.sql b/dbms/tests/queries/0_stateless/00423_storage_log_single_thread.sql index 6693b35ea6c..7d5e14c9ee5 100644 --- a/dbms/tests/queries/0_stateless/00423_storage_log_single_thread.sql +++ b/dbms/tests/queries/0_stateless/00423_storage_log_single_thread.sql @@ -1,29 +1,29 @@ -DROP TABLE IF EXISTS test.log; -CREATE TABLE test.log (s String) ENGINE = Log; +DROP TABLE IF EXISTS log; +CREATE TABLE log (s String) ENGINE = Log; -SELECT * FROM test.log LIMIT 1; -SELECT * FROM test.log; +SELECT * FROM log LIMIT 1; +SELECT * FROM log; -DETACH TABLE test.log; -ATTACH TABLE test.log (s String) ENGINE = Log; +DETACH TABLE log; +ATTACH TABLE log (s String) ENGINE = Log; -SELECT * FROM test.log; -SELECT * FROM test.log LIMIT 1; +SELECT * FROM log; +SELECT * FROM log LIMIT 1; -INSERT INTO test.log VALUES ('Hello'), ('World'); +INSERT INTO log VALUES ('Hello'), ('World'); -SELECT * FROM test.log LIMIT 1; +SELECT * FROM log LIMIT 1; -DETACH TABLE test.log; -ATTACH TABLE test.log (s String) ENGINE = Log; +DETACH TABLE log; +ATTACH TABLE log (s String) ENGINE = Log; -SELECT * FROM test.log LIMIT 1; -SELECT * FROM test.log; +SELECT * FROM log LIMIT 1; +SELECT * FROM log; -DETACH TABLE test.log; -ATTACH TABLE test.log (s String) ENGINE = Log; +DETACH TABLE log; +ATTACH TABLE log (s String) ENGINE = Log; -SELECT * FROM test.log; -SELECT * FROM test.log LIMIT 1; +SELECT * FROM log; +SELECT * FROM log LIMIT 1; -DROP TABLE test.log; +DROP TABLE log; diff --git a/dbms/tests/queries/0_stateless/00427_alter_primary_key.sh b/dbms/tests/queries/0_stateless/00427_alter_primary_key.sh index a2d8f355e67..21c39adb900 100755 --- a/dbms/tests/queries/0_stateless/00427_alter_primary_key.sh +++ b/dbms/tests/queries/0_stateless/00427_alter_primary_key.sh @@ -15,24 +15,24 @@ function perform() fi } -perform "DROP TABLE IF EXISTS test.alter" -perform "CREATE TABLE test.alter (d Date, a Enum8('foo'=1), b DateTime, c DateTime) ENGINE=MergeTree(d, (a, b, toTime(c)), 8192)" +perform "DROP TABLE IF EXISTS alter" +perform "CREATE TABLE alter (d Date, a Enum8('foo'=1), b DateTime, c DateTime) ENGINE=MergeTree(d, (a, b, toTime(c)), 8192)" -perform "INSERT INTO test.alter VALUES ('2017-02-09', 'foo', '2017-02-09 00:00:00', '2017-02-09 00:00:00')" +perform "INSERT INTO alter VALUES ('2017-02-09', 'foo', '2017-02-09 00:00:00', '2017-02-09 00:00:00')" # Must fail because d is used as as a date column in MergeTree -perform "ALTER TABLE test.alter MODIFY COLUMN d UInt16" +perform "ALTER TABLE alter MODIFY COLUMN d UInt16" -perform "ALTER TABLE test.alter MODIFY COLUMN a Enum8('foo'=1, 'bar'=2)" -perform "ALTER TABLE test.alter MODIFY COLUMN b UInt32" +perform "ALTER TABLE alter MODIFY COLUMN a Enum8('foo'=1, 'bar'=2)" +perform "ALTER TABLE alter MODIFY COLUMN b UInt32" # Must fail because column c is used in primary key via an expression. -perform "ALTER TABLE test.alter MODIFY COLUMN c UInt32" +perform "ALTER TABLE alter MODIFY COLUMN c UInt32" -perform "INSERT INTO test.alter VALUES ('2017-02-09', 'bar', 1486598400, '2017-02-09 00:00:00')" +perform "INSERT INTO alter VALUES ('2017-02-09', 'bar', 1486598400, '2017-02-09 00:00:00')" -perform "SELECT d FROM test.alter WHERE a = 'bar'" +perform "SELECT d FROM alter WHERE a = 'bar'" -perform "SELECT a, b, b = toUnixTimestamp(c) FROM test.alter ORDER BY a FORMAT TSV" +perform "SELECT a, b, b = toUnixTimestamp(c) FROM alter ORDER BY a FORMAT TSV" -perform "DROP TABLE test.alter" +perform "DROP TABLE alter" diff --git a/dbms/tests/queries/0_stateless/00431_if_nulls.sql b/dbms/tests/queries/0_stateless/00431_if_nulls.sql index 1172df5e7ef..33ec85f8d09 100644 --- a/dbms/tests/queries/0_stateless/00431_if_nulls.sql +++ b/dbms/tests/queries/0_stateless/00431_if_nulls.sql @@ -14,9 +14,9 @@ * Thus we have 5 * 4 * 4 = 80 combinations. */ -DROP TABLE IF EXISTS test.nullable; +DROP TABLE IF EXISTS nullable; -CREATE VIEW test.nullable +CREATE VIEW nullable AS SELECT 1 AS constant_true, 0 AS constant_false, @@ -32,109 +32,109 @@ AS SELECT FROM system.numbers LIMIT 10; -SELECT constant_true ? then_constant : else_constant AS res FROM test.nullable; -SELECT constant_true ? then_constant : constant_null AS res FROM test.nullable; -SELECT constant_true ? then_constant : else_non_constant AS res FROM test.nullable; -SELECT constant_true ? then_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_true ? then_constant : else_constant AS res FROM nullable; +SELECT constant_true ? then_constant : constant_null AS res FROM nullable; +SELECT constant_true ? then_constant : else_non_constant AS res FROM nullable; +SELECT constant_true ? then_constant : else_non_constant_nullable AS res FROM nullable; -SELECT constant_true ? constant_null : else_constant AS res FROM test.nullable; -SELECT constant_true ? constant_null : constant_null AS res FROM test.nullable; -SELECT constant_true ? constant_null : else_non_constant AS res FROM test.nullable; -SELECT constant_true ? constant_null : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_true ? constant_null : else_constant AS res FROM nullable; +SELECT constant_true ? constant_null : constant_null AS res FROM nullable; +SELECT constant_true ? constant_null : else_non_constant AS res FROM nullable; +SELECT constant_true ? constant_null : else_non_constant_nullable AS res FROM nullable; -SELECT constant_true ? then_non_constant : else_constant AS res FROM test.nullable; -SELECT constant_true ? then_non_constant : constant_null AS res FROM test.nullable; -SELECT constant_true ? then_non_constant : else_non_constant AS res FROM test.nullable; -SELECT constant_true ? then_non_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_true ? then_non_constant : else_constant AS res FROM nullable; +SELECT constant_true ? then_non_constant : constant_null AS res FROM nullable; +SELECT constant_true ? then_non_constant : else_non_constant AS res FROM nullable; +SELECT constant_true ? then_non_constant : else_non_constant_nullable AS res FROM nullable; -SELECT constant_true ? then_non_constant_nullable : else_constant AS res FROM test.nullable; -SELECT constant_true ? then_non_constant_nullable : constant_null AS res FROM test.nullable; -SELECT constant_true ? then_non_constant_nullable : else_non_constant AS res FROM test.nullable; -SELECT constant_true ? then_non_constant_nullable : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_true ? then_non_constant_nullable : else_constant AS res FROM nullable; +SELECT constant_true ? then_non_constant_nullable : constant_null AS res FROM nullable; +SELECT constant_true ? then_non_constant_nullable : else_non_constant AS res FROM nullable; +SELECT constant_true ? then_non_constant_nullable : else_non_constant_nullable AS res FROM nullable; -SELECT constant_false ? then_constant : else_constant AS res FROM test.nullable; -SELECT constant_false ? then_constant : constant_null AS res FROM test.nullable; -SELECT constant_false ? then_constant : else_non_constant AS res FROM test.nullable; -SELECT constant_false ? then_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_false ? then_constant : else_constant AS res FROM nullable; +SELECT constant_false ? then_constant : constant_null AS res FROM nullable; +SELECT constant_false ? then_constant : else_non_constant AS res FROM nullable; +SELECT constant_false ? then_constant : else_non_constant_nullable AS res FROM nullable; -SELECT constant_false ? constant_null : else_constant AS res FROM test.nullable; -SELECT constant_false ? constant_null : constant_null AS res FROM test.nullable; -SELECT constant_false ? constant_null : else_non_constant AS res FROM test.nullable; -SELECT constant_false ? constant_null : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_false ? constant_null : else_constant AS res FROM nullable; +SELECT constant_false ? constant_null : constant_null AS res FROM nullable; +SELECT constant_false ? constant_null : else_non_constant AS res FROM nullable; +SELECT constant_false ? constant_null : else_non_constant_nullable AS res FROM nullable; -SELECT constant_false ? then_non_constant : else_constant AS res FROM test.nullable; -SELECT constant_false ? then_non_constant : constant_null AS res FROM test.nullable; -SELECT constant_false ? then_non_constant : else_non_constant AS res FROM test.nullable; -SELECT constant_false ? then_non_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_false ? then_non_constant : else_constant AS res FROM nullable; +SELECT constant_false ? then_non_constant : constant_null AS res FROM nullable; +SELECT constant_false ? then_non_constant : else_non_constant AS res FROM nullable; +SELECT constant_false ? then_non_constant : else_non_constant_nullable AS res FROM nullable; -SELECT constant_false ? then_non_constant_nullable : else_constant AS res FROM test.nullable; -SELECT constant_false ? then_non_constant_nullable : constant_null AS res FROM test.nullable; -SELECT constant_false ? then_non_constant_nullable : else_non_constant AS res FROM test.nullable; -SELECT constant_false ? then_non_constant_nullable : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_false ? then_non_constant_nullable : else_constant AS res FROM nullable; +SELECT constant_false ? then_non_constant_nullable : constant_null AS res FROM nullable; +SELECT constant_false ? then_non_constant_nullable : else_non_constant AS res FROM nullable; +SELECT constant_false ? then_non_constant_nullable : else_non_constant_nullable AS res FROM nullable; -SELECT constant_null ? then_constant : else_constant AS res FROM test.nullable; -SELECT constant_null ? then_constant : constant_null AS res FROM test.nullable; -SELECT constant_null ? then_constant : else_non_constant AS res FROM test.nullable; -SELECT constant_null ? then_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_null ? then_constant : else_constant AS res FROM nullable; +SELECT constant_null ? then_constant : constant_null AS res FROM nullable; +SELECT constant_null ? then_constant : else_non_constant AS res FROM nullable; +SELECT constant_null ? then_constant : else_non_constant_nullable AS res FROM nullable; -SELECT constant_null ? constant_null : else_constant AS res FROM test.nullable; -SELECT constant_null ? constant_null : constant_null AS res FROM test.nullable; -SELECT constant_null ? constant_null : else_non_constant AS res FROM test.nullable; -SELECT constant_null ? constant_null : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_null ? constant_null : else_constant AS res FROM nullable; +SELECT constant_null ? constant_null : constant_null AS res FROM nullable; +SELECT constant_null ? constant_null : else_non_constant AS res FROM nullable; +SELECT constant_null ? constant_null : else_non_constant_nullable AS res FROM nullable; -SELECT constant_null ? then_non_constant : else_constant AS res FROM test.nullable; -SELECT constant_null ? then_non_constant : constant_null AS res FROM test.nullable; -SELECT constant_null ? then_non_constant : else_non_constant AS res FROM test.nullable; -SELECT constant_null ? then_non_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_null ? then_non_constant : else_constant AS res FROM nullable; +SELECT constant_null ? then_non_constant : constant_null AS res FROM nullable; +SELECT constant_null ? then_non_constant : else_non_constant AS res FROM nullable; +SELECT constant_null ? then_non_constant : else_non_constant_nullable AS res FROM nullable; -SELECT constant_null ? then_non_constant_nullable : else_constant AS res FROM test.nullable; -SELECT constant_null ? then_non_constant_nullable : constant_null AS res FROM test.nullable; -SELECT constant_null ? then_non_constant_nullable : else_non_constant AS res FROM test.nullable; -SELECT constant_null ? then_non_constant_nullable : else_non_constant_nullable AS res FROM test.nullable; +SELECT constant_null ? then_non_constant_nullable : else_constant AS res FROM nullable; +SELECT constant_null ? then_non_constant_nullable : constant_null AS res FROM nullable; +SELECT constant_null ? then_non_constant_nullable : else_non_constant AS res FROM nullable; +SELECT constant_null ? then_non_constant_nullable : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant ? then_constant : else_constant AS res FROM test.nullable; -SELECT cond_non_constant ? then_constant : constant_null AS res FROM test.nullable; -SELECT cond_non_constant ? then_constant : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant ? then_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant ? then_constant : else_constant AS res FROM nullable; +SELECT cond_non_constant ? then_constant : constant_null AS res FROM nullable; +SELECT cond_non_constant ? then_constant : else_non_constant AS res FROM nullable; +SELECT cond_non_constant ? then_constant : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant ? constant_null : else_constant AS res FROM test.nullable; -SELECT cond_non_constant ? constant_null : constant_null AS res FROM test.nullable; -SELECT cond_non_constant ? constant_null : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant ? constant_null : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant ? constant_null : else_constant AS res FROM nullable; +SELECT cond_non_constant ? constant_null : constant_null AS res FROM nullable; +SELECT cond_non_constant ? constant_null : else_non_constant AS res FROM nullable; +SELECT cond_non_constant ? constant_null : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant ? then_non_constant : else_constant AS res FROM test.nullable; -SELECT cond_non_constant ? then_non_constant : constant_null AS res FROM test.nullable; -SELECT cond_non_constant ? then_non_constant : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant ? then_non_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant ? then_non_constant : else_constant AS res FROM nullable; +SELECT cond_non_constant ? then_non_constant : constant_null AS res FROM nullable; +SELECT cond_non_constant ? then_non_constant : else_non_constant AS res FROM nullable; +SELECT cond_non_constant ? then_non_constant : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant ? then_non_constant_nullable : else_constant AS res FROM test.nullable; -SELECT cond_non_constant ? then_non_constant_nullable : constant_null AS res FROM test.nullable; -SELECT cond_non_constant ? then_non_constant_nullable : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant ? then_non_constant_nullable : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant ? then_non_constant_nullable : else_constant AS res FROM nullable; +SELECT cond_non_constant ? then_non_constant_nullable : constant_null AS res FROM nullable; +SELECT cond_non_constant ? then_non_constant_nullable : else_non_constant AS res FROM nullable; +SELECT cond_non_constant ? then_non_constant_nullable : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant_nullable ? then_constant : else_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_constant : constant_null AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_constant : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant_nullable ? then_constant : else_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_constant : constant_null AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_constant : else_non_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_constant : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant_nullable ? constant_null : else_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? constant_null : constant_null AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? constant_null : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? constant_null : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant_nullable ? constant_null : else_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? constant_null : constant_null AS res FROM nullable; +SELECT cond_non_constant_nullable ? constant_null : else_non_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? constant_null : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant_nullable ? then_non_constant : else_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_non_constant : constant_null AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_non_constant : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_non_constant : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant_nullable ? then_non_constant : else_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_non_constant : constant_null AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_non_constant : else_non_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_non_constant : else_non_constant_nullable AS res FROM nullable; -SELECT cond_non_constant_nullable ? then_non_constant_nullable : else_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_non_constant_nullable : constant_null AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_non_constant_nullable : else_non_constant AS res FROM test.nullable; -SELECT cond_non_constant_nullable ? then_non_constant_nullable : else_non_constant_nullable AS res FROM test.nullable; +SELECT cond_non_constant_nullable ? then_non_constant_nullable : else_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_non_constant_nullable : constant_null AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_non_constant_nullable : else_non_constant AS res FROM nullable; +SELECT cond_non_constant_nullable ? then_non_constant_nullable : else_non_constant_nullable AS res FROM nullable; -DROP TABLE test.nullable; +DROP TABLE nullable; diff --git a/dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql b/dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql index e8d9704c3a9..c74b4f03371 100644 --- a/dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql +++ b/dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql @@ -1,32 +1,32 @@ -DROP TABLE IF EXISTS test.agg_func_col; +DROP TABLE IF EXISTS agg_func_col; -CREATE TABLE test.agg_func_col (p Date, k UInt8, d AggregateFunction(sum, UInt64) DEFAULT arrayReduce('sumState', [toUInt64(200)])) ENGINE = AggregatingMergeTree(p, k, 1); -INSERT INTO test.agg_func_col (k) VALUES (0); -INSERT INTO test.agg_func_col (k, d) SELECT 1 AS k, arrayReduce('sumState', [toUInt64(100)]) AS d; -SELECT k, sumMerge(d) FROM test.agg_func_col GROUP BY k ORDER BY k; +CREATE TABLE agg_func_col (p Date, k UInt8, d AggregateFunction(sum, UInt64) DEFAULT arrayReduce('sumState', [toUInt64(200)])) ENGINE = AggregatingMergeTree(p, k, 1); +INSERT INTO agg_func_col (k) VALUES (0); +INSERT INTO agg_func_col (k, d) SELECT 1 AS k, arrayReduce('sumState', [toUInt64(100)]) AS d; +SELECT k, sumMerge(d) FROM agg_func_col GROUP BY k ORDER BY k; SELECT ''; -ALTER TABLE test.agg_func_col ADD COLUMN af_avg1 AggregateFunction(avg, UInt8); -SELECT k, sumMerge(d), avgMerge(af_avg1) FROM test.agg_func_col GROUP BY k ORDER BY k; +ALTER TABLE agg_func_col ADD COLUMN af_avg1 AggregateFunction(avg, UInt8); +SELECT k, sumMerge(d), avgMerge(af_avg1) FROM agg_func_col GROUP BY k ORDER BY k; SELECT ''; -INSERT INTO test.agg_func_col (k, af_avg1) VALUES (2, arrayReduce('avgState', [101])); -SELECT k, sumMerge(d), avgMerge(af_avg1) FROM test.agg_func_col GROUP BY k ORDER BY k; +INSERT INTO agg_func_col (k, af_avg1) VALUES (2, arrayReduce('avgState', [101])); +SELECT k, sumMerge(d), avgMerge(af_avg1) FROM agg_func_col GROUP BY k ORDER BY k; SELECT ''; -ALTER TABLE test.agg_func_col ADD COLUMN af_gua AggregateFunction(groupUniqArray, String) DEFAULT arrayReduce('groupUniqArrayState', ['---', '---']); -SELECT k, sumMerge(d), avgMerge(af_avg1), groupUniqArrayMerge(af_gua) FROM test.agg_func_col GROUP BY k ORDER BY k; +ALTER TABLE agg_func_col ADD COLUMN af_gua AggregateFunction(groupUniqArray, String) DEFAULT arrayReduce('groupUniqArrayState', ['---', '---']); +SELECT k, sumMerge(d), avgMerge(af_avg1), groupUniqArrayMerge(af_gua) FROM agg_func_col GROUP BY k ORDER BY k; SELECT ''; -INSERT INTO test.agg_func_col (k, af_avg1, af_gua) VALUES (3, arrayReduce('avgState', [102, 102]), arrayReduce('groupUniqArrayState', ['igua', 'igua'])); -SELECT k, sumMerge(d), avgMerge(af_avg1), groupUniqArrayMerge(af_gua) FROM test.agg_func_col GROUP BY k ORDER BY k; +INSERT INTO agg_func_col (k, af_avg1, af_gua) VALUES (3, arrayReduce('avgState', [102, 102]), arrayReduce('groupUniqArrayState', ['igua', 'igua'])); +SELECT k, sumMerge(d), avgMerge(af_avg1), groupUniqArrayMerge(af_gua) FROM agg_func_col GROUP BY k ORDER BY k; -OPTIMIZE TABLE test.agg_func_col; +OPTIMIZE TABLE agg_func_col; SELECT ''; -SELECT k, sumMerge(d), avgMerge(af_avg1), groupUniqArrayMerge(af_gua) FROM test.agg_func_col GROUP BY k ORDER BY k; +SELECT k, sumMerge(d), avgMerge(af_avg1), groupUniqArrayMerge(af_gua) FROM agg_func_col GROUP BY k ORDER BY k; -DROP TABLE IF EXISTS test.agg_func_col; +DROP TABLE IF EXISTS agg_func_col; SELECT ''; SELECT arrayReduce('groupUniqArrayIf', ['---', '---', 't1'], [1, 1, 0]); diff --git a/dbms/tests/queries/0_stateless/00440_nulls_merge_tree.sql b/dbms/tests/queries/0_stateless/00440_nulls_merge_tree.sql index b3386d5444e..7281f960509 100644 --- a/dbms/tests/queries/0_stateless/00440_nulls_merge_tree.sql +++ b/dbms/tests/queries/0_stateless/00440_nulls_merge_tree.sql @@ -1,5 +1,5 @@ -DROP TABLE IF EXISTS test.nulls; -CREATE TABLE test.nulls (d Date, x Nullable(UInt64)) ENGINE = MergeTree(d, d, 8192); -INSERT INTO test.nulls SELECT toDate('2000-01-01'), number % 10 != 0 ? number : NULL FROM system.numbers LIMIT 10000; -SELECT count() FROM test.nulls WHERE x IS NULL; -DROP TABLE test.nulls; +DROP TABLE IF EXISTS nulls; +CREATE TABLE nulls (d Date, x Nullable(UInt64)) ENGINE = MergeTree(d, d, 8192); +INSERT INTO nulls SELECT toDate('2000-01-01'), number % 10 != 0 ? number : NULL FROM system.numbers LIMIT 10000; +SELECT count() FROM nulls WHERE x IS NULL; +DROP TABLE nulls; diff --git a/dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh b/dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh index 8833cefca45..4ab4aa18c18 100755 --- a/dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh +++ b/dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh @@ -5,33 +5,33 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.preferred_block_size_bytes" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.preferred_block_size_bytes (p Date, s String) ENGINE = MergeTree(p, p, 1)" -$CLICKHOUSE_CLIENT -q "INSERT INTO test.preferred_block_size_bytes (s) SELECT '16_bytes_-_-_-_' AS s FROM system.numbers LIMIT 10, 90" -$CLICKHOUSE_CLIENT -q "OPTIMIZE TABLE test.preferred_block_size_bytes" -$CLICKHOUSE_CLIENT --preferred_block_size_bytes=26 -q "SELECT DISTINCT blockSize(), ignore(p, s) FROM test.preferred_block_size_bytes" -$CLICKHOUSE_CLIENT --preferred_block_size_bytes=52 -q "SELECT DISTINCT blockSize(), ignore(p, s) FROM test.preferred_block_size_bytes" -$CLICKHOUSE_CLIENT --preferred_block_size_bytes=90 -q "SELECT DISTINCT blockSize(), ignore(p) FROM test.preferred_block_size_bytes" -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.preferred_block_size_bytes" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS preferred_block_size_bytes" +$CLICKHOUSE_CLIENT -q "CREATE TABLE preferred_block_size_bytes (p Date, s String) ENGINE = MergeTree(p, p, 1)" +$CLICKHOUSE_CLIENT -q "INSERT INTO preferred_block_size_bytes (s) SELECT '16_bytes_-_-_-_' AS s FROM system.numbers LIMIT 10, 90" +$CLICKHOUSE_CLIENT -q "OPTIMIZE TABLE preferred_block_size_bytes" +$CLICKHOUSE_CLIENT --preferred_block_size_bytes=26 -q "SELECT DISTINCT blockSize(), ignore(p, s) FROM preferred_block_size_bytes" +$CLICKHOUSE_CLIENT --preferred_block_size_bytes=52 -q "SELECT DISTINCT blockSize(), ignore(p, s) FROM preferred_block_size_bytes" +$CLICKHOUSE_CLIENT --preferred_block_size_bytes=90 -q "SELECT DISTINCT blockSize(), ignore(p) FROM preferred_block_size_bytes" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS preferred_block_size_bytes" # PREWHERE using empty column -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.pbs" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.pbs (p Date, i UInt64, sa Array(String)) ENGINE = MergeTree(p, p, 100)" -$CLICKHOUSE_CLIENT -q "INSERT INTO test.pbs (p, i, sa) SELECT toDate(i % 30) AS p, number AS i, ['a'] AS sa FROM system.numbers LIMIT 1000" -$CLICKHOUSE_CLIENT -q "ALTER TABLE test.pbs ADD COLUMN s UInt8 DEFAULT 0" -$CLICKHOUSE_CLIENT --preferred_block_size_bytes=100000 -q "SELECT count() FROM test.pbs PREWHERE s = 0" -$CLICKHOUSE_CLIENT -q "INSERT INTO test.pbs (p, i, sa) SELECT toDate(i % 30) AS p, number AS i, ['a'] AS sa FROM system.numbers LIMIT 1000" -$CLICKHOUSE_CLIENT --preferred_block_size_bytes=100000 -q "SELECT count() FROM test.pbs PREWHERE s = 0" -$CLICKHOUSE_CLIENT -q "DROP TABLE test.pbs" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS pbs" +$CLICKHOUSE_CLIENT -q "CREATE TABLE pbs (p Date, i UInt64, sa Array(String)) ENGINE = MergeTree(p, p, 100)" +$CLICKHOUSE_CLIENT -q "INSERT INTO pbs (p, i, sa) SELECT toDate(i % 30) AS p, number AS i, ['a'] AS sa FROM system.numbers LIMIT 1000" +$CLICKHOUSE_CLIENT -q "ALTER TABLE pbs ADD COLUMN s UInt8 DEFAULT 0" +$CLICKHOUSE_CLIENT --preferred_block_size_bytes=100000 -q "SELECT count() FROM pbs PREWHERE s = 0" +$CLICKHOUSE_CLIENT -q "INSERT INTO pbs (p, i, sa) SELECT toDate(i % 30) AS p, number AS i, ['a'] AS sa FROM system.numbers LIMIT 1000" +$CLICKHOUSE_CLIENT --preferred_block_size_bytes=100000 -q "SELECT count() FROM pbs PREWHERE s = 0" +$CLICKHOUSE_CLIENT -q "DROP TABLE pbs" # Nullable PREWHERE -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.nullable_prewhere" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.nullable_prewhere (p Date, f Nullable(UInt64), d UInt64) ENGINE = MergeTree(p, p, 8)" -$CLICKHOUSE_CLIENT -q "INSERT INTO test.nullable_prewhere SELECT toDate(0) AS p, if(number % 2 = 0, CAST(number AS Nullable(UInt64)), CAST(NULL AS Nullable(UInt64))) AS f, number as d FROM system.numbers LIMIT 1001" -$CLICKHOUSE_CLIENT -q "SELECT sum(d), sum(f), max(d) FROM test.nullable_prewhere PREWHERE NOT isNull(f)" -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.nullable_prewhere" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS nullable_prewhere" +$CLICKHOUSE_CLIENT -q "CREATE TABLE nullable_prewhere (p Date, f Nullable(UInt64), d UInt64) ENGINE = MergeTree(p, p, 8)" +$CLICKHOUSE_CLIENT -q "INSERT INTO nullable_prewhere SELECT toDate(0) AS p, if(number % 2 = 0, CAST(number AS Nullable(UInt64)), CAST(NULL AS Nullable(UInt64))) AS f, number as d FROM system.numbers LIMIT 1001" +$CLICKHOUSE_CLIENT -q "SELECT sum(d), sum(f), max(d) FROM nullable_prewhere PREWHERE NOT isNull(f)" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS nullable_prewhere" # Depend on 00282_merging test diff --git a/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh b/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh index cf3c1fdadaa..54f5afef086 100755 --- a/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh +++ b/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh @@ -5,12 +5,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ch="$CLICKHOUSE_CLIENT --stacktrace -q" -$ch "DROP TABLE IF EXISTS test.clear_column1" -$ch "DROP TABLE IF EXISTS test.clear_column2" -$ch "CREATE TABLE test.clear_column1 (d Date, i Int64, s String) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/clear_column', '1', d, d, 8192)" -$ch "CREATE TABLE test.clear_column2 (d Date, i Int64, s String) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/clear_column', '2', d, d, 8192)" +$ch "DROP TABLE IF EXISTS clear_column1" +$ch "DROP TABLE IF EXISTS clear_column2" +$ch "CREATE TABLE clear_column1 (d Date, i Int64, s String) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/clear_column', '1', d, d, 8192)" +$ch "CREATE TABLE clear_column2 (d Date, i Int64, s String) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/clear_column', '2', d, d, 8192)" -$ch "ALTER TABLE test.clear_column1 CLEAR COLUMN VasyaUnexistingColumn IN PARTITION '200001'" 1>/dev/null 2>/dev/null +$ch "ALTER TABLE clear_column1 CLEAR COLUMN VasyaUnexistingColumn IN PARTITION '200001'" 1>/dev/null 2>/dev/null rc=$? if [ $rc -eq 0 ]; then echo "An unexisisting column was ALTERed. Code: $rc" @@ -18,21 +18,21 @@ if [ $rc -eq 0 ]; then fi set -e -$ch "INSERT INTO test.clear_column1 VALUES ('2000-01-01', 1, 'a'), ('2000-02-01', 2, 'b')" -$ch "INSERT INTO test.clear_column1 VALUES ('2000-01-01', 3, 'c'), ('2000-02-01', 4, 'd')" +$ch "INSERT INTO clear_column1 VALUES ('2000-01-01', 1, 'a'), ('2000-02-01', 2, 'b')" +$ch "INSERT INTO clear_column1 VALUES ('2000-01-01', 3, 'c'), ('2000-02-01', 4, 'd')" for i in `seq 3`; do - $ch "INSERT INTO test.clear_column1 VALUES ('2000-02-01', 0, ''), ('2000-02-01', 0, '')" & # insert into the same partition - $ch "ALTER TABLE test.clear_column1 CLEAR COLUMN i IN PARTITION '200001'" --replication_alter_partitions_sync=2 & - $ch "ALTER TABLE test.clear_column1 CLEAR COLUMN s IN PARTITION '200001'" --replication_alter_partitions_sync=2 & - $ch "ALTER TABLE test.clear_column1 CLEAR COLUMN i IN PARTITION '200002'" --replication_alter_partitions_sync=2 & - $ch "ALTER TABLE test.clear_column1 CLEAR COLUMN s IN PARTITION '200002'" --replication_alter_partitions_sync=2 & - $ch "INSERT INTO test.clear_column1 VALUES ('2000-03-01', 3, 'c'), ('2000-03-01', 4, 'd')" & # insert into other partition + $ch "INSERT INTO clear_column1 VALUES ('2000-02-01', 0, ''), ('2000-02-01', 0, '')" & # insert into the same partition + $ch "ALTER TABLE clear_column1 CLEAR COLUMN i IN PARTITION '200001'" --replication_alter_partitions_sync=2 & + $ch "ALTER TABLE clear_column1 CLEAR COLUMN s IN PARTITION '200001'" --replication_alter_partitions_sync=2 & + $ch "ALTER TABLE clear_column1 CLEAR COLUMN i IN PARTITION '200002'" --replication_alter_partitions_sync=2 & + $ch "ALTER TABLE clear_column1 CLEAR COLUMN s IN PARTITION '200002'" --replication_alter_partitions_sync=2 & + $ch "INSERT INTO clear_column1 VALUES ('2000-03-01', 3, 'c'), ('2000-03-01', 4, 'd')" & # insert into other partition done wait -$ch "SELECT DISTINCT * FROM test.clear_column1 WHERE d != toDate('2000-03-01') ORDER BY d, i, s" -$ch "SELECT DISTINCT * FROM test.clear_column2 WHERE d != toDate('2000-03-01') ORDER BY d, i, s" +$ch "SELECT DISTINCT * FROM clear_column1 WHERE d != toDate('2000-03-01') ORDER BY d, i, s" +$ch "SELECT DISTINCT * FROM clear_column2 WHERE d != toDate('2000-03-01') ORDER BY d, i, s" -$ch "DROP TABLE IF EXISTS test.clear_column1" -$ch "DROP TABLE IF EXISTS test.clear_column2" +$ch "DROP TABLE IF EXISTS clear_column1" +$ch "DROP TABLE IF EXISTS clear_column2" diff --git a/dbms/tests/queries/0_stateless/00447_foreach_modifier.sql b/dbms/tests/queries/0_stateless/00447_foreach_modifier.sql index 29e957e6501..a62c2e1bc06 100644 --- a/dbms/tests/queries/0_stateless/00447_foreach_modifier.sql +++ b/dbms/tests/queries/0_stateless/00447_foreach_modifier.sql @@ -1,14 +1,14 @@ -CREATE TABLE IF NOT EXISTS test.data (sketch Array(Int8)) ENGINE=Memory; +CREATE TABLE IF NOT EXISTS data (sketch Array(Int8)) ENGINE=Memory; -INSERT INTO test.data VALUES ([-1,-1,-1]), ([4,-1,2]), ([0,25,-1]), ([-1,-1,7]), ([-1,-1,-1]); +INSERT INTO data VALUES ([-1,-1,-1]), ([4,-1,2]), ([0,25,-1]), ([-1,-1,7]), ([-1,-1,-1]); -SELECT max(sketch) FROM test.data; +SELECT max(sketch) FROM data; -SELECT maxArray(sketch) FROM test.data; +SELECT maxArray(sketch) FROM data; -SELECT maxForEach(sketch) FROM test.data; +SELECT maxForEach(sketch) FROM data; -DROP TABLE test.data; +DROP TABLE data; SELECT k, sumForEach(arr) FROM (SELECT number % 3 AS k, range(number) AS arr FROM system.numbers LIMIT 10) GROUP BY k ORDER BY k; diff --git a/dbms/tests/queries/0_stateless/00453_cast_enum.sql b/dbms/tests/queries/0_stateless/00453_cast_enum.sql index 95f66129fb5..3770a21f27e 100644 --- a/dbms/tests/queries/0_stateless/00453_cast_enum.sql +++ b/dbms/tests/queries/0_stateless/00453_cast_enum.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.cast_enums; -CREATE TABLE test.cast_enums +DROP TABLE IF EXISTS cast_enums; +CREATE TABLE cast_enums ( type Enum8('session' = 1, 'pageview' = 2, 'click' = 3), date Date, id UInt64 ) ENGINE = MergeTree(date, (type, date, id), 8192); -INSERT INTO test.cast_enums SELECT 'session' AS type, toDate('2017-01-01') AS date, number AS id FROM system.numbers LIMIT 2; -INSERT INTO test.cast_enums SELECT 2 AS type, toDate('2017-01-01') AS date, number AS id FROM system.numbers LIMIT 2; +INSERT INTO cast_enums SELECT 'session' AS type, toDate('2017-01-01') AS date, number AS id FROM system.numbers LIMIT 2; +INSERT INTO cast_enums SELECT 2 AS type, toDate('2017-01-01') AS date, number AS id FROM system.numbers LIMIT 2; -SELECT type, date, id FROM test.cast_enums ORDER BY type, id; +SELECT type, date, id FROM cast_enums ORDER BY type, id; -DROP TABLE IF EXISTS test.cast_enums; +DROP TABLE IF EXISTS cast_enums; diff --git a/dbms/tests/queries/0_stateless/00456_alter_nullable.sql b/dbms/tests/queries/0_stateless/00456_alter_nullable.sql index fc4903ad3a6..703d1a551a7 100644 --- a/dbms/tests/queries/0_stateless/00456_alter_nullable.sql +++ b/dbms/tests/queries/0_stateless/00456_alter_nullable.sql @@ -1,16 +1,16 @@ -DROP TABLE IF EXISTS test.nullable_alter; -CREATE TABLE test.nullable_alter (d Date DEFAULT '2000-01-01', x String) ENGINE = MergeTree(d, d, 1); +DROP TABLE IF EXISTS nullable_alter; +CREATE TABLE nullable_alter (d Date DEFAULT '2000-01-01', x String) ENGINE = MergeTree(d, d, 1); -INSERT INTO test.nullable_alter (x) VALUES ('Hello'), ('World'); -SELECT x FROM test.nullable_alter ORDER BY x; +INSERT INTO nullable_alter (x) VALUES ('Hello'), ('World'); +SELECT x FROM nullable_alter ORDER BY x; -ALTER TABLE test.nullable_alter MODIFY COLUMN x Nullable(String); -SELECT x FROM test.nullable_alter ORDER BY x; +ALTER TABLE nullable_alter MODIFY COLUMN x Nullable(String); +SELECT x FROM nullable_alter ORDER BY x; -INSERT INTO test.nullable_alter (x) VALUES ('xyz'), (NULL); -SELECT x FROM test.nullable_alter ORDER BY x NULLS FIRST; +INSERT INTO nullable_alter (x) VALUES ('xyz'), (NULL); +SELECT x FROM nullable_alter ORDER BY x NULLS FIRST; -ALTER TABLE test.nullable_alter MODIFY COLUMN x Nullable(FixedString(5)); -SELECT x FROM test.nullable_alter ORDER BY x NULLS FIRST; +ALTER TABLE nullable_alter MODIFY COLUMN x Nullable(FixedString(5)); +SELECT x FROM nullable_alter ORDER BY x NULLS FIRST; -DROP TABLE test.nullable_alter; +DROP TABLE nullable_alter; diff --git a/dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql b/dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql index e7b1c376103..ac0861a9b8b 100644 --- a/dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql +++ b/dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql @@ -1,40 +1,40 @@ -DROP TABLE IF EXISTS test.nullable; +DROP TABLE IF EXISTS nullable; -CREATE TABLE test.nullable (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = Log; +CREATE TABLE nullable (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = Log; -INSERT INTO test.nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10; -SELECT * FROM test.nullable ORDER BY s; -SELECT s FROM test.nullable ORDER BY s; -SELECT ns FROM test.nullable ORDER BY s; -SELECT narr FROM test.nullable ORDER BY s; -SELECT s, narr FROM test.nullable ORDER BY s; +INSERT INTO nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10; +SELECT * FROM nullable ORDER BY s; +SELECT s FROM nullable ORDER BY s; +SELECT ns FROM nullable ORDER BY s; +SELECT narr FROM nullable ORDER BY s; +SELECT s, narr FROM nullable ORDER BY s; -INSERT INTO test.nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10; +INSERT INTO nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10; -DROP TABLE IF EXISTS test.nullable; +DROP TABLE IF EXISTS nullable; -CREATE TABLE test.nullable (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = TinyLog; +CREATE TABLE nullable (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = TinyLog; -INSERT INTO test.nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10; -SELECT * FROM test.nullable ORDER BY s; -SELECT s FROM test.nullable ORDER BY s; -SELECT ns FROM test.nullable ORDER BY s; -SELECT narr FROM test.nullable ORDER BY s; -SELECT s, narr FROM test.nullable ORDER BY s; +INSERT INTO nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10; +SELECT * FROM nullable ORDER BY s; +SELECT s FROM nullable ORDER BY s; +SELECT ns FROM nullable ORDER BY s; +SELECT narr FROM nullable ORDER BY s; +SELECT s, narr FROM nullable ORDER BY s; -INSERT INTO test.nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10; +INSERT INTO nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10; -DROP TABLE IF EXISTS test.nullable; +DROP TABLE IF EXISTS nullable; -CREATE TABLE test.nullable (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = StripeLog; +CREATE TABLE nullable (s String, ns Nullable(String), narr Array(Nullable(UInt64))) ENGINE = StripeLog; -INSERT INTO test.nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10; -SELECT * FROM test.nullable ORDER BY s; -SELECT s FROM test.nullable ORDER BY s; -SELECT ns FROM test.nullable ORDER BY s; -SELECT narr FROM test.nullable ORDER BY s; -SELECT s, narr FROM test.nullable ORDER BY s; +INSERT INTO nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10; +SELECT * FROM nullable ORDER BY s; +SELECT s FROM nullable ORDER BY s; +SELECT ns FROM nullable ORDER BY s; +SELECT narr FROM nullable ORDER BY s; +SELECT s, narr FROM nullable ORDER BY s; -INSERT INTO test.nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10; +INSERT INTO nullable SELECT toString(number), number % 3 = 1 ? toString(number) : NULL, arrayMap(x -> x % 2 = 1 ? x : NULL, range(number)) FROM system.numbers LIMIT 10, 10; -DROP TABLE test.nullable; +DROP TABLE nullable; diff --git a/dbms/tests/queries/0_stateless/00462_json_true_false_literals.sql b/dbms/tests/queries/0_stateless/00462_json_true_false_literals.sql index 1906ac6ebff..37cfe8f4cda 100644 --- a/dbms/tests/queries/0_stateless/00462_json_true_false_literals.sql +++ b/dbms/tests/queries/0_stateless/00462_json_true_false_literals.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.json; -CREATE TABLE test.json (x UInt8, title String) ENGINE = Memory; -INSERT INTO test.json FORMAT JSONEachRow {"x": true, "title": "true"}, {"x": false, "title": "false"}, {"x": 0, "title": "0"}, {"x": 1, "title": "1"} +DROP TABLE IF EXISTS json; +CREATE TABLE json (x UInt8, title String) ENGINE = Memory; +INSERT INTO json FORMAT JSONEachRow {"x": true, "title": "true"}, {"x": false, "title": "false"}, {"x": 0, "title": "0"}, {"x": 1, "title": "1"} -SELECT * FROM test.json ORDER BY title; -DROP TABLE IF EXISTS test.json; +SELECT * FROM json ORDER BY title; +DROP TABLE IF EXISTS json; diff --git a/dbms/tests/queries/0_stateless/00465_nullable_default.sql b/dbms/tests/queries/0_stateless/00465_nullable_default.sql index 357b56207a4..e3b764c4a5a 100644 --- a/dbms/tests/queries/0_stateless/00465_nullable_default.sql +++ b/dbms/tests/queries/0_stateless/00465_nullable_default.sql @@ -1,5 +1,5 @@ -DROP TABLE IF EXISTS test.nullable; -CREATE TABLE test.nullable (id Nullable(UInt32), cat String) ENGINE = Log; -INSERT INTO test.nullable (cat) VALUES ('test'); -SELECT * FROM test.nullable; -DROP TABLE test.nullable; +DROP TABLE IF EXISTS nullable; +CREATE TABLE nullable (id Nullable(UInt32), cat String) ENGINE = Log; +INSERT INTO nullable (cat) VALUES ('test'); +SELECT * FROM nullable; +DROP TABLE nullable; diff --git a/dbms/tests/queries/0_stateless/00467_qualified_names.sql b/dbms/tests/queries/0_stateless/00467_qualified_names.sql index 02464847053..d9ab11f3916 100644 --- a/dbms/tests/queries/0_stateless/00467_qualified_names.sql +++ b/dbms/tests/queries/0_stateless/00467_qualified_names.sql @@ -24,11 +24,11 @@ SELECT system.one.* FROM one; SELECT system.one.dummy FROM `one` AS `t`; SELECT system.one.* FROM one AS `t`; -DROP TABLE IF EXISTS test.nested; -CREATE TABLE test.nested (nest Nested(a UInt8, b String)) ENGINE = Memory; -INSERT INTO test.nested VALUES ([1, 2], ['hello', 'world']); -SELECT nest.a, nest.b, nested.`nest`.`a`, test.nested.nest.b, t.nest.a, t.nest.b, t.* FROM test.nested AS t; -DROP TABLE test.nested; +DROP TABLE IF EXISTS nested; +CREATE TABLE nested (nest Nested(a UInt8, b String)) ENGINE = Memory; +INSERT INTO nested VALUES ([1, 2], ['hello', 'world']); +SELECT nest.a, nest.b, nested.`nest`.`a`, nested.nest.b, t.nest.a, t.nest.b, t.* FROM nested AS t; +DROP TABLE nested; SELECT number FROM numbers(2); SELECT t.number FROM numbers(2) t; diff --git a/dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql b/dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql index d51113d180b..9ccf647aa11 100644 --- a/dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql +++ b/dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.nested; -CREATE TABLE test.nested (nest Nested(x UInt8, y UInt8)) ENGINE = Memory; -INSERT INTO test.nested VALUES ([1, 2, 3], [4, 5, 6]); +DROP TABLE IF EXISTS nested; +CREATE TABLE nested (nest Nested(x UInt8, y UInt8)) ENGINE = Memory; +INSERT INTO nested VALUES ([1, 2, 3], [4, 5, 6]); -SELECT nx FROM test.nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y); -SELECT 1 FROM test.nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y); -SELECT nx, ny FROM test.nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y); -SELECT nx FROM test.nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.x); -SELECT nx, nest.y FROM test.nested ARRAY JOIN nest.x AS nx, nest.y AS ny; -SELECT nx, ny, nest.x, nest.y FROM test.nested ARRAY JOIN nest.x AS nx, nest.y AS ny; +SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y); +SELECT 1 FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y); +SELECT nx, ny FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y); +SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.x); +SELECT nx, nest.y FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny; +SELECT nx, ny, nest.x, nest.y FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny; -DROP TABLE test.nested; +DROP TABLE nested; diff --git a/dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql b/dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql index e3725274c4e..d5c253705ad 100644 --- a/dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql +++ b/dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql @@ -4,30 +4,30 @@ SELECT 'ab\0c' < 'ab\0d', 'ab\0c' > 'ab\0d'; SELECT 'a' < 'a\0b', 'a' > 'a\0b'; SELECT 'a\0\0\0\0' < 'a\0\0\0', 'a\0\0\0\0' > 'a\0\0\0'; -DROP TABLE IF EXISTS test.strings; -CREATE TABLE test.strings(x String, y String) ENGINE = TinyLog; +DROP TABLE IF EXISTS strings; +CREATE TABLE strings(x String, y String) ENGINE = TinyLog; -INSERT INTO test.strings VALUES +INSERT INTO strings VALUES ('abcde\0', 'abcde'), ('aa\0a', 'aa\0b'), ('aa', 'aa\0'), ('a\0\0\0\0', 'a\0\0\0'), ('a\0\0', 'a\0'), ('a', 'a'); SELECT '**** vector-vector comparisons ****'; -SELECT x < y, x > y FROM test.strings; +SELECT x < y, x > y FROM strings; SELECT '**** vector-constant comparisons ****'; -SELECT x < 'aa', x > 'aa' FROM test.strings; +SELECT x < 'aa', x > 'aa' FROM strings; SELECT '****'; -SELECT x < 'a\0', x > 'a\0' FROM test.strings; +SELECT x < 'a\0', x > 'a\0' FROM strings; SELECT '**** single-column sort ****'; -- Uses ColumnString::getPermutation() -SELECT * FROM test.strings ORDER BY x; +SELECT * FROM strings ORDER BY x; SELECT '**** multi-column sort ****'; -- Uses ColumnString::compareAt() -SELECT * FROM test.strings ORDER BY x, y; +SELECT * FROM strings ORDER BY x, y; -DROP TABLE test.strings; +DROP TABLE strings; diff --git a/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql b/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql index 826af849293..bb25cf66607 100644 --- a/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql +++ b/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.t; -DROP TABLE IF EXISTS test.mv; -DROP TABLE IF EXISTS test.`.inner.mv`; +DROP TABLE IF EXISTS t; +DROP TABLE IF EXISTS mv; +DROP TABLE IF EXISTS `.inner.mv`; -CREATE TABLE test.t (x UInt8) ENGINE = Null; -CREATE VIEW IF NOT EXISTS test.mv AS SELECT * FROM test.t; +CREATE TABLE t (x UInt8) ENGINE = Null; +CREATE VIEW IF NOT EXISTS mv AS SELECT * FROM t; -DROP TABLE test.t; -DROP TABLE test.mv; +DROP TABLE t; +DROP TABLE mv; diff --git a/dbms/tests/queries/0_stateless/00475_in_join_db_table.sql b/dbms/tests/queries/0_stateless/00475_in_join_db_table.sql index ed7058bfcb4..3e5a5237468 100644 --- a/dbms/tests/queries/0_stateless/00475_in_join_db_table.sql +++ b/dbms/tests/queries/0_stateless/00475_in_join_db_table.sql @@ -1,23 +1,23 @@ -DROP TABLE IF EXISTS test.set; -CREATE TABLE test.set (x String) ENGINE = Memory; -INSERT INTO test.set VALUES ('hello'); -SELECT (arrayJoin(['hello', 'world']) AS s) IN test.set, s; +DROP TABLE IF EXISTS set; +CREATE TABLE set (x String) ENGINE = Memory; +INSERT INTO set VALUES ('hello'); +SELECT (arrayJoin(['hello', 'world']) AS s) IN set, s; -DROP TABLE test.set; -CREATE TABLE test.set (x String) ENGINE = Set; -INSERT INTO test.set VALUES ('hello'); -SELECT (arrayJoin(['hello', 'world']) AS s) IN test.set, s; +DROP TABLE set; +CREATE TABLE set (x String) ENGINE = Set; +INSERT INTO set VALUES ('hello'); +SELECT (arrayJoin(['hello', 'world']) AS s) IN set, s; -DROP TABLE test.set; +DROP TABLE set; -DROP TABLE IF EXISTS test.join; -CREATE TABLE test.join (k UInt8, x String) ENGINE = Memory; -INSERT INTO test.join VALUES (1, 'hello'); -SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) ANY LEFT JOIN test.join USING k; +DROP TABLE IF EXISTS join; +CREATE TABLE join (k UInt8, x String) ENGINE = Memory; +INSERT INTO join VALUES (1, 'hello'); +SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) ANY LEFT JOIN join USING k; -DROP TABLE test.join; -CREATE TABLE test.join (k UInt8, x String) ENGINE = Join(ANY, LEFT, k); -INSERT INTO test.join VALUES (1, 'hello'); -SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) ANY LEFT JOIN test.join USING k; +DROP TABLE join; +CREATE TABLE join (k UInt8, x String) ENGINE = Join(ANY, LEFT, k); +INSERT INTO join VALUES (1, 'hello'); +SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) ANY LEFT JOIN join USING k; -DROP TABLE test.join; +DROP TABLE join; diff --git a/dbms/tests/queries/0_stateless/00481_create_view_for_null.sql b/dbms/tests/queries/0_stateless/00481_create_view_for_null.sql index eea00048e51..a9731c78853 100644 --- a/dbms/tests/queries/0_stateless/00481_create_view_for_null.sql +++ b/dbms/tests/queries/0_stateless/00481_create_view_for_null.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.null; -DROP TABLE IF EXISTS test.null_view; +DROP TABLE IF EXISTS null; +DROP TABLE IF EXISTS null_view; -CREATE TABLE test.null (x UInt8) ENGINE = Null; -CREATE VIEW test.null_view AS SELECT * FROM test.null; -INSERT INTO test.null VALUES (1); +CREATE TABLE null (x UInt8) ENGINE = Null; +CREATE VIEW null_view AS SELECT * FROM null; +INSERT INTO null VALUES (1); -SELECT * FROM test.null; -SELECT * FROM test.null_view; +SELECT * FROM null; +SELECT * FROM null_view; -DROP TABLE test.null; -DROP TABLE test.null_view; +DROP TABLE null; +DROP TABLE null_view; diff --git a/dbms/tests/queries/0_stateless/00481_reading_from_last_granula.sql b/dbms/tests/queries/0_stateless/00481_reading_from_last_granula.sql index a38f6c86b7c..58a206854e6 100644 --- a/dbms/tests/queries/0_stateless/00481_reading_from_last_granula.sql +++ b/dbms/tests/queries/0_stateless/00481_reading_from_last_granula.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.tab; -CREATE TABLE test.tab (date Date, value UInt64, s String, m FixedString(16)) ENGINE = MergeTree(date, (date, value), 8); -INSERT INTO test.tab SELECT today() as date, number as value, '' as s, toFixedString('', 16) as m from system.numbers limit 42; +DROP TABLE IF EXISTS tab; +CREATE TABLE tab (date Date, value UInt64, s String, m FixedString(16)) ENGINE = MergeTree(date, (date, value), 8); +INSERT INTO tab SELECT today() as date, number as value, '' as s, toFixedString('', 16) as m from system.numbers limit 42; SET preferred_max_column_in_block_size_bytes = 32; -SELECT blockSize(), * from test.tab format Null; +SELECT blockSize(), * from tab format Null; SELECT 0; diff --git a/dbms/tests/queries/0_stateless/00483_reading_from_array_structure.sql b/dbms/tests/queries/0_stateless/00483_reading_from_array_structure.sql index 87038de5236..20cd1bd60e0 100644 --- a/dbms/tests/queries/0_stateless/00483_reading_from_array_structure.sql +++ b/dbms/tests/queries/0_stateless/00483_reading_from_array_structure.sql @@ -1,13 +1,13 @@ -drop table if exists test.table; -create table test.table (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16)) engine = MergeTree(date, (date), 16); -insert into test.table select today() as date, [number], [number + 1], toFixedString('', 16) from system.numbers limit 100; +drop table if exists table; +create table `table` (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16)) engine = MergeTree(date, (date), 16); +insert into `table` select today() as date, [number], [number + 1], toFixedString('', 16) from system.numbers limit 100; set preferred_max_column_in_block_size_bytes = 96; -select blockSize(), * from test.table prewhere `Struct.Key1`[1] = 19 and `Struct.Key2`[1] >= 0 format Null; +select blockSize(), * from `table` prewhere `Struct.Key1`[1] = 19 and `Struct.Key2`[1] >= 0 format Null; -drop table if exists test.table; -create table test.table (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16), x UInt64) engine = MergeTree(date, (date), 8); -insert into test.table select today() as date, [number], [number + 1], toFixedString('', 16), number from system.numbers limit 100; +drop table if exists `table`; +create table `table` (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16), x UInt64) engine = MergeTree(date, (date), 8); +insert into `table` select today() as date, [number], [number + 1], toFixedString('', 16), number from system.numbers limit 100; set preferred_max_column_in_block_size_bytes = 112; -select blockSize(), * from test.table prewhere x = 7 format Null; +select blockSize(), * from table prewhere x = 7 format Null; -drop table if exists test.table; +drop table if exists `table`; diff --git a/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql b/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql index d7eb04704ca..80a91f38ab6 100644 --- a/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql +++ b/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql @@ -1,34 +1,34 @@ -drop table if exists test.tab; -create table test.tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 8192); -insert into test.tab select today(), number, toFixedString('', 128) from system.numbers limit 8192; +drop table if exists tab; +create table tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 8192); +insert into tab select today(), number, toFixedString('', 128) from system.numbers limit 8192; set preferred_block_size_bytes = 2000000; set preferred_max_column_in_block_size_bytes = 0; -select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; +select max(blockSize()), min(blockSize()), any(ignore(*)) from tab; set preferred_max_column_in_block_size_bytes = 128; -select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; +select max(blockSize()), min(blockSize()), any(ignore(*)) from tab; set preferred_max_column_in_block_size_bytes = 256; -select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; +select max(blockSize()), min(blockSize()), any(ignore(*)) from tab; set preferred_max_column_in_block_size_bytes = 2097152; -select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; +select max(blockSize()), min(blockSize()), any(ignore(*)) from tab; set preferred_max_column_in_block_size_bytes = 4194304; -select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; +select max(blockSize()), min(blockSize()), any(ignore(*)) from tab; -drop table if exists test.tab; -create table test.tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 32); -insert into test.tab select today(), number, toFixedString('', 128) from system.numbers limit 47; +drop table if exists tab; +create table tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 32); +insert into tab select today(), number, toFixedString('', 128) from system.numbers limit 47; set preferred_max_column_in_block_size_bytes = 1152; -select blockSize(), * from test.tab where x = 1 or x > 36 format Null; +select blockSize(), * from tab where x = 1 or x > 36 format Null; -drop table if exists test.tab; -create table test.tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 8192); -insert into test.tab select today(), number, toFixedString('', 128) from system.numbers limit 10; +drop table if exists tab; +create table tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 8192); +insert into tab select today(), number, toFixedString('', 128) from system.numbers limit 10; set preferred_max_column_in_block_size_bytes = 128; -select s from test.tab where s == '' format Null; +select s from tab where s == '' format Null; -drop table if exists test.tab; -create table test.tab (date Date, x UInt64, s String) engine = MergeTree(date, (date, x), 8192); -insert into test.tab select today(), number, 'abc' from system.numbers limit 81920; +drop table if exists tab; +create table tab (date Date, x UInt64, s String) engine = MergeTree(date, (date, x), 8192); +insert into tab select today(), number, 'abc' from system.numbers limit 81920; set preferred_block_size_bytes = 0; -select count(*) from test.tab prewhere s != 'abc' format Null; -select count(*) from test.tab prewhere s = 'abc' format Null; +select count(*) from tab prewhere s != 'abc' format Null; +select count(*) from tab prewhere s = 'abc' format Null; diff --git a/dbms/tests/queries/0_stateless/00485_http_insert_format.sh b/dbms/tests/queries/0_stateless/00485_http_insert_format.sh index b62dbb3027e..c06155c3a38 100755 --- a/dbms/tests/queries/0_stateless/00485_http_insert_format.sh +++ b/dbms/tests/queries/0_stateless/00485_http_insert_format.sh @@ -3,15 +3,15 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.format" -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.format (s String, x FixedString(3)) ENGINE = Memory" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS format" +$CLICKHOUSE_CLIENT --query="CREATE TABLE format (s String, x FixedString(3)) ENGINE = Memory" -echo -ne '\tABC\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.format+FORMAT+TabSeparated" --data-binary @- -echo -ne 'INSERT INTO test.format FORMAT TabSeparated\n\tDEF\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo -ne 'INSERT INTO test.format FORMAT TabSeparated hello\tGHI\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo -ne 'INSERT INTO test.format FORMAT TabSeparated\r\n\tJKL\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo -ne 'INSERT INTO test.format FORMAT TabSeparated \t\r\n\tMNO\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- -echo -ne 'INSERT INTO test.format FORMAT TabSeparated\t\t\thello\tPQR\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" --data-binary @- +echo -ne '\tABC\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}&query=INSERT+INTO+format+FORMAT+TabSeparated" --data-binary @- +echo -ne 'INSERT INTO format FORMAT TabSeparated\n\tDEF\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" --data-binary @- +echo -ne 'INSERT INTO format FORMAT TabSeparated hello\tGHI\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" --data-binary @- +echo -ne 'INSERT INTO format FORMAT TabSeparated\r\n\tJKL\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" --data-binary @- +echo -ne 'INSERT INTO format FORMAT TabSeparated \t\r\n\tMNO\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" --data-binary @- +echo -ne 'INSERT INTO format FORMAT TabSeparated\t\t\thello\tPQR\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}" --data-binary @- -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.format ORDER BY s, x FORMAT JSONEachRow" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.format" +$CLICKHOUSE_CLIENT --query="SELECT * FROM format ORDER BY s, x FORMAT JSONEachRow" +$CLICKHOUSE_CLIENT --query="DROP TABLE format" diff --git a/dbms/tests/queries/0_stateless/00488_non_ascii_column_names.sql b/dbms/tests/queries/0_stateless/00488_non_ascii_column_names.sql index 3a0d0542c36..ac84f020eca 100644 --- a/dbms/tests/queries/0_stateless/00488_non_ascii_column_names.sql +++ b/dbms/tests/queries/0_stateless/00488_non_ascii_column_names.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.non_ascii; -CREATE TABLE test.non_ascii (`привет` String, `мир` String) ENGINE = TinyLog; -INSERT INTO test.non_ascii VALUES ('hello', 'world'); -SELECT `привет` FROM test.non_ascii; -SELECT * FROM test.non_ascii; -DROP TABLE test.non_ascii; +DROP TABLE IF EXISTS non_ascii; +CREATE TABLE non_ascii (`привет` String, `мир` String) ENGINE = TinyLog; +INSERT INTO non_ascii VALUES ('hello', 'world'); +SELECT `привет` FROM non_ascii; +SELECT * FROM non_ascii; +DROP TABLE non_ascii; diff --git a/dbms/tests/queries/0_stateless/00489_pk_subexpression.sql b/dbms/tests/queries/0_stateless/00489_pk_subexpression.sql index 4d53c7e29d9..59f310a7605 100644 --- a/dbms/tests/queries/0_stateless/00489_pk_subexpression.sql +++ b/dbms/tests/queries/0_stateless/00489_pk_subexpression.sql @@ -1,29 +1,29 @@ -DROP TABLE IF EXISTS test.pk; +DROP TABLE IF EXISTS pk; -CREATE TABLE test.pk (d Date DEFAULT '2000-01-01', x DateTime, y UInt64, z UInt64) ENGINE = MergeTree(d, (toStartOfMinute(x), y, z), 1); +CREATE TABLE pk (d Date DEFAULT '2000-01-01', x DateTime, y UInt64, z UInt64) ENGINE = MergeTree(d, (toStartOfMinute(x), y, z), 1); -INSERT INTO test.pk (x, y, z) VALUES (1, 11, 1235), (2, 11, 4395), (3, 22, 3545), (4, 22, 6984), (5, 33, 4596), (61, 11, 4563), (62, 11, 4578), (63, 11, 3572), (64, 22, 5786), (65, 22, 5786), (66, 22, 2791), (67, 22, 2791), (121, 33, 2791), (122, 33, 2791), (123, 33, 1235), (124, 44, 4935), (125, 44, 4578), (126, 55, 5786), (127, 55, 2791), (128, 55, 1235); +INSERT INTO pk (x, y, z) VALUES (1, 11, 1235), (2, 11, 4395), (3, 22, 3545), (4, 22, 6984), (5, 33, 4596), (61, 11, 4563), (62, 11, 4578), (63, 11, 3572), (64, 22, 5786), (65, 22, 5786), (66, 22, 2791), (67, 22, 2791), (121, 33, 2791), (122, 33, 2791), (123, 33, 1235), (124, 44, 4935), (125, 44, 4578), (126, 55, 5786), (127, 55, 2791), (128, 55, 1235); SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; SET max_block_size = 1; -- Test inferred limit SET max_rows_to_read = 5; -SELECT toUInt32(x), y, z FROM test.pk WHERE x BETWEEN toDateTime(0) AND toDateTime(59); +SELECT toUInt32(x), y, z FROM pk WHERE x BETWEEN toDateTime(0) AND toDateTime(59); SET max_rows_to_read = 9; -SELECT toUInt32(x), y, z FROM test.pk WHERE x BETWEEN toDateTime(120) AND toDateTime(240); +SELECT toUInt32(x), y, z FROM pk WHERE x BETWEEN toDateTime(120) AND toDateTime(240); -- Index is coarse, cannot read single row SET max_rows_to_read = 5; -SELECT toUInt32(x), y, z FROM test.pk WHERE x = toDateTime(1); +SELECT toUInt32(x), y, z FROM pk WHERE x = toDateTime(1); -- Index works on interval 00:01:00 - 00:01:59 SET max_rows_to_read = 4; -SELECT toUInt32(x), y, z FROM test.pk WHERE x BETWEEN toDateTime(60) AND toDateTime(119) AND y = 11; +SELECT toUInt32(x), y, z FROM pk WHERE x BETWEEN toDateTime(60) AND toDateTime(119) AND y = 11; -- Cannot read less rows as PK is coarser on interval 00:01:00 - 00:02:00 SET max_rows_to_read = 5; -SELECT toUInt32(x), y, z FROM test.pk WHERE x BETWEEN toDateTime(60) AND toDateTime(120) AND y = 11; +SELECT toUInt32(x), y, z FROM pk WHERE x BETWEEN toDateTime(60) AND toDateTime(120) AND y = 11; -DROP TABLE test.pk; +DROP TABLE pk; diff --git a/dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.sh b/dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.sh index c93f78825c8..9fe40e8863f 100755 --- a/dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.sh +++ b/dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.sh @@ -3,29 +3,29 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.ws"; -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.ws (i UInt8) ENGINE = Memory"; +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS ws"; +$CLICKHOUSE_CLIENT -q "CREATE TABLE ws (i UInt8) ENGINE = Memory"; -$CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT RowBinary ;"; -$CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT RowBinary ; "; -$CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT RowBinary +$CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT RowBinary ;"; +$CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT RowBinary ; "; +$CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT RowBinary ; "; -echo -n ";" | $CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT RowBinary"; +echo -n ";" | $CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT RowBinary"; -$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM test.ws"; -$CLICKHOUSE_CLIENT -q "DROP TABLE test.ws"; +$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM ws"; +$CLICKHOUSE_CLIENT -q "DROP TABLE ws"; $CLICKHOUSE_CLIENT -q "SELECT ''"; -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.ws (s String) ENGINE = Memory"; -$CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT TSV ; +$CLICKHOUSE_CLIENT -q "CREATE TABLE ws (s String) ENGINE = Memory"; +$CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT TSV ; "; -echo ";" | $CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT TSV" -if $CLICKHOUSE_CLIENT -q "INSERT INTO test.ws FORMAT TSV;" 1>/dev/null 2>/dev/null; then +echo ";" | $CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT TSV" +if $CLICKHOUSE_CLIENT -q "INSERT INTO ws FORMAT TSV;" 1>/dev/null 2>/dev/null; then echo ERROR; fi -$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM test.ws"; +$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM ws"; -$CLICKHOUSE_CLIENT -q "DROP TABLE test.ws"; +$CLICKHOUSE_CLIENT -q "DROP TABLE ws"; diff --git a/dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql b/dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql index bb9652ec1a9..8f2f0811193 100644 --- a/dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql +++ b/dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql @@ -73,298 +73,298 @@ select arrayPopFront([1, 2, 3]); select arrayPopFront([0.1, 0.2, 0.3]); select arrayPopFront(['a', 'b', 'c']); -DROP TABLE if exists test.array_functions; +DROP TABLE if exists array_functions; select ''; select 'table'; -create table test.array_functions (arr1 Array(Int8), arr2 Array(Int8), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; -insert into test.array_functions values ([], [], 1, Null, 1, Null), ([], [1], 1, Null, 1, Null), ([1, 2, 3, 4, 5], [6, 7], 2, Null, 1, Null), ([1, 2, 3, 4, 5, 6, 7], [8], 2, 2, 3, 3), ([1, 2, 3, 4, 5, 6, 7], [], 2, Null, -3, -3), ([1, 2, 3, 4, 5, 6, 7], [], 2, Null, -3, Null), ([1, 2, 3, 4, 5, 6, 7], [], -5, -5, 4, 4), ([1, 2, 3, 4, 5, 6, 7], [], -5, -5, -3, -3); +create table array_functions (arr1 Array(Int8), arr2 Array(Int8), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; +insert into array_functions values ([], [], 1, Null, 1, Null), ([], [1], 1, Null, 1, Null), ([1, 2, 3, 4, 5], [6, 7], 2, Null, 1, Null), ([1, 2, 3, 4, 5, 6, 7], [8], 2, 2, 3, 3), ([1, 2, 3, 4, 5, 6, 7], [], 2, Null, -3, -3), ([1, 2, 3, 4, 5, 6, 7], [], 2, Null, -3, Null), ([1, 2, 3, 4, 5, 6, 7], [], -5, -5, 4, 4), ([1, 2, 3, 4, 5, 6, 7], [], -5, -5, -3, -3); -select * from test.array_functions; +select * from array_functions; select 'concat arr1, arr2'; -select arrayConcat(arr1, arr2), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2), arr1, arr2 from array_functions; select 'concat arr1, arr2, arr1'; -select arrayConcat(arr1, arr2, arr1), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2, arr1), arr1, arr2 from array_functions; select 'arraySlice(arr1, o, l)'; -select arr1, o, l, arraySlice(arr1, o, l) from test.array_functions; +select arr1, o, l, arraySlice(arr1, o, l) from array_functions; select 'arraySlice(arr1, no, nl)'; -select arr1, no, nl, arraySlice(arr1, no, nl) from test.array_functions; +select arr1, no, nl, arraySlice(arr1, no, nl) from array_functions; select 'arraySlice(arr1, 2, l)'; -select arr1, 2, l, arraySlice(arr1, 2, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, 2, l) from array_functions; select 'arraySlice(arr1, o, 2)'; -select arr1, o, 2, arraySlice(arr1, o, 2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, 2) from array_functions; select 'arraySlice(arr1, 2, nl)'; -select arr1, 2, nl, arraySlice(arr1, 2, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, 2, nl) from array_functions; select 'arraySlice(arr1, no, 2)'; -select arr1, no, 2, arraySlice(arr1, no, 2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, 2) from array_functions; select 'arraySlice(arr1, -4, l)'; -select arr1, 2, l, arraySlice(arr1, -4, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, -4, l) from array_functions; select 'arraySlice(arr1, o, -2)'; -select arr1, o, 2, arraySlice(arr1, o, -2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, -2) from array_functions; select 'arraySlice(arr1, -4, nl)'; -select arr1, 2, nl, arraySlice(arr1, -4, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, -4, nl) from array_functions; select 'arraySlice(arr1, no, -2)'; -select arr1, no, 2, arraySlice(arr1, no, -2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, -2) from array_functions; select 'arraySlice(arr1, 2, 4)'; -select arr1, 2, 4, arraySlice(arr1, 2, 4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, 4) from array_functions; select 'arraySlice(arr1, 2, -4)'; -select arr1, 2, 4, arraySlice(arr1, 2, -4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, -4) from array_functions; select 'arraySlice(arr1, -4, 2)'; -select arr1, 2, 4, arraySlice(arr1, -4, 2) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, 2) from array_functions; select 'arraySlice(arr1, -4, -1)'; -select arr1, 2, 4, arraySlice(arr1, -4, -1) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, -1) from array_functions; select 'arrayPushFront(arr1, 1)'; -select arr1, arrayPushFront(arr1, 1) from test.array_functions; +select arr1, arrayPushFront(arr1, 1) from array_functions; select 'arrayPushFront(arr1, 0.1)'; -select arr1, arrayPushFront(arr1, 0.1) from test.array_functions; +select arr1, arrayPushFront(arr1, 0.1) from array_functions; select 'arrayPushFront(arr1, l)'; -select arr1, arrayPushFront(arr1, l) from test.array_functions; +select arr1, arrayPushFront(arr1, l) from array_functions; select 'arrayPushFront(arr1, nl)'; -select arr1, arrayPushFront(arr1, nl) from test.array_functions; +select arr1, arrayPushFront(arr1, nl) from array_functions; select 'arrayPushFront([1, 2, 3], l)'; -select arrayPushFront([1, 2, 3], l) from test.array_functions; -select 'arrayPushFront([1, 2, 3], nl)' from test.array_functions; -select arrayPushFront([1, 2, 3], nl) from test.array_functions; +select arrayPushFront([1, 2, 3], l) from array_functions; +select 'arrayPushFront([1, 2, 3], nl)' from array_functions; +select arrayPushFront([1, 2, 3], nl) from array_functions; select 'arrayPushBack(arr1, 1)'; -select arr1, arrayPushBack(arr1, 1) from test.array_functions; +select arr1, arrayPushBack(arr1, 1) from array_functions; select 'arrayPushBack(arr1, 0.1)'; -select arr1, arrayPushBack(arr1, 0.1) from test.array_functions; +select arr1, arrayPushBack(arr1, 0.1) from array_functions; select 'arrayPushBack(arr1, l)'; -select arr1, arrayPushBack(arr1, l) from test.array_functions; +select arr1, arrayPushBack(arr1, l) from array_functions; select 'arrayPushBack(arr1, nl)'; -select arr1, arrayPushBack(arr1, nl) from test.array_functions; +select arr1, arrayPushBack(arr1, nl) from array_functions; select 'arrayPushBack([1, 2, 3], l)'; -select arrayPushBack([1, 2, 3], l) from test.array_functions; +select arrayPushBack([1, 2, 3], l) from array_functions; select 'arrayPushBack([1, 2, 3], nl)'; -select arrayPushBack([1, 2, 3], nl) from test.array_functions; +select arrayPushBack([1, 2, 3], nl) from array_functions; select 'arrayPopFront(arr1)'; -select arr1, arrayPopFront(arr1) from test.array_functions; +select arr1, arrayPopFront(arr1) from array_functions; select 'arrayPopBack(arr1)'; -select arr1, arrayPopBack(arr1) from test.array_functions; +select arr1, arrayPopBack(arr1) from array_functions; -DROP TABLE if exists test.array_functions; +DROP TABLE if exists array_functions; select ''; select 'table'; -create table test.array_functions (arr1 Array(Nullable(Int8)), arr2 Array(Nullable(Float32)), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; -insert into test.array_functions values ([], [], 1, Null, 1, Null), ([], [1, Null], 1, Null, 1, Null), ([1, 2, 3, 4, 5], [6, Null], 2, Null, 1, Null), ([1, Null, 3, 4, Null, 6, 7], [8], 2, 2, 3, 3),([1, 2, 3, Null, 5, 6, 7], [Null, 1], 2, Null, -3, -3),([1, 2, 3, 4, 5, Null, 7], [1, Null], 2, Null, -3, Null), ([1, 2, 3, 4, 5, 6, 7], [1, 2], -5, -5, 4, 4),([1, Null, 3, Null, 5, 6, 7], [], -5, -5, -3, -3); +create table array_functions (arr1 Array(Nullable(Int8)), arr2 Array(Nullable(Float32)), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; +insert into array_functions values ([], [], 1, Null, 1, Null), ([], [1, Null], 1, Null, 1, Null), ([1, 2, 3, 4, 5], [6, Null], 2, Null, 1, Null), ([1, Null, 3, 4, Null, 6, 7], [8], 2, 2, 3, 3),([1, 2, 3, Null, 5, 6, 7], [Null, 1], 2, Null, -3, -3),([1, 2, 3, 4, 5, Null, 7], [1, Null], 2, Null, -3, Null), ([1, 2, 3, 4, 5, 6, 7], [1, 2], -5, -5, 4, 4),([1, Null, 3, Null, 5, 6, 7], [], -5, -5, -3, -3); -select * from test.array_functions; +select * from array_functions; select 'concat arr1, arr2'; -select arrayConcat(arr1, arr2), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2), arr1, arr2 from array_functions; select 'concat arr1, arr2, arr1'; -select arrayConcat(arr1, arr2, arr1), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2, arr1), arr1, arr2 from array_functions; select 'arraySlice(arr1, o, l)'; -select arr1, o, l, arraySlice(arr1, o, l) from test.array_functions; +select arr1, o, l, arraySlice(arr1, o, l) from array_functions; select 'arraySlice(arr1, no, nl)'; -select arr1, no, nl, arraySlice(arr1, no, nl) from test.array_functions; +select arr1, no, nl, arraySlice(arr1, no, nl) from array_functions; select 'arraySlice(arr1, 2, l)'; -select arr1, 2, l, arraySlice(arr1, 2, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, 2, l) from array_functions; select 'arraySlice(arr1, o, 2)'; -select arr1, o, 2, arraySlice(arr1, o, 2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, 2) from array_functions; select 'arraySlice(arr1, 2, nl)'; -select arr1, 2, nl, arraySlice(arr1, 2, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, 2, nl) from array_functions; select 'arraySlice(arr1, no, 2)'; -select arr1, no, 2, arraySlice(arr1, no, 2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, 2) from array_functions; select 'arraySlice(arr1, -4, l)'; -select arr1, 2, l, arraySlice(arr1, -4, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, -4, l) from array_functions; select 'arraySlice(arr1, o, -2)'; -select arr1, o, 2, arraySlice(arr1, o, -2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, -2) from array_functions; select 'arraySlice(arr1, -4, nl)'; -select arr1, 2, nl, arraySlice(arr1, -4, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, -4, nl) from array_functions; select 'arraySlice(arr1, no, -2)'; -select arr1, no, 2, arraySlice(arr1, no, -2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, -2) from array_functions; select 'arraySlice(arr1, 2, 4)'; -select arr1, 2, 4, arraySlice(arr1, 2, 4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, 4) from array_functions; select 'arraySlice(arr1, 2, -4)'; -select arr1, 2, 4, arraySlice(arr1, 2, -4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, -4) from array_functions; select 'arraySlice(arr1, -4, 2)'; -select arr1, 2, 4, arraySlice(arr1, -4, 2) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, 2) from array_functions; select 'arraySlice(arr1, -4, -1)'; -select arr1, 2, 4, arraySlice(arr1, -4, -1) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, -1) from array_functions; select 'arrayPushFront(arr1, 1)'; -select arr1, arrayPushFront(arr1, 1) from test.array_functions; +select arr1, arrayPushFront(arr1, 1) from array_functions; select 'arrayPushFront(arr1, 0.1)'; -select arr1, arrayPushFront(arr1, 0.1) from test.array_functions; +select arr1, arrayPushFront(arr1, 0.1) from array_functions; select 'arrayPushFront(arr1, l)'; -select arr1, arrayPushFront(arr1, l) from test.array_functions; +select arr1, arrayPushFront(arr1, l) from array_functions; select 'arrayPushFront(arr1, nl)'; -select arr1, arrayPushFront(arr1, nl) from test.array_functions; +select arr1, arrayPushFront(arr1, nl) from array_functions; select 'arrayPushFront([1, 2, 3], l)'; -select arrayPushFront([1, 2, 3], l) from test.array_functions; -select 'arrayPushFront([1, 2, 3], nl)' from test.array_functions; -select arrayPushFront([1, 2, 3], nl) from test.array_functions; +select arrayPushFront([1, 2, 3], l) from array_functions; +select 'arrayPushFront([1, 2, 3], nl)' from array_functions; +select arrayPushFront([1, 2, 3], nl) from array_functions; select 'arrayPushBack(arr1, 1)'; -select arr1, arrayPushBack(arr1, 1) from test.array_functions; +select arr1, arrayPushBack(arr1, 1) from array_functions; select 'arrayPushBack(arr1, 0.1)'; -select arr1, arrayPushBack(arr1, 0.1) from test.array_functions; +select arr1, arrayPushBack(arr1, 0.1) from array_functions; select 'arrayPushBack(arr1, l)'; -select arr1, arrayPushBack(arr1, l) from test.array_functions; +select arr1, arrayPushBack(arr1, l) from array_functions; select 'arrayPushBack(arr1, nl)'; -select arr1, arrayPushBack(arr1, nl) from test.array_functions; +select arr1, arrayPushBack(arr1, nl) from array_functions; select 'arrayPushBack([1, 2, 3], l)'; -select arrayPushBack([1, 2, 3], l) from test.array_functions; +select arrayPushBack([1, 2, 3], l) from array_functions; select 'arrayPushBack([1, 2, 3], nl)'; -select arrayPushBack([1, 2, 3], nl) from test.array_functions; +select arrayPushBack([1, 2, 3], nl) from array_functions; select 'arrayPopFront(arr1)'; -select arr1, arrayPopFront(arr1) from test.array_functions; +select arr1, arrayPopFront(arr1) from array_functions; select 'arrayPopBack(arr1)'; -select arr1, arrayPopBack(arr1) from test.array_functions; +select arr1, arrayPopBack(arr1) from array_functions; -DROP TABLE if exists test.array_functions; +DROP TABLE if exists array_functions; select ''; select 'table'; -create table test.array_functions (arr1 Array(Nullable(Int8)), arr2 Array(UInt8), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; -insert into test.array_functions values ([], [], 1, Null, 1, Null), ([], [1, 2], 1, Null, 1, Null), ([1, 2, 3, 4, 5], [6, 7], 2, Null, 1, Null), ([1, Null,3,4, Null, 6, 7], [8], 2, 2, 3, 3),([1, 2, 3, Null, 5, 6, 7], [0, 1], 2, Null, -3, -3),([1, 2, 3, 4, 5, Null, 7], [1, 2], 2, Null, -3, Null),([1, 2, 3,4, 5, 6, 7], [1, 2], -5, -5, 4, 4),([1, Null, 3, Null, 5, 6, 7], [], -5, -5, -3, -3); +create table array_functions (arr1 Array(Nullable(Int8)), arr2 Array(UInt8), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; +insert into array_functions values ([], [], 1, Null, 1, Null), ([], [1, 2], 1, Null, 1, Null), ([1, 2, 3, 4, 5], [6, 7], 2, Null, 1, Null), ([1, Null,3,4, Null, 6, 7], [8], 2, 2, 3, 3),([1, 2, 3, Null, 5, 6, 7], [0, 1], 2, Null, -3, -3),([1, 2, 3, 4, 5, Null, 7], [1, 2], 2, Null, -3, Null),([1, 2, 3,4, 5, 6, 7], [1, 2], -5, -5, 4, 4),([1, Null, 3, Null, 5, 6, 7], [], -5, -5, -3, -3); -select * from test.array_functions; +select * from array_functions; select 'concat arr1, arr2'; -select arrayConcat(arr1, arr2), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2), arr1, arr2 from array_functions; select 'concat arr1, arr2, arr1'; -select arrayConcat(arr1, arr2, arr1), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2, arr1), arr1, arr2 from array_functions; -select * from test.array_functions; +select * from array_functions; select 'concat arr1, arr2'; -select arrayConcat(arr1, arr2), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2), arr1, arr2 from array_functions; select 'concat arr1, arr2, arr1'; -select arrayConcat(arr1, arr2, arr1), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2, arr1), arr1, arr2 from array_functions; select 'arraySlice(arr1, o, l)'; -select arr1, o, l, arraySlice(arr1, o, l) from test.array_functions; +select arr1, o, l, arraySlice(arr1, o, l) from array_functions; select 'arraySlice(arr1, no, nl)'; -select arr1, no, nl, arraySlice(arr1, no, nl) from test.array_functions; +select arr1, no, nl, arraySlice(arr1, no, nl) from array_functions; select 'arraySlice(arr1, 2, l)'; -select arr1, 2, l, arraySlice(arr1, 2, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, 2, l) from array_functions; select 'arraySlice(arr1, o, 2)'; -select arr1, o, 2, arraySlice(arr1, o, 2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, 2) from array_functions; select 'arraySlice(arr1, 2, nl)'; -select arr1, 2, nl, arraySlice(arr1, 2, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, 2, nl) from array_functions; select 'arraySlice(arr1, no, 2)'; -select arr1, no, 2, arraySlice(arr1, no, 2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, 2) from array_functions; select 'arraySlice(arr1, -4, l)'; -select arr1, 2, l, arraySlice(arr1, -4, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, -4, l) from array_functions; select 'arraySlice(arr1, o, -2)'; -select arr1, o, 2, arraySlice(arr1, o, -2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, -2) from array_functions; select 'arraySlice(arr1, -4, nl)'; -select arr1, 2, nl, arraySlice(arr1, -4, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, -4, nl) from array_functions; select 'arraySlice(arr1, no, -2)'; -select arr1, no, 2, arraySlice(arr1, no, -2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, -2) from array_functions; select 'arraySlice(arr1, 2, 4)'; -select arr1, 2, 4, arraySlice(arr1, 2, 4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, 4) from array_functions; select 'arraySlice(arr1, 2, -4)'; -select arr1, 2, 4, arraySlice(arr1, 2, -4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, -4) from array_functions; select 'arraySlice(arr1, -4, 2)'; -select arr1, 2, 4, arraySlice(arr1, -4, 2) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, 2) from array_functions; select 'arraySlice(arr1, -4, -1)'; -select arr1, 2, 4, arraySlice(arr1, -4, -1) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, -1) from array_functions; select 'arrayPushFront(arr1, 1)'; -select arr1, arrayPushFront(arr1, 1) from test.array_functions; +select arr1, arrayPushFront(arr1, 1) from array_functions; select 'arrayPushFront(arr1, 0.1)'; -select arr1, arrayPushFront(arr1, 0.1) from test.array_functions; +select arr1, arrayPushFront(arr1, 0.1) from array_functions; select 'arrayPushFront(arr1, l)'; -select arr1, arrayPushFront(arr1, l) from test.array_functions; +select arr1, arrayPushFront(arr1, l) from array_functions; select 'arrayPushFront(arr1, nl)'; -select arr1, arrayPushFront(arr1, nl) from test.array_functions; +select arr1, arrayPushFront(arr1, nl) from array_functions; select 'arrayPushFront([1, 2, 3], l)'; -select arrayPushFront([1, 2, 3], l) from test.array_functions; -select 'arrayPushFront([1, 2, 3], nl)' from test.array_functions; -select arrayPushFront([1, 2, 3], nl) from test.array_functions; +select arrayPushFront([1, 2, 3], l) from array_functions; +select 'arrayPushFront([1, 2, 3], nl)' from array_functions; +select arrayPushFront([1, 2, 3], nl) from array_functions; select 'arrayPushBack(arr1, 1)'; -select arr1, arrayPushBack(arr1, 1) from test.array_functions; +select arr1, arrayPushBack(arr1, 1) from array_functions; select 'arrayPushBack(arr1, 0.1)'; -select arr1, arrayPushBack(arr1, 0.1) from test.array_functions; +select arr1, arrayPushBack(arr1, 0.1) from array_functions; select 'arrayPushBack(arr1, l)'; -select arr1, arrayPushBack(arr1, l) from test.array_functions; +select arr1, arrayPushBack(arr1, l) from array_functions; select 'arrayPushBack(arr1, nl)'; -select arr1, arrayPushBack(arr1, nl) from test.array_functions; +select arr1, arrayPushBack(arr1, nl) from array_functions; select 'arrayPushBack([1, 2, 3], l)'; -select arrayPushBack([1, 2, 3], l) from test.array_functions; +select arrayPushBack([1, 2, 3], l) from array_functions; select 'arrayPushBack([1, 2, 3], nl)'; -select arrayPushBack([1, 2, 3], nl) from test.array_functions; +select arrayPushBack([1, 2, 3], nl) from array_functions; select 'arrayPopFront(arr1)'; -select arr1, arrayPopFront(arr1) from test.array_functions; +select arr1, arrayPopFront(arr1) from array_functions; select 'arrayPopBack(arr1)'; -select arr1, arrayPopBack(arr1) from test.array_functions; +select arr1, arrayPopBack(arr1) from array_functions; -DROP TABLE if exists test.array_functions; +DROP TABLE if exists array_functions; select ''; select 'table'; -create table test.array_functions (arr1 Array(Nullable(String)), arr2 Array(String), val String, val2 Nullable(String), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; -insert into test.array_functions values ([], [], '', Null, 1, Null, 1, Null), ([], ['1', '2'], 'a', 'b', 1, Null, 1, Null), (['1', '2', '3', '4', '5'], ['6','7'], 'a', Null, 2, Null, 1, Null), (['1', Null, '3', '4', Null, '6', '7'], ['8'], 'a', 'b', 2, 2, 3, 3),(['1', '2', '3', Null, '5', '6', '7'], ['0','1'], 'a', Null, 2, Null, -3, -3),(['1', '2', '3', '4', '5', Null, '7'], ['1', '2'], 'a', 'b', 2, Null, -3, Null),(['1', '2', '3', '4', '5', '6', '7'],['1', '2'], 'a', Null, -5, -5, 4, 4),(['1', Null, '3', Null, '5', '6', '7'], [], 'a', 'b', -5, -5, -3, -3); +create table array_functions (arr1 Array(Nullable(String)), arr2 Array(String), val String, val2 Nullable(String), o Int8, no Nullable(Int8), l Int8, nl Nullable(Int8)) engine = TinyLog; +insert into array_functions values ([], [], '', Null, 1, Null, 1, Null), ([], ['1', '2'], 'a', 'b', 1, Null, 1, Null), (['1', '2', '3', '4', '5'], ['6','7'], 'a', Null, 2, Null, 1, Null), (['1', Null, '3', '4', Null, '6', '7'], ['8'], 'a', 'b', 2, 2, 3, 3),(['1', '2', '3', Null, '5', '6', '7'], ['0','1'], 'a', Null, 2, Null, -3, -3),(['1', '2', '3', '4', '5', Null, '7'], ['1', '2'], 'a', 'b', 2, Null, -3, Null),(['1', '2', '3', '4', '5', '6', '7'],['1', '2'], 'a', Null, -5, -5, 4, 4),(['1', Null, '3', Null, '5', '6', '7'], [], 'a', 'b', -5, -5, -3, -3); -select * from test.array_functions; +select * from array_functions; select 'concat arr1, arr2'; -select arrayConcat(arr1, arr2), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2), arr1, arr2 from array_functions; select 'concat arr1, arr2, arr1'; -select arrayConcat(arr1, arr2, arr1), arr1, arr2 from test.array_functions; +select arrayConcat(arr1, arr2, arr1), arr1, arr2 from array_functions; select 'arraySlice(arr1, o, l)'; -select arr1, o, l, arraySlice(arr1, o, l) from test.array_functions; +select arr1, o, l, arraySlice(arr1, o, l) from array_functions; select 'arraySlice(arr1, no, nl)'; -select arr1, no, nl, arraySlice(arr1, no, nl) from test.array_functions; +select arr1, no, nl, arraySlice(arr1, no, nl) from array_functions; select 'arraySlice(arr1, 2, l)'; -select arr1, 2, l, arraySlice(arr1, 2, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, 2, l) from array_functions; select 'arraySlice(arr1, o, 2)'; -select arr1, o, 2, arraySlice(arr1, o, 2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, 2) from array_functions; select 'arraySlice(arr1, 2, nl)'; -select arr1, 2, nl, arraySlice(arr1, 2, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, 2, nl) from array_functions; select 'arraySlice(arr1, no, 2)'; -select arr1, no, 2, arraySlice(arr1, no, 2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, 2) from array_functions; select 'arraySlice(arr1, -4, l)'; -select arr1, 2, l, arraySlice(arr1, -4, l) from test.array_functions; +select arr1, 2, l, arraySlice(arr1, -4, l) from array_functions; select 'arraySlice(arr1, o, -2)'; -select arr1, o, 2, arraySlice(arr1, o, -2) from test.array_functions; +select arr1, o, 2, arraySlice(arr1, o, -2) from array_functions; select 'arraySlice(arr1, -4, nl)'; -select arr1, 2, nl, arraySlice(arr1, -4, nl) from test.array_functions; +select arr1, 2, nl, arraySlice(arr1, -4, nl) from array_functions; select 'arraySlice(arr1, no, -2)'; -select arr1, no, 2, arraySlice(arr1, no, -2) from test.array_functions; +select arr1, no, 2, arraySlice(arr1, no, -2) from array_functions; select 'arraySlice(arr1, 2, 4)'; -select arr1, 2, 4, arraySlice(arr1, 2, 4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, 4) from array_functions; select 'arraySlice(arr1, 2, -4)'; -select arr1, 2, 4, arraySlice(arr1, 2, -4) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, 2, -4) from array_functions; select 'arraySlice(arr1, -4, 2)'; -select arr1, 2, 4, arraySlice(arr1, -4, 2) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, 2) from array_functions; select 'arraySlice(arr1, -4, -1)'; -select arr1, 2, 4, arraySlice(arr1, -4, -1) from test.array_functions; +select arr1, 2, 4, arraySlice(arr1, -4, -1) from array_functions; select 'arrayPushFront(arr1, 1)'; -select arr1, arrayPushFront(arr1, '1') from test.array_functions; +select arr1, arrayPushFront(arr1, '1') from array_functions; select 'arrayPushFront(arr1, val)'; -select arr1, arrayPushFront(arr1, val) from test.array_functions; +select arr1, arrayPushFront(arr1, val) from array_functions; select 'arrayPushFront(arr1, val2)'; -select arr1, arrayPushFront(arr1, val2) from test.array_functions; +select arr1, arrayPushFront(arr1, val2) from array_functions; select 'arrayPushFront([a, b, c], val)'; -select arrayPushFront(['a', 'b', 'c'], val) from test.array_functions; +select arrayPushFront(['a', 'b', 'c'], val) from array_functions; select 'arrayPushFront([a, b, c], val2)'; -select arrayPushFront(['a', 'b', 'c'], val2) from test.array_functions; +select arrayPushFront(['a', 'b', 'c'], val2) from array_functions; select 'arrayPushBack(arr1, 1)'; -select arr1, arrayPushBack(arr1, '1') from test.array_functions; +select arr1, arrayPushBack(arr1, '1') from array_functions; select 'arrayPushBack(arr1, val)'; -select arr1, arrayPushBack(arr1, val) from test.array_functions; +select arr1, arrayPushBack(arr1, val) from array_functions; select 'arrayPushBack(arr1, val2)'; -select arr1, arrayPushBack(arr1, val2) from test.array_functions; +select arr1, arrayPushBack(arr1, val2) from array_functions; select 'arrayPushBack([a, b, c], val)'; -select arrayPushBack(['a', 'b', 'c'], val) from test.array_functions; +select arrayPushBack(['a', 'b', 'c'], val) from array_functions; select 'arrayPushBack([a, b, c], val2)'; -select arrayPushBack(['a', 'b', 'c'], val2) from test.array_functions; +select arrayPushBack(['a', 'b', 'c'], val2) from array_functions; select 'arrayPopFront(arr1)'; -select arr1, arrayPopFront(arr1) from test.array_functions; +select arr1, arrayPopFront(arr1) from array_functions; select 'arrayPopBack(arr1)'; -select arr1, arrayPopBack(arr1) from test.array_functions; +select arr1, arrayPopBack(arr1) from array_functions; -DROP TABLE if exists test.array_functions; +DROP TABLE if exists array_functions; diff --git a/dbms/tests/queries/0_stateless/00499_json_enum_insert.sql b/dbms/tests/queries/0_stateless/00499_json_enum_insert.sql index 41b3fcc3837..d085177a8e3 100644 --- a/dbms/tests/queries/0_stateless/00499_json_enum_insert.sql +++ b/dbms/tests/queries/0_stateless/00499_json_enum_insert.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.json; -CREATE TABLE test.json (x Enum8('browser' = 1, 'mobile' = 2), y String) ENGINE = Memory; +DROP TABLE IF EXISTS json; +CREATE TABLE json (x Enum8('browser' = 1, 'mobile' = 2), y String) ENGINE = Memory; -INSERT INTO test.json (y) VALUES ('Hello'); -SELECT * FROM test.json ORDER BY y; +INSERT INTO json (y) VALUES ('Hello'); +SELECT * FROM json ORDER BY y; -INSERT INTO test.json (y) FORMAT JSONEachRow {"y": "World 1"}; -SELECT * FROM test.json ORDER BY y; +INSERT INTO json (y) FORMAT JSONEachRow {"y": "World 1"}; +SELECT * FROM json ORDER BY y; -INSERT INTO test.json (x, y) FORMAT JSONEachRow {"y": "World 2"}; -SELECT * FROM test.json ORDER BY y; +INSERT INTO json (x, y) FORMAT JSONEachRow {"y": "World 2"}; +SELECT * FROM json ORDER BY y; -DROP TABLE test.json; +DROP TABLE json; diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.sql b/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.sql index d85b919fa21..ee1802126cd 100644 --- a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.sql +++ b/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.sql @@ -1,6 +1,6 @@ -drop table if exists test.coords; -create table test.coords (x Float32, y Float32) engine = Memory; -insert into test.coords values (-81.7897198,29.4292161), (-81.7886889,29.4292222), (-81.787658,29.4292283), (-81.7866341,29.4301369), (-81.7866271,29.4292344), (-81.7856171,29.4319479), (-81.7856101,29.4310454), (-81.7856032,29.430143), (-81.7855962,29.4292405), (-81.7845931,29.4328564), (-81.7845862,29.4319539), (-81.7845792,29.4310515), (-81.7845723,29.430149), (-81.7845654,29.4292466), (-81.7835622,29.4328625), (-81.7835553,29.43196), (-81.7835483,29.4310576), (-81.7835414,29.4301551), (-81.7835345,29.4292527), (-81.7825382,29.433771), (-81.7825313,29.4328685), (-81.7825243,29.4319661), (-81.7825174,29.4310636), (-81.7825105,29.4301612), (-81.7825036,29.4292587), (-81.7815142,29.4346795), (-81.7815073,29.433777), (-81.7815003,29.4328746), (-81.7814934,29.4319721), (-81.7814865,29.4310697), (-81.7814796,29.4301672), (-81.7814727,29.4292648), (-81.7804832,29.4346855), (-81.7804763,29.4337831), (-81.7804694,29.4328806), (-81.7804625,29.4319782), (-81.7804556,29.4310757), (-81.7804487,29.4301733), (-81.7804418,29.4292708), (-81.7794592,29.435594), (-81.7794523,29.4346916), (-81.7794454,29.4337891), (-81.7794385,29.4328867), (-81.7794316,29.4319842), (-81.7794247,29.4310818), (-81.7794178,29.4301793), (-81.7794109,29.4292768), (-81.7784282,29.4356001), (-81.7784213,29.4346976), (-81.7784145,29.4337952), (-81.7784076,29.4328927), (-81.7784007,29.4319902), (-81.7783938,29.4310878), (-81.7783869,29.4301853), (-81.77838,29.4292829), (-81.7773973,29.4356061), (-81.7773904,29.4347036), (-81.7773835,29.4338012), (-81.7773766,29.4328987), (-81.7773698,29.4319963), (-81.7773629,29.4310938), (-81.777356,29.4301914), (-81.7773492,29.4292889), (-81.7763732,29.4365146), (-81.7763663,29.4356121), (-81.7763594,29.4347096), (-81.7763526,29.4338072), (-81.7763457,29.4329047), (-81.7763389,29.4320023), (-81.776332,29.4310998), (-81.7763251,29.4301974), (-81.7763183,29.4292949), (-81.7753422,29.4365206), (-81.7753354,29.4356181), (-81.7753285,29.4347156), (-81.7753217,29.4338132), (-81.7753148,29.4329107), (-81.7753079,29.4320083), (-81.7753011,29.4311058), (-81.7752942,29.4302034), (-81.7752874,29.4293009), (-81.7742496,29.4284045), (-81.7742428,29.427502), (-81.774236,29.426599500000002), (-81.7742291,29.4256971), (-81.7742223,29.4247946), (-81.7742154,29.4238922), (-81.7742086,29.4229897), (-81.7742017,29.4220873), (-81.7741949,29.4211848), (-81.774188,29.4202823), (-81.7741812,29.4193799), (-81.7741744,29.4184774), (-81.7741675,29.417575), (-81.7741607,29.4166725), (-81.7741538,29.4157701), (-81.774147,29.4148676), (-81.7741402,29.4139651), (-81.7741333,29.4130627), (-81.7741265,29.4121602), (-81.7741196,29.4112578), (-81.7741128,29.4103553), (-81.774106,29.4094528), (-81.7740991,29.4085504), (-81.7740923,29.4076479), (-81.7740855,29.4067455), (-81.7740786,29.405843), (-81.7740718,29.4049405), (-81.7740649,29.4040381), (-81.7740581,29.4031356), (-81.7740513,29.4022332), (-81.7740444,29.4013307), (-81.7740376,29.4004282), (-81.7740308,29.3995258), (-81.7740239,29.3986233), (-81.7740171,29.3977209), (-81.7740103,29.3968184), (-81.7740034,29.3959159), (-81.7739966,29.3950135), (-81.7739898,29.394111), (-81.7739829,29.3932086), (-81.7739761,29.3923061), (-81.7739693,29.3914036), (-81.7739624,29.3905012), (-81.7739556,29.3895987), (-81.7739488,29.3886963), (-81.7739419,29.3877938), (-81.7739351,29.3868913), (-81.7739283,29.3859889), (-81.7732188,29.4284104), (-81.7732119,29.427508), (-81.7732051,29.4266055), (-81.7731983,29.4257031), (-81.7731914,29.4248006), (-81.7731846,29.4238982), (-81.7731778,29.4229957), (-81.7731709,29.4220932), (-81.7731641,29.4211908), (-81.7731573,29.4202883), (-81.7731504,29.4193859), (-81.7731436,29.4184834), (-81.7731368,29.417581), (-81.7731299,29.4166785), (-81.7731231,29.415776), (-81.7731163,29.4148736), (-81.7731094,29.4139711), (-81.7731026,29.4130687), (-81.7730958,29.4121662), (-81.7730889,29.4112637), (-81.7730821,29.4103613), (-81.7730753,29.4094588), (-81.7730684,29.4085564), (-81.7730616,29.4076539), (-81.7730548,29.4067514), (-81.773048,29.405849), (-81.7730411,29.4049465), (-81.7730343,29.4040441), (-81.7730275,29.4031416), (-81.7730207,29.4022391), (-81.7730138,29.4013367), (-81.773007,29.4004342), (-81.7730002,29.3995318), (-81.7729933,29.3986293), (-81.7729865,29.3977268), (-81.7729797,29.3968244), (-81.7729729,29.3959219), (-81.772966,29.3950195), (-81.7729592,29.394117), (-81.7729524,29.3932145), (-81.7729456,29.3923121), (-81.7729388,29.3914096), (-81.7729319,29.3905072), (-81.7729251,29.3896047), (-81.7729183,29.3887022), (-81.7729115,29.3877998), (-81.7729046,29.3868973), (-81.7728978,29.3859948), (-81.772891,29.3850924), (-81.7728842,29.3841899), (-81.7728774,29.3832875), (-81.7728705,29.382385), (-81.7728637,29.3814825), (-81.7721879,29.4284164), (-81.7721811,29.427514), (-81.7721742,29.4266115), (-81.7721674,29.4257091), (-81.7721606,29.4248066), (-81.7721537,29.4239041), (-81.7721469,29.4230017), (-81.7721401,29.4220992), (-81.7721333,29.4211968), (-81.7721265,29.4202943), (-81.7721196,29.4193918), (-81.7721128,29.4184894), (-81.772106,29.4175869), (-81.7720992,29.4166845), (-81.7720923,29.415782), (-81.7720855,29.4148796), (-81.7720787,29.4139771), (-81.7720719,29.4130746), (-81.772065,29.4121722), (-81.7720582,29.4112697), (-81.7720514,29.4103673), (-81.7720446,29.4094648), (-81.7720378,29.4085623), (-81.7720309,29.4076599), (-81.7720241,29.4067574), (-81.7720173,29.405855), (-81.7720105,29.4049525), (-81.7720037,29.40405), (-81.7719969,29.4031476), (-81.77199,29.402245100000002), (-81.7719832,29.4013427), (-81.7719764,29.4004402), (-81.7719696,29.3995377), (-81.7719628,29.3986353), (-81.771956,29.3977328), (-81.7719491,29.3968304), (-81.7719423,29.3959279), (-81.7719355,29.3950254), (-81.7719287,29.394123), (-81.7719219,29.393220499999998), (-81.7719151,29.3923181), (-81.7719082,29.3914156), (-81.7719014,29.3905131), (-81.7718946,29.3896107), (-81.7718878,29.3887082), (-81.771881,29.3878057), (-81.7718742,29.3869033), (-81.7718674,29.3860008), (-81.7718606,29.3850984), (-81.7718537,29.3841959), (-81.7718469,29.3832934), (-81.7718401,29.382391), (-81.7718333,29.3814885), (-81.771157,29.4284224), (-81.7711502,29.4275199), (-81.7711434,29.4266175), (-81.7711365,29.425715), (-81.7711297,29.4248126), (-81.7711229,29.4239101), (-81.7711161,29.4230077), (-81.7711093,29.4221052), (-81.7711025,29.4212027), (-81.7710957,29.4203003), (-81.7710888,29.4193978), (-81.771082,29.4184954), (-81.7710752,29.4175929), (-81.7710684,29.4166904), (-81.7710616,29.415788), (-81.7710548,29.4148855), (-81.771048,29.4139831), (-81.7710411,29.4130806), (-81.7710343,29.4121781), (-81.7710275,29.4112757), (-81.7710207,29.4103732), (-81.7710139,29.4094708), (-81.7710071,29.4085683), (-81.7710003,29.4076659), (-81.7709935,29.4067634), (-81.7709867,29.4058609), (-81.7709798,29.4049585), (-81.770973,29.404056), (-81.7709662,29.4031536), (-81.7709594,29.4022511), (-81.7709526,29.4013486), (-81.7709458,29.4004462), (-81.770939,29.3995437), (-81.7709322,29.3986412), (-81.7709254,29.3977388), (-81.7709186,29.3968363), (-81.7709118,29.3959339), (-81.770905,29.3950314), (-81.7708982,29.3941289), (-81.7708913,29.3932265), (-81.7708845,29.392324), (-81.7708777,29.3914216), (-81.7708709,29.3905191), (-81.7708641,29.3896166), (-81.7708573,29.3887142), (-81.7708505,29.3878117), (-81.7708437,29.3869092), (-81.7708369,29.3860068), (-81.7708301,29.3851043), (-81.7708233,29.3842019), (-81.7708165,29.3832994), (-81.7708097,29.3823969), (-81.7708029,29.3814945), (-81.7701329,29.4293308), (-81.7701261,29.4284284), (-81.7701193,29.4275259), (-81.7701125,29.4266234), (-81.7701057,29.425721), (-81.7700989,29.4248185), (-81.7700921,29.4239161), (-81.7700853,29.4230136), (-81.7700785,29.4221112), (-81.7700717,29.4212087), (-81.7700649,29.4203062), (-81.770058,29.4194038), (-81.7700512,29.4185013), (-81.7700444,29.4175989), (-81.7700376,29.4166964), (-81.7700308,29.4157939), (-81.770024,29.4148915), (-81.7700172,29.413989), (-81.7700104,29.4130866), (-81.7700036,29.4121841), (-81.7699968,29.4112816), (-81.76999,29.4103792), (-81.7699832,29.4094767), (-81.7699764,29.4085743), (-81.7699696,29.4076718), (-81.7699628,29.4067694), (-81.769956,29.4058669), (-81.7699492,29.4049644), (-81.7699424,29.404062), (-81.7699356,29.4031595), (-81.7699288,29.402257), (-81.769922,29.4013546), (-81.7699152,29.4004521), (-81.7699084,29.3995497), (-81.7699016,29.3986472), (-81.7698948,29.3977447), (-81.769888,29.3968423), (-81.7698812,29.3959398), (-81.7698744,29.3950374), (-81.7698676,29.3941349), (-81.7698608,29.3932324), (-81.769854,29.39233), (-81.7698472,29.3914275), (-81.7698404,29.390525), (-81.7698336,29.3896226), (-81.7698268,29.3887201), (-81.76982,29.3878177), (-81.7698133,29.3869152), (-81.7698065,29.3860127), (-81.7697997,29.3851103), (-81.7697929,29.3842078), (-81.7697861,29.3833053), (-81.7697793,29.3824029), (-81.7697725,29.3815004), (-81.769102,29.4293368), (-81.7690952,29.4284343), (-81.7690884,29.4275319), (-81.7690816,29.4266294), (-81.7690748,29.4257269), (-81.769068,29.4248245), (-81.7690612,29.423922), (-81.7690544,29.4230196), (-81.7690476,29.4221171), (-81.7690409,29.4212147), (-81.7690341,29.4203122), (-81.7690273,29.4194097), (-81.7690205,29.4185073), (-81.7690137,29.4176048), (-81.7690069,29.4167024), (-81.7690001,29.4157999), (-81.7689933,29.4148974), (-81.7689865,29.413995), (-81.7689797,29.4130925), (-81.7689729,29.4121901), (-81.7689661,29.4112876), (-81.7689593,29.4103851), (-81.7689525,29.4094827), (-81.7689457,29.4085802), (-81.7689389,29.4076778), (-81.7689321,29.4067753), (-81.7689253,29.4058728), (-81.7689186,29.4049704), (-81.7689118,29.4040679), (-81.768905,29.4031655), (-81.7688982,29.402263), (-81.7688914,29.4013605), (-81.7688846,29.4004581), (-81.7688778,29.3995556), (-81.768871,29.3986532), (-81.7688642,29.3977507), (-81.7688574,29.3968482), (-81.7688507,29.3959458), (-81.7688439,29.3950433), (-81.7688371,29.3941408), (-81.7688303,29.3932384), (-81.7688235,29.3923359), (-81.7688167,29.3914335), (-81.7688099,29.390531), (-81.7688031,29.3896285), (-81.7687964,29.3887261), (-81.7687896,29.3878236), (-81.7687828,29.3869211), (-81.768776,29.3860187), (-81.7687692,29.3851162), (-81.7687624,29.3842138), (-81.7687557,29.3833113), (-81.7687489,29.3824088), (-81.7687421,29.3815064), (-81.7680711,29.4293427), (-81.7680644,29.4284403), (-81.7680576,29.4275378), (-81.7680508,29.4266353), (-81.768044,29.4257329), (-81.7680372,29.4248304), (-81.7680304,29.423928), (-81.7680236,29.4230255), (-81.7680168,29.4221231), (-81.76801,29.4212206), (-81.7680033,29.4203181), (-81.7679965,29.4194157), (-81.7679897,29.4185132), (-81.7679829,29.4176108), (-81.7679761,29.4167083), (-81.7679693,29.4158058), (-81.7679625,29.4149034), (-81.7679557,29.4140009), (-81.767949,29.4130985), (-81.7679422,29.412196), (-81.7679354,29.4112935), (-81.7679286,29.4103911), (-81.7679218,29.4094886), (-81.767915,29.4085862), (-81.7679083,29.4076837), (-81.7679015,29.4067812), (-81.7678947,29.4058788), (-81.7678879,29.4049763), (-81.7678811,29.4040739), (-81.7678743,29.4031714), (-81.7678676,29.4022689), (-81.7678608,29.4013665), (-81.767854,29.400464), (-81.7678472,29.3995616), (-81.7678404,29.3986591), (-81.7678337,29.3977566), (-81.7678269,29.3968542), (-81.7678201,29.3959517), (-81.7678133,29.3950492), (-81.7678065,29.3941468), (-81.7677998,29.3932443), (-81.767793,29.3923419), (-81.7677862,29.3914394), (-81.7677794,29.3905369), (-81.7677727,29.3896345), (-81.7677659,29.388732), (-81.7677591,29.3878295), (-81.7677523,29.3869271), (-81.7677456,29.3860246), (-81.7677388,29.3851222), (-81.767732,29.3842197), (-81.7677252,29.3833172), (-81.7677185,29.3824148), (-81.7677117,29.3815123), (-81.7670403,29.4293487), (-81.7670335,29.4284462), (-81.7670267,29.4275437), (-81.7670199,29.4266413), (-81.7670131,29.4257388), (-81.7670063,29.4248364), (-81.7669996,29.4239339), (-81.7669928,29.4230315), (-81.766986,29.422128999999998), (-81.7669792,29.4212265), (-81.7669725,29.4203241), (-81.7669657,29.4194216), (-81.7669589,29.4185192), (-81.7669521,29.4176167), (-81.7669453,29.4167142), (-81.7669386,29.4158118), (-81.7669318,29.4149093), (-81.766925,29.4140069), (-81.7669182,29.4131044), (-81.7669115,29.4122019), (-81.7669047,29.4112995), (-81.7668979,29.410397), (-81.7668911,29.4094946), (-81.7668844,29.4085921), (-81.7668776,29.4076896), (-81.7668708,29.4067872), (-81.766864,29.4058847), (-81.7668573,29.4049823), (-81.7668505,29.4040798), (-81.7668437,29.4031773), (-81.7668369,29.4022749), (-81.7668302,29.4013724), (-81.7668234,29.40047), (-81.7668166,29.3995675), (-81.7668099,29.398665), (-81.7668031,29.3977626), (-81.7667963,29.3968601), (-81.7667895,29.3959576), (-81.7667828,29.3950552), (-81.766776,29.3941527), (-81.7667692,29.3932503), (-81.7667625,29.3923478), (-81.7667557,29.3914453), (-81.7667489,29.3905429), (-81.7667422,29.3896404), (-81.7667354,29.3887379), (-81.7667286,29.3878355), (-81.7667219,29.386933), (-81.7667151,29.3860305), (-81.7667083,29.3851281), (-81.7667016,29.3842256), (-81.7666948,29.3833232), (-81.766688,29.3824207), (-81.7666813,29.3815182), (-81.7660094,29.4293546), (-81.7660026,29.4284521), (-81.7659958,29.4275497), (-81.765989,29.4266472), (-81.7659823,29.4257448), (-81.7659755,29.4248423), (-81.7659687,29.4239398), (-81.765962,29.4230374), (-81.7659552,29.4221349), (-81.7659484,29.4212325), (-81.7659417,29.42033), (-81.7659349,29.4194275), (-81.7659281,29.4185251), (-81.7659213,29.4176226), (-81.7659146,29.4167202), (-81.7659078,29.4158177), (-81.765901,29.4149153), (-81.7658943,29.4140128), (-81.7658875,29.4131103), (-81.7658807,29.4122079), (-81.765874,29.4113054), (-81.7658672,29.4104029), (-81.7658604,29.4095005), (-81.7658537,29.408598), (-81.7658469,29.4076956), (-81.7658401,29.4067931), (-81.7658334,29.4058906), (-81.7658266,29.4049882), (-81.7658199,29.4040857), (-81.7658131,29.4031833), (-81.7658063,29.4022808), (-81.7657996,29.4013783), (-81.7657928,29.4004759), (-81.765786,29.3995734), (-81.7657793,29.398671), (-81.7657725,29.3977685), (-81.7657658,29.396866), (-81.765759,29.3959636), (-81.7657522,29.3950611), (-81.7657455,29.3941586), (-81.7657387,29.3932562), (-81.765732,29.3923537), (-81.7657252,29.3914513), (-81.7657184,29.3905488), (-81.7657117,29.3896463), (-81.7657049,29.3887439), (-81.7656982,29.3878414), (-81.7656914,29.3869389), (-81.7656846,29.3860365), (-81.7656779,29.385134), (-81.7656711,29.3842315), (-81.7656644,29.3833291), (-81.7656576,29.3824266), (-81.7656509,29.3815241), (-81.7649785,29.4293605), (-81.7649717,29.4284581), (-81.7649649,29.4275556), (-81.7649582,29.4266531), (-81.7649514,29.4257507), (-81.7649447,29.4248482), (-81.7649379,29.4239458), (-81.7649311,29.4230433), (-81.7649244,29.4221408), (-81.7649176,29.4212384), (-81.7649109,29.4203359), (-81.7649041,29.4194335), (-81.7648973,29.418531), (-81.7648906,29.4176286), (-81.7648838,29.416726099999998), (-81.7648771,29.4158236), (-81.7648703,29.4149212), (-81.7648635,29.4140187), (-81.7648568,29.4131163), (-81.76485,29.4122138), (-81.7648433,29.4113113), (-81.7648365,29.4104089), (-81.7648298,29.4095064), (-81.764823,29.4086039), (-81.7648162,29.4077015), (-81.7648095,29.406799), (-81.7648027,29.4058966), (-81.764796,29.4049941), (-81.7647892,29.4040916), (-81.7647825,29.4031892), (-81.7647757,29.4022867), (-81.764769,29.4013843), (-81.7647622,29.4004818), (-81.7647554,29.3995793), (-81.7647487,29.3986769), (-81.7647419,29.3977744), (-81.7647352,29.3968719), (-81.7647284,29.3959695), (-81.7647217,29.395067), (-81.7647149,29.3941646), (-81.7647082,29.3932621), (-81.7647014,29.3923596), (-81.7646947,29.3914572), (-81.7646879,29.3905547), (-81.7646812,29.3896522), (-81.7646744,29.3887498), (-81.7646677,29.3878473), (-81.7646609,29.3869448), (-81.7646542,29.3860424), (-81.7646474,29.3851399), (-81.7646407,29.3842375), (-81.7646339,29.383335), (-81.7646272,29.3824325), (-81.7646204,29.3815301), (-81.7639476,29.4293664), (-81.7639408,29.428464), (-81.7639341,29.4275615), (-81.7639273,29.4266591), (-81.7639206,29.4257566), (-81.7639138,29.4248541), (-81.7639071,29.4239517), (-81.7639003,29.4230492), (-81.7638936,29.4221468), (-81.7638868,29.4212443), (-81.7638801,29.4203418), (-81.7638733,29.4194394), (-81.7638666,29.4185369), (-81.7638598,29.4176345), (-81.763853,29.416732), (-81.7638463,29.4158295), (-81.7638396,29.4149271), (-81.7638328,29.4140246), (-81.7638261,29.4131222), (-81.7638193,29.4122197), (-81.7638126,29.4113172), (-81.7638058,29.4104148), (-81.7637991,29.4095123), (-81.7637923,29.4086099), (-81.7637856,29.4077074), (-81.7637788,29.4068049), (-81.7637721,29.4059025), (-81.7637653,29.405), (-81.7637586,29.4040976), (-81.7637518,29.4031951), (-81.7637451,29.4022926), (-81.7637383,29.4013902), (-81.7637316,29.4004877), (-81.7637249,29.3995852), (-81.7637181,29.3986828), (-81.7637114,29.3977803), (-81.7637046,29.3968779), (-81.7636979,29.3959754), (-81.7636911,29.3950729), (-81.7636844,29.3941705), (-81.7636777,29.393268), (-81.7636709,29.3923655), (-81.7636642,29.3914631), (-81.7636574,29.3905606), (-81.7636507,29.3896581), (-81.763644,29.3887557), (-81.7636372,29.3878532), (-81.7636305,29.3869508), (-81.7636237,29.3860483), (-81.763617,29.3851458), (-81.7636103,29.3842434), (-81.7636035,29.3833409), (-81.7635968,29.3824384), (-81.76359,29.381536), (-81.7629167,29.4293723), (-81.7629099,29.4284699), (-81.7629032,29.4275674), (-81.7628965,29.426665), (-81.7628897,29.4257625), (-81.762883,29.42486), (-81.7628762,29.4239576), (-81.7628695,29.4230551), (-81.7628627,29.4221527), (-81.762856,29.4212502), (-81.7628493,29.4203478), (-81.7628425,29.4194453), (-81.7628358,29.4185428), (-81.762829,29.4176404), (-81.7628223,29.4167379), (-81.7628155,29.4158355), (-81.7628088,29.414933), (-81.7628021,29.4140305), (-81.7627953,29.4131281), (-81.7627886,29.4122256), (-81.7627818,29.4113231), (-81.7627751,29.4104207), (-81.7627684,29.4095182), (-81.7627616,29.4086158), (-81.7627549,29.4077133), (-81.7627482,29.4068108), (-81.7627414,29.4059084), (-81.7627347,29.4050059), (-81.7627279,29.4041035), (-81.7627212,29.403201), (-81.7627145,29.4022985), (-81.76270769999999,29.4013961), (-81.762701,29.4004936), (-81.7626943,29.3995911), (-81.7626875,29.3986887), (-81.7626808,29.3977862), (-81.7626741,29.3968838), (-81.7626673,29.3959813), (-81.7626606,29.3950788), (-81.7626539,29.3941764), (-81.7626471,29.3932739), (-81.7626404,29.3923714), (-81.7626337,29.391469), (-81.7626269,29.3905665), (-81.7626202,29.389664), (-81.7626135,29.3887616), (-81.7626067,29.3878591), (-81.7626,29.3869567), (-81.7625933,29.3860542), (-81.7625865,29.3851517), (-81.7625798,29.3842493), (-81.7625731,29.383346799999998), (-81.7625664,29.3824443), (-81.7625596,29.3815419), (-81.7618858,29.4293782), (-81.7618791,29.4284758), (-81.7618723,29.4275733), (-81.7618656,29.4266709), (-81.7618589,29.4257684), (-81.7618521,29.4248659), (-81.7618454,29.4239635), (-81.7618386,29.423061), (-81.7618319,29.4221586), (-81.7618252,29.4212561), (-81.7618184,29.4203537), (-81.7618117,29.4194512), (-81.761805,29.4185487), (-81.7617983,29.4176463), (-81.7617915,29.4167438), (-81.7617848,29.4158413), (-81.7617781,29.4149389), (-81.7617713,29.4140364), (-81.7617646,29.413134), (-81.7617579,29.4122315), (-81.7617511,29.411329), (-81.7617444,29.4104266), (-81.7617377,29.4095241), (-81.7617309,29.4086217), (-81.7617242,29.4077192), (-81.7617175,29.4068167), (-81.7617108,29.4059143), (-81.761704,29.4050118), (-81.7616973,29.404109300000002), (-81.7616906,29.4032069), (-81.7616839,29.4023044), (-81.7616771,29.401402), (-81.7616704,29.4004995), (-81.7616637,29.399597), (-81.7616569,29.3986946), (-81.7616502,29.3977921), (-81.7616435,29.3968896), (-81.7616368,29.3959872), (-81.76163,29.3950847), (-81.7616233,29.3941823), (-81.7616166,29.3932798), (-81.7616099,29.3923773), (-81.7616032,29.3914749), (-81.7615964,29.3905724), (-81.7615897,29.3896699), (-81.761583,29.3887675), (-81.7615763,29.387865), (-81.7615695,29.3869625), (-81.7615628,29.3860601), (-81.7615561,29.3851576), (-81.7615494,29.3842551), (-81.7615427,29.3833527), (-81.7615359,29.3824502), (-81.7615292,29.3815478), (-81.7608549,29.4293841), (-81.7608482,29.4284817), (-81.7608414,29.4275792), (-81.7608347,29.4266768), (-81.760828,29.4257743), (-81.7608213,29.4248718), (-81.7608145,29.4239694), (-81.7608078,29.4230669), (-81.7608011,29.4221645), (-81.7607944,29.421262), (-81.7607876,29.4203595), (-81.7607809,29.4194571), (-81.7607742,29.4185546), (-81.7607675,29.4176522), (-81.7607608,29.4167497), (-81.760754,29.4158472), (-81.7607473,29.4149448), (-81.7607406,29.4140423), (-81.7607339,29.4131399), (-81.7607271,29.4122374), (-81.7607204,29.4113349), (-81.7607137,29.4104325), (-81.760707,29.40953), (-81.7607003,29.4086275), (-81.7606935,29.4077251), (-81.7606868,29.4068226), (-81.7606801,29.4059202), (-81.7606734,29.4050177), (-81.7606667,29.4041152), (-81.76066,29.4032128), (-81.7606532,29.4023103), (-81.76064650000001,29.4014078), (-81.7606398,29.4005054), (-81.7606331,29.3996029), (-81.7606264,29.3987005), (-81.7606196,29.397798), (-81.7606129,29.3968955), (-81.7606062,29.3959931), (-81.7605995,29.3950906), (-81.7605928,29.3941881), (-81.7605861,29.3932857), (-81.7605794,29.3923832), (-81.7605726,29.3914807), (-81.7605659,29.3905783), (-81.7605592,29.3896758), (-81.7605525,29.3887734), (-81.7605458,29.3878709), (-81.7605391,29.3869684), (-81.7605324,29.386066), (-81.7605257,29.3851635), (-81.7605189,29.384261), (-81.7605122,29.3833586), (-81.7605055,29.3824561), (-81.7604988,29.3815536), (-81.759824,29.42939), (-81.7598173,29.4284876), (-81.7598106,29.4275851), (-81.7598039,29.4266826), (-81.7597971,29.4257802), (-81.7597904,29.4248777), (-81.7597837,29.4239753), (-81.759777,29.4230728), (-81.7597703,29.4221703), (-81.7597636,29.4212679), (-81.7597568,29.4203654), (-81.7597501,29.419463), (-81.7597434,29.4185605), (-81.7597367,29.417658), (-81.75973,29.4167556), (-81.7597233,29.4158531), (-81.7597166,29.4149507), (-81.7597098,29.4140482), (-81.7597031,29.4131457), (-81.7596964,29.4122433), (-81.7596897,29.4113408), (-81.759683,29.4104384), (-81.7596763,29.4095359), (-81.7596696,29.4086334), (-81.7596629,29.407731), (-81.7596562,29.4068285), (-81.7596494,29.405926), (-81.7596427,29.4050236), (-81.759636,29.4041211), (-81.7596293,29.4032187), (-81.7596226,29.4023162), (-81.7596159,29.4014137), (-81.7596092,29.4005113), (-81.7596025,29.3996088), (-81.7595958,29.3987063), (-81.7595891,29.3978039), (-81.7595824,29.3969014), (-81.7595757,29.3959989), (-81.759569,29.3950965), (-81.7595622,29.394194), (-81.7595555,29.3932916), (-81.7595488,29.3923891), (-81.7595421,29.3914866), (-81.7595354,29.3905842), (-81.7595287,29.3896817), (-81.759522,29.3887792), (-81.7595153,29.3878768), (-81.7595086,29.3869743), (-81.7595019,29.3860718), (-81.7594952,29.3851694), (-81.7594885,29.3842669), (-81.7594818,29.3833644), (-81.7594751,29.382462), (-81.7594684,29.3815595), (-81.7587931,29.4293959), (-81.7587864,29.4284934), (-81.7587797,29.427591), (-81.758773,29.4266885), (-81.7587663,29.4257861), (-81.7587596,29.4248836), (-81.7587529,29.4239811), (-81.7587462,29.4230787), (-81.7587395,29.4221762), (-81.7587327,29.4212738), (-81.758726,29.4203713), (-81.7587193,29.4194688), (-81.7587126,29.4185664), (-81.7587059,29.4176639), (-81.7586992,29.4167615), (-81.7586925,29.415859), (-81.7586858,29.4149565), (-81.7586791,29.4140541), (-81.7586724,29.4131516), (-81.7586657,29.4122491), (-81.758659,29.4113467), (-81.7586523,29.4104442), (-81.7586456,29.4095418), (-81.7586389,29.4086393), (-81.7586322,29.4077368), (-81.7586255,29.4068344), (-81.7586188,29.4059319), (-81.7586121,29.4050294), (-81.7586054,29.404127), (-81.7585987,29.4032245), (-81.758592,29.4023221), (-81.7585853,29.4014196), (-81.7585786,29.4005171), (-81.7585719,29.3996147), (-81.7585652,29.3987122), (-81.7585585,29.3978097), (-81.7585518,29.3969073), (-81.7585451,29.3960048), (-81.7585384,29.3951024), (-81.7585317,29.3941999), (-81.758525,29.3932974), (-81.7585183,29.392395), (-81.7585116,29.3914925), (-81.7585049,29.39059), (-81.7584982,29.3896876), (-81.7584915,29.3887851), (-81.7584848,29.3878826), (-81.7584781,29.3869802), (-81.7584715,29.3860777), (-81.7584648,29.3851752), (-81.7584581,29.3842728), (-81.7584514,29.3833703), (-81.7584447,29.3824678), (-81.758438,29.3815654), (-81.7577622,29.4294018), (-81.7577555,29.4284993), (-81.7577488,29.4275968), (-81.7577421,29.4266944), (-81.7577354,29.4257919), (-81.7577287,29.4248895), (-81.757722,29.423987), (-81.7577153,29.4230845), (-81.7577086,29.4221821), (-81.7577019,29.4212796), (-81.7576952,29.4203772), (-81.7576885,29.4194747), (-81.7576818,29.4185722), (-81.7576752,29.4176698), (-81.7576685,29.4167673), (-81.7576618,29.4158649), (-81.7576551,29.4149624), (-81.7576484,29.4140599), (-81.7576417,29.4131575), (-81.757635,29.412255), (-81.7576283,29.4113525), (-81.7576216,29.4104501), (-81.7576149,29.4095476), (-81.75760819999999,29.4086452), (-81.7576015,29.4077427), (-81.7575948,29.4068402), (-81.7575881,29.4059378), (-81.7575814,29.4050353), (-81.7575748,29.4041328), (-81.7575681,29.403230399999998), (-81.7575614,29.4023279), (-81.7575547,29.4014255), (-81.757548,29.400523), (-81.7575413,29.3996205), (-81.7575346,29.3987181), (-81.7575279,29.3978156), (-81.7575212,29.3969131), (-81.7575145,29.3960107), (-81.7575079,29.3951082), (-81.7575012,29.3942057), (-81.7574945,29.3933033), (-81.7574878,29.3924008), (-81.7574811,29.3914984), (-81.7574744,29.3905959), (-81.7574677,29.3896934), (-81.7574611,29.388791), (-81.7574544,29.3878885), (-81.7574477,29.386986), (-81.757441,29.3860836), (-81.7574343,29.3851811), (-81.7574276,29.384278600000002), (-81.7574209,29.3833762), (-81.7574143,29.3824737), (-81.7574076,29.3815712), (-81.7567313,29.4294076), (-81.7567246,29.4285052), (-81.7567179,29.4276027), (-81.7567113,29.4267002), (-81.7567046,29.4257978), (-81.7566979,29.4248953), (-81.7566912,29.423992900000002), (-81.7566845,29.4230904), (-81.7566778,29.4221879), (-81.7566711,29.4212855), (-81.7566644,29.420383), (-81.7566577,29.4194806), (-81.7566511,29.4185781), (-81.7566444,29.4176756), (-81.7566377,29.4167732), (-81.756631,29.4158707), (-81.7566243,29.4149683), (-81.7566176,29.4140658), (-81.7566109,29.4131633), (-81.7566043,29.4122609), (-81.7565976,29.4113584), (-81.7565909,29.4104559), (-81.7565842,29.4095535), (-81.7565775,29.408651), (-81.7565708,29.4077486), (-81.7565642,29.4068461), (-81.7565575,29.4059436), (-81.7565508,29.4050412), (-81.7565441,29.4041387), (-81.7565374,29.4032362), (-81.7565308,29.4023338), (-81.75652410000001,29.4014313), (-81.7565174,29.4005288), (-81.7565107,29.3996264), (-81.756504,29.3987239), (-81.7564973,29.3978215), (-81.7564907,29.396919), (-81.756484,29.3960165), (-81.7564773,29.3951141), (-81.7564706,29.3942116), (-81.756464,29.3933091), (-81.7564573,29.3924067), (-81.7564506,29.3915042), (-81.7564439,29.3906017), (-81.7564372,29.3896993), (-81.7564306,29.3887968), (-81.7564239,29.3878943), (-81.7564172,29.3869919), (-81.7564105,29.3860894), (-81.7564039,29.3851869), (-81.7563972,29.3842845), (-81.7563905,29.383382), (-81.7563838,29.3824795), (-81.7563772,29.3815771), (-81.7557004,29.4294135), (-81.7556937,29.428511), (-81.7556871,29.4276086), (-81.7556804,29.4267061), (-81.7556737,29.4258036), (-81.755667,29.4249012), (-81.7556603,29.4239987), (-81.7556537,29.4230963), (-81.755647,29.4221938), (-81.7556403,29.4212913), (-81.7556336,29.4203889), (-81.755627,29.4194864), (-81.7556203,29.418584), (-81.7556136,29.4176815), (-81.7556069,29.416779), (-81.7556002,29.4158766), (-81.7555936,29.4149741), (-81.7555869,29.4140716), (-81.7555802,29.4131692), (-81.7555735,29.4122667), (-81.7555669,29.4113643), (-81.7555602,29.4104618), (-81.7555535,29.4095593), (-81.7555468,29.4086569), (-81.7555402,29.4077544), (-81.7555335,29.4068519), (-81.7555268,29.4059495), (-81.7555201,29.405047), (-81.7555135,29.4041446), (-81.7555068,29.4032421), (-81.7555001,29.4023396), (-81.7554935,29.4014372), (-81.7554868,29.4005347), (-81.7554801,29.3996322), (-81.7554734,29.3987298), (-81.7554668,29.3978273), (-81.7554601,29.3969248), (-81.7554534,29.3960224), (-81.7554468,29.3951199), (-81.7554401,29.3942174), (-81.7554334,29.393315), (-81.7554268,29.3924125), (-81.7554201,29.39151), (-81.7554134,29.3906076), (-81.7554067,29.3897051), (-81.7554001,29.3888027), (-81.7553934,29.3879002), (-81.7553867,29.3869977), (-81.7553801,29.3860953), (-81.7553734,29.3851928), (-81.7553667,29.3842903), (-81.7553601,29.3833879), (-81.7553534,29.3824854), (-81.7553468,29.3815829), (-81.7546695,29.4294193), (-81.7546629,29.428516899999998), (-81.7546562,29.4276144), (-81.7546495,29.4267119), (-81.7546428,29.4258095), (-81.7546362,29.424907), (-81.7546295,29.4240046), (-81.7546228,29.4231021), (-81.7546162,29.4221996), (-81.7546095,29.4212972), (-81.7546028,29.4203947), (-81.7545962,29.4194923), (-81.7545895,29.4185898), (-81.7545828,29.4176873), (-81.7545762,29.4167849), (-81.7545695,29.4158824), (-81.7545628,29.4149799), (-81.7545562,29.4140775), (-81.7545495,29.413175), (-81.7545428,29.4122726), (-81.7545362,29.4113701), (-81.7545295,29.4104676), (-81.7545228,29.4095652), (-81.7545162,29.4086627), (-81.7545095,29.4077602), (-81.7545028,29.4068578), (-81.7544962,29.4059553), (-81.7544895,29.4050529), (-81.7544828,29.4041504), (-81.7544762,29.4032479), (-81.7544695,29.4023455), (-81.7544628,29.401443), (-81.7544562,29.4005405), (-81.7544495,29.3996381), (-81.7544429,29.3987356), (-81.7544362,29.3978331), (-81.7544295,29.3969307), (-81.7544229,29.3960282), (-81.7544162,29.3951257), (-81.7544096,29.3942233), (-81.7544029,29.3933208), (-81.7543962,29.3924183), (-81.7543896,29.3915159), (-81.7543829,29.3906134), (-81.7543763,29.389711), (-81.7543696,29.3888085), (-81.7543629,29.387906), (-81.7543563,29.3870036), (-81.7543496,29.3861011), (-81.754343,29.3851986), (-81.7543363,29.3842962), (-81.7543297,29.3833937), (-81.754323,29.3824912), (-81.7543163,29.3815888), (-81.7536386,29.4294252), (-81.753632,29.4285227), (-81.7536253,29.4276202), (-81.7536187,29.4267178), (-81.753612,29.4258153), (-81.7536053,29.4249129), (-81.7535987,29.4240104), (-81.753592,29.4231079), (-81.7535853,29.4222055), (-81.7535787,29.421303), (-81.753572,29.4204006), (-81.7535654,29.4194981), (-81.7535587,29.4185956), (-81.753552,29.4176932), (-81.7535454,29.4167907), (-81.75353870000001,29.4158882), (-81.7535321,29.4149858), (-81.7535254,29.4140833), (-81.7535188,29.4131809), (-81.7535121,29.4122784), (-81.7535054,29.4113759), (-81.7534988,29.4104735), (-81.7534921,29.409571), (-81.7534855,29.4086685), (-81.7534788,29.4077661), (-81.7534722,29.4068636), (-81.7534655,29.4059611), (-81.7534588,29.4050587), (-81.7534522,29.4041562), (-81.7534455,29.4032538), (-81.7534389,29.4023513), (-81.7534322,29.4014488), (-81.7534256,29.4005464), (-81.7534189,29.3996439), (-81.7534123,29.3987414), (-81.7534056,29.397839), (-81.753399,29.3969365), (-81.7533923,29.396034), (-81.7533857,29.3951316), (-81.753379,29.3942291), (-81.7533724,29.3933266), (-81.7533657,29.3924242), (-81.7533591,29.3915217), (-81.7533524,29.3906192), (-81.7533458,29.3897168), (-81.7533391,29.3888143), (-81.7533325,29.3879118), (-81.7533258,29.3870094), (-81.75331919999999,29.3861069), (-81.7533125,29.3852044), (-81.7533059,29.384302), (-81.7532992,29.3833995), (-81.7532926,29.382497), (-81.7532859,29.3815946), (-81.7526077,29.429431), (-81.7526011,29.4285285), (-81.7525944,29.4276261), (-81.7525878,29.4267236), (-81.7525811,29.4258211), (-81.7525745,29.4249187), (-81.7525678,29.4240162), (-81.7525612,29.4231138), (-81.7525545,29.4222113), (-81.7525479,29.4213088), (-81.7525412,29.4204064), (-81.7525346,29.4195039), (-81.7525279,29.4186015), (-81.7525213,29.417699), (-81.7525146,29.4167965), (-81.752508,29.4158941), (-81.7525013,29.4149916), (-81.7524947,29.414089099999998), (-81.752488,29.4131867), (-81.7524814,29.4122842), (-81.7524747,29.4113818), (-81.7524681,29.4104793), (-81.7524614,29.4095768), (-81.7524548,29.4086744), (-81.7524481,29.4077719), (-81.7524415,29.4068694), (-81.7524348,29.405967), (-81.7524282,29.4050645), (-81.7524216,29.404162), (-81.7524149,29.4032596), (-81.7524083,29.4023571), (-81.7524016,29.4014546), (-81.752395,29.4005522), (-81.7523883,29.3996497), (-81.7523817,29.3987473), (-81.752375,29.3978448), (-81.7523684,29.3969423), (-81.7523618,29.3960399), (-81.7523551,29.3951374), (-81.7523485,29.3942349), (-81.7523418,29.3933325), (-81.7523352,29.39243), (-81.7523285,29.3915275), (-81.7523219,29.3906251), (-81.7523153,29.3897226), (-81.7523086,29.3888201), (-81.752302,29.3879177), (-81.7522953,29.3870152), (-81.7522887,29.386112699999998), (-81.7522821,29.3852103), (-81.7522754,29.3843078), (-81.7522688,29.3834053), (-81.7522621,29.3825029), (-81.7522555,29.3816004), (-81.7515768,29.4294368), (-81.7515702,29.4285344), (-81.7515636,29.4276319), (-81.7515569,29.4267294), (-81.7515503,29.425827), (-81.7515436,29.4249245), (-81.751537,29.424022), (-81.7515303,29.4231196), (-81.7515237,29.4222171), (-81.7515171,29.4213147), (-81.7515104,29.4204122), (-81.7515038,29.4195097), (-81.7514971,29.4186073), (-81.7514905,29.4177048), (-81.7514839,29.4168023), (-81.7514772,29.4158999), (-81.7514706,29.4149974), (-81.7514639,29.414095), (-81.7514573,29.4131925), (-81.7514507,29.41229), (-81.751444,29.4113876), (-81.7514374,29.4104851), (-81.7514307,29.4095826), (-81.7514241,29.4086802), (-81.7514175,29.4077777), (-81.7514108,29.4068753), (-81.7514042,29.4059728), (-81.7513975,29.4050703), (-81.7513909,29.4041679), (-81.7513843,29.4032654), (-81.7513776,29.4023629), (-81.751371,29.4014605), (-81.7513644,29.400558), (-81.7513577,29.3996555), (-81.7513511,29.3987531), (-81.7513445,29.3978506), (-81.7513378,29.3969481), (-81.7513312,29.3960457), (-81.7513246,29.3951432), (-81.7513179,29.3942407), (-81.7513113,29.3933383), (-81.7513047,29.3924358), (-81.751298,29.3915333), (-81.7512914,29.3906309), (-81.7512848,29.3897284), (-81.7512781,29.3888259), (-81.7512715,29.3879235), (-81.7512649,29.387021), (-81.7512582,29.3861185), (-81.7512516,29.3852161), (-81.751245,29.3843136), (-81.7512384,29.3834111), (-81.7512317,29.3825087), (-81.7512251,29.3816062); +drop table if exists coords; +create table coords (x Float32, y Float32) engine = Memory; +insert into coords values (-81.7897198,29.4292161), (-81.7886889,29.4292222), (-81.787658,29.4292283), (-81.7866341,29.4301369), (-81.7866271,29.4292344), (-81.7856171,29.4319479), (-81.7856101,29.4310454), (-81.7856032,29.430143), (-81.7855962,29.4292405), (-81.7845931,29.4328564), (-81.7845862,29.4319539), (-81.7845792,29.4310515), (-81.7845723,29.430149), (-81.7845654,29.4292466), (-81.7835622,29.4328625), (-81.7835553,29.43196), (-81.7835483,29.4310576), (-81.7835414,29.4301551), (-81.7835345,29.4292527), (-81.7825382,29.433771), (-81.7825313,29.4328685), (-81.7825243,29.4319661), (-81.7825174,29.4310636), (-81.7825105,29.4301612), (-81.7825036,29.4292587), (-81.7815142,29.4346795), (-81.7815073,29.433777), (-81.7815003,29.4328746), (-81.7814934,29.4319721), (-81.7814865,29.4310697), (-81.7814796,29.4301672), (-81.7814727,29.4292648), (-81.7804832,29.4346855), (-81.7804763,29.4337831), (-81.7804694,29.4328806), (-81.7804625,29.4319782), (-81.7804556,29.4310757), (-81.7804487,29.4301733), (-81.7804418,29.4292708), (-81.7794592,29.435594), (-81.7794523,29.4346916), (-81.7794454,29.4337891), (-81.7794385,29.4328867), (-81.7794316,29.4319842), (-81.7794247,29.4310818), (-81.7794178,29.4301793), (-81.7794109,29.4292768), (-81.7784282,29.4356001), (-81.7784213,29.4346976), (-81.7784145,29.4337952), (-81.7784076,29.4328927), (-81.7784007,29.4319902), (-81.7783938,29.4310878), (-81.7783869,29.4301853), (-81.77838,29.4292829), (-81.7773973,29.4356061), (-81.7773904,29.4347036), (-81.7773835,29.4338012), (-81.7773766,29.4328987), (-81.7773698,29.4319963), (-81.7773629,29.4310938), (-81.777356,29.4301914), (-81.7773492,29.4292889), (-81.7763732,29.4365146), (-81.7763663,29.4356121), (-81.7763594,29.4347096), (-81.7763526,29.4338072), (-81.7763457,29.4329047), (-81.7763389,29.4320023), (-81.776332,29.4310998), (-81.7763251,29.4301974), (-81.7763183,29.4292949), (-81.7753422,29.4365206), (-81.7753354,29.4356181), (-81.7753285,29.4347156), (-81.7753217,29.4338132), (-81.7753148,29.4329107), (-81.7753079,29.4320083), (-81.7753011,29.4311058), (-81.7752942,29.4302034), (-81.7752874,29.4293009), (-81.7742496,29.4284045), (-81.7742428,29.427502), (-81.774236,29.426599500000002), (-81.7742291,29.4256971), (-81.7742223,29.4247946), (-81.7742154,29.4238922), (-81.7742086,29.4229897), (-81.7742017,29.4220873), (-81.7741949,29.4211848), (-81.774188,29.4202823), (-81.7741812,29.4193799), (-81.7741744,29.4184774), (-81.7741675,29.417575), (-81.7741607,29.4166725), (-81.7741538,29.4157701), (-81.774147,29.4148676), (-81.7741402,29.4139651), (-81.7741333,29.4130627), (-81.7741265,29.4121602), (-81.7741196,29.4112578), (-81.7741128,29.4103553), (-81.774106,29.4094528), (-81.7740991,29.4085504), (-81.7740923,29.4076479), (-81.7740855,29.4067455), (-81.7740786,29.405843), (-81.7740718,29.4049405), (-81.7740649,29.4040381), (-81.7740581,29.4031356), (-81.7740513,29.4022332), (-81.7740444,29.4013307), (-81.7740376,29.4004282), (-81.7740308,29.3995258), (-81.7740239,29.3986233), (-81.7740171,29.3977209), (-81.7740103,29.3968184), (-81.7740034,29.3959159), (-81.7739966,29.3950135), (-81.7739898,29.394111), (-81.7739829,29.3932086), (-81.7739761,29.3923061), (-81.7739693,29.3914036), (-81.7739624,29.3905012), (-81.7739556,29.3895987), (-81.7739488,29.3886963), (-81.7739419,29.3877938), (-81.7739351,29.3868913), (-81.7739283,29.3859889), (-81.7732188,29.4284104), (-81.7732119,29.427508), (-81.7732051,29.4266055), (-81.7731983,29.4257031), (-81.7731914,29.4248006), (-81.7731846,29.4238982), (-81.7731778,29.4229957), (-81.7731709,29.4220932), (-81.7731641,29.4211908), (-81.7731573,29.4202883), (-81.7731504,29.4193859), (-81.7731436,29.4184834), (-81.7731368,29.417581), (-81.7731299,29.4166785), (-81.7731231,29.415776), (-81.7731163,29.4148736), (-81.7731094,29.4139711), (-81.7731026,29.4130687), (-81.7730958,29.4121662), (-81.7730889,29.4112637), (-81.7730821,29.4103613), (-81.7730753,29.4094588), (-81.7730684,29.4085564), (-81.7730616,29.4076539), (-81.7730548,29.4067514), (-81.773048,29.405849), (-81.7730411,29.4049465), (-81.7730343,29.4040441), (-81.7730275,29.4031416), (-81.7730207,29.4022391), (-81.7730138,29.4013367), (-81.773007,29.4004342), (-81.7730002,29.3995318), (-81.7729933,29.3986293), (-81.7729865,29.3977268), (-81.7729797,29.3968244), (-81.7729729,29.3959219), (-81.772966,29.3950195), (-81.7729592,29.394117), (-81.7729524,29.3932145), (-81.7729456,29.3923121), (-81.7729388,29.3914096), (-81.7729319,29.3905072), (-81.7729251,29.3896047), (-81.7729183,29.3887022), (-81.7729115,29.3877998), (-81.7729046,29.3868973), (-81.7728978,29.3859948), (-81.772891,29.3850924), (-81.7728842,29.3841899), (-81.7728774,29.3832875), (-81.7728705,29.382385), (-81.7728637,29.3814825), (-81.7721879,29.4284164), (-81.7721811,29.427514), (-81.7721742,29.4266115), (-81.7721674,29.4257091), (-81.7721606,29.4248066), (-81.7721537,29.4239041), (-81.7721469,29.4230017), (-81.7721401,29.4220992), (-81.7721333,29.4211968), (-81.7721265,29.4202943), (-81.7721196,29.4193918), (-81.7721128,29.4184894), (-81.772106,29.4175869), (-81.7720992,29.4166845), (-81.7720923,29.415782), (-81.7720855,29.4148796), (-81.7720787,29.4139771), (-81.7720719,29.4130746), (-81.772065,29.4121722), (-81.7720582,29.4112697), (-81.7720514,29.4103673), (-81.7720446,29.4094648), (-81.7720378,29.4085623), (-81.7720309,29.4076599), (-81.7720241,29.4067574), (-81.7720173,29.405855), (-81.7720105,29.4049525), (-81.7720037,29.40405), (-81.7719969,29.4031476), (-81.77199,29.402245100000002), (-81.7719832,29.4013427), (-81.7719764,29.4004402), (-81.7719696,29.3995377), (-81.7719628,29.3986353), (-81.771956,29.3977328), (-81.7719491,29.3968304), (-81.7719423,29.3959279), (-81.7719355,29.3950254), (-81.7719287,29.394123), (-81.7719219,29.393220499999998), (-81.7719151,29.3923181), (-81.7719082,29.3914156), (-81.7719014,29.3905131), (-81.7718946,29.3896107), (-81.7718878,29.3887082), (-81.771881,29.3878057), (-81.7718742,29.3869033), (-81.7718674,29.3860008), (-81.7718606,29.3850984), (-81.7718537,29.3841959), (-81.7718469,29.3832934), (-81.7718401,29.382391), (-81.7718333,29.3814885), (-81.771157,29.4284224), (-81.7711502,29.4275199), (-81.7711434,29.4266175), (-81.7711365,29.425715), (-81.7711297,29.4248126), (-81.7711229,29.4239101), (-81.7711161,29.4230077), (-81.7711093,29.4221052), (-81.7711025,29.4212027), (-81.7710957,29.4203003), (-81.7710888,29.4193978), (-81.771082,29.4184954), (-81.7710752,29.4175929), (-81.7710684,29.4166904), (-81.7710616,29.415788), (-81.7710548,29.4148855), (-81.771048,29.4139831), (-81.7710411,29.4130806), (-81.7710343,29.4121781), (-81.7710275,29.4112757), (-81.7710207,29.4103732), (-81.7710139,29.4094708), (-81.7710071,29.4085683), (-81.7710003,29.4076659), (-81.7709935,29.4067634), (-81.7709867,29.4058609), (-81.7709798,29.4049585), (-81.770973,29.404056), (-81.7709662,29.4031536), (-81.7709594,29.4022511), (-81.7709526,29.4013486), (-81.7709458,29.4004462), (-81.770939,29.3995437), (-81.7709322,29.3986412), (-81.7709254,29.3977388), (-81.7709186,29.3968363), (-81.7709118,29.3959339), (-81.770905,29.3950314), (-81.7708982,29.3941289), (-81.7708913,29.3932265), (-81.7708845,29.392324), (-81.7708777,29.3914216), (-81.7708709,29.3905191), (-81.7708641,29.3896166), (-81.7708573,29.3887142), (-81.7708505,29.3878117), (-81.7708437,29.3869092), (-81.7708369,29.3860068), (-81.7708301,29.3851043), (-81.7708233,29.3842019), (-81.7708165,29.3832994), (-81.7708097,29.3823969), (-81.7708029,29.3814945), (-81.7701329,29.4293308), (-81.7701261,29.4284284), (-81.7701193,29.4275259), (-81.7701125,29.4266234), (-81.7701057,29.425721), (-81.7700989,29.4248185), (-81.7700921,29.4239161), (-81.7700853,29.4230136), (-81.7700785,29.4221112), (-81.7700717,29.4212087), (-81.7700649,29.4203062), (-81.770058,29.4194038), (-81.7700512,29.4185013), (-81.7700444,29.4175989), (-81.7700376,29.4166964), (-81.7700308,29.4157939), (-81.770024,29.4148915), (-81.7700172,29.413989), (-81.7700104,29.4130866), (-81.7700036,29.4121841), (-81.7699968,29.4112816), (-81.76999,29.4103792), (-81.7699832,29.4094767), (-81.7699764,29.4085743), (-81.7699696,29.4076718), (-81.7699628,29.4067694), (-81.769956,29.4058669), (-81.7699492,29.4049644), (-81.7699424,29.404062), (-81.7699356,29.4031595), (-81.7699288,29.402257), (-81.769922,29.4013546), (-81.7699152,29.4004521), (-81.7699084,29.3995497), (-81.7699016,29.3986472), (-81.7698948,29.3977447), (-81.769888,29.3968423), (-81.7698812,29.3959398), (-81.7698744,29.3950374), (-81.7698676,29.3941349), (-81.7698608,29.3932324), (-81.769854,29.39233), (-81.7698472,29.3914275), (-81.7698404,29.390525), (-81.7698336,29.3896226), (-81.7698268,29.3887201), (-81.76982,29.3878177), (-81.7698133,29.3869152), (-81.7698065,29.3860127), (-81.7697997,29.3851103), (-81.7697929,29.3842078), (-81.7697861,29.3833053), (-81.7697793,29.3824029), (-81.7697725,29.3815004), (-81.769102,29.4293368), (-81.7690952,29.4284343), (-81.7690884,29.4275319), (-81.7690816,29.4266294), (-81.7690748,29.4257269), (-81.769068,29.4248245), (-81.7690612,29.423922), (-81.7690544,29.4230196), (-81.7690476,29.4221171), (-81.7690409,29.4212147), (-81.7690341,29.4203122), (-81.7690273,29.4194097), (-81.7690205,29.4185073), (-81.7690137,29.4176048), (-81.7690069,29.4167024), (-81.7690001,29.4157999), (-81.7689933,29.4148974), (-81.7689865,29.413995), (-81.7689797,29.4130925), (-81.7689729,29.4121901), (-81.7689661,29.4112876), (-81.7689593,29.4103851), (-81.7689525,29.4094827), (-81.7689457,29.4085802), (-81.7689389,29.4076778), (-81.7689321,29.4067753), (-81.7689253,29.4058728), (-81.7689186,29.4049704), (-81.7689118,29.4040679), (-81.768905,29.4031655), (-81.7688982,29.402263), (-81.7688914,29.4013605), (-81.7688846,29.4004581), (-81.7688778,29.3995556), (-81.768871,29.3986532), (-81.7688642,29.3977507), (-81.7688574,29.3968482), (-81.7688507,29.3959458), (-81.7688439,29.3950433), (-81.7688371,29.3941408), (-81.7688303,29.3932384), (-81.7688235,29.3923359), (-81.7688167,29.3914335), (-81.7688099,29.390531), (-81.7688031,29.3896285), (-81.7687964,29.3887261), (-81.7687896,29.3878236), (-81.7687828,29.3869211), (-81.768776,29.3860187), (-81.7687692,29.3851162), (-81.7687624,29.3842138), (-81.7687557,29.3833113), (-81.7687489,29.3824088), (-81.7687421,29.3815064), (-81.7680711,29.4293427), (-81.7680644,29.4284403), (-81.7680576,29.4275378), (-81.7680508,29.4266353), (-81.768044,29.4257329), (-81.7680372,29.4248304), (-81.7680304,29.423928), (-81.7680236,29.4230255), (-81.7680168,29.4221231), (-81.76801,29.4212206), (-81.7680033,29.4203181), (-81.7679965,29.4194157), (-81.7679897,29.4185132), (-81.7679829,29.4176108), (-81.7679761,29.4167083), (-81.7679693,29.4158058), (-81.7679625,29.4149034), (-81.7679557,29.4140009), (-81.767949,29.4130985), (-81.7679422,29.412196), (-81.7679354,29.4112935), (-81.7679286,29.4103911), (-81.7679218,29.4094886), (-81.767915,29.4085862), (-81.7679083,29.4076837), (-81.7679015,29.4067812), (-81.7678947,29.4058788), (-81.7678879,29.4049763), (-81.7678811,29.4040739), (-81.7678743,29.4031714), (-81.7678676,29.4022689), (-81.7678608,29.4013665), (-81.767854,29.400464), (-81.7678472,29.3995616), (-81.7678404,29.3986591), (-81.7678337,29.3977566), (-81.7678269,29.3968542), (-81.7678201,29.3959517), (-81.7678133,29.3950492), (-81.7678065,29.3941468), (-81.7677998,29.3932443), (-81.767793,29.3923419), (-81.7677862,29.3914394), (-81.7677794,29.3905369), (-81.7677727,29.3896345), (-81.7677659,29.388732), (-81.7677591,29.3878295), (-81.7677523,29.3869271), (-81.7677456,29.3860246), (-81.7677388,29.3851222), (-81.767732,29.3842197), (-81.7677252,29.3833172), (-81.7677185,29.3824148), (-81.7677117,29.3815123), (-81.7670403,29.4293487), (-81.7670335,29.4284462), (-81.7670267,29.4275437), (-81.7670199,29.4266413), (-81.7670131,29.4257388), (-81.7670063,29.4248364), (-81.7669996,29.4239339), (-81.7669928,29.4230315), (-81.766986,29.422128999999998), (-81.7669792,29.4212265), (-81.7669725,29.4203241), (-81.7669657,29.4194216), (-81.7669589,29.4185192), (-81.7669521,29.4176167), (-81.7669453,29.4167142), (-81.7669386,29.4158118), (-81.7669318,29.4149093), (-81.766925,29.4140069), (-81.7669182,29.4131044), (-81.7669115,29.4122019), (-81.7669047,29.4112995), (-81.7668979,29.410397), (-81.7668911,29.4094946), (-81.7668844,29.4085921), (-81.7668776,29.4076896), (-81.7668708,29.4067872), (-81.766864,29.4058847), (-81.7668573,29.4049823), (-81.7668505,29.4040798), (-81.7668437,29.4031773), (-81.7668369,29.4022749), (-81.7668302,29.4013724), (-81.7668234,29.40047), (-81.7668166,29.3995675), (-81.7668099,29.398665), (-81.7668031,29.3977626), (-81.7667963,29.3968601), (-81.7667895,29.3959576), (-81.7667828,29.3950552), (-81.766776,29.3941527), (-81.7667692,29.3932503), (-81.7667625,29.3923478), (-81.7667557,29.3914453), (-81.7667489,29.3905429), (-81.7667422,29.3896404), (-81.7667354,29.3887379), (-81.7667286,29.3878355), (-81.7667219,29.386933), (-81.7667151,29.3860305), (-81.7667083,29.3851281), (-81.7667016,29.3842256), (-81.7666948,29.3833232), (-81.766688,29.3824207), (-81.7666813,29.3815182), (-81.7660094,29.4293546), (-81.7660026,29.4284521), (-81.7659958,29.4275497), (-81.765989,29.4266472), (-81.7659823,29.4257448), (-81.7659755,29.4248423), (-81.7659687,29.4239398), (-81.765962,29.4230374), (-81.7659552,29.4221349), (-81.7659484,29.4212325), (-81.7659417,29.42033), (-81.7659349,29.4194275), (-81.7659281,29.4185251), (-81.7659213,29.4176226), (-81.7659146,29.4167202), (-81.7659078,29.4158177), (-81.765901,29.4149153), (-81.7658943,29.4140128), (-81.7658875,29.4131103), (-81.7658807,29.4122079), (-81.765874,29.4113054), (-81.7658672,29.4104029), (-81.7658604,29.4095005), (-81.7658537,29.408598), (-81.7658469,29.4076956), (-81.7658401,29.4067931), (-81.7658334,29.4058906), (-81.7658266,29.4049882), (-81.7658199,29.4040857), (-81.7658131,29.4031833), (-81.7658063,29.4022808), (-81.7657996,29.4013783), (-81.7657928,29.4004759), (-81.765786,29.3995734), (-81.7657793,29.398671), (-81.7657725,29.3977685), (-81.7657658,29.396866), (-81.765759,29.3959636), (-81.7657522,29.3950611), (-81.7657455,29.3941586), (-81.7657387,29.3932562), (-81.765732,29.3923537), (-81.7657252,29.3914513), (-81.7657184,29.3905488), (-81.7657117,29.3896463), (-81.7657049,29.3887439), (-81.7656982,29.3878414), (-81.7656914,29.3869389), (-81.7656846,29.3860365), (-81.7656779,29.385134), (-81.7656711,29.3842315), (-81.7656644,29.3833291), (-81.7656576,29.3824266), (-81.7656509,29.3815241), (-81.7649785,29.4293605), (-81.7649717,29.4284581), (-81.7649649,29.4275556), (-81.7649582,29.4266531), (-81.7649514,29.4257507), (-81.7649447,29.4248482), (-81.7649379,29.4239458), (-81.7649311,29.4230433), (-81.7649244,29.4221408), (-81.7649176,29.4212384), (-81.7649109,29.4203359), (-81.7649041,29.4194335), (-81.7648973,29.418531), (-81.7648906,29.4176286), (-81.7648838,29.416726099999998), (-81.7648771,29.4158236), (-81.7648703,29.4149212), (-81.7648635,29.4140187), (-81.7648568,29.4131163), (-81.76485,29.4122138), (-81.7648433,29.4113113), (-81.7648365,29.4104089), (-81.7648298,29.4095064), (-81.764823,29.4086039), (-81.7648162,29.4077015), (-81.7648095,29.406799), (-81.7648027,29.4058966), (-81.764796,29.4049941), (-81.7647892,29.4040916), (-81.7647825,29.4031892), (-81.7647757,29.4022867), (-81.764769,29.4013843), (-81.7647622,29.4004818), (-81.7647554,29.3995793), (-81.7647487,29.3986769), (-81.7647419,29.3977744), (-81.7647352,29.3968719), (-81.7647284,29.3959695), (-81.7647217,29.395067), (-81.7647149,29.3941646), (-81.7647082,29.3932621), (-81.7647014,29.3923596), (-81.7646947,29.3914572), (-81.7646879,29.3905547), (-81.7646812,29.3896522), (-81.7646744,29.3887498), (-81.7646677,29.3878473), (-81.7646609,29.3869448), (-81.7646542,29.3860424), (-81.7646474,29.3851399), (-81.7646407,29.3842375), (-81.7646339,29.383335), (-81.7646272,29.3824325), (-81.7646204,29.3815301), (-81.7639476,29.4293664), (-81.7639408,29.428464), (-81.7639341,29.4275615), (-81.7639273,29.4266591), (-81.7639206,29.4257566), (-81.7639138,29.4248541), (-81.7639071,29.4239517), (-81.7639003,29.4230492), (-81.7638936,29.4221468), (-81.7638868,29.4212443), (-81.7638801,29.4203418), (-81.7638733,29.4194394), (-81.7638666,29.4185369), (-81.7638598,29.4176345), (-81.763853,29.416732), (-81.7638463,29.4158295), (-81.7638396,29.4149271), (-81.7638328,29.4140246), (-81.7638261,29.4131222), (-81.7638193,29.4122197), (-81.7638126,29.4113172), (-81.7638058,29.4104148), (-81.7637991,29.4095123), (-81.7637923,29.4086099), (-81.7637856,29.4077074), (-81.7637788,29.4068049), (-81.7637721,29.4059025), (-81.7637653,29.405), (-81.7637586,29.4040976), (-81.7637518,29.4031951), (-81.7637451,29.4022926), (-81.7637383,29.4013902), (-81.7637316,29.4004877), (-81.7637249,29.3995852), (-81.7637181,29.3986828), (-81.7637114,29.3977803), (-81.7637046,29.3968779), (-81.7636979,29.3959754), (-81.7636911,29.3950729), (-81.7636844,29.3941705), (-81.7636777,29.393268), (-81.7636709,29.3923655), (-81.7636642,29.3914631), (-81.7636574,29.3905606), (-81.7636507,29.3896581), (-81.763644,29.3887557), (-81.7636372,29.3878532), (-81.7636305,29.3869508), (-81.7636237,29.3860483), (-81.763617,29.3851458), (-81.7636103,29.3842434), (-81.7636035,29.3833409), (-81.7635968,29.3824384), (-81.76359,29.381536), (-81.7629167,29.4293723), (-81.7629099,29.4284699), (-81.7629032,29.4275674), (-81.7628965,29.426665), (-81.7628897,29.4257625), (-81.762883,29.42486), (-81.7628762,29.4239576), (-81.7628695,29.4230551), (-81.7628627,29.4221527), (-81.762856,29.4212502), (-81.7628493,29.4203478), (-81.7628425,29.4194453), (-81.7628358,29.4185428), (-81.762829,29.4176404), (-81.7628223,29.4167379), (-81.7628155,29.4158355), (-81.7628088,29.414933), (-81.7628021,29.4140305), (-81.7627953,29.4131281), (-81.7627886,29.4122256), (-81.7627818,29.4113231), (-81.7627751,29.4104207), (-81.7627684,29.4095182), (-81.7627616,29.4086158), (-81.7627549,29.4077133), (-81.7627482,29.4068108), (-81.7627414,29.4059084), (-81.7627347,29.4050059), (-81.7627279,29.4041035), (-81.7627212,29.403201), (-81.7627145,29.4022985), (-81.76270769999999,29.4013961), (-81.762701,29.4004936), (-81.7626943,29.3995911), (-81.7626875,29.3986887), (-81.7626808,29.3977862), (-81.7626741,29.3968838), (-81.7626673,29.3959813), (-81.7626606,29.3950788), (-81.7626539,29.3941764), (-81.7626471,29.3932739), (-81.7626404,29.3923714), (-81.7626337,29.391469), (-81.7626269,29.3905665), (-81.7626202,29.389664), (-81.7626135,29.3887616), (-81.7626067,29.3878591), (-81.7626,29.3869567), (-81.7625933,29.3860542), (-81.7625865,29.3851517), (-81.7625798,29.3842493), (-81.7625731,29.383346799999998), (-81.7625664,29.3824443), (-81.7625596,29.3815419), (-81.7618858,29.4293782), (-81.7618791,29.4284758), (-81.7618723,29.4275733), (-81.7618656,29.4266709), (-81.7618589,29.4257684), (-81.7618521,29.4248659), (-81.7618454,29.4239635), (-81.7618386,29.423061), (-81.7618319,29.4221586), (-81.7618252,29.4212561), (-81.7618184,29.4203537), (-81.7618117,29.4194512), (-81.761805,29.4185487), (-81.7617983,29.4176463), (-81.7617915,29.4167438), (-81.7617848,29.4158413), (-81.7617781,29.4149389), (-81.7617713,29.4140364), (-81.7617646,29.413134), (-81.7617579,29.4122315), (-81.7617511,29.411329), (-81.7617444,29.4104266), (-81.7617377,29.4095241), (-81.7617309,29.4086217), (-81.7617242,29.4077192), (-81.7617175,29.4068167), (-81.7617108,29.4059143), (-81.761704,29.4050118), (-81.7616973,29.404109300000002), (-81.7616906,29.4032069), (-81.7616839,29.4023044), (-81.7616771,29.401402), (-81.7616704,29.4004995), (-81.7616637,29.399597), (-81.7616569,29.3986946), (-81.7616502,29.3977921), (-81.7616435,29.3968896), (-81.7616368,29.3959872), (-81.76163,29.3950847), (-81.7616233,29.3941823), (-81.7616166,29.3932798), (-81.7616099,29.3923773), (-81.7616032,29.3914749), (-81.7615964,29.3905724), (-81.7615897,29.3896699), (-81.761583,29.3887675), (-81.7615763,29.387865), (-81.7615695,29.3869625), (-81.7615628,29.3860601), (-81.7615561,29.3851576), (-81.7615494,29.3842551), (-81.7615427,29.3833527), (-81.7615359,29.3824502), (-81.7615292,29.3815478), (-81.7608549,29.4293841), (-81.7608482,29.4284817), (-81.7608414,29.4275792), (-81.7608347,29.4266768), (-81.760828,29.4257743), (-81.7608213,29.4248718), (-81.7608145,29.4239694), (-81.7608078,29.4230669), (-81.7608011,29.4221645), (-81.7607944,29.421262), (-81.7607876,29.4203595), (-81.7607809,29.4194571), (-81.7607742,29.4185546), (-81.7607675,29.4176522), (-81.7607608,29.4167497), (-81.760754,29.4158472), (-81.7607473,29.4149448), (-81.7607406,29.4140423), (-81.7607339,29.4131399), (-81.7607271,29.4122374), (-81.7607204,29.4113349), (-81.7607137,29.4104325), (-81.760707,29.40953), (-81.7607003,29.4086275), (-81.7606935,29.4077251), (-81.7606868,29.4068226), (-81.7606801,29.4059202), (-81.7606734,29.4050177), (-81.7606667,29.4041152), (-81.76066,29.4032128), (-81.7606532,29.4023103), (-81.76064650000001,29.4014078), (-81.7606398,29.4005054), (-81.7606331,29.3996029), (-81.7606264,29.3987005), (-81.7606196,29.397798), (-81.7606129,29.3968955), (-81.7606062,29.3959931), (-81.7605995,29.3950906), (-81.7605928,29.3941881), (-81.7605861,29.3932857), (-81.7605794,29.3923832), (-81.7605726,29.3914807), (-81.7605659,29.3905783), (-81.7605592,29.3896758), (-81.7605525,29.3887734), (-81.7605458,29.3878709), (-81.7605391,29.3869684), (-81.7605324,29.386066), (-81.7605257,29.3851635), (-81.7605189,29.384261), (-81.7605122,29.3833586), (-81.7605055,29.3824561), (-81.7604988,29.3815536), (-81.759824,29.42939), (-81.7598173,29.4284876), (-81.7598106,29.4275851), (-81.7598039,29.4266826), (-81.7597971,29.4257802), (-81.7597904,29.4248777), (-81.7597837,29.4239753), (-81.759777,29.4230728), (-81.7597703,29.4221703), (-81.7597636,29.4212679), (-81.7597568,29.4203654), (-81.7597501,29.419463), (-81.7597434,29.4185605), (-81.7597367,29.417658), (-81.75973,29.4167556), (-81.7597233,29.4158531), (-81.7597166,29.4149507), (-81.7597098,29.4140482), (-81.7597031,29.4131457), (-81.7596964,29.4122433), (-81.7596897,29.4113408), (-81.759683,29.4104384), (-81.7596763,29.4095359), (-81.7596696,29.4086334), (-81.7596629,29.407731), (-81.7596562,29.4068285), (-81.7596494,29.405926), (-81.7596427,29.4050236), (-81.759636,29.4041211), (-81.7596293,29.4032187), (-81.7596226,29.4023162), (-81.7596159,29.4014137), (-81.7596092,29.4005113), (-81.7596025,29.3996088), (-81.7595958,29.3987063), (-81.7595891,29.3978039), (-81.7595824,29.3969014), (-81.7595757,29.3959989), (-81.759569,29.3950965), (-81.7595622,29.394194), (-81.7595555,29.3932916), (-81.7595488,29.3923891), (-81.7595421,29.3914866), (-81.7595354,29.3905842), (-81.7595287,29.3896817), (-81.759522,29.3887792), (-81.7595153,29.3878768), (-81.7595086,29.3869743), (-81.7595019,29.3860718), (-81.7594952,29.3851694), (-81.7594885,29.3842669), (-81.7594818,29.3833644), (-81.7594751,29.382462), (-81.7594684,29.3815595), (-81.7587931,29.4293959), (-81.7587864,29.4284934), (-81.7587797,29.427591), (-81.758773,29.4266885), (-81.7587663,29.4257861), (-81.7587596,29.4248836), (-81.7587529,29.4239811), (-81.7587462,29.4230787), (-81.7587395,29.4221762), (-81.7587327,29.4212738), (-81.758726,29.4203713), (-81.7587193,29.4194688), (-81.7587126,29.4185664), (-81.7587059,29.4176639), (-81.7586992,29.4167615), (-81.7586925,29.415859), (-81.7586858,29.4149565), (-81.7586791,29.4140541), (-81.7586724,29.4131516), (-81.7586657,29.4122491), (-81.758659,29.4113467), (-81.7586523,29.4104442), (-81.7586456,29.4095418), (-81.7586389,29.4086393), (-81.7586322,29.4077368), (-81.7586255,29.4068344), (-81.7586188,29.4059319), (-81.7586121,29.4050294), (-81.7586054,29.404127), (-81.7585987,29.4032245), (-81.758592,29.4023221), (-81.7585853,29.4014196), (-81.7585786,29.4005171), (-81.7585719,29.3996147), (-81.7585652,29.3987122), (-81.7585585,29.3978097), (-81.7585518,29.3969073), (-81.7585451,29.3960048), (-81.7585384,29.3951024), (-81.7585317,29.3941999), (-81.758525,29.3932974), (-81.7585183,29.392395), (-81.7585116,29.3914925), (-81.7585049,29.39059), (-81.7584982,29.3896876), (-81.7584915,29.3887851), (-81.7584848,29.3878826), (-81.7584781,29.3869802), (-81.7584715,29.3860777), (-81.7584648,29.3851752), (-81.7584581,29.3842728), (-81.7584514,29.3833703), (-81.7584447,29.3824678), (-81.758438,29.3815654), (-81.7577622,29.4294018), (-81.7577555,29.4284993), (-81.7577488,29.4275968), (-81.7577421,29.4266944), (-81.7577354,29.4257919), (-81.7577287,29.4248895), (-81.757722,29.423987), (-81.7577153,29.4230845), (-81.7577086,29.4221821), (-81.7577019,29.4212796), (-81.7576952,29.4203772), (-81.7576885,29.4194747), (-81.7576818,29.4185722), (-81.7576752,29.4176698), (-81.7576685,29.4167673), (-81.7576618,29.4158649), (-81.7576551,29.4149624), (-81.7576484,29.4140599), (-81.7576417,29.4131575), (-81.757635,29.412255), (-81.7576283,29.4113525), (-81.7576216,29.4104501), (-81.7576149,29.4095476), (-81.75760819999999,29.4086452), (-81.7576015,29.4077427), (-81.7575948,29.4068402), (-81.7575881,29.4059378), (-81.7575814,29.4050353), (-81.7575748,29.4041328), (-81.7575681,29.403230399999998), (-81.7575614,29.4023279), (-81.7575547,29.4014255), (-81.757548,29.400523), (-81.7575413,29.3996205), (-81.7575346,29.3987181), (-81.7575279,29.3978156), (-81.7575212,29.3969131), (-81.7575145,29.3960107), (-81.7575079,29.3951082), (-81.7575012,29.3942057), (-81.7574945,29.3933033), (-81.7574878,29.3924008), (-81.7574811,29.3914984), (-81.7574744,29.3905959), (-81.7574677,29.3896934), (-81.7574611,29.388791), (-81.7574544,29.3878885), (-81.7574477,29.386986), (-81.757441,29.3860836), (-81.7574343,29.3851811), (-81.7574276,29.384278600000002), (-81.7574209,29.3833762), (-81.7574143,29.3824737), (-81.7574076,29.3815712), (-81.7567313,29.4294076), (-81.7567246,29.4285052), (-81.7567179,29.4276027), (-81.7567113,29.4267002), (-81.7567046,29.4257978), (-81.7566979,29.4248953), (-81.7566912,29.423992900000002), (-81.7566845,29.4230904), (-81.7566778,29.4221879), (-81.7566711,29.4212855), (-81.7566644,29.420383), (-81.7566577,29.4194806), (-81.7566511,29.4185781), (-81.7566444,29.4176756), (-81.7566377,29.4167732), (-81.756631,29.4158707), (-81.7566243,29.4149683), (-81.7566176,29.4140658), (-81.7566109,29.4131633), (-81.7566043,29.4122609), (-81.7565976,29.4113584), (-81.7565909,29.4104559), (-81.7565842,29.4095535), (-81.7565775,29.408651), (-81.7565708,29.4077486), (-81.7565642,29.4068461), (-81.7565575,29.4059436), (-81.7565508,29.4050412), (-81.7565441,29.4041387), (-81.7565374,29.4032362), (-81.7565308,29.4023338), (-81.75652410000001,29.4014313), (-81.7565174,29.4005288), (-81.7565107,29.3996264), (-81.756504,29.3987239), (-81.7564973,29.3978215), (-81.7564907,29.396919), (-81.756484,29.3960165), (-81.7564773,29.3951141), (-81.7564706,29.3942116), (-81.756464,29.3933091), (-81.7564573,29.3924067), (-81.7564506,29.3915042), (-81.7564439,29.3906017), (-81.7564372,29.3896993), (-81.7564306,29.3887968), (-81.7564239,29.3878943), (-81.7564172,29.3869919), (-81.7564105,29.3860894), (-81.7564039,29.3851869), (-81.7563972,29.3842845), (-81.7563905,29.383382), (-81.7563838,29.3824795), (-81.7563772,29.3815771), (-81.7557004,29.4294135), (-81.7556937,29.428511), (-81.7556871,29.4276086), (-81.7556804,29.4267061), (-81.7556737,29.4258036), (-81.755667,29.4249012), (-81.7556603,29.4239987), (-81.7556537,29.4230963), (-81.755647,29.4221938), (-81.7556403,29.4212913), (-81.7556336,29.4203889), (-81.755627,29.4194864), (-81.7556203,29.418584), (-81.7556136,29.4176815), (-81.7556069,29.416779), (-81.7556002,29.4158766), (-81.7555936,29.4149741), (-81.7555869,29.4140716), (-81.7555802,29.4131692), (-81.7555735,29.4122667), (-81.7555669,29.4113643), (-81.7555602,29.4104618), (-81.7555535,29.4095593), (-81.7555468,29.4086569), (-81.7555402,29.4077544), (-81.7555335,29.4068519), (-81.7555268,29.4059495), (-81.7555201,29.405047), (-81.7555135,29.4041446), (-81.7555068,29.4032421), (-81.7555001,29.4023396), (-81.7554935,29.4014372), (-81.7554868,29.4005347), (-81.7554801,29.3996322), (-81.7554734,29.3987298), (-81.7554668,29.3978273), (-81.7554601,29.3969248), (-81.7554534,29.3960224), (-81.7554468,29.3951199), (-81.7554401,29.3942174), (-81.7554334,29.393315), (-81.7554268,29.3924125), (-81.7554201,29.39151), (-81.7554134,29.3906076), (-81.7554067,29.3897051), (-81.7554001,29.3888027), (-81.7553934,29.3879002), (-81.7553867,29.3869977), (-81.7553801,29.3860953), (-81.7553734,29.3851928), (-81.7553667,29.3842903), (-81.7553601,29.3833879), (-81.7553534,29.3824854), (-81.7553468,29.3815829), (-81.7546695,29.4294193), (-81.7546629,29.428516899999998), (-81.7546562,29.4276144), (-81.7546495,29.4267119), (-81.7546428,29.4258095), (-81.7546362,29.424907), (-81.7546295,29.4240046), (-81.7546228,29.4231021), (-81.7546162,29.4221996), (-81.7546095,29.4212972), (-81.7546028,29.4203947), (-81.7545962,29.4194923), (-81.7545895,29.4185898), (-81.7545828,29.4176873), (-81.7545762,29.4167849), (-81.7545695,29.4158824), (-81.7545628,29.4149799), (-81.7545562,29.4140775), (-81.7545495,29.413175), (-81.7545428,29.4122726), (-81.7545362,29.4113701), (-81.7545295,29.4104676), (-81.7545228,29.4095652), (-81.7545162,29.4086627), (-81.7545095,29.4077602), (-81.7545028,29.4068578), (-81.7544962,29.4059553), (-81.7544895,29.4050529), (-81.7544828,29.4041504), (-81.7544762,29.4032479), (-81.7544695,29.4023455), (-81.7544628,29.401443), (-81.7544562,29.4005405), (-81.7544495,29.3996381), (-81.7544429,29.3987356), (-81.7544362,29.3978331), (-81.7544295,29.3969307), (-81.7544229,29.3960282), (-81.7544162,29.3951257), (-81.7544096,29.3942233), (-81.7544029,29.3933208), (-81.7543962,29.3924183), (-81.7543896,29.3915159), (-81.7543829,29.3906134), (-81.7543763,29.389711), (-81.7543696,29.3888085), (-81.7543629,29.387906), (-81.7543563,29.3870036), (-81.7543496,29.3861011), (-81.754343,29.3851986), (-81.7543363,29.3842962), (-81.7543297,29.3833937), (-81.754323,29.3824912), (-81.7543163,29.3815888), (-81.7536386,29.4294252), (-81.753632,29.4285227), (-81.7536253,29.4276202), (-81.7536187,29.4267178), (-81.753612,29.4258153), (-81.7536053,29.4249129), (-81.7535987,29.4240104), (-81.753592,29.4231079), (-81.7535853,29.4222055), (-81.7535787,29.421303), (-81.753572,29.4204006), (-81.7535654,29.4194981), (-81.7535587,29.4185956), (-81.753552,29.4176932), (-81.7535454,29.4167907), (-81.75353870000001,29.4158882), (-81.7535321,29.4149858), (-81.7535254,29.4140833), (-81.7535188,29.4131809), (-81.7535121,29.4122784), (-81.7535054,29.4113759), (-81.7534988,29.4104735), (-81.7534921,29.409571), (-81.7534855,29.4086685), (-81.7534788,29.4077661), (-81.7534722,29.4068636), (-81.7534655,29.4059611), (-81.7534588,29.4050587), (-81.7534522,29.4041562), (-81.7534455,29.4032538), (-81.7534389,29.4023513), (-81.7534322,29.4014488), (-81.7534256,29.4005464), (-81.7534189,29.3996439), (-81.7534123,29.3987414), (-81.7534056,29.397839), (-81.753399,29.3969365), (-81.7533923,29.396034), (-81.7533857,29.3951316), (-81.753379,29.3942291), (-81.7533724,29.3933266), (-81.7533657,29.3924242), (-81.7533591,29.3915217), (-81.7533524,29.3906192), (-81.7533458,29.3897168), (-81.7533391,29.3888143), (-81.7533325,29.3879118), (-81.7533258,29.3870094), (-81.75331919999999,29.3861069), (-81.7533125,29.3852044), (-81.7533059,29.384302), (-81.7532992,29.3833995), (-81.7532926,29.382497), (-81.7532859,29.3815946), (-81.7526077,29.429431), (-81.7526011,29.4285285), (-81.7525944,29.4276261), (-81.7525878,29.4267236), (-81.7525811,29.4258211), (-81.7525745,29.4249187), (-81.7525678,29.4240162), (-81.7525612,29.4231138), (-81.7525545,29.4222113), (-81.7525479,29.4213088), (-81.7525412,29.4204064), (-81.7525346,29.4195039), (-81.7525279,29.4186015), (-81.7525213,29.417699), (-81.7525146,29.4167965), (-81.752508,29.4158941), (-81.7525013,29.4149916), (-81.7524947,29.414089099999998), (-81.752488,29.4131867), (-81.7524814,29.4122842), (-81.7524747,29.4113818), (-81.7524681,29.4104793), (-81.7524614,29.4095768), (-81.7524548,29.4086744), (-81.7524481,29.4077719), (-81.7524415,29.4068694), (-81.7524348,29.405967), (-81.7524282,29.4050645), (-81.7524216,29.404162), (-81.7524149,29.4032596), (-81.7524083,29.4023571), (-81.7524016,29.4014546), (-81.752395,29.4005522), (-81.7523883,29.3996497), (-81.7523817,29.3987473), (-81.752375,29.3978448), (-81.7523684,29.3969423), (-81.7523618,29.3960399), (-81.7523551,29.3951374), (-81.7523485,29.3942349), (-81.7523418,29.3933325), (-81.7523352,29.39243), (-81.7523285,29.3915275), (-81.7523219,29.3906251), (-81.7523153,29.3897226), (-81.7523086,29.3888201), (-81.752302,29.3879177), (-81.7522953,29.3870152), (-81.7522887,29.386112699999998), (-81.7522821,29.3852103), (-81.7522754,29.3843078), (-81.7522688,29.3834053), (-81.7522621,29.3825029), (-81.7522555,29.3816004), (-81.7515768,29.4294368), (-81.7515702,29.4285344), (-81.7515636,29.4276319), (-81.7515569,29.4267294), (-81.7515503,29.425827), (-81.7515436,29.4249245), (-81.751537,29.424022), (-81.7515303,29.4231196), (-81.7515237,29.4222171), (-81.7515171,29.4213147), (-81.7515104,29.4204122), (-81.7515038,29.4195097), (-81.7514971,29.4186073), (-81.7514905,29.4177048), (-81.7514839,29.4168023), (-81.7514772,29.4158999), (-81.7514706,29.4149974), (-81.7514639,29.414095), (-81.7514573,29.4131925), (-81.7514507,29.41229), (-81.751444,29.4113876), (-81.7514374,29.4104851), (-81.7514307,29.4095826), (-81.7514241,29.4086802), (-81.7514175,29.4077777), (-81.7514108,29.4068753), (-81.7514042,29.4059728), (-81.7513975,29.4050703), (-81.7513909,29.4041679), (-81.7513843,29.4032654), (-81.7513776,29.4023629), (-81.751371,29.4014605), (-81.7513644,29.400558), (-81.7513577,29.3996555), (-81.7513511,29.3987531), (-81.7513445,29.3978506), (-81.7513378,29.3969481), (-81.7513312,29.3960457), (-81.7513246,29.3951432), (-81.7513179,29.3942407), (-81.7513113,29.3933383), (-81.7513047,29.3924358), (-81.751298,29.3915333), (-81.7512914,29.3906309), (-81.7512848,29.3897284), (-81.7512781,29.3888259), (-81.7512715,29.3879235), (-81.7512649,29.387021), (-81.7512582,29.3861185), (-81.7512516,29.3852161), (-81.751245,29.3843136), (-81.7512384,29.3834111), (-81.7512317,29.3825087), (-81.7512251,29.3816062); -select count(), sum(pointInPolygon((x, y),[(-82.311206, 28.960046), (-81.658722, 28.960345), (-81.65921, 29.047816), (-81.638697, 29.047761), (-81.641902, 29.276992), (-81.680709, 29.323243), (-81.675429, 29.338641), (-81.656377, 29.337981), (-81.668564, 29.371704), (-81.741634, 29.371123), (-81.741671, 29.429891), (-81.774905, 29.429249), (-81.776206, 29.487448), (-81.842765, 29.486042), (-81.844929, 29.521679), (-81.912052, 29.503906), (-81.93199, 29.51639), (-82.03174, 29.492385), (-82.055896, 29.471639), (-82.056748, 29.439952), (-82.080922, 29.440351), (-82.099886, 29.418665), (-82.101119, 29.438298), (-82.134555, 29.434982), (-82.148231, 29.417245), (-82.211144, 29.429693), (-82.212727, 29.465624), (-82.188, 29.456239), (-82.211448, 29.484017), (-82.40662, 29.485049), (-82.403059, 29.215536), (-82.534829, 29.2147), (-82.535191, 29.041186), (-82.471915, 29.052551), (-82.418649, 29.013144), (-82.401814, 29.019004), (-82.365594, 29.00246), (-82.311206, 28.960046)])) from test.coords; -drop table if exists test.coords; +select count(), sum(pointInPolygon((x, y),[(-82.311206, 28.960046), (-81.658722, 28.960345), (-81.65921, 29.047816), (-81.638697, 29.047761), (-81.641902, 29.276992), (-81.680709, 29.323243), (-81.675429, 29.338641), (-81.656377, 29.337981), (-81.668564, 29.371704), (-81.741634, 29.371123), (-81.741671, 29.429891), (-81.774905, 29.429249), (-81.776206, 29.487448), (-81.842765, 29.486042), (-81.844929, 29.521679), (-81.912052, 29.503906), (-81.93199, 29.51639), (-82.03174, 29.492385), (-82.055896, 29.471639), (-82.056748, 29.439952), (-82.080922, 29.440351), (-82.099886, 29.418665), (-82.101119, 29.438298), (-82.134555, 29.434982), (-82.148231, 29.417245), (-82.211144, 29.429693), (-82.212727, 29.465624), (-82.188, 29.456239), (-82.211448, 29.484017), (-82.40662, 29.485049), (-82.403059, 29.215536), (-82.534829, 29.2147), (-82.535191, 29.041186), (-82.471915, 29.052551), (-82.418649, 29.013144), (-82.401814, 29.019004), (-82.365594, 29.00246), (-82.311206, 28.960046)])) from coords; +drop table if exists coords; diff --git a/dbms/tests/queries/0_stateless/00502_sum_map.sql b/dbms/tests/queries/0_stateless/00502_sum_map.sql index d70a3bfbe7f..23de78f2ad1 100644 --- a/dbms/tests/queries/0_stateless/00502_sum_map.sql +++ b/dbms/tests/queries/0_stateless/00502_sum_map.sql @@ -1,31 +1,31 @@ SET send_logs_level = 'none'; CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.sum_map; -CREATE TABLE test.sum_map(date Date, timeslot DateTime, statusMap Nested(status UInt16, requests UInt64)) ENGINE = Log; +DROP TABLE IF EXISTS sum_map; +CREATE TABLE sum_map(date Date, timeslot DateTime, statusMap Nested(status UInt16, requests UInt64)) ENGINE = Log; -INSERT INTO test.sum_map VALUES ('2000-01-01', '2000-01-01 00:00:00', [1, 2, 3], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:00:00', [3, 4, 5], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:01:00', [4, 5, 6], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:01:00', [6, 7, 8], [10, 10, 10]); +INSERT INTO sum_map VALUES ('2000-01-01', '2000-01-01 00:00:00', [1, 2, 3], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:00:00', [3, 4, 5], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:01:00', [4, 5, 6], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:01:00', [6, 7, 8], [10, 10, 10]); -SELECT * FROM test.sum_map ORDER BY timeslot; -SELECT sumMap(statusMap.status, statusMap.requests) FROM test.sum_map; -SELECT sumMapMerge(s) FROM (SELECT sumMapState(statusMap.status, statusMap.requests) AS s FROM test.sum_map); -SELECT timeslot, sumMap(statusMap.status, statusMap.requests) FROM test.sum_map GROUP BY timeslot ORDER BY timeslot; -SELECT timeslot, sumMap(statusMap.status, statusMap.requests).1, sumMap(statusMap.status, statusMap.requests).2 FROM test.sum_map GROUP BY timeslot ORDER BY timeslot; +SELECT * FROM sum_map ORDER BY timeslot; +SELECT sumMap(statusMap.status, statusMap.requests) FROM sum_map; +SELECT sumMapMerge(s) FROM (SELECT sumMapState(statusMap.status, statusMap.requests) AS s FROM sum_map); +SELECT timeslot, sumMap(statusMap.status, statusMap.requests) FROM sum_map GROUP BY timeslot ORDER BY timeslot; +SELECT timeslot, sumMap(statusMap.status, statusMap.requests).1, sumMap(statusMap.status, statusMap.requests).2 FROM sum_map GROUP BY timeslot ORDER BY timeslot; -SELECT sumMapFiltered([1])(statusMap.status, statusMap.requests) FROM test.sum_map; -SELECT sumMapFiltered([1, 4, 8])(statusMap.status, statusMap.requests) FROM test.sum_map; +SELECT sumMapFiltered([1])(statusMap.status, statusMap.requests) FROM sum_map; +SELECT sumMapFiltered([1, 4, 8])(statusMap.status, statusMap.requests) FROM sum_map; -DROP TABLE test.sum_map; +DROP TABLE sum_map; -DROP TABLE IF EXISTS test.sum_map_overflow; -CREATE TABLE test.sum_map_overflow(events Array(UInt8), counts Array(UInt8)) ENGINE = Log; +DROP TABLE IF EXISTS sum_map_overflow; +CREATE TABLE sum_map_overflow(events Array(UInt8), counts Array(UInt8)) ENGINE = Log; -INSERT INTO test.sum_map_overflow VALUES ([1], [255]), ([1], [2]); +INSERT INTO sum_map_overflow VALUES ([1], [255]), ([1], [2]); -SELECT sumMap(events, counts) FROM test.sum_map_overflow; -SELECT sumMapWithOverflow(events, counts) FROM test.sum_map_overflow; +SELECT sumMap(events, counts) FROM sum_map_overflow; +SELECT sumMapWithOverflow(events, counts) FROM sum_map_overflow; -DROP TABLE test.sum_map_overflow; +DROP TABLE sum_map_overflow; select sumMap(val, cnt) from ( SELECT [ CAST(1, 'UInt64') ] as val, [1] as cnt ); select sumMap(val, cnt) from ( SELECT [ CAST(1, 'Float64') ] as val, [1] as cnt ); diff --git a/dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh b/dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh index 3d4ba2573dd..49ecb5ef315 100755 --- a/dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh +++ b/dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh @@ -5,13 +5,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # https://github.com/yandex/ClickHouse/issues/1300 -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.advertiser"; -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.advertiser_test"; -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.advertiser ( action_date Date, adblock UInt8, imps Int64 ) Engine = SummingMergeTree( action_date, ( adblock ), 8192, ( imps ) )"; -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.advertiser_test ( action_date Date, adblock UInt8, imps Int64, Hash UInt64 ) Engine = SummingMergeTree( action_date, ( adblock, Hash ), 8192, ( imps ) )"; +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS advertiser"; +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS advertiser_test"; +$CLICKHOUSE_CLIENT -q "CREATE TABLE advertiser ( action_date Date, adblock UInt8, imps Int64 ) Engine = SummingMergeTree( action_date, ( adblock ), 8192, ( imps ) )"; +$CLICKHOUSE_CLIENT -q "CREATE TABLE advertiser_test ( action_date Date, adblock UInt8, imps Int64, Hash UInt64 ) Engine = SummingMergeTree( action_date, ( adblock, Hash ), 8192, ( imps ) )"; # This test will fail. It's ok. -$CLICKHOUSE_CLIENT -q "INSERT INTO test.advertiser_test SELECT *, sipHash64( CAST(adblock AS String) ), CAST(1 AS Int8) FROM test.advertiser;" 2>/dev/null -$CLICKHOUSE_CLIENT -q "DROP TABLE test.advertiser"; -$CLICKHOUSE_CLIENT -q "DROP TABLE test.advertiser_test"; +$CLICKHOUSE_CLIENT -q "INSERT INTO advertiser_test SELECT *, sipHash64( CAST(adblock AS String) ), CAST(1 AS Int8) FROM advertiser;" 2>/dev/null +$CLICKHOUSE_CLIENT -q "DROP TABLE advertiser"; +$CLICKHOUSE_CLIENT -q "DROP TABLE advertiser_test"; $CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"; diff --git a/dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql b/dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql index 43e1bd95f96..b7bd326815e 100644 --- a/dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql +++ b/dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql @@ -1,37 +1,37 @@ create database if not exists test; -drop table if exists test.test_ins_arr; -create table test.test_ins_arr (date Date, val Array(UInt64)) engine = MergeTree(date, (date), 8192); -insert into test.test_ins_arr select toDate('2017-10-02'), [number, 42] from system.numbers limit 10000; -select * from test.test_ins_arr limit 10; -drop table test.test_ins_arr; +drop table if exists test_ins_arr; +create table test_ins_arr (date Date, val Array(UInt64)) engine = MergeTree(date, (date), 8192); +insert into test_ins_arr select toDate('2017-10-02'), [number, 42] from system.numbers limit 10000; +select * from test_ins_arr limit 10; +drop table test_ins_arr; -drop table if exists test.test_ins_null; -create table test.test_ins_null (date Date, val Nullable(UInt64)) engine = MergeTree(date, (date), 8192); -insert into test.test_ins_null select toDate('2017-10-02'), if(number % 2, number, Null) from system.numbers limit 10000; -select * from test.test_ins_null limit 10; -drop table test.test_ins_null; +drop table if exists test_ins_null; +create table test_ins_null (date Date, val Nullable(UInt64)) engine = MergeTree(date, (date), 8192); +insert into test_ins_null select toDate('2017-10-02'), if(number % 2, number, Null) from system.numbers limit 10000; +select * from test_ins_null limit 10; +drop table test_ins_null; -drop table if exists test.test_ins_arr_null; -create table test.test_ins_arr_null (date Date, val Array(Nullable(UInt64))) engine = MergeTree(date, (date), 8192); -insert into test.test_ins_arr_null select toDate('2017-10-02'), [if(number % 2, number, Null), number, Null] from system.numbers limit 10000; -select * from test.test_ins_arr_null limit 10; -drop table test.test_ins_arr_null; +drop table if exists test_ins_arr_null; +create table test_ins_arr_null (date Date, val Array(Nullable(UInt64))) engine = MergeTree(date, (date), 8192); +insert into test_ins_arr_null select toDate('2017-10-02'), [if(number % 2, number, Null), number, Null] from system.numbers limit 10000; +select * from test_ins_arr_null limit 10; +drop table test_ins_arr_null; -drop table if exists test.test_ins_arr_arr; -create table test.test_ins_arr_arr (date Date, val Array(Array(UInt64))) engine = MergeTree(date, (date), 8192); -insert into test.test_ins_arr_arr select toDate('2017-10-02'), [[number],[number + 1, number + 2]] from system.numbers limit 10000; -select * from test.test_ins_arr_arr limit 10; -drop table test.test_ins_arr_arr; +drop table if exists test_ins_arr_arr; +create table test_ins_arr_arr (date Date, val Array(Array(UInt64))) engine = MergeTree(date, (date), 8192); +insert into test_ins_arr_arr select toDate('2017-10-02'), [[number],[number + 1, number + 2]] from system.numbers limit 10000; +select * from test_ins_arr_arr limit 10; +drop table test_ins_arr_arr; -drop table if exists test.test_ins_arr_arr_null; -create table test.test_ins_arr_arr_null (date Date, val Array(Array(Nullable(UInt64)))) engine = MergeTree(date, (date), 8192); -insert into test.test_ins_arr_arr_null select toDate('2017-10-02'), [[1, Null, number], [3, Null, number]] from system.numbers limit 10000; -select * from test.test_ins_arr_arr_null limit 10; -drop table test.test_ins_arr_arr_null; +drop table if exists test_ins_arr_arr_null; +create table test_ins_arr_arr_null (date Date, val Array(Array(Nullable(UInt64)))) engine = MergeTree(date, (date), 8192); +insert into test_ins_arr_arr_null select toDate('2017-10-02'), [[1, Null, number], [3, Null, number]] from system.numbers limit 10000; +select * from test_ins_arr_arr_null limit 10; +drop table test_ins_arr_arr_null; -drop table if exists test.test_ins_arr_arr_arr; -create table test.test_ins_arr_arr_arr (date Date, val Array(Array(Array(UInt64)))) engine = MergeTree(date, (date), 8192); -insert into test.test_ins_arr_arr_arr select toDate('2017-10-02'), [[[number]],[[number + 1], [number + 2, number + 3]]] from system.numbers limit 10000; -select * from test.test_ins_arr_arr_arr limit 10; -drop table test.test_ins_arr_arr_arr; +drop table if exists test_ins_arr_arr_arr; +create table test_ins_arr_arr_arr (date Date, val Array(Array(Array(UInt64)))) engine = MergeTree(date, (date), 8192); +insert into test_ins_arr_arr_arr select toDate('2017-10-02'), [[[number]],[[number + 1], [number + 2, number + 3]]] from system.numbers limit 10000; +select * from test_ins_arr_arr_arr limit 10; +drop table test_ins_arr_arr_arr; diff --git a/dbms/tests/queries/0_stateless/00507_array_no_params.sh b/dbms/tests/queries/0_stateless/00507_array_no_params.sh index 285044bd228..1a9ba8d52bb 100755 --- a/dbms/tests/queries/0_stateless/00507_array_no_params.sh +++ b/dbms/tests/queries/0_stateless/00507_array_no_params.sh @@ -3,7 +3,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.foo;" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS foo;" # Missing arguments for array, table not created -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.foo (a Array) Engine=Memory;" 2&>/dev/null +$CLICKHOUSE_CLIENT -q "CREATE TABLE foo (a Array) Engine=Memory;" 2&>/dev/null $CLICKHOUSE_CLIENT -q "SELECT 'Still alive';" diff --git a/dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql b/dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql index 9bd8651c091..b78c66e873d 100644 --- a/dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql @@ -1,49 +1,49 @@ -DROP TABLE IF EXISTS test.with_deduplication; -DROP TABLE IF EXISTS test.without_deduplication; -DROP TABLE IF EXISTS test.with_deduplication_mv; -DROP TABLE IF EXISTS test.without_deduplication_mv; +DROP TABLE IF EXISTS with_deduplication; +DROP TABLE IF EXISTS without_deduplication; +DROP TABLE IF EXISTS with_deduplication_mv; +DROP TABLE IF EXISTS without_deduplication_mv; -CREATE TABLE test.with_deduplication(x UInt32) +CREATE TABLE with_deduplication(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/with_deduplication', 'r1') ORDER BY x; -CREATE TABLE test.without_deduplication(x UInt32) +CREATE TABLE without_deduplication(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/without_deduplication', 'r1') ORDER BY x SETTINGS replicated_deduplication_window = 0; -CREATE MATERIALIZED VIEW test.with_deduplication_mv +CREATE MATERIALIZED VIEW with_deduplication_mv ENGINE = ReplicatedAggregatingMergeTree('/clickhouse/tables/test/with_deduplication_mv', 'r1') ORDER BY dummy - AS SELECT 0 AS dummy, countState(x) AS cnt FROM test.with_deduplication; -CREATE MATERIALIZED VIEW test.without_deduplication_mv + AS SELECT 0 AS dummy, countState(x) AS cnt FROM with_deduplication; +CREATE MATERIALIZED VIEW without_deduplication_mv ENGINE = ReplicatedAggregatingMergeTree('/clickhouse/tables/test/without_deduplication_mv', 'r1') ORDER BY dummy - AS SELECT 0 AS dummy, countState(x) AS cnt FROM test.without_deduplication; + AS SELECT 0 AS dummy, countState(x) AS cnt FROM without_deduplication; -INSERT INTO test.with_deduplication VALUES (42); -INSERT INTO test.with_deduplication VALUES (42); -INSERT INTO test.with_deduplication VALUES (43); +INSERT INTO with_deduplication VALUES (42); +INSERT INTO with_deduplication VALUES (42); +INSERT INTO with_deduplication VALUES (43); -INSERT INTO test.without_deduplication VALUES (42); -INSERT INTO test.without_deduplication VALUES (42); -INSERT INTO test.without_deduplication VALUES (43); +INSERT INTO without_deduplication VALUES (42); +INSERT INTO without_deduplication VALUES (42); +INSERT INTO without_deduplication VALUES (43); -SELECT count() FROM test.with_deduplication; -SELECT count() FROM test.without_deduplication; +SELECT count() FROM with_deduplication; +SELECT count() FROM without_deduplication; -- Implicit insert isn't deduplicated SELECT ''; -SELECT countMerge(cnt) FROM test.with_deduplication_mv; -SELECT countMerge(cnt) FROM test.without_deduplication_mv; +SELECT countMerge(cnt) FROM with_deduplication_mv; +SELECT countMerge(cnt) FROM without_deduplication_mv; -- Explicit insert is deduplicated -ALTER TABLE test.`.inner.with_deduplication_mv` DROP PARTITION ID 'all'; -ALTER TABLE test.`.inner.without_deduplication_mv` DROP PARTITION ID 'all'; -INSERT INTO test.`.inner.with_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; -INSERT INTO test.`.inner.with_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; -INSERT INTO test.`.inner.without_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; -INSERT INTO test.`.inner.without_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; +ALTER TABLE `.inner.with_deduplication_mv` DROP PARTITION ID 'all'; +ALTER TABLE `.inner.without_deduplication_mv` DROP PARTITION ID 'all'; +INSERT INTO `.inner.with_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; +INSERT INTO `.inner.with_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; +INSERT INTO `.inner.without_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; +INSERT INTO `.inner.without_deduplication_mv` SELECT 0 AS dummy, arrayReduce('countState', [toUInt32(42)]) AS cnt; SELECT ''; -SELECT countMerge(cnt) FROM test.with_deduplication_mv; -SELECT countMerge(cnt) FROM test.without_deduplication_mv; +SELECT countMerge(cnt) FROM with_deduplication_mv; +SELECT countMerge(cnt) FROM without_deduplication_mv; -DROP TABLE IF EXISTS test.with_deduplication; -DROP TABLE IF EXISTS test.without_deduplication; -DROP TABLE IF EXISTS test.with_deduplication_mv; -DROP TABLE IF EXISTS test.without_deduplication_mv; +DROP TABLE IF EXISTS with_deduplication; +DROP TABLE IF EXISTS without_deduplication; +DROP TABLE IF EXISTS with_deduplication_mv; +DROP TABLE IF EXISTS without_deduplication_mv; diff --git a/dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql b/dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql index f132237c624..8590b661476 100644 --- a/dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql @@ -1,34 +1,34 @@ -DROP TABLE IF EXISTS test.deduplication_by_partition; -CREATE TABLE test.deduplication_by_partition(d Date, x UInt32) ENGINE = +DROP TABLE IF EXISTS deduplication_by_partition; +CREATE TABLE deduplication_by_partition(d Date, x UInt32) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test/deduplication_by_partition', 'r1', d, x, 8192); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 1); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 1); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); -INSERT INTO test.deduplication_by_partition VALUES ('2000-02-01', 3), ('2000-02-01', 4), ('2000-02-01', 5); -INSERT INTO test.deduplication_by_partition VALUES ('2000-02-01', 3), ('2000-02-01', 4), ('2000-02-01', 5); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 1); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 1); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); +INSERT INTO deduplication_by_partition VALUES ('2000-02-01', 3), ('2000-02-01', 4), ('2000-02-01', 5); +INSERT INTO deduplication_by_partition VALUES ('2000-02-01', 3), ('2000-02-01', 4), ('2000-02-01', 5); SELECT '*** Before DROP PARTITION ***'; -SELECT * FROM test.deduplication_by_partition ORDER BY d, x; +SELECT * FROM deduplication_by_partition ORDER BY d, x; -ALTER TABLE test.deduplication_by_partition DROP PARTITION 200001; +ALTER TABLE deduplication_by_partition DROP PARTITION 200001; SELECT '*** After DROP PARTITION ***'; -SELECT * FROM test.deduplication_by_partition ORDER BY d, x; +SELECT * FROM deduplication_by_partition ORDER BY d, x; -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 1); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 1); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); -INSERT INTO test.deduplication_by_partition VALUES ('2000-01-01', 4); -INSERT INTO test.deduplication_by_partition VALUES ('2000-02-01', 3), ('2000-02-01', 4), ('2000-02-01', 5); -INSERT INTO test.deduplication_by_partition VALUES ('2000-02-01', 6), ('2000-02-01', 7); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 1); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 1); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 2), ('2000-01-01', 3); +INSERT INTO deduplication_by_partition VALUES ('2000-01-01', 4); +INSERT INTO deduplication_by_partition VALUES ('2000-02-01', 3), ('2000-02-01', 4), ('2000-02-01', 5); +INSERT INTO deduplication_by_partition VALUES ('2000-02-01', 6), ('2000-02-01', 7); SELECT '*** After INSERT ***'; -SELECT * FROM test.deduplication_by_partition ORDER BY d, x; +SELECT * FROM deduplication_by_partition ORDER BY d, x; -DROP TABLE test.deduplication_by_partition; +DROP TABLE deduplication_by_partition; diff --git a/dbms/tests/queries/0_stateless/00517_date_parsing.sql b/dbms/tests/queries/0_stateless/00517_date_parsing.sql index d9d4141678d..9067d39ba3e 100644 --- a/dbms/tests/queries/0_stateless/00517_date_parsing.sql +++ b/dbms/tests/queries/0_stateless/00517_date_parsing.sql @@ -1,14 +1,14 @@ SELECT toDate(s) FROM (SELECT arrayJoin(['2017-01-02', '2017-1-02', '2017-01-2', '2017-1-2', '2017/01/02', '2017/1/02', '2017/01/2', '2017/1/2', '2017-11-12']) AS s); -DROP TABLE IF EXISTS test.date; -CREATE TABLE test.date (d Date) ENGINE = Memory; +DROP TABLE IF EXISTS date; +CREATE TABLE date (d Date) ENGINE = Memory; -INSERT INTO test.date VALUES ('2017-01-02'), ('2017-1-02'), ('2017-01-2'), ('2017-1-2'), ('2017/01/02'), ('2017/1/02'), ('2017/01/2'), ('2017/1/2'), ('2017-11-12'); -SELECT * FROM test.date; +INSERT INTO date VALUES ('2017-01-02'), ('2017-1-02'), ('2017-01-2'), ('2017-1-2'), ('2017/01/02'), ('2017/1/02'), ('2017/01/2'), ('2017/1/2'), ('2017-11-12'); +SELECT * FROM date; -INSERT INTO test.date FORMAT JSONEachRow {"d": "2017-01-02"}, {"d": "2017-1-02"}, {"d": "2017-01-2"}, {"d": "2017-1-2"}, {"d": "2017/01/02"}, {"d": "2017/1/02"}, {"d": "2017/01/2"}, {"d": "2017/1/2"}, {"d": "2017-11-12"}; -SELECT * FROM test.date ORDER BY d; +INSERT INTO date FORMAT JSONEachRow {"d": "2017-01-02"}, {"d": "2017-1-02"}, {"d": "2017-01-2"}, {"d": "2017-1-2"}, {"d": "2017/01/02"}, {"d": "2017/1/02"}, {"d": "2017/01/2"}, {"d": "2017/1/2"}, {"d": "2017-11-12"}; +SELECT * FROM date ORDER BY d; -DROP TABLE test.date; +DROP TABLE date; WITH toDate('2000-01-01') + rand() % (30000) AS EventDate SELECT * FROM numbers(1000000) WHERE EventDate != toDate(concat(toString(toYear(EventDate)), '-', toString(toMonth(EventDate)), '-', toString(toDayOfMonth(EventDate)))); diff --git a/dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.sql b/dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.sql index 3bac0b2955a..a3673001226 100644 --- a/dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.sql +++ b/dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.tuple; -CREATE TABLE test.tuple (t Tuple(Date, UInt32, UInt64)) ENGINE = Memory; -INSERT INTO test.tuple VALUES ((concat('2000', '-01-01'), /* Hello */ 12+3, 45+6)); +DROP TABLE IF EXISTS tuple; +CREATE TABLE tuple (t Tuple(Date, UInt32, UInt64)) ENGINE = Memory; +INSERT INTO tuple VALUES ((concat('2000', '-01-01'), /* Hello */ 12+3, 45+6)); SET input_format_values_interpret_expressions = 0; -INSERT INTO test.tuple VALUES (('2000-01-01', 123, 456)); +INSERT INTO tuple VALUES (('2000-01-01', 123, 456)); -SELECT * FROM test.tuple ORDER BY t; -DROP TABLE test.tuple; +SELECT * FROM tuple ORDER BY t; +DROP TABLE tuple; diff --git a/dbms/tests/queries/0_stateless/00521_multidimensional.sql b/dbms/tests/queries/0_stateless/00521_multidimensional.sql index 32c6b30db1b..f48faf72c2b 100644 --- a/dbms/tests/queries/0_stateless/00521_multidimensional.sql +++ b/dbms/tests/queries/0_stateless/00521_multidimensional.sql @@ -1,34 +1,34 @@ -DROP TABLE IF EXISTS test.multidimensional; -CREATE TABLE test.multidimensional (x UInt64, arr Array(Array(String))) ENGINE = MergeTree ORDER BY x; +DROP TABLE IF EXISTS multidimensional; +CREATE TABLE multidimensional (x UInt64, arr Array(Array(String))) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []]); -SELECT * FROM test.multidimensional; +INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []]); +SELECT * FROM multidimensional; -ALTER TABLE test.multidimensional ADD COLUMN t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date)); -INSERT INTO test.multidimensional (t) VALUES (('Hello', ['World', NULL], (123, '2000-01-01'))); -SELECT * FROM test.multidimensional ORDER BY t; +ALTER TABLE multidimensional ADD COLUMN t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date)); +INSERT INTO multidimensional (t) VALUES (('Hello', ['World', NULL], (123, '2000-01-01'))); +SELECT * FROM multidimensional ORDER BY t; -OPTIMIZE TABLE test.multidimensional; -SELECT * FROM test.multidimensional ORDER BY t; +OPTIMIZE TABLE multidimensional; +SELECT * FROM multidimensional ORDER BY t; -DROP TABLE test.multidimensional; +DROP TABLE multidimensional; -CREATE TABLE test.multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = Memory; -INSERT INTO test.multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); -SELECT * FROM test.multidimensional ORDER BY t; -DROP TABLE test.multidimensional; +CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = Memory; +INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); +SELECT * FROM multidimensional ORDER BY t; +DROP TABLE multidimensional; -CREATE TABLE test.multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = TinyLog; -INSERT INTO test.multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); -SELECT * FROM test.multidimensional ORDER BY t; -DROP TABLE test.multidimensional; +CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = TinyLog; +INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); +SELECT * FROM multidimensional ORDER BY t; +DROP TABLE multidimensional; -CREATE TABLE test.multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = StripeLog; -INSERT INTO test.multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); -SELECT * FROM test.multidimensional ORDER BY t; -DROP TABLE test.multidimensional; +CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = StripeLog; +INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); +SELECT * FROM multidimensional ORDER BY t; +DROP TABLE multidimensional; -CREATE TABLE test.multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = Log; -INSERT INTO test.multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); -SELECT * FROM test.multidimensional ORDER BY t; -DROP TABLE test.multidimensional; +CREATE TABLE multidimensional (x UInt64, arr Array(Array(String)), t Tuple(String, Array(Nullable(String)), Tuple(UInt32, Date))) ENGINE = Log; +INSERT INTO multidimensional VALUES (1, [['Hello', 'World'], ['Goodbye'], []], ('Hello', ['World', NULL], (123, '2000-01-01'))); +SELECT * FROM multidimensional ORDER BY t; +DROP TABLE multidimensional; diff --git a/dbms/tests/queries/0_stateless/00522_multidimensional.sql b/dbms/tests/queries/0_stateless/00522_multidimensional.sql index c22f3b1abd1..c3c41257ab9 100644 --- a/dbms/tests/queries/0_stateless/00522_multidimensional.sql +++ b/dbms/tests/queries/0_stateless/00522_multidimensional.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.multidimensional; -CREATE TABLE test.multidimensional ENGINE = MergeTree ORDER BY number AS SELECT number, arrayMap(x -> (x, [x], [[x]], (x, toString(x))), arrayMap(x -> range(x), range(number % 10))) AS value FROM system.numbers LIMIT 100000; +DROP TABLE IF EXISTS multidimensional; +CREATE TABLE multidimensional ENGINE = MergeTree ORDER BY number AS SELECT number, arrayMap(x -> (x, [x], [[x]], (x, toString(x))), arrayMap(x -> range(x), range(number % 10))) AS value FROM system.numbers LIMIT 100000; -SELECT sum(cityHash64(toString(value))) FROM test.multidimensional; +SELECT sum(cityHash64(toString(value))) FROM multidimensional; -DROP TABLE test.multidimensional; +DROP TABLE multidimensional; diff --git a/dbms/tests/queries/0_stateless/00530_arrays_of_nothing.sql b/dbms/tests/queries/0_stateless/00530_arrays_of_nothing.sql index 704bc574647..f17d8053a15 100644 --- a/dbms/tests/queries/0_stateless/00530_arrays_of_nothing.sql +++ b/dbms/tests/queries/0_stateless/00530_arrays_of_nothing.sql @@ -4,10 +4,10 @@ SELECT [[[[],['']]]]; SELECT concat([], ['Hello'], []); SELECT arrayPushBack([], 1), arrayPushFront([[]], []); -DROP TABLE IF EXISTS test.arr; -CREATE TABLE test.arr (x Array(String), y Nullable(String), z Array(Array(Nullable(String)))) ENGINE = TinyLog; +DROP TABLE IF EXISTS arr; +CREATE TABLE arr (x Array(String), y Nullable(String), z Array(Array(Nullable(String)))) ENGINE = TinyLog; -INSERT INTO test.arr SELECT [], NULL, [[], [NULL], [NULL, 'Hello']]; -SELECT * FROM test.arr; +INSERT INTO arr SELECT [], NULL, [[], [NULL], [NULL, 'Hello']]; +SELECT * FROM arr; -DROP TABLE test.arr; +DROP TABLE arr; diff --git a/dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.sql b/dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.sql index a66ce1e336b..ff485b4251a 100644 --- a/dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.sql +++ b/dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.sql @@ -1,16 +1,16 @@ -DROP TABLE IF EXISTS test.agg_over_nullable; -CREATE TABLE test.agg_over_nullable ( +DROP TABLE IF EXISTS agg_over_nullable; +CREATE TABLE agg_over_nullable ( partition Date, timestamp DateTime, user_id Nullable(UInt32), description Nullable(String) ) ENGINE = MergeTree(partition, timestamp, 8192); -INSERT INTO test.agg_over_nullable(partition, timestamp, user_id, description) VALUES(now(), now(), 1, 'ss'); -INSERT INTO test.agg_over_nullable(partition, timestamp, user_id, description) VALUES(now(), now(), 1, NULL); -INSERT INTO test.agg_over_nullable(partition, timestamp, user_id, description) VALUES(now(), now(), 1, 'aa'); +INSERT INTO agg_over_nullable(partition, timestamp, user_id, description) VALUES(now(), now(), 1, 'ss'); +INSERT INTO agg_over_nullable(partition, timestamp, user_id, description) VALUES(now(), now(), 1, NULL); +INSERT INTO agg_over_nullable(partition, timestamp, user_id, description) VALUES(now(), now(), 1, 'aa'); -SELECT arraySort(groupUniqArray(description)) FROM test.agg_over_nullable; -SELECT arraySort(topK(3)(description)) FROM test.agg_over_nullable; +SELECT arraySort(groupUniqArray(description)) FROM agg_over_nullable; +SELECT arraySort(topK(3)(description)) FROM agg_over_nullable; -DROP TABLE test.agg_over_nullable; +DROP TABLE agg_over_nullable; diff --git a/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql b/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql index 810e6face22..8363050beb5 100644 --- a/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql +++ b/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.float; -CREATE TABLE test.float (x Float64) ENGINE = Log; +DROP TABLE IF EXISTS float; +CREATE TABLE float (x Float64) ENGINE = Log; -INSERT INTO test.float VALUES (1e7); -SELECT * FROM test.float; +INSERT INTO float VALUES (1e7); +SELECT * FROM float; -DROP TABLE test.float; +DROP TABLE float; diff --git a/dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql b/dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql index 9312dccd1c4..5e9277c90b6 100644 --- a/dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql +++ b/dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.m3; -DROP TABLE IF EXISTS test.m1; -DROP TABLE IF EXISTS test.x; +DROP TABLE IF EXISTS m3; +DROP TABLE IF EXISTS m1; +DROP TABLE IF EXISTS x; -CREATE TABLE test.x (d Date, t DateTime) ENGINE = MergeTree(d, (d, t), 1); +CREATE TABLE x (d Date, t DateTime) ENGINE = MergeTree(d, (d, t), 1); -CREATE MATERIALIZED VIEW test.m1 (d Date, t DateTime, c UInt64) ENGINE = SummingMergeTree(d, (d, t), 1) AS SELECT d, toStartOfMinute(x.t) as t, count() as c FROM test.x GROUP BY d, t; +CREATE MATERIALIZED VIEW m1 (d Date, t DateTime, c UInt64) ENGINE = SummingMergeTree(d, (d, t), 1) AS SELECT d, toStartOfMinute(x.t) as t, count() as c FROM x GROUP BY d, t; -CREATE MATERIALIZED VIEW test.m3 ENGINE = SummingMergeTree(d, (d, t), 1) AS SELECT d, toStartOfHour(m1.t) as t, c FROM test.m1; +CREATE MATERIALIZED VIEW m3 ENGINE = SummingMergeTree(d, (d, t), 1) AS SELECT d, toStartOfHour(m1.t) as t, c FROM m1; -INSERT INTO test.x VALUES (today(), now()); -INSERT INTO test.x VALUES (today(), now()); +INSERT INTO x VALUES (today(), now()); +INSERT INTO x VALUES (today(), now()); -OPTIMIZE TABLE test.m3; +OPTIMIZE TABLE m3; -DROP TABLE test.m3; -DROP TABLE test.m1; -DROP TABLE test.x; +DROP TABLE m3; +DROP TABLE m1; +DROP TABLE x; diff --git a/dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh b/dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh index d9c4d335d66..2ec95270e30 100755 --- a/dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh +++ b/dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh @@ -4,8 +4,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh $CLICKHOUSE_CLIENT -n --query=" - DROP TABLE IF EXISTS test.test_readonly; - CREATE TABLE test.test_readonly ( + DROP TABLE IF EXISTS test_readonly; + CREATE TABLE test_readonly ( ID Int ) Engine=Memory; "; @@ -27,7 +27,7 @@ CODE=$?; # Try to insert into exists (non temporary) table $CLICKHOUSE_CLIENT -n --query=" SET readonly = 1; - INSERT INTO test.test_readonly (ID) VALUES (1); + INSERT INTO test_readonly (ID) VALUES (1); " 2> /dev/null; CODE=$?; [ "$CODE" -ne "164" ] && [ "$CODE" -ne "0" ] && echo "Fail" && exit $CODE; @@ -35,7 +35,7 @@ CODE=$?; # Try to drop exists (non temporary) table $CLICKHOUSE_CLIENT -n --query=" SET readonly = 1; - DROP TABLE test.test_readonly; + DROP TABLE test_readonly; " 2> /dev/null; CODE=$?; [ "$CODE" -ne "164" ] && [ "$CODE" -ne "0" ] && echo "Fail" && exit $CODE; @@ -59,7 +59,7 @@ CODE=$?; # Try to insert into exists (non temporary) table $CLICKHOUSE_CLIENT -n --query=" SET readonly = 2; - INSERT INTO test.test_readonly (ID) VALUES (1); + INSERT INTO test_readonly (ID) VALUES (1); " 2> /dev/null; CODE=$?; [ "$CODE" -ne "164" ] && [ "$CODE" -ne "0" ] && echo "Fail" && exit $CODE; @@ -67,7 +67,7 @@ CODE=$?; # Try to drop exists (non temporary) table $CLICKHOUSE_CLIENT -n --query=" SET readonly = 2; - DROP TABLE test.test_readonly; + DROP TABLE test_readonly; " 2> /dev/null; CODE=$?; [ "$CODE" -ne "164" ] && [ "$CODE" -ne "0" ] && echo "Fail" && exit $CODE; @@ -91,7 +91,7 @@ CODE=$?; # Try to insert into exists (non temporary) table $CLICKHOUSE_CLIENT -n --query=" SET readonly = 0; - INSERT INTO test.test_readonly (ID) VALUES (1); + INSERT INTO test_readonly (ID) VALUES (1); " 2> /dev/null; CODE=$?; [ "$CODE" -ne "0" ] && echo "Fail" && exit $CODE; @@ -99,10 +99,10 @@ CODE=$?; # Try to drop exists (non temporary) table $CLICKHOUSE_CLIENT -n --query=" SET readonly = 0; - DROP TABLE test.test_readonly; + DROP TABLE test_readonly; " 2> /dev/null; CODE=$?; [ "$CODE" -ne "0" ] && echo "Fail" && exit $CODE; -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.test_readonly;"; +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_readonly;"; diff --git a/dbms/tests/queries/0_stateless/00543_null_and_prewhere.sql b/dbms/tests/queries/0_stateless/00543_null_and_prewhere.sql index 063280085c3..793d65925a1 100644 --- a/dbms/tests/queries/0_stateless/00543_null_and_prewhere.sql +++ b/dbms/tests/queries/0_stateless/00543_null_and_prewhere.sql @@ -1,4 +1,4 @@ -CREATE TABLE test.test +CREATE TABLE test ( dt Date, id UInt32, @@ -6,12 +6,12 @@ CREATE TABLE test.test ) ENGINE = MergeTree(dt, id, 8192); -insert into test.test (dt, id, val) values ('2017-01-01', 1, 10); -insert into test.test (dt, id, val) values ('2017-01-01', 1, null); -insert into test.test (dt, id, val) values ('2017-01-01', 1, 0); +insert into test (dt, id, val) values ('2017-01-01', 1, 10); +insert into test (dt, id, val) values ('2017-01-01', 1, null); +insert into test (dt, id, val) values ('2017-01-01', 1, 0); SELECT count() -FROM test.test +FROM test WHERE val = 0; -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; diff --git a/dbms/tests/queries/0_stateless/00544_insert_with_select.sql b/dbms/tests/queries/0_stateless/00544_insert_with_select.sql index 63ff2b7fd93..6333a3f498a 100644 --- a/dbms/tests/queries/0_stateless/00544_insert_with_select.sql +++ b/dbms/tests/queries/0_stateless/00544_insert_with_select.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE test.test(number UInt64, num2 UInt64) ENGINE = Log; +CREATE TABLE test(number UInt64, num2 UInt64) ENGINE = Log; -INSERT INTO test.test WITH number * 2 AS num2 SELECT number, num2 FROM system.numbers LIMIT 3; +INSERT INTO test WITH number * 2 AS num2 SELECT number, num2 FROM system.numbers LIMIT 3; -SELECT * FROM test.test; +SELECT * FROM test; -DROP TABLE test.test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00549_join_use_nulls.sql b/dbms/tests/queries/0_stateless/00549_join_use_nulls.sql index d1b2c5060f9..73ba78b4cb8 100644 --- a/dbms/tests/queries/0_stateless/00549_join_use_nulls.sql +++ b/dbms/tests/queries/0_stateless/00549_join_use_nulls.sql @@ -1,9 +1,9 @@ SET join_use_nulls = 1; -DROP TABLE IF EXISTS test.null; -CREATE TABLE test.null (k UInt64, a String, b Nullable(String)) ENGINE = Log; +DROP TABLE IF EXISTS null; +CREATE TABLE null (k UInt64, a String, b Nullable(String)) ENGINE = Log; -INSERT INTO test.null SELECT +INSERT INTO null SELECT k, a, b @@ -25,6 +25,6 @@ ANY LEFT JOIN ) USING (k) ORDER BY k ASC; -SELECT * FROM test.null ORDER BY k, a, b; +SELECT * FROM null ORDER BY k, a, b; -DROP TABLE test.null; +DROP TABLE null; diff --git a/dbms/tests/queries/0_stateless/00550_join_insert_select.sh b/dbms/tests/queries/0_stateless/00550_join_insert_select.sh index 3fbad66e7c2..0a695b25b9f 100755 --- a/dbms/tests/queries/0_stateless/00550_join_insert_select.sh +++ b/dbms/tests/queries/0_stateless/00550_join_insert_select.sh @@ -4,22 +4,22 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh $CLICKHOUSE_CLIENT -n --ignore-error --query=" -DROP TABLE IF EXISTS test.test1; -DROP TABLE IF EXISTS test.test2; -DROP TABLE IF EXISTS test.test3; +DROP TABLE IF EXISTS test1; +DROP TABLE IF EXISTS test2; +DROP TABLE IF EXISTS test3; -CREATE TABLE test.test1 ( id String ) ENGINE = StripeLog; -CREATE TABLE test.test2 ( id String ) ENGINE = StripeLog; -INSERT INTO test.test2 VALUES ('a'); -CREATE TABLE test.test3 ( id String, name String ) ENGINE = StripeLog; -INSERT INTO test.test3 VALUES ('a', 'aaa'); +CREATE TABLE test1 ( id String ) ENGINE = StripeLog; +CREATE TABLE test2 ( id String ) ENGINE = StripeLog; +INSERT INTO test2 VALUES ('a'); +CREATE TABLE test3 ( id String, name String ) ENGINE = StripeLog; +INSERT INTO test3 VALUES ('a', 'aaa'); -INSERT INTO test.test1 SELECT id, name FROM test.test2 ANY INNER JOIN test.test3 USING (id); -INSERT INTO test.test1 SELECT id, name FROM test.test2 ANY LEFT OUTER JOIN test.test3 USING (id); +INSERT INTO test1 SELECT id, name FROM test2 ANY INNER JOIN test3 USING (id); +INSERT INTO test1 SELECT id, name FROM test2 ANY LEFT OUTER JOIN test3 USING (id); -DROP TABLE test.test1; -DROP TABLE test.test2; -DROP TABLE test.test3; +DROP TABLE test1; +DROP TABLE test2; +DROP TABLE test3; " --server_logs_file=/dev/null 2>&1 | grep -F "Number of columns doesn't match" | wc -l $CLICKHOUSE_CLIENT --query="SELECT 1"; diff --git a/dbms/tests/queries/0_stateless/00552_or_nullable.sql b/dbms/tests/queries/0_stateless/00552_or_nullable.sql index 1bc1fb3bbc0..0c99fe54700 100644 --- a/dbms/tests/queries/0_stateless/00552_or_nullable.sql +++ b/dbms/tests/queries/0_stateless/00552_or_nullable.sql @@ -34,18 +34,18 @@ SELECT 0 AND x AND 1 AND x FROM (SELECT number % 2 ? number % 3 : NULL AS x FROM system.numbers LIMIT 10); -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE test.test +CREATE TABLE test ( x Nullable(Int32) ) ENGINE = Log; -INSERT INTO test.test VALUES(1), (0), (null); +INSERT INTO test VALUES(1), (0), (null); -SELECT * FROM test.test; -SELECT x FROM test.test WHERE x != 0; -SELECT x FROM test.test WHERE x != 0 OR isNull(x); -SELECT x FROM test.test WHERE x != 1; +SELECT * FROM test; +SELECT x FROM test WHERE x != 0; +SELECT x FROM test WHERE x != 0 OR isNull(x); +SELECT x FROM test WHERE x != 1; -DROP TABLE test.test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00554_nested_and_table_engines.sql b/dbms/tests/queries/0_stateless/00554_nested_and_table_engines.sql index 892bb210e63..3da696fa6a6 100644 --- a/dbms/tests/queries/0_stateless/00554_nested_and_table_engines.sql +++ b/dbms/tests/queries/0_stateless/00554_nested_and_table_engines.sql @@ -1,61 +1,61 @@ -DROP TABLE IF EXISTS test.nested; +DROP TABLE IF EXISTS nested; -CREATE TABLE test.nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = TinyLog; +CREATE TABLE nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = TinyLog; -INSERT INTO test.nested VALUES (1, [2, 3], ['Hello', 'World']); -INSERT INTO test.nested VALUES (4, [5], ['Goodbye']); +INSERT INTO nested VALUES (1, [2, 3], ['Hello', 'World']); +INSERT INTO nested VALUES (4, [5], ['Goodbye']); -SELECT * FROM test.nested ORDER BY x; -SELECT x, n.a FROM test.nested ORDER BY x; -SELECT n.a, n.b FROM test.nested ORDER BY n.a; +SELECT * FROM nested ORDER BY x; +SELECT x, n.a FROM nested ORDER BY x; +SELECT n.a, n.b FROM nested ORDER BY n.a; -DROP TABLE IF EXISTS test.nested; +DROP TABLE IF EXISTS nested; -CREATE TABLE test.nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = Log; +CREATE TABLE nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = Log; -INSERT INTO test.nested VALUES (1, [2, 3], ['Hello', 'World']); -INSERT INTO test.nested VALUES (4, [5], ['Goodbye']); +INSERT INTO nested VALUES (1, [2, 3], ['Hello', 'World']); +INSERT INTO nested VALUES (4, [5], ['Goodbye']); -SELECT * FROM test.nested ORDER BY x; -SELECT x, n.a FROM test.nested ORDER BY x; -SELECT n.a, n.b FROM test.nested ORDER BY n.a; +SELECT * FROM nested ORDER BY x; +SELECT x, n.a FROM nested ORDER BY x; +SELECT n.a, n.b FROM nested ORDER BY n.a; -DROP TABLE IF EXISTS test.nested; +DROP TABLE IF EXISTS nested; -CREATE TABLE test.nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = StripeLog; +CREATE TABLE nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = StripeLog; -INSERT INTO test.nested VALUES (1, [2, 3], ['Hello', 'World']); -INSERT INTO test.nested VALUES (4, [5], ['Goodbye']); +INSERT INTO nested VALUES (1, [2, 3], ['Hello', 'World']); +INSERT INTO nested VALUES (4, [5], ['Goodbye']); -SELECT * FROM test.nested ORDER BY x; -SELECT x, n.a FROM test.nested ORDER BY x; -SELECT n.a, n.b FROM test.nested ORDER BY n.a; +SELECT * FROM nested ORDER BY x; +SELECT x, n.a FROM nested ORDER BY x; +SELECT n.a, n.b FROM nested ORDER BY n.a; -DROP TABLE IF EXISTS test.nested; +DROP TABLE IF EXISTS nested; -CREATE TABLE test.nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = Memory; +CREATE TABLE nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = Memory; -INSERT INTO test.nested VALUES (1, [2, 3], ['Hello', 'World']); -INSERT INTO test.nested VALUES (4, [5], ['Goodbye']); +INSERT INTO nested VALUES (1, [2, 3], ['Hello', 'World']); +INSERT INTO nested VALUES (4, [5], ['Goodbye']); -SELECT * FROM test.nested ORDER BY x; -SELECT x, n.a FROM test.nested ORDER BY x; -SELECT n.a, n.b FROM test.nested ORDER BY n.a; +SELECT * FROM nested ORDER BY x; +SELECT x, n.a FROM nested ORDER BY x; +SELECT n.a, n.b FROM nested ORDER BY n.a; -DROP TABLE IF EXISTS test.nested; +DROP TABLE IF EXISTS nested; -CREATE TABLE test.nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = MergeTree ORDER BY x; +CREATE TABLE nested (x UInt8, n Nested(a UInt64, b String)) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.nested VALUES (1, [2, 3], ['Hello', 'World']); -INSERT INTO test.nested VALUES (4, [5], ['Goodbye']); +INSERT INTO nested VALUES (1, [2, 3], ['Hello', 'World']); +INSERT INTO nested VALUES (4, [5], ['Goodbye']); -SELECT * FROM test.nested ORDER BY x; -SELECT x, n.a FROM test.nested ORDER BY x; -SELECT n.a, n.b FROM test.nested ORDER BY n.a; +SELECT * FROM nested ORDER BY x; +SELECT x, n.a FROM nested ORDER BY x; +SELECT n.a, n.b FROM nested ORDER BY n.a; -DROP TABLE test.nested; +DROP TABLE nested; diff --git a/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql b/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql index 005e4e8134a..e407c253862 100644 --- a/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql +++ b/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.null; +DROP TABLE IF EXISTS null; -CREATE TABLE test.null (x UInt8) ENGINE = Null; -DESCRIBE TABLE test.null; +CREATE TABLE null (x UInt8) ENGINE = Null; +DESCRIBE TABLE null; -ALTER TABLE test.null ADD COLUMN y String, MODIFY COLUMN x Int64 DEFAULT toInt64(y); -DESCRIBE TABLE test.null; +ALTER TABLE null ADD COLUMN y String, MODIFY COLUMN x Int64 DEFAULT toInt64(y); +DESCRIBE TABLE null; -DROP TABLE test.null; +DROP TABLE null; diff --git a/dbms/tests/queries/0_stateless/00561_storage_join.sql b/dbms/tests/queries/0_stateless/00561_storage_join.sql index 20a760ed033..f218f9a0bc2 100644 --- a/dbms/tests/queries/0_stateless/00561_storage_join.sql +++ b/dbms/tests/queries/0_stateless/00561_storage_join.sql @@ -1,6 +1,6 @@ -drop table IF EXISTS test.joinbug; +drop table IF EXISTS joinbug; -CREATE TABLE test.joinbug ( +CREATE TABLE joinbug ( event_date Date MATERIALIZED toDate(created, 'Europe/Moscow'), id UInt64, id2 UInt64, @@ -9,11 +9,11 @@ CREATE TABLE test.joinbug ( created UInt64 ) ENGINE = MergeTree(event_date, (id, id2), 8192); -insert into test.joinbug (id, id2, val, val2, created) values (1,11,91,81,123456), (2,22,92,82,123457); +insert into joinbug (id, id2, val, val2, created) values (1,11,91,81,123456), (2,22,92,82,123457); -drop table IF EXISTS test.joinbug_join; +drop table IF EXISTS joinbug_join; -CREATE TABLE test.joinbug_join ( +CREATE TABLE joinbug_join ( id UInt64, id2 UInt64, val UInt64, @@ -21,20 +21,20 @@ CREATE TABLE test.joinbug_join ( created UInt64 ) ENGINE = Join(ANY, INNER, id2); -insert into test.joinbug_join (id, id2, val, val2, created) +insert into joinbug_join (id, id2, val, val2, created) select id, id2, val, val2, created -from test.joinbug; +from joinbug; /* expected */ select * -from test.joinbug; +from joinbug; /* wtf */ select id, id2, val, val2, created from ( SELECT toUInt64(arrayJoin(range(50))) AS id2 ) -ANY INNER JOIN test.joinbug_join using id2; +ANY INNER JOIN joinbug_join using id2; -DROP TABLE test.joinbug; -DROP TABLE test.joinbug_join; +DROP TABLE joinbug; +DROP TABLE joinbug_join; diff --git a/dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql b/dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql index 15d149ccac5..d2847af2b9d 100644 --- a/dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql +++ b/dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql @@ -1,25 +1,25 @@ -DROP TABLE IF EXISTS test.merge_tree_in_subqueries; -CREATE TABLE test.merge_tree_in_subqueries (id UInt64, name String, num UInt64) ENGINE = MergeTree ORDER BY (id, name); -INSERT INTO test.merge_tree_in_subqueries VALUES(1, 'test1', 42); -INSERT INTO test.merge_tree_in_subqueries VALUES(2, 'test2', 8); -INSERT INTO test.merge_tree_in_subqueries VALUES(3, 'test3', 8); -INSERT INTO test.merge_tree_in_subqueries VALUES(4, 'test4', 1985); -INSERT INTO test.merge_tree_in_subqueries VALUES(5, 'test5', 0); +DROP TABLE IF EXISTS merge_tree_in_subqueries; +CREATE TABLE merge_tree_in_subqueries (id UInt64, name String, num UInt64) ENGINE = MergeTree ORDER BY (id, name); +INSERT INTO merge_tree_in_subqueries VALUES(1, 'test1', 42); +INSERT INTO merge_tree_in_subqueries VALUES(2, 'test2', 8); +INSERT INTO merge_tree_in_subqueries VALUES(3, 'test3', 8); +INSERT INTO merge_tree_in_subqueries VALUES(4, 'test4', 1985); +INSERT INTO merge_tree_in_subqueries VALUES(5, 'test5', 0); -- Index scans. SET force_primary_key = 1; -SELECT * FROM test.merge_tree_in_subqueries WHERE id IN (SELECT * FROM system.numbers LIMIT 0); +SELECT * FROM merge_tree_in_subqueries WHERE id IN (SELECT * FROM system.numbers LIMIT 0); -SELECT * FROM test.merge_tree_in_subqueries WHERE id IN (SELECT * FROM system.numbers LIMIT 2, 3) ORDER BY id; -SELECT * FROM test.merge_tree_in_subqueries WHERE name IN (SELECT 'test' || toString(number) FROM system.numbers LIMIT 2, 3) ORDER BY id; +SELECT * FROM merge_tree_in_subqueries WHERE id IN (SELECT * FROM system.numbers LIMIT 2, 3) ORDER BY id; +SELECT * FROM merge_tree_in_subqueries WHERE name IN (SELECT 'test' || toString(number) FROM system.numbers LIMIT 2, 3) ORDER BY id; -SELECT id AS id2, name AS value FROM test.merge_tree_in_subqueries WHERE (value, id2) IN (SELECT 'test' || toString(number), number FROM system.numbers LIMIT 2, 3) ORDER BY id; +SELECT id AS id2, name AS value FROM merge_tree_in_subqueries WHERE (value, id2) IN (SELECT 'test' || toString(number), number FROM system.numbers LIMIT 2, 3) ORDER BY id; -- Non-index scans. SET force_primary_key = 0; -SELECT id AS id2, name AS value FROM test.merge_tree_in_subqueries WHERE num IN (SELECT number FROM system.numbers LIMIT 10) ORDER BY id; -SELECT id AS id2, name AS value FROM test.merge_tree_in_subqueries WHERE (id, num) IN (SELECT number, number + 6 FROM system.numbers LIMIT 10) ORDER BY id; +SELECT id AS id2, name AS value FROM merge_tree_in_subqueries WHERE num IN (SELECT number FROM system.numbers LIMIT 10) ORDER BY id; +SELECT id AS id2, name AS value FROM merge_tree_in_subqueries WHERE (id, num) IN (SELECT number, number + 6 FROM system.numbers LIMIT 10) ORDER BY id; -DROP TABLE IF EXISTS test.merge_tree_in_subqueries; +DROP TABLE IF EXISTS merge_tree_in_subqueries; diff --git a/dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql b/dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql index 3527ddb3c41..848ee3acad9 100644 --- a/dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql +++ b/dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql @@ -1,10 +1,10 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE test.test ( s String, i Int64) ENGINE = Memory; +CREATE TABLE test ( s String, i Int64) ENGINE = Memory; -INSERT INTO test.test VALUES('test_string', 1); +INSERT INTO test VALUES('test_string', 1); -SELECT s, SUM(i*2) AS i FROM test.test GROUP BY s UNION ALL SELECT s, SUM(i*2) AS i FROM test.test GROUP BY s; -SELECT s FROM (SELECT s, SUM(i*2) AS i FROM test.test GROUP BY s UNION ALL SELECT s, SUM(i*2) AS i FROM test.test GROUP BY s); +SELECT s, SUM(i*2) AS i FROM test GROUP BY s UNION ALL SELECT s, SUM(i*2) AS i FROM test GROUP BY s; +SELECT s FROM (SELECT s, SUM(i*2) AS i FROM test GROUP BY s UNION ALL SELECT s, SUM(i*2) AS i FROM test GROUP BY s); -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; diff --git a/dbms/tests/queries/0_stateless/00563_complex_in_expression.sql b/dbms/tests/queries/0_stateless/00563_complex_in_expression.sql index 1a84e560509..3821ec791d1 100644 --- a/dbms/tests/queries/0_stateless/00563_complex_in_expression.sql +++ b/dbms/tests/queries/0_stateless/00563_complex_in_expression.sql @@ -1,32 +1,32 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE test.test ( dt Date, site_id Int32, site_key String ) ENGINE = MergeTree(dt, (site_id, site_key, dt), 8192); -INSERT INTO test.test (dt,site_id, site_key) VALUES ('2018-1-29', 100, 'key'); -SELECT * FROM test.test WHERE toInt32(site_id) IN (100); -SELECT * FROM test.test WHERE toInt32(site_id) IN (100,101); +CREATE TABLE test ( dt Date, site_id Int32, site_key String ) ENGINE = MergeTree(dt, (site_id, site_key, dt), 8192); +INSERT INTO test (dt,site_id, site_key) VALUES ('2018-1-29', 100, 'key'); +SELECT * FROM test WHERE toInt32(site_id) IN (100); +SELECT * FROM test WHERE toInt32(site_id) IN (100,101); -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -DROP TABLE IF EXISTS test.join_with_index; -CREATE TABLE test.join_with_index (key UInt32, data UInt64) ENGINE = MergeTree ORDER BY key SETTINGS index_granularity=1; -INSERT INTO test.join_with_index VALUES (1, 0), (2, 99); +DROP TABLE IF EXISTS join_with_index; +CREATE TABLE join_with_index (key UInt32, data UInt64) ENGINE = MergeTree ORDER BY key SETTINGS index_granularity=1; +INSERT INTO join_with_index VALUES (1, 0), (2, 99); SELECT key + 1 -FROM test.join_with_index +FROM join_with_index ALL INNER JOIN ( SELECT key, data - FROM test.join_with_index + FROM join_with_index WHERE toUInt64(data) IN (0, 529335254087962442) ) USING (key); SELECT _uniq, _uniq IN (0, 99) -FROM test.join_with_index +FROM join_with_index ARRAY JOIN [key, data] AS _uniq ORDER BY _uniq; -DROP TABLE IF EXISTS test.join_with_index; +DROP TABLE IF EXISTS join_with_index; diff --git a/dbms/tests/queries/0_stateless/00564_enum_order.sh b/dbms/tests/queries/0_stateless/00564_enum_order.sh index f2dfb0270e7..0424cc6a959 100755 --- a/dbms/tests/queries/0_stateless/00564_enum_order.sh +++ b/dbms/tests/queries/0_stateless/00564_enum_order.sh @@ -3,8 +3,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "DROP TABLE IF EXISTS test.enum"; -$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "CREATE TABLE test.enum (x Enum8('a' = 1, 'bcdefghijklmno' = 0)) ENGINE = Memory"; -$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "INSERT INTO test.enum VALUES ('a')"; -$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "SELECT * FROM test.enum"; -$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" -d "DROP TABLE test.enum"; +$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "DROP TABLE IF EXISTS enum"; +$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "CREATE TABLE enum (x Enum8('a' = 1, 'bcdefghijklmno' = 0)) ENGINE = Memory"; +$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "INSERT INTO enum VALUES ('a')"; +$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "SELECT * FROM enum"; +$CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL_PARAMS" -d "DROP TABLE enum"; diff --git a/dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql b/dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql index 8ac087c6dee..d26621dce7a 100644 --- a/dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql +++ b/dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE IF NOT EXISTS test.test( id UInt32, track UInt8, codec String, content String, rdate Date DEFAULT '2018-02-03', track_id String DEFAULT concat(concat(concat(toString(track), '-'), codec), content) ) ENGINE=MergeTree(rdate, (id, track_id), 8192); +CREATE TABLE IF NOT EXISTS test( id UInt32, track UInt8, codec String, content String, rdate Date DEFAULT '2018-02-03', track_id String DEFAULT concat(concat(concat(toString(track), '-'), codec), content) ) ENGINE=MergeTree(rdate, (id, track_id), 8192); -INSERT INTO test.test(id, track, codec) VALUES(1, 0, 'h264'); +INSERT INTO test(id, track, codec) VALUES(1, 0, 'h264'); -SELECT * FROM test.test ORDER BY id; +SELECT * FROM test ORDER BY id; -INSERT INTO test.test(id, track, codec, content) VALUES(2, 0, 'h264', 'CONTENT'); +INSERT INTO test(id, track, codec, content) VALUES(2, 0, 'h264', 'CONTENT'); -SELECT * FROM test.test ORDER BY id; +SELECT * FROM test ORDER BY id; -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; diff --git a/dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql b/dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql index 85500dba763..5b7f59f8b65 100644 --- a/dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql +++ b/dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql @@ -1,203 +1,203 @@ -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 2, -1, 1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 2, -1, 1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; select 'table with 4 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 4 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 0, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 1, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 2, 1, -1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 0, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 1, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 2, 1, -1) from system.numbers limit 10; select 'table with 5 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 5 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 1000000; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 1000000; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date, value), 8192, sign, version); +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 1000000; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 1000000; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value UInt64, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date), 8192, sign, version); -insert into test.mult_tab select '2018-01-31', number, 0, if(number < 64, 1, -1) from system.numbers limit 128; -insert into test.mult_tab select '2018-01-31', number, 0, if(number < 64, -1, 1) from system.numbers limit 128; +drop table if exists mult_tab; +create table mult_tab (date Date, value UInt64, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(date, (date), 8192, sign, version); +insert into mult_tab select '2018-01-31', number, 0, if(number < 64, 1, -1) from system.numbers limit 128; +insert into mult_tab select '2018-01-31', number, 0, if(number < 64, -1, 1) from system.numbers limit 128; select 'table with 2 blocks final'; -select * from test.mult_tab final settings max_block_size=33; -optimize table test.mult_tab; +select * from mult_tab final settings max_block_size=33; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; select 'Vertival merge'; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 2, -1, 1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 2, -1, 1) from system.numbers limit 10; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; select 'table with 4 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 4 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 0, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 1, 1, -1) from system.numbers limit 10; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 2, 1, -1) from system.numbers limit 10; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 0, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 1, 1, -1) from system.numbers limit 10; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 1, if(number % 3 = 2, 1, -1) from system.numbers limit 10; select 'table with 5 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 5 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 1000000; -insert into test.mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 1000000; +drop table if exists mult_tab; +create table mult_tab (date Date, value String, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date, value) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, 1, -1) from system.numbers limit 1000000; +insert into mult_tab select '2018-01-31', 'str_' || toString(number), 0, if(number % 2, -1, 1) from system.numbers limit 1000000; select 'table with 2 blocks final'; -select * from test.mult_tab final; -optimize table test.mult_tab; +select * from mult_tab final; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; select '-------------------------'; -drop table if exists test.mult_tab; -create table test.mult_tab (date Date, value UInt64, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.mult_tab select '2018-01-31', number, 0, if(number < 64, 1, -1) from system.numbers limit 128; -insert into test.mult_tab select '2018-01-31', number, 0, if(number < 64, -1, 1) from system.numbers limit 128; +drop table if exists mult_tab; +create table mult_tab (date Date, value UInt64, version UInt64, sign Int8) engine = VersionedCollapsingMergeTree(sign, version) order by (date) settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into mult_tab select '2018-01-31', number, 0, if(number < 64, 1, -1) from system.numbers limit 128; +insert into mult_tab select '2018-01-31', number, 0, if(number < 64, -1, 1) from system.numbers limit 128; select 'table with 2 blocks final'; -select * from test.mult_tab final settings max_block_size=33; -optimize table test.mult_tab; +select * from mult_tab final settings max_block_size=33; +optimize table mult_tab; select 'table with 2 blocks optimized'; -select * from test.mult_tab; +select * from mult_tab; -DROP TABLE test.mult_tab; +DROP TABLE mult_tab; diff --git a/dbms/tests/queries/0_stateless/00565_enum_order.reference b/dbms/tests/queries/0_stateless/00565_enum_order.reference index bfdc1af1d69..53d0fa77490 100644 --- a/dbms/tests/queries/0_stateless/00565_enum_order.reference +++ b/dbms/tests/queries/0_stateless/00565_enum_order.reference @@ -1,4 +1,4 @@ -INSERT INTO `test`.`test_log`(`date`, `datetime`, `path`, `gtid`, `query_serial`, `row_serial`, `reqid`, `method`, `service`, `db`, `type`, `operation`, `old_fields`.`name`, `old_fields`.`value`, `old_fields`.`is_null`, `new_fields`.`name`, `new_fields`.`value`, `new_fields`.`is_null`, `record_source_type`, `record_source_timestamp`, `deleted`) FORMAT TabSeparated +INSERT INTO `test_log`(`date`, `datetime`, `path`, `gtid`, `query_serial`, `row_serial`, `reqid`, `method`, `service`, `db`, `type`, `operation`, `old_fields`.`name`, `old_fields`.`value`, `old_fields`.`is_null`, `new_fields`.`name`, `new_fields`.`value`, `new_fields`.`is_null`, `record_source_type`, `record_source_timestamp`, `deleted`) FORMAT TabSeparated run by native protocol run by http protocol run by native protocol diff --git a/dbms/tests/queries/0_stateless/00565_enum_order.sh b/dbms/tests/queries/0_stateless/00565_enum_order.sh index fdb824de8fe..c936f05dac5 100755 --- a/dbms/tests/queries/0_stateless/00565_enum_order.sh +++ b/dbms/tests/queries/0_stateless/00565_enum_order.sh @@ -5,12 +5,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) set -e -o pipefail -$CLICKHOUSE_CLIENT <<'EOF' -DROP TABLE IF EXISTS `test`.`test_log` +$CLICKHOUSE_CLIENT <<"EOF" +DROP TABLE IF EXISTS `test_log` EOF -$CLICKHOUSE_CLIENT <<'EOF' -CREATE TABLE `test`.`test_log` ( +$CLICKHOUSE_CLIENT <<"EOF" +CREATE TABLE `test_log` ( date Date, datetime DateTime, path String, @@ -36,13 +36,13 @@ CREATE TABLE `test`.`test_log` ( EOF DATA='2018-01-01\t2018-01-01 03:00:00\tclient:1-\tserveruuid:0\t0\t0\t0\t\t\ttest\ttest\tINSERT\t[]\t[]\t[]\t[]\t[]\t[]\t1\t2018-02-02 15:54:10\tfalse\n' -QUERY='INSERT INTO `test`.`test_log`(`date`, `datetime`, `path`, `gtid`, `query_serial`, `row_serial`, +QUERY='INSERT INTO `test_log`(`date`, `datetime`, `path`, `gtid`, `query_serial`, `row_serial`, `reqid`, `method`, `service`, `db`, `type`, `operation`, `old_fields`.`name`, `old_fields`.`value`, `old_fields`.`is_null`, `new_fields`.`name`, `new_fields`.`value`, `new_fields`.`is_null`, `record_source_type`, `record_source_timestamp`, `deleted`) FORMAT TabSeparated' QUERY="$(tr -d '\n' <<<"$QUERY")" echo $QUERY -URL=$(python -c 'print "'${CLICKHOUSE_URL}'?query=" + __import__("urllib").quote("'"$QUERY"'")') +URL=$(python -c 'print "'${CLICKHOUSE_URL_PARAMS}'&query=" + __import__("urllib").quote("'"$QUERY"'")') set +e for i in 1 2 3; do @@ -54,5 +54,5 @@ for i in 1 2 3; do done echo 'Count:' -$CLICKHOUSE_CLIENT --query 'select count() from test.test_log' -$CLICKHOUSE_CLIENT --query 'DROP TABLE test.test_log' +$CLICKHOUSE_CLIENT --query 'select count() from test_log' +$CLICKHOUSE_CLIENT --query 'DROP TABLE test_log' diff --git a/dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql b/dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql index 7abc9067b7c..fc2c6b6526f 100644 --- a/dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql +++ b/dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql @@ -1,8 +1,8 @@ SELECT toFixedString('', 4) AS str, empty(str) AS is_empty; SELECT toFixedString('\0abc', 4) AS str, empty(str) AS is_empty; -DROP TABLE IF EXISTS test.defaulted; -CREATE TABLE test.defaulted (v6 FixedString(16)) ENGINE=Memory; -INSERT INTO test.defaulted SELECT toFixedString('::0', 16) FROM numbers(32768); -SELECT count(), notEmpty(v6) e FROM test.defaulted GROUP BY e; -DROP TABLE test.defaulted; +DROP TABLE IF EXISTS defaulted; +CREATE TABLE defaulted (v6 FixedString(16)) ENGINE=Memory; +INSERT INTO defaulted SELECT toFixedString('::0', 16) FROM numbers(32768); +SELECT count(), notEmpty(v6) e FROM defaulted GROUP BY e; +DROP TABLE defaulted; diff --git a/dbms/tests/queries/0_stateless/00571_alter_nullable.sql b/dbms/tests/queries/0_stateless/00571_alter_nullable.sql index 66ad47b10af..486c82a9133 100644 --- a/dbms/tests/queries/0_stateless/00571_alter_nullable.sql +++ b/dbms/tests/queries/0_stateless/00571_alter_nullable.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.nullable; -CREATE TABLE test.nullable (x String) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.nullable VALUES ('hello'), ('world'); -SELECT * FROM test.nullable; -ALTER TABLE test.nullable ADD COLUMN n Nullable(UInt64); -SELECT * FROM test.nullable; -ALTER TABLE test.nullable DROP COLUMN n; -ALTER TABLE test.nullable ADD COLUMN n Nullable(UInt64) DEFAULT NULL; -SELECT * FROM test.nullable; -ALTER TABLE test.nullable DROP COLUMN n; -ALTER TABLE test.nullable ADD COLUMN n Nullable(UInt64) DEFAULT 0; -SELECT * FROM test.nullable; -DROP TABLE test.nullable; +DROP TABLE IF EXISTS nullable; +CREATE TABLE nullable (x String) ENGINE = MergeTree ORDER BY x; +INSERT INTO nullable VALUES ('hello'), ('world'); +SELECT * FROM nullable; +ALTER TABLE nullable ADD COLUMN n Nullable(UInt64); +SELECT * FROM nullable; +ALTER TABLE nullable DROP COLUMN n; +ALTER TABLE nullable ADD COLUMN n Nullable(UInt64) DEFAULT NULL; +SELECT * FROM nullable; +ALTER TABLE nullable DROP COLUMN n; +ALTER TABLE nullable ADD COLUMN n Nullable(UInt64) DEFAULT 0; +SELECT * FROM nullable; +DROP TABLE nullable; diff --git a/dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh b/dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh index 879f487c040..1facba5c121 100755 --- a/dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh +++ b/dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh @@ -3,13 +3,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.empty_strings_deserialization" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.empty_strings_deserialization(s String, i Int32, f Float32) ENGINE Memory" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS empty_strings_deserialization" +$CLICKHOUSE_CLIENT -q "CREATE TABLE empty_strings_deserialization(s String, i Int32, f Float32) ENGINE Memory" -echo ',,' | $CLICKHOUSE_CLIENT -q "INSERT INTO test.empty_strings_deserialization FORMAT CSV" -echo 'aaa,-,' | $CLICKHOUSE_CLIENT -q "INSERT INTO test.empty_strings_deserialization FORMAT CSV" -echo 'bbb,,-' | $CLICKHOUSE_CLIENT -q "INSERT INTO test.empty_strings_deserialization FORMAT CSV" +echo ',,' | $CLICKHOUSE_CLIENT -q "INSERT INTO empty_strings_deserialization FORMAT CSV" +echo 'aaa,-,' | $CLICKHOUSE_CLIENT -q "INSERT INTO empty_strings_deserialization FORMAT CSV" +echo 'bbb,,-' | $CLICKHOUSE_CLIENT -q "INSERT INTO empty_strings_deserialization FORMAT CSV" -$CLICKHOUSE_CLIENT -q "SELECT * FROM test.empty_strings_deserialization ORDER BY s" +$CLICKHOUSE_CLIENT -q "SELECT * FROM empty_strings_deserialization ORDER BY s" -$CLICKHOUSE_CLIENT -q "DROP TABLE test.empty_strings_deserialization" +$CLICKHOUSE_CLIENT -q "DROP TABLE empty_strings_deserialization" diff --git a/dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh b/dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh index d199096815c..b5bf062227f 100755 --- a/dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh +++ b/dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh @@ -6,13 +6,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) exception_pattern="Code: 44.*Cannot drop column id, because column id2 depends on it" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test;" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.test (dt Date DEFAULT now(), id UInt32, id2 UInt32 DEFAULT id + 1) ENGINE = MergeTree(dt, dt, 8192);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test(dt,id) VALUES ('2018-02-22',3), ('2018-02-22',4), ('2018-02-22',5);" -${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.test ORDER BY id;" -echo `${CLICKHOUSE_CLIENT} --query "ALTER TABLE test.test DROP COLUMN id;" --server_logs_file=/dev/null 2>&1 | grep -c "$exception_pattern"` -${CLICKHOUSE_CLIENT} --query "ALTER TABLE test.test DROP COLUMN id2;" -${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.test ORDER BY id;" -${CLICKHOUSE_CLIENT} --query "ALTER TABLE test.test DROP COLUMN id;" -${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.test ORDER BY dt" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test;" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE test (dt Date DEFAULT now(), id UInt32, id2 UInt32 DEFAULT id + 1) ENGINE = MergeTree(dt, dt, 8192);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test(dt,id) VALUES ('2018-02-22',3), ('2018-02-22',4), ('2018-02-22',5);" +${CLICKHOUSE_CLIENT} --query "SELECT * FROM test ORDER BY id;" +echo `${CLICKHOUSE_CLIENT} --query "ALTER TABLE test DROP COLUMN id;" --server_logs_file=/dev/null 2>&1 | grep -c "$exception_pattern"` +${CLICKHOUSE_CLIENT} --query "ALTER TABLE test DROP COLUMN id2;" +${CLICKHOUSE_CLIENT} --query "SELECT * FROM test ORDER BY id;" +${CLICKHOUSE_CLIENT} --query "ALTER TABLE test DROP COLUMN id;" +${CLICKHOUSE_CLIENT} --query "SELECT * FROM test ORDER BY dt" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test;" diff --git a/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql b/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql index 8fc5b3faf16..cfd1275f03e 100644 --- a/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql +++ b/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.t; +DROP TABLE IF EXISTS t; -create table test.t(d Date) engine MergeTree(d, d, 8192); +create table t(d Date) engine MergeTree(d, d, 8192); -insert into test.t values ('2018-02-20'); +insert into t values ('2018-02-20'); -select count() from test.t where toDayOfWeek(d) in (2); +select count() from t where toDayOfWeek(d) in (2); -DROP TABLE test.t; +DROP TABLE t; diff --git a/dbms/tests/queries/0_stateless/00576_nested_and_prewhere.sql b/dbms/tests/queries/0_stateless/00576_nested_and_prewhere.sql index 5483086e8f6..b15af582a19 100644 --- a/dbms/tests/queries/0_stateless/00576_nested_and_prewhere.sql +++ b/dbms/tests/queries/0_stateless/00576_nested_and_prewhere.sql @@ -1,13 +1,13 @@ -DROP TABLE IF EXISTS test.nested; +DROP TABLE IF EXISTS nested; -CREATE TABLE test.nested (x UInt64, filter UInt8, n Nested(a UInt64)) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.nested SELECT number, number % 2, range(number % 10) FROM system.numbers LIMIT 100000; +CREATE TABLE nested (x UInt64, filter UInt8, n Nested(a UInt64)) ENGINE = MergeTree ORDER BY x; +INSERT INTO nested SELECT number, number % 2, range(number % 10) FROM system.numbers LIMIT 100000; -ALTER TABLE test.nested ADD COLUMN n.b Array(UInt64); -SELECT DISTINCT n.b FROM test.nested PREWHERE filter; +ALTER TABLE nested ADD COLUMN n.b Array(UInt64); +SELECT DISTINCT n.b FROM nested PREWHERE filter; -ALTER TABLE test.nested ADD COLUMN n.c Array(UInt64) DEFAULT arrayMap(x -> x * 2, n.a); -SELECT DISTINCT n.c FROM test.nested PREWHERE filter; -SELECT DISTINCT n.a, n.c FROM test.nested PREWHERE filter; +ALTER TABLE nested ADD COLUMN n.c Array(UInt64) DEFAULT arrayMap(x -> x * 2, n.a); +SELECT DISTINCT n.c FROM nested PREWHERE filter; +SELECT DISTINCT n.a, n.c FROM nested PREWHERE filter; -DROP TABLE test.nested; +DROP TABLE nested; diff --git a/dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql b/dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql index 25b53d9b169..57b17f7f255 100644 --- a/dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql +++ b/dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql @@ -1,8 +1,8 @@ -drop table if exists test.tab; -create table test.tab (date Date, version UInt64, val UInt64) engine = ReplacingMergeTree(version) partition by date order by date settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; -insert into test.tab values ('2018-01-01', 2, 2), ('2018-01-01', 1, 1); -insert into test.tab values ('2018-01-01', 0, 0); -select * from test.tab order by version; -OPTIMIZE TABLE test.tab; -select * from test.tab; +drop table if exists tab; +create table tab (date Date, version UInt64, val UInt64) engine = ReplacingMergeTree(version) partition by date order by date settings enable_vertical_merge_algorithm = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 0; +insert into tab values ('2018-01-01', 2, 2), ('2018-01-01', 1, 1); +insert into tab values ('2018-01-01', 0, 0); +select * from tab order by version; +OPTIMIZE TABLE tab; +select * from tab; diff --git a/dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql b/dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql index 2e1c0d24024..d33b53234d2 100644 --- a/dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql +++ b/dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql @@ -1,56 +1,56 @@ SELECT '*** MergeTree ***'; -DROP TABLE IF EXISTS test.unsorted; -CREATE TABLE test.unsorted (x UInt32, y String) ENGINE MergeTree ORDER BY tuple() SETTINGS vertical_merge_algorithm_min_rows_to_activate=0, vertical_merge_algorithm_min_columns_to_activate=0; +DROP TABLE IF EXISTS unsorted; +CREATE TABLE unsorted (x UInt32, y String) ENGINE MergeTree ORDER BY tuple() SETTINGS vertical_merge_algorithm_min_rows_to_activate=0, vertical_merge_algorithm_min_columns_to_activate=0; -INSERT INTO test.unsorted VALUES (1, 'a'), (5, 'b'); -INSERT INTO test.unsorted VALUES (2, 'c'), (4, 'd'); -INSERT INTO test.unsorted VALUES (3, 'e'); +INSERT INTO unsorted VALUES (1, 'a'), (5, 'b'); +INSERT INTO unsorted VALUES (2, 'c'), (4, 'd'); +INSERT INTO unsorted VALUES (3, 'e'); -OPTIMIZE TABLE test.unsorted PARTITION tuple() FINAL; +OPTIMIZE TABLE unsorted PARTITION tuple() FINAL; -SELECT * FROM test.unsorted; +SELECT * FROM unsorted; -DROP TABLE test.unsorted; +DROP TABLE unsorted; SELECT '*** ReplacingMergeTree ***'; -DROP TABLE IF EXISTS test.unsorted_replacing; +DROP TABLE IF EXISTS unsorted_replacing; -CREATE TABLE test.unsorted_replacing (x UInt32, s String, v UInt32) ENGINE ReplacingMergeTree(v) ORDER BY tuple(); +CREATE TABLE unsorted_replacing (x UInt32, s String, v UInt32) ENGINE ReplacingMergeTree(v) ORDER BY tuple(); -INSERT INTO test.unsorted_replacing VALUES (1, 'a', 5), (5, 'b', 4); -INSERT INTO test.unsorted_replacing VALUES (2, 'c', 3), (4, 'd', 2); -INSERT INTO test.unsorted_replacing VALUES (3, 'e', 1); +INSERT INTO unsorted_replacing VALUES (1, 'a', 5), (5, 'b', 4); +INSERT INTO unsorted_replacing VALUES (2, 'c', 3), (4, 'd', 2); +INSERT INTO unsorted_replacing VALUES (3, 'e', 1); -SELECT * FROM test.unsorted_replacing FINAL; +SELECT * FROM unsorted_replacing FINAL; SELECT '---'; -OPTIMIZE TABLE test.unsorted_replacing PARTITION tuple() FINAL; +OPTIMIZE TABLE unsorted_replacing PARTITION tuple() FINAL; -SELECT * FROM test.unsorted_replacing; +SELECT * FROM unsorted_replacing; -DROP TABLE test.unsorted_replacing; +DROP TABLE unsorted_replacing; SELECT '*** CollapsingMergeTree ***'; -DROP TABLE IF EXISTS test.unsorted_collapsing; +DROP TABLE IF EXISTS unsorted_collapsing; -CREATE TABLE test.unsorted_collapsing (x UInt32, s String, sign Int8) ENGINE CollapsingMergeTree(sign) ORDER BY tuple(); +CREATE TABLE unsorted_collapsing (x UInt32, s String, sign Int8) ENGINE CollapsingMergeTree(sign) ORDER BY tuple(); -INSERT INTO test.unsorted_collapsing VALUES (1, 'a', 1); -INSERT INTO test.unsorted_collapsing VALUES (1, 'a', -1), (2, 'b', 1); -INSERT INTO test.unsorted_collapsing VALUES (2, 'b', -1), (3, 'c', 1); +INSERT INTO unsorted_collapsing VALUES (1, 'a', 1); +INSERT INTO unsorted_collapsing VALUES (1, 'a', -1), (2, 'b', 1); +INSERT INTO unsorted_collapsing VALUES (2, 'b', -1), (3, 'c', 1); -SELECT * FROM test.unsorted_collapsing FINAL; +SELECT * FROM unsorted_collapsing FINAL; SELECT '---'; -OPTIMIZE TABLE test.unsorted_collapsing PARTITION tuple() FINAL; +OPTIMIZE TABLE unsorted_collapsing PARTITION tuple() FINAL; -SELECT * FROM test.unsorted_collapsing; +SELECT * FROM unsorted_collapsing; -DROP TABLE test.unsorted_collapsing; +DROP TABLE unsorted_collapsing; diff --git a/dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql b/dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql index f897de5a645..477a75f172b 100644 --- a/dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql +++ b/dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.partition_and_primary_keys_using_same_expression; +DROP TABLE IF EXISTS partition_and_primary_keys_using_same_expression; -CREATE TABLE test.partition_and_primary_keys_using_same_expression(dt DateTime) +CREATE TABLE partition_and_primary_keys_using_same_expression(dt DateTime) ENGINE MergeTree PARTITION BY toDate(dt) ORDER BY toDayOfWeek(toDate(dt)); -INSERT INTO test.partition_and_primary_keys_using_same_expression +INSERT INTO partition_and_primary_keys_using_same_expression VALUES ('2018-02-19 12:00:00'); -INSERT INTO test.partition_and_primary_keys_using_same_expression +INSERT INTO partition_and_primary_keys_using_same_expression VALUES ('2018-02-20 12:00:00'), ('2018-02-21 12:00:00'); -SELECT * FROM test.partition_and_primary_keys_using_same_expression ORDER BY dt; +SELECT * FROM partition_and_primary_keys_using_same_expression ORDER BY dt; SELECT '---'; -ALTER TABLE test.partition_and_primary_keys_using_same_expression DROP PARTITION '2018-02-20'; -SELECT * FROM test.partition_and_primary_keys_using_same_expression ORDER BY dt; +ALTER TABLE partition_and_primary_keys_using_same_expression DROP PARTITION '2018-02-20'; +SELECT * FROM partition_and_primary_keys_using_same_expression ORDER BY dt; -DROP TABLE test.partition_and_primary_keys_using_same_expression; +DROP TABLE partition_and_primary_keys_using_same_expression; diff --git a/dbms/tests/queries/0_stateless/00584_view_union_all.sql b/dbms/tests/queries/0_stateless/00584_view_union_all.sql index 3460352e809..318166f7633 100644 --- a/dbms/tests/queries/0_stateless/00584_view_union_all.sql +++ b/dbms/tests/queries/0_stateless/00584_view_union_all.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.Test; +DROP TABLE IF EXISTS Test; -CREATE TABLE test.Test ( +CREATE TABLE Test ( createdDate Date, str String, key Enum8('A' = 0, 'B' = 1, 'ALL' = 2), @@ -8,22 +8,22 @@ CREATE TABLE test.Test ( ) ENGINE = MergeTree(createdDate, str, 8192); -INSERT INTO test.Test VALUES ('2000-01-01', 'hello', 'A', 123); +INSERT INTO Test VALUES ('2000-01-01', 'hello', 'A', 123); SET max_threads = 1; -CREATE VIEW test.TestView AS +CREATE VIEW TestView AS SELECT str, key, sumIf(a, 0) AS sum - FROM test.Test + FROM Test GROUP BY str, key UNION ALL SELECT str AS str, CAST('ALL' AS Enum8('A' = 0, 'B' = 1, 'ALL' = 2)) AS key, sumIf(a, 0) AS sum - FROM test.Test + FROM Test GROUP BY str; -SELECT * FROM test.TestView; +SELECT * FROM TestView; -DROP TABLE test.TestView; -DROP TABLE test.Test; +DROP TABLE TestView; +DROP TABLE Test; diff --git a/dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql b/dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql index 5c2a0b9701d..d79e91ed0b9 100644 --- a/dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql +++ b/dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.clicks; -DROP TABLE IF EXISTS test.transactions; +DROP TABLE IF EXISTS clicks; +DROP TABLE IF EXISTS transactions; -CREATE TABLE test.clicks (domain String) ENGINE = Memory; -CREATE TABLE test.transactions (domain String) ENGINE = Memory; +CREATE TABLE clicks (domain String) ENGINE = Memory; +CREATE TABLE transactions (domain String) ENGINE = Memory; -INSERT INTO test.clicks VALUES ('facebook.com'), ('yandex.ru'), ('google.com'); -INSERT INTO test.transactions VALUES ('facebook.com'), ('yandex.ru'), ('baidu.com'); +INSERT INTO clicks VALUES ('facebook.com'), ('yandex.ru'), ('google.com'); +INSERT INTO transactions VALUES ('facebook.com'), ('yandex.ru'), ('baidu.com'); SELECT @@ -17,14 +17,14 @@ FROM COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain ) GROUP BY domain @@ -42,14 +42,14 @@ FROM COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain ) GROUP BY domain @@ -69,14 +69,14 @@ FROM COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain ) GROUP BY domain @@ -94,14 +94,14 @@ FROM COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain ) GROUP BY domain @@ -122,14 +122,14 @@ FROM COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain ) GROUP BY domain @@ -148,14 +148,14 @@ FROM COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain ) GROUP BY domain @@ -176,14 +176,14 @@ FROM COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain ) GROUP BY domain @@ -201,14 +201,14 @@ FROM COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain ) GROUP BY domain @@ -230,14 +230,14 @@ FROM COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain ) GROUP BY domain @@ -255,14 +255,14 @@ FROM COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain ) GROUP BY domain @@ -284,14 +284,14 @@ FROM COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain ) GROUP BY domain @@ -309,14 +309,14 @@ FROM COUNT(*) AS total_count, SUM(if(domain = 'facebook.com', 1, 0)) AS facebookHits, domain - FROM test.clicks + FROM clicks GROUP BY domain UNION ALL SELECT COUNT(*) AS total_count, toUInt64(0) AS facebookHits, domain - FROM test.transactions + FROM transactions GROUP BY domain ) GROUP BY domain @@ -327,5 +327,5 @@ USING (total, domain) ORDER BY total, domain; -DROP TABLE test.clicks; -DROP TABLE test.transactions; +DROP TABLE clicks; +DROP TABLE transactions; diff --git a/dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql b/dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql index 41ab4e7d8e7..480c4d63c16 100644 --- a/dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql +++ b/dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql @@ -1,15 +1,15 @@ -DROP TABLE IF EXISTS test.mergetree; -DROP TABLE IF EXISTS test.distributed; +DROP TABLE IF EXISTS test.mergetree_00588; +DROP TABLE IF EXISTS test.distributed_00588; -CREATE TABLE test.mergetree (x UInt64, s String) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.mergetree VALUES (1, 'hello'), (2, 'world'); +CREATE TABLE test.mergetree_00588 (x UInt64, s String) ENGINE = MergeTree ORDER BY x; +INSERT INTO test.mergetree_00588 VALUES (1, 'hello'), (2, 'world'); -SELECT * FROM test.mergetree PREWHERE x = 1 WHERE s LIKE '%l%' ORDER BY x, s; -SELECT * FROM remote('127.0.0.{1,2,3}', test.mergetree) PREWHERE x = 1 WHERE s LIKE '%l%' ORDER BY x, s; +SELECT * FROM test.mergetree_00588 PREWHERE x = 1 WHERE s LIKE '%l%' ORDER BY x, s; +SELECT * FROM remote('127.0.0.{1,2,3}', test.mergetree_00588) PREWHERE x = 1 WHERE s LIKE '%l%' ORDER BY x, s; -CREATE TABLE test.distributed AS test.mergetree ENGINE = Distributed(test_shard_localhost, test, mergetree); +CREATE TABLE test.distributed_00588 AS test.mergetree_00588 ENGINE = Distributed(test_shard_localhost, test, mergetree_00588); -SELECT * FROM test.distributed PREWHERE x = 1 WHERE s LIKE '%l%' ORDER BY x, s; +SELECT * FROM test.distributed_00588 PREWHERE x = 1 WHERE s LIKE '%l%' ORDER BY x, s; -DROP TABLE test.mergetree; -DROP TABLE test.distributed; +DROP TABLE test.mergetree_00588; +DROP TABLE test.distributed_00588; diff --git a/dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql b/dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql index 7f9a781985b..c4d653160fa 100644 --- a/dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql +++ b/dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql @@ -1,10 +1,10 @@ -DROP TABLE IF EXISTS test.columns; -CREATE TABLE test.columns (a UInt8, b UInt8, c UInt8) ENGINE = Memory; -INSERT INTO test.columns VALUES (1, 2, 3); +DROP TABLE IF EXISTS columns; +CREATE TABLE columns (a UInt8, b UInt8, c UInt8) ENGINE = Memory; +INSERT INTO columns VALUES (1, 2, 3); SET max_columns_to_read = 1; -SELECT a FROM (SELECT * FROM test.columns); -SELECT a FROM (SELECT * FROM (SELECT * FROM test.columns)); -SELECT a FROM (SELECT * FROM test.columns UNION ALL SELECT * FROM test.columns); +SELECT a FROM (SELECT * FROM columns); +SELECT a FROM (SELECT * FROM (SELECT * FROM columns)); +SELECT a FROM (SELECT * FROM columns UNION ALL SELECT * FROM columns); -DROP TABLE test.columns; +DROP TABLE columns; diff --git a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql b/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql index 54e47c78942..f8a17363506 100644 --- a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql +++ b/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.alias_local10; -DROP TABLE IF EXISTS test.alias10; +DROP TABLE IF EXISTS alias_local10; +DROP TABLE IF EXISTS alias10; -CREATE TABLE test.alias_local10 ( +CREATE TABLE alias_local10 ( Id Int8, EventDate Date DEFAULT '2000-01-01', field1 Int8, @@ -9,29 +9,29 @@ CREATE TABLE test.alias_local10 ( field3 ALIAS CASE WHEN field1 = 1 THEN field2 ELSE '0' END ) ENGINE = MergeTree(EventDate, (Id, EventDate), 8192); -CREATE TABLE test.alias10 AS test.alias_local10 ENGINE = Distributed(test_shard_localhost, test, alias_local10, cityHash64(Id)); +CREATE TABLE alias10 AS alias_local10 ENGINE = Distributed(test_shard_localhost, test, alias_local10, cityHash64(Id)); -INSERT INTO test.alias_local10 (Id, EventDate, field1, field2) VALUES (1, '2000-01-01', 1, '12345'), (2, '2000-01-01', 2, '54321'), (3, '2000-01-01', 0, ''); +INSERT INTO alias_local10 (Id, EventDate, field1, field2) VALUES (1, '2000-01-01', 1, '12345'), (2, '2000-01-01', 2, '54321'), (3, '2000-01-01', 0, ''); -SELECT field1, field2, field3 FROM test.alias_local10; -SELECT field1, field2, field3 FROM test.alias_local10 WHERE EventDate='2000-01-01'; -SELECT field1, field2 FROM test.alias_local10 WHERE EventDate='2000-01-01'; +SELECT field1, field2, field3 FROM alias_local10; +SELECT field1, field2, field3 FROM alias_local10 WHERE EventDate='2000-01-01'; +SELECT field1, field2 FROM alias_local10 WHERE EventDate='2000-01-01'; -SELECT field1, field2, field3 FROM test.alias10; -SELECT field1, field2, field3 FROM test.alias10 WHERE EventDate='2000-01-01'; -SELECT field1, field2 FROM test.alias10 WHERE EventDate='2000-01-01'; +SELECT field1, field2, field3 FROM alias10; +SELECT field1, field2, field3 FROM alias10 WHERE EventDate='2000-01-01'; +SELECT field1, field2 FROM alias10 WHERE EventDate='2000-01-01'; -SELECT field2, field3 FROM test.alias10 WHERE EventDate='2000-01-01'; -SELECT field3 FROM test.alias10 WHERE EventDate='2000-01-01'; -SELECT field2, field3 FROM test.alias10; -SELECT field3 FROM test.alias10; +SELECT field2, field3 FROM alias10 WHERE EventDate='2000-01-01'; +SELECT field3 FROM alias10 WHERE EventDate='2000-01-01'; +SELECT field2, field3 FROM alias10; +SELECT field3 FROM alias10; -SELECT field1 FROM test.alias10 WHERE field3 = '12345'; -SELECT field2 FROM test.alias10 WHERE field3 = '12345'; -SELECT field3 FROM test.alias10 WHERE field3 = '12345'; +SELECT field1 FROM alias10 WHERE field3 = '12345'; +SELECT field2 FROM alias10 WHERE field3 = '12345'; +SELECT field3 FROM alias10 WHERE field3 = '12345'; -DROP TABLE test.alias10; -CREATE TABLE test.alias10 ( +DROP TABLE alias10; +CREATE TABLE alias10 ( Id Int8, EventDate Date, field1 Int8, @@ -39,22 +39,22 @@ CREATE TABLE test.alias10 ( field3 String ) ENGINE = Distributed(test_shard_localhost, test, alias_local10); -SELECT field1, field2, field3 FROM test.alias_local10; -SELECT field1, field2, field3 FROM test.alias_local10 WHERE EventDate='2000-01-01'; -SELECT field1, field2 FROM test.alias_local10 WHERE EventDate='2000-01-01'; +SELECT field1, field2, field3 FROM alias_local10; +SELECT field1, field2, field3 FROM alias_local10 WHERE EventDate='2000-01-01'; +SELECT field1, field2 FROM alias_local10 WHERE EventDate='2000-01-01'; -SELECT field1, field2, field3 FROM test.alias10; -SELECT field1, field2, field3 FROM test.alias10 WHERE EventDate='2000-01-01'; -SELECT field1, field2 FROM test.alias10 WHERE EventDate='2000-01-01'; +SELECT field1, field2, field3 FROM alias10; +SELECT field1, field2, field3 FROM alias10 WHERE EventDate='2000-01-01'; +SELECT field1, field2 FROM alias10 WHERE EventDate='2000-01-01'; -SELECT field2, field3 FROM test.alias10 WHERE EventDate='2000-01-01'; -SELECT field3 FROM test.alias10 WHERE EventDate='2000-01-01'; -SELECT field2, field3 FROM test.alias10; -SELECT field3 FROM test.alias10; +SELECT field2, field3 FROM alias10 WHERE EventDate='2000-01-01'; +SELECT field3 FROM alias10 WHERE EventDate='2000-01-01'; +SELECT field2, field3 FROM alias10; +SELECT field3 FROM alias10; -SELECT field1 FROM test.alias10 WHERE field3 = '12345'; -SELECT field2 FROM test.alias10 WHERE field3 = '12345'; -SELECT field3 FROM test.alias10 WHERE field3 = '12345'; +SELECT field1 FROM alias10 WHERE field3 = '12345'; +SELECT field2 FROM alias10 WHERE field3 = '12345'; +SELECT field3 FROM alias10 WHERE field3 = '12345'; -DROP TABLE test.alias_local10; -DROP TABLE test.alias10; +DROP TABLE alias_local10; +DROP TABLE alias10; diff --git a/dbms/tests/queries/0_stateless/00595_insert_into_view.sh b/dbms/tests/queries/0_stateless/00595_insert_into_view.sh index ae3e7d40835..42071b26ec9 100755 --- a/dbms/tests/queries/0_stateless/00595_insert_into_view.sh +++ b/dbms/tests/queries/0_stateless/00595_insert_into_view.sh @@ -5,15 +5,15 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) exception_pattern="Code: 48.*Method write is not supported by storage View" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test;" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test_view;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test_view;" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.test (s String) ENGINE = Log;" -${CLICKHOUSE_CLIENT} --query "CREATE VIEW test.test_view AS SELECT * FROM test.test;" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE test (s String) ENGINE = Log;" +${CLICKHOUSE_CLIENT} --query "CREATE VIEW test_view AS SELECT * FROM test;" -(( `${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test_view VALUES('test_string');" 2>&1 | grep -c "$exception_pattern"` >= 1 )) && echo 1 || echo "NO MATCH" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES('test_string');" -${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.test;" +(( `${CLICKHOUSE_CLIENT} --query "INSERT INTO test_view VALUES('test_string');" 2>&1 | grep -c "$exception_pattern"` >= 1 )) && echo 1 || echo "NO MATCH" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES('test_string');" +${CLICKHOUSE_CLIENT} --query "SELECT * FROM test;" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test;" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test_view;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test_view;" diff --git a/dbms/tests/queries/0_stateless/00598_create_as_select_http.sh b/dbms/tests/queries/0_stateless/00598_create_as_select_http.sh index 8a9500e9137..e38cb5e216f 100755 --- a/dbms/tests/queries/0_stateless/00598_create_as_select_http.sh +++ b/dbms/tests/queries/0_stateless/00598_create_as_select_http.sh @@ -5,7 +5,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) set -e -o pipefail -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.test" -$CLICKHOUSE_CURL -sS -d 'CREATE TABLE test.test ENGINE = Memory AS SELECT 1' $CLICKHOUSE_URL -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.test" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.test" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test" +$CLICKHOUSE_CURL -sS -d 'CREATE TABLE test ENGINE = Memory AS SELECT 1' $CLICKHOUSE_URL_PARAMS +$CLICKHOUSE_CLIENT --query="SELECT * FROM test" +$CLICKHOUSE_CLIENT --query="DROP TABLE test" diff --git a/dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql b/dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql index c23583dd8c8..29d458d5165 100644 --- a/dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql +++ b/dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.test; -CREATE TABLE test.test(start Integer, end Integer) engine = Memory; -INSERT INTO test.test(start,end) VALUES (1,3),(2,7),(3,999),(4,7),(5,8); +DROP TABLE IF EXISTS test; +CREATE TABLE test(start Integer, end Integer) engine = Memory; +INSERT INTO test(start,end) VALUES (1,3),(2,7),(3,999),(4,7),(5,8); /* 1 2 3 4 5 6 7 8 9 @@ -14,7 +14,7 @@ INSERT INTO test.test(start,end) VALUES (1,3),(2,7),(3,999),(4,7),(5,8); 1 2 3 3 4 4 4 2 1 //intersections count for each point */ -SELECT maxIntersections(start,end) FROM test.test; -SELECT maxIntersectionsPosition(start,end) FROM test.test; +SELECT maxIntersections(start,end) FROM test; +SELECT maxIntersectionsPosition(start,end) FROM test; -DROP TABLE test.test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00607_index_in_in.sql b/dbms/tests/queries/0_stateless/00607_index_in_in.sql index a1e2efa6a71..2cd3af773d0 100644 --- a/dbms/tests/queries/0_stateless/00607_index_in_in.sql +++ b/dbms/tests/queries/0_stateless/00607_index_in_in.sql @@ -1,16 +1,16 @@ -DROP TABLE IF EXISTS test.merge_tree; -CREATE TABLE test.merge_tree (x UInt32) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1; -INSERT INTO test.merge_tree VALUES (0), (1); +DROP TABLE IF EXISTS merge_tree; +CREATE TABLE merge_tree (x UInt32) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1; +INSERT INTO merge_tree VALUES (0), (1); SET force_primary_key = 1; SET max_rows_to_read = 1; -SELECT count() FROM test.merge_tree WHERE x = 0; -SELECT count() FROM test.merge_tree WHERE toUInt32(x) = 0; -SELECT count() FROM test.merge_tree WHERE toUInt64(x) = 0; +SELECT count() FROM merge_tree WHERE x = 0; +SELECT count() FROM merge_tree WHERE toUInt32(x) = 0; +SELECT count() FROM merge_tree WHERE toUInt64(x) = 0; -SELECT count() FROM test.merge_tree WHERE x IN (0, 0); -SELECT count() FROM test.merge_tree WHERE toUInt32(x) IN (0, 0); -SELECT count() FROM test.merge_tree WHERE toUInt64(x) IN (0, 0); +SELECT count() FROM merge_tree WHERE x IN (0, 0); +SELECT count() FROM merge_tree WHERE toUInt32(x) IN (0, 0); +SELECT count() FROM merge_tree WHERE toUInt64(x) IN (0, 0); -DROP TABLE test.merge_tree; +DROP TABLE merge_tree; diff --git a/dbms/tests/queries/0_stateless/00609_mv_index_in_in.sql b/dbms/tests/queries/0_stateless/00609_mv_index_in_in.sql index da583a7c2f4..5d5151e6900 100644 --- a/dbms/tests/queries/0_stateless/00609_mv_index_in_in.sql +++ b/dbms/tests/queries/0_stateless/00609_mv_index_in_in.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS test; DROP TABLE IF EXISTS test_mv; diff --git a/dbms/tests/queries/0_stateless/00609_prewhere_and_default.sql b/dbms/tests/queries/0_stateless/00609_prewhere_and_default.sql index 15a76a592d3..f25717d6a91 100644 --- a/dbms/tests/queries/0_stateless/00609_prewhere_and_default.sql +++ b/dbms/tests/queries/0_stateless/00609_prewhere_and_default.sql @@ -1,13 +1,13 @@ -drop table if exists test.table; -create table test.table (key UInt64, val UInt64) engine = MergeTree order by key settings index_granularity=8192; -insert into test.table select number, number / 8192 from system.numbers limit 100000; -alter table test.table add column def UInt64 default val + 1; -select * from test.table prewhere val > 2 format Null; +drop table if exists `table`; +create table `table` (key UInt64, val UInt64) engine = MergeTree order by key settings index_granularity=8192; +insert into `table` select number, number / 8192 from system.numbers limit 100000; +alter table `table` add column def UInt64 default val + 1; +select * from `table` prewhere val > 2 format Null; -drop table if exists test.table; -create table test.table (key UInt64, val UInt64) engine = MergeTree order by key settings index_granularity=8192; -insert into test.table select number, number / 8192 from system.numbers limit 100000; -alter table test.table add column def UInt64; -select * from test.table prewhere val > 2 format Null; +drop table if exists `table`; +create table `table` (key UInt64, val UInt64) engine = MergeTree order by key settings index_granularity=8192; +insert into `table` select number, number / 8192 from system.numbers limit 100000; +alter table `table` add column def UInt64; +select * from `table` prewhere val > 2 format Null; -drop table if exists test.table; +drop table if exists `table`; diff --git a/dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql b/dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql index 5469318068e..182ef7a2eca 100644 --- a/dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql +++ b/dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.tab; -DROP TABLE IF EXISTS test.mv; +DROP TABLE IF EXISTS tab; +DROP TABLE IF EXISTS mv; -CREATE TABLE test.tab(d Date, x UInt32) ENGINE MergeTree(d, x, 8192); -CREATE MATERIALIZED VIEW test.mv(d Date, y UInt64) ENGINE MergeTree(d, y, 8192) AS SELECT d, x + 1 AS y FROM test.tab; +CREATE TABLE tab(d Date, x UInt32) ENGINE MergeTree(d, x, 8192); +CREATE MATERIALIZED VIEW mv(d Date, y UInt64) ENGINE MergeTree(d, y, 8192) AS SELECT d, x + 1 AS y FROM tab; -INSERT INTO test.tab VALUES ('2018-01-01', 1), ('2018-01-01', 2), ('2018-02-01', 3); +INSERT INTO tab VALUES ('2018-01-01', 1), ('2018-01-01', 2), ('2018-02-01', 3); SELECT '-- Before DROP PARTITION --'; -SELECT * FROM test.mv ORDER BY y; +SELECT * FROM mv ORDER BY y; -ALTER TABLE test.mv DROP PARTITION 201801; +ALTER TABLE mv DROP PARTITION 201801; SELECT '-- After DROP PARTITION --'; -SELECT * FROM test.mv ORDER BY y; +SELECT * FROM mv ORDER BY y; -DROP TABLE test.tab; -DROP TABLE test.mv; +DROP TABLE tab; +DROP TABLE mv; diff --git a/dbms/tests/queries/0_stateless/00611_zookeeper_different_checksums_formats.sql b/dbms/tests/queries/0_stateless/00611_zookeeper_different_checksums_formats.sql index 9076485cfa1..3fbb0d400f3 100644 --- a/dbms/tests/queries/0_stateless/00611_zookeeper_different_checksums_formats.sql +++ b/dbms/tests/queries/0_stateless/00611_zookeeper_different_checksums_formats.sql @@ -1,24 +1,24 @@ -DROP TABLE IF EXISTS test.table_old; -DROP TABLE IF EXISTS test.table_new; +DROP TABLE IF EXISTS table_old; +DROP TABLE IF EXISTS table_new; -CREATE TABLE test.table_old (k UInt64, d Array(String)) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/checksums_test', 'old') ORDER BY k SETTINGS use_minimalistic_checksums_in_zookeeper=0; -CREATE TABLE test.table_new (k UInt64, d Array(String)) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/checksums_test', 'new') ORDER BY k SETTINGS use_minimalistic_checksums_in_zookeeper=1; +CREATE TABLE table_old (k UInt64, d Array(String)) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/checksums_test', 'old') ORDER BY k SETTINGS use_minimalistic_checksums_in_zookeeper=0; +CREATE TABLE table_new (k UInt64, d Array(String)) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/checksums_test', 'new') ORDER BY k SETTINGS use_minimalistic_checksums_in_zookeeper=1; SET insert_quorum=2; -INSERT INTO test.table_old VALUES (0, []); +INSERT INTO table_old VALUES (0, []); SELECT value LIKE '%checksums format version: 4%' FROM system.zookeeper WHERE path='/clickhouse/test/tables/checksums_test/replicas/old/parts/all_0_0_0' AND name = 'checksums'; -INSERT INTO test.table_new VALUES (1, []); +INSERT INTO table_new VALUES (1, []); SELECT value LIKE '%checksums format version: 5%' FROM system.zookeeper WHERE path='/clickhouse/test/tables/checksums_test/replicas/new/parts/all_1_1_0' AND name = 'checksums'; -OPTIMIZE TABLE test.table_old; -SELECT * FROM test.table_old ORDER BY k; -SELECT * FROM test.table_new ORDER BY k; +OPTIMIZE TABLE table_old; +SELECT * FROM table_old ORDER BY k; +SELECT * FROM table_new ORDER BY k; SELECT 'DETACH'; -DETACH TABLE test.table_old; -ATTACH TABLE test.table_old (k UInt64, d Array(String)) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/checksums_test', 'old') ORDER BY k SETTINGS use_minimalistic_checksums_in_zookeeper=1; -SELECT * FROM test.table_old ORDER BY k; +DETACH TABLE table_old; +ATTACH TABLE table_old (k UInt64, d Array(String)) ENGINE = ReplicatedMergeTree('/clickhouse/test/tables/checksums_test', 'old') ORDER BY k SETTINGS use_minimalistic_checksums_in_zookeeper=1; +SELECT * FROM table_old ORDER BY k; -DROP TABLE IF EXISTS test.table_old; -DROP TABLE IF EXISTS test.table_new; \ No newline at end of file +DROP TABLE IF EXISTS table_old; +DROP TABLE IF EXISTS table_new; \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00612_http_max_query_size.sh b/dbms/tests/queries/0_stateless/00612_http_max_query_size.sh index 03c193c5c65..a0c3c637ae1 100755 --- a/dbms/tests/queries/0_stateless/00612_http_max_query_size.sh +++ b/dbms/tests/queries/0_stateless/00612_http_max_query_size.sh @@ -11,11 +11,11 @@ echo "select '1'" | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL}/?max_query_size=10 echo - echo "select '11'" | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL}/?max_query_size=10 -d @- 2>&1 | grep -o "Max query size exceeded" -echo 'drop table if exists test.tab' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'create table test.tab (key UInt64, val UInt64) engine = MergeTree order by key' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'into test.tab values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5)' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}/?max_query_size=30&query=insert" -d @- -echo 'select val from test.tab order by val' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'drop table test.tab' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'drop table if exists tab' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'create table tab (key UInt64, val UInt64) engine = MergeTree order by key' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'into tab values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5)' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}/?max_query_size=30&query=insert" -d @- +echo 'select val from tab order by val' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'drop table tab' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- echo " import requests diff --git a/dbms/tests/queries/0_stateless/00612_pk_in_tuple.sql b/dbms/tests/queries/0_stateless/00612_pk_in_tuple.sql index 54a38c5fcca..d558a9ffa04 100644 --- a/dbms/tests/queries/0_stateless/00612_pk_in_tuple.sql +++ b/dbms/tests/queries/0_stateless/00612_pk_in_tuple.sql @@ -1,45 +1,45 @@ create database if not exists test; -drop table if exists test.tab; -create table test.tab (key UInt64, arr Array(UInt64)) Engine = MergeTree order by key; -insert into test.tab values (1, [1]); -insert into test.tab values (2, [2]); +drop table if exists tab; +create table tab (key UInt64, arr Array(UInt64)) Engine = MergeTree order by key; +insert into tab values (1, [1]); +insert into tab values (2, [2]); select 'all'; -select * from test.tab order by key; +select * from tab order by key; select 'key, arrayJoin(arr) in (1, 1)'; -select key, arrayJoin(arr) as val from test.tab where (key, val) in (1, 1); +select key, arrayJoin(arr) as val from tab where (key, val) in (1, 1); select 'key, arrayJoin(arr) in ((1, 1), (2, 2))'; -select key, arrayJoin(arr) as val from test.tab where (key, val) in ((1, 1), (2, 2)) order by key; +select key, arrayJoin(arr) as val from tab where (key, val) in ((1, 1), (2, 2)) order by key; select '(key, left array join arr) in (1, 1)'; -select key from test.tab left array join arr as val where (key, val) in (1, 1); +select key from tab left array join arr as val where (key, val) in (1, 1); select '(key, left array join arr) in ((1, 1), (2, 2))'; -select key from test.tab left array join arr as val where (key, val) in ((1, 1), (2, 2)) order by key; +select key from tab left array join arr as val where (key, val) in ((1, 1), (2, 2)) order by key; -drop table if exists test.tab; -create table test.tab (key UInt64, n Nested(x UInt64)) Engine = MergeTree order by key; -insert into test.tab values (1, [1]); -insert into test.tab values (2, [2]); +drop table if exists tab; +create table tab (key UInt64, n Nested(x UInt64)) Engine = MergeTree order by key; +insert into tab values (1, [1]); +insert into tab values (2, [2]); select 'all'; -select * from test.tab order by key; +select * from tab order by key; select 'key, arrayJoin(n.x) in (1, 1)'; -select key, arrayJoin(n.x) as val from test.tab where (key, val) in (1, 1); +select key, arrayJoin(n.x) as val from tab where (key, val) in (1, 1); select 'key, arrayJoin(n.x) in ((1, 1), (2, 2))'; -select key, arrayJoin(n.x) as val from test.tab where (key, val) in ((1, 1), (2, 2)) order by key; +select key, arrayJoin(n.x) as val from tab where (key, val) in ((1, 1), (2, 2)) order by key; select '(key, left array join n.x) in (1, 1)'; -select key from test.tab left array join n.x as val where (key, val) in (1, 1); +select key from tab left array join n.x as val where (key, val) in (1, 1); select '(key, left array join n.x) in ((1, 1), (2, 2))'; -select key from test.tab left array join n.x as val where (key, val) in ((1, 1), (2, 2)) order by key; +select key from tab left array join n.x as val where (key, val) in ((1, 1), (2, 2)) order by key; select 'max(key) from tab where (key, left array join n.x) in (1, 1)'; -select max(key) from test.tab left array join `n.x` as val where (key, val) in ((1, 1)); -select max(key) from test.tab left array join n as val where (key, val.x) in (1, 1); +select max(key) from tab left array join `n.x` as val where (key, val) in ((1, 1)); +select max(key) from tab left array join n as val where (key, val.x) in (1, 1); select 'max(key) from tab where (key, left array join n.x) in ((1, 1), (2, 2))'; -select max(key) from test.tab left array join `n.x` as val where (key, val) in ((1, 1), (2, 2)); -select max(key) from test.tab left array join n as val where (key, val.x) in ((1, 1), (2, 2)); +select max(key) from tab left array join `n.x` as val where (key, val) in ((1, 1), (2, 2)); +select max(key) from tab left array join n as val where (key, val.x) in ((1, 1), (2, 2)); select 'max(key) from tab any left join (select key, arrayJoin(n.x) as val from tab) using key where (key, val) in (1, 1)'; -select max(key) from test.tab any left join (select key, arrayJoin(n.x) as val from test.tab) using key where (key, val) in (1, 1); +select max(key) from tab any left join (select key, arrayJoin(n.x) as val from tab) using key where (key, val) in (1, 1); select 'max(key) from tab any left join (select key, arrayJoin(n.x) as val from tab) using key where (key, val) in ((1, 1), (2, 2))'; -select max(key) from test.tab any left join (select key, arrayJoin(n.x) as val from test.tab) using key where (key, val) in ((1, 1), (2, 2)); +select max(key) from tab any left join (select key, arrayJoin(n.x) as val from tab) using key where (key, val) in ((1, 1), (2, 2)); -drop table if exists test.tab; -CREATE TABLE test.tab (key1 Int32, id1 Int64, c1 Int64) ENGINE = MergeTree PARTITION BY id1 ORDER BY (key1) ; -insert into test.tab values ( -1, 1, 0 ); -SELECT count(*) FROM test.tab PREWHERE id1 IN (1); +drop table if exists tab; +CREATE TABLE tab (key1 Int32, id1 Int64, c1 Int64) ENGINE = MergeTree PARTITION BY id1 ORDER BY (key1) ; +insert into tab values ( -1, 1, 0 ); +SELECT count(*) FROM tab PREWHERE id1 IN (1); diff --git a/dbms/tests/queries/0_stateless/00614_array_nullable.sql b/dbms/tests/queries/0_stateless/00614_array_nullable.sql index 5e301821261..d62ddb8242c 100644 --- a/dbms/tests/queries/0_stateless/00614_array_nullable.sql +++ b/dbms/tests/queries/0_stateless/00614_array_nullable.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.test; -CREATE TABLE test.test(date Date, keys Array(Nullable(UInt8))) ENGINE = MergeTree(date, date, 1); -INSERT INTO test.test VALUES ('2017-09-10', [1, 2, 3, 4, 5, 6, 7, NULL]); -SELECT * FROM test.test LIMIT 1; -SELECT avgArray(keys) FROM test.test; -DROP TABLE test.test; +DROP TABLE IF EXISTS test; +CREATE TABLE test(date Date, keys Array(Nullable(UInt8))) ENGINE = MergeTree(date, date, 1); +INSERT INTO test VALUES ('2017-09-10', [1, 2, 3, 4, 5, 6, 7, NULL]); +SELECT * FROM test LIMIT 1; +SELECT avgArray(keys) FROM test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql b/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql index 8ab4d5e6f26..656a5bdafdf 100644 --- a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql +++ b/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql @@ -1,4 +1,3 @@ -USE test; DROP TABLE IF EXISTS test; CREATE TABLE test diff --git a/dbms/tests/queries/0_stateless/00616_final_single_part.sql b/dbms/tests/queries/0_stateless/00616_final_single_part.sql index fcd5a62f441..2468b9c5233 100644 --- a/dbms/tests/queries/0_stateless/00616_final_single_part.sql +++ b/dbms/tests/queries/0_stateless/00616_final_single_part.sql @@ -1,4 +1,3 @@ -USE test; DROP TABLE IF EXISTS test; DROP TABLE IF EXISTS replacing; diff --git a/dbms/tests/queries/0_stateless/00617_array_in.sql b/dbms/tests/queries/0_stateless/00617_array_in.sql index 4f54965572c..8e61c7dbd28 100644 --- a/dbms/tests/queries/0_stateless/00617_array_in.sql +++ b/dbms/tests/queries/0_stateless/00617_array_in.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS test_array_ops; CREATE TABLE test_array_ops(arr Array(Nullable(Int64))) ENGINE = Memory; diff --git a/dbms/tests/queries/0_stateless/00619_extract.sql b/dbms/tests/queries/0_stateless/00619_extract.sql index 034ae55b5e3..73f1bc061ca 100644 --- a/dbms/tests/queries/0_stateless/00619_extract.sql +++ b/dbms/tests/queries/0_stateless/00619_extract.sql @@ -10,12 +10,12 @@ SELECT extract(MONTH FROM toDateTime('2017-12-31 18:59:58')); SELECT EXTRACT(year FROM toDateTime('2017-12-31 18:59:58')); -DROP TABLE IF EXISTS test.Orders; -CREATE TABLE test.Orders (OrderId UInt64, OrderName String, OrderDate DateTime) engine = Log; -insert into test.Orders values (1, 'Jarlsberg Cheese', toDateTime('2008-10-11 13:23:44')); +DROP TABLE IF EXISTS Orders; +CREATE TABLE Orders (OrderId UInt64, OrderName String, OrderDate DateTime) engine = Log; +insert into Orders values (1, 'Jarlsberg Cheese', toDateTime('2008-10-11 13:23:44')); SELECT EXTRACT(YYYY FROM OrderDate) AS OrderYear, EXTRACT(MONTH FROM OrderDate) AS OrderMonth, EXTRACT(DAY FROM OrderDate) AS OrderDay, - EXTRACT(HOUR FROM OrderDate), EXTRACT(MINUTE FROM OrderDate), EXTRACT(SECOND FROM OrderDate) FROM test.Orders WHERE OrderId=1; -DROP TABLE test.Orders; + EXTRACT(HOUR FROM OrderDate), EXTRACT(MINUTE FROM OrderDate), EXTRACT(SECOND FROM OrderDate) FROM Orders WHERE OrderId=1; +DROP TABLE Orders; -- TODO: diff --git a/dbms/tests/queries/0_stateless/00619_union_highlite.sql b/dbms/tests/queries/0_stateless/00619_union_highlite.sql index 7897d43e241..9a41a132661 100644 --- a/dbms/tests/queries/0_stateless/00619_union_highlite.sql +++ b/dbms/tests/queries/0_stateless/00619_union_highlite.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS union; create view union as select 1 as test union all select 2; diff --git a/dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql b/dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql index 8cbdcc7202a..9622a5bd3c2 100644 --- a/dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql @@ -1,22 +1,22 @@ -DROP TABLE IF EXISTS test.rename1; -DROP TABLE IF EXISTS test.rename2; -DROP TABLE IF EXISTS test.rename3; -CREATE TABLE test.rename1 (p Int64, i Int64, v UInt64) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/test/tables/rename', '1', v) PARTITION BY p ORDER BY i; -CREATE TABLE test.rename2 (p Int64, i Int64, v UInt64) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/test/tables/rename', '2', v) PARTITION BY p ORDER BY i; +DROP TABLE IF EXISTS rename1; +DROP TABLE IF EXISTS rename2; +DROP TABLE IF EXISTS rename3; +CREATE TABLE rename1 (p Int64, i Int64, v UInt64) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/test/tables/rename', '1', v) PARTITION BY p ORDER BY i; +CREATE TABLE rename2 (p Int64, i Int64, v UInt64) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/test/tables/rename', '2', v) PARTITION BY p ORDER BY i; -INSERT INTO test.rename1 VALUES (0, 1, 0); -INSERT INTO test.rename1 VALUES (0, 1, 1); +INSERT INTO rename1 VALUES (0, 1, 0); +INSERT INTO rename1 VALUES (0, 1, 1); -OPTIMIZE TABLE test.rename1; -OPTIMIZE TABLE test.rename2; -SELECT * FROM test.rename1; +OPTIMIZE TABLE rename1; +OPTIMIZE TABLE rename2; +SELECT * FROM rename1; -RENAME TABLE test.rename2 TO test.rename3; +RENAME TABLE rename2 TO rename3; -INSERT INTO test.rename1 VALUES (0, 1, 2); -OPTIMIZE TABLE test.rename3; -SELECT * FROM test.rename1; +INSERT INTO rename1 VALUES (0, 1, 2); +OPTIMIZE TABLE rename3; +SELECT * FROM rename1; -DROP TABLE IF EXISTS test.rename1; -DROP TABLE IF EXISTS test.rename2; -DROP TABLE IF EXISTS test.rename3; +DROP TABLE IF EXISTS rename1; +DROP TABLE IF EXISTS rename2; +DROP TABLE IF EXISTS rename3; diff --git a/dbms/tests/queries/0_stateless/00621_regression_for_in_operator.sql b/dbms/tests/queries/0_stateless/00621_regression_for_in_operator.sql index b2a75529c23..84355a04df4 100644 --- a/dbms/tests/queries/0_stateless/00621_regression_for_in_operator.sql +++ b/dbms/tests/queries/0_stateless/00621_regression_for_in_operator.sql @@ -1,19 +1,19 @@ -DROP TABLE IF EXISTS test.regression_for_in_operator_view; -DROP TABLE IF EXISTS test.regression_for_in_operator; -CREATE TABLE test.regression_for_in_operator (d Date, v UInt32, g String) ENGINE=MergeTree(d, d, 8192); -CREATE MATERIALIZED VIEW test.regression_for_in_operator_view ENGINE=AggregatingMergeTree(d, (d,g), 8192) AS SELECT d, g, maxState(v) FROM test.regression_for_in_operator GROUP BY d, g; +DROP TABLE IF EXISTS regression_for_in_operator_view; +DROP TABLE IF EXISTS regression_for_in_operator; +CREATE TABLE regression_for_in_operator (d Date, v UInt32, g String) ENGINE=MergeTree(d, d, 8192); +CREATE MATERIALIZED VIEW regression_for_in_operator_view ENGINE=AggregatingMergeTree(d, (d,g), 8192) AS SELECT d, g, maxState(v) FROM regression_for_in_operator GROUP BY d, g; -INSERT INTO test.regression_for_in_operator SELECT today(), toString(number % 10), number FROM system.numbers limit 1000; +INSERT INTO regression_for_in_operator SELECT today(), toString(number % 10), number FROM system.numbers limit 1000; -SELECT count() FROM test.regression_for_in_operator_view WHERE g = '5'; -SELECT count() FROM test.regression_for_in_operator_view WHERE g IN ('5'); -SELECT count() FROM test.regression_for_in_operator_view WHERE g IN ('5','6'); +SELECT count() FROM regression_for_in_operator_view WHERE g = '5'; +SELECT count() FROM regression_for_in_operator_view WHERE g IN ('5'); +SELECT count() FROM regression_for_in_operator_view WHERE g IN ('5','6'); SET optimize_min_equality_disjunction_chain_length = 1; -SELECT count() FROM test.regression_for_in_operator_view WHERE g = '5' OR g = '6'; +SELECT count() FROM regression_for_in_operator_view WHERE g = '5' OR g = '6'; SET optimize_min_equality_disjunction_chain_length = 3; -SELECT count() FROM test.regression_for_in_operator_view WHERE g = '5' OR g = '6'; +SELECT count() FROM regression_for_in_operator_view WHERE g = '5' OR g = '6'; -DROP TABLE test.regression_for_in_operator_view; -DROP TABLE test.regression_for_in_operator; +DROP TABLE regression_for_in_operator_view; +DROP TABLE regression_for_in_operator; diff --git a/dbms/tests/queries/0_stateless/00623_in_partition_key.sql b/dbms/tests/queries/0_stateless/00623_in_partition_key.sql index 7b8a22a5872..0141151e369 100644 --- a/dbms/tests/queries/0_stateless/00623_in_partition_key.sql +++ b/dbms/tests/queries/0_stateless/00623_in_partition_key.sql @@ -1,75 +1,75 @@ -drop table if exists test.test54378; -create table test.test54378 (part_date Date, pk_date Date, date Date) Engine=MergeTree(part_date, pk_date, 8192); -insert into test.test54378 values ('2018-04-19', '2018-04-19', '2018-04-19'); +drop table if exists test54378; +create table test54378 (part_date Date, pk_date Date, date Date) Engine=MergeTree(part_date, pk_date, 8192); +insert into test54378 values ('2018-04-19', '2018-04-19', '2018-04-19'); -select 111 from test.test54378 where part_date = '2018-04-19'; -select 112 from test.test54378 where part_date in ('2018-04-19'); -select 113 from test.test54378 where pk_date in ('2018-04-19'); -select 114 from test.test54378 where date in ('2018-04-19'); +select 111 from test54378 where part_date = '2018-04-19'; +select 112 from test54378 where part_date in ('2018-04-19'); +select 113 from test54378 where pk_date in ('2018-04-19'); +select 114 from test54378 where date in ('2018-04-19'); SELECT '-'; -select 121 from test.test54378 where part_date = toDate('2018-04-19'); -select 122 from test.test54378 where part_date in (toDate('2018-04-19')); -select 123 from test.test54378 where pk_date in (toDate('2018-04-19')); -select 124 from test.test54378 where date in (toDate('2018-04-19')); +select 121 from test54378 where part_date = toDate('2018-04-19'); +select 122 from test54378 where part_date in (toDate('2018-04-19')); +select 123 from test54378 where pk_date in (toDate('2018-04-19')); +select 124 from test54378 where date in (toDate('2018-04-19')); SELECT '-'; -select 131 from test.test54378 where part_date = (SELECT toDate('2018-04-19')); -select 132 from test.test54378 where part_date in (SELECT toDate('2018-04-19')); -select 133 from test.test54378 where pk_date in (SELECT toDate('2018-04-19')); -select 134 from test.test54378 where date in (SELECT toDate('2018-04-19')); +select 131 from test54378 where part_date = (SELECT toDate('2018-04-19')); +select 132 from test54378 where part_date in (SELECT toDate('2018-04-19')); +select 133 from test54378 where pk_date in (SELECT toDate('2018-04-19')); +select 134 from test54378 where date in (SELECT toDate('2018-04-19')); SELECT '---'; -select 211 from test.test54378 prewhere part_date = '2018-04-19'; -select 212 from test.test54378 prewhere part_date in ('2018-04-19'); -select 213 from test.test54378 prewhere pk_date in ('2018-04-19'); -select 214 from test.test54378 prewhere date in ('2018-04-19'); +select 211 from test54378 prewhere part_date = '2018-04-19'; +select 212 from test54378 prewhere part_date in ('2018-04-19'); +select 213 from test54378 prewhere pk_date in ('2018-04-19'); +select 214 from test54378 prewhere date in ('2018-04-19'); SELECT '-'; -select 221 from test.test54378 prewhere part_date = toDate('2018-04-19'); -select 222 from test.test54378 prewhere part_date in (toDate('2018-04-19')); -select 223 from test.test54378 prewhere pk_date in (toDate('2018-04-19')); -select 224 from test.test54378 prewhere date in (toDate('2018-04-19')); +select 221 from test54378 prewhere part_date = toDate('2018-04-19'); +select 222 from test54378 prewhere part_date in (toDate('2018-04-19')); +select 223 from test54378 prewhere pk_date in (toDate('2018-04-19')); +select 224 from test54378 prewhere date in (toDate('2018-04-19')); SELECT '-'; -select 231 from test.test54378 prewhere part_date = (SELECT toDate('2018-04-19')); -select 232 from test.test54378 prewhere part_date in (SELECT toDate('2018-04-19')); -select 233 from test.test54378 prewhere pk_date in (SELECT toDate('2018-04-19')); -select 234 from test.test54378 prewhere date in (SELECT toDate('2018-04-19')); +select 231 from test54378 prewhere part_date = (SELECT toDate('2018-04-19')); +select 232 from test54378 prewhere part_date in (SELECT toDate('2018-04-19')); +select 233 from test54378 prewhere pk_date in (SELECT toDate('2018-04-19')); +select 234 from test54378 prewhere date in (SELECT toDate('2018-04-19')); SELECT '---'; SET optimize_move_to_prewhere = 0; -select 311 from test.test54378 where part_date = '2018-04-19'; -select 312 from test.test54378 where part_date in ('2018-04-19'); -select 313 from test.test54378 where pk_date in ('2018-04-19'); -select 314 from test.test54378 where date in ('2018-04-19'); +select 311 from test54378 where part_date = '2018-04-19'; +select 312 from test54378 where part_date in ('2018-04-19'); +select 313 from test54378 where pk_date in ('2018-04-19'); +select 314 from test54378 where date in ('2018-04-19'); SELECT '-'; -select 321 from test.test54378 where part_date = toDate('2018-04-19'); -select 322 from test.test54378 where part_date in (toDate('2018-04-19')); -select 323 from test.test54378 where pk_date in (toDate('2018-04-19')); -select 324 from test.test54378 where date in (toDate('2018-04-19')); +select 321 from test54378 where part_date = toDate('2018-04-19'); +select 322 from test54378 where part_date in (toDate('2018-04-19')); +select 323 from test54378 where pk_date in (toDate('2018-04-19')); +select 324 from test54378 where date in (toDate('2018-04-19')); SELECT '-'; -select 331 from test.test54378 where part_date = (SELECT toDate('2018-04-19')); -select 332 from test.test54378 where part_date in (SELECT toDate('2018-04-19')); -select 333 from test.test54378 where pk_date in (SELECT toDate('2018-04-19')); -select 334 from test.test54378 where date in (SELECT toDate('2018-04-19')); +select 331 from test54378 where part_date = (SELECT toDate('2018-04-19')); +select 332 from test54378 where part_date in (SELECT toDate('2018-04-19')); +select 333 from test54378 where pk_date in (SELECT toDate('2018-04-19')); +select 334 from test54378 where date in (SELECT toDate('2018-04-19')); SELECT '---'; SET optimize_move_to_prewhere = 1; -select 411 from test.test54378 where part_date = '2018-04-19'; -select 412 from test.test54378 where part_date in ('2018-04-19'); -select 413 from test.test54378 where pk_date in ('2018-04-19'); -select 414 from test.test54378 where date in ('2018-04-19'); +select 411 from test54378 where part_date = '2018-04-19'; +select 412 from test54378 where part_date in ('2018-04-19'); +select 413 from test54378 where pk_date in ('2018-04-19'); +select 414 from test54378 where date in ('2018-04-19'); SELECT '-'; -select 421 from test.test54378 where part_date = toDate('2018-04-19'); -select 422 from test.test54378 where part_date in (toDate('2018-04-19')); -select 423 from test.test54378 where pk_date in (toDate('2018-04-19')); -select 424 from test.test54378 where date in (toDate('2018-04-19')); +select 421 from test54378 where part_date = toDate('2018-04-19'); +select 422 from test54378 where part_date in (toDate('2018-04-19')); +select 423 from test54378 where pk_date in (toDate('2018-04-19')); +select 424 from test54378 where date in (toDate('2018-04-19')); SELECT '-'; -select 431 from test.test54378 where part_date = (SELECT toDate('2018-04-19')); -select 432 from test.test54378 where part_date in (SELECT toDate('2018-04-19')); -select 433 from test.test54378 where pk_date in (SELECT toDate('2018-04-19')); -select 434 from test.test54378 where date in (SELECT toDate('2018-04-19')); +select 431 from test54378 where part_date = (SELECT toDate('2018-04-19')); +select 432 from test54378 where part_date in (SELECT toDate('2018-04-19')); +select 433 from test54378 where pk_date in (SELECT toDate('2018-04-19')); +select 434 from test54378 where date in (SELECT toDate('2018-04-19')); -drop table test.test54378; +drop table test54378; diff --git a/dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql b/dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql index 8d6c735ac76..30e43a8f38c 100644 --- a/dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql @@ -1,30 +1,30 @@ -DROP TABLE IF EXISTS test.replicated_truncate1; -DROP TABLE IF EXISTS test.replicated_truncate2; +DROP TABLE IF EXISTS replicated_truncate1; +DROP TABLE IF EXISTS replicated_truncate2; -CREATE TABLE test.replicated_truncate1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/truncate', 'r1', d, k, 8192); -CREATE TABLE test.replicated_truncate2 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/truncate', 'r2', d, k, 8192); +CREATE TABLE replicated_truncate1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/truncate', 'r1', d, k, 8192); +CREATE TABLE replicated_truncate2 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/truncate', 'r2', d, k, 8192); SELECT '======Before Truncate======'; -INSERT INTO test.replicated_truncate1 VALUES ('2015-01-01', 10, 42); +INSERT INTO replicated_truncate1 VALUES ('2015-01-01', 10, 42); -SYSTEM SYNC REPLICA test.replicated_truncate2; +SYSTEM SYNC REPLICA replicated_truncate2; -SELECT * FROM test.replicated_truncate1 ORDER BY k; -SELECT * FROM test.replicated_truncate2 ORDER BY k; +SELECT * FROM replicated_truncate1 ORDER BY k; +SELECT * FROM replicated_truncate2 ORDER BY k; SELECT '======After Truncate And Empty======'; -TRUNCATE TABLE test.replicated_truncate1; +TRUNCATE TABLE replicated_truncate1; -SELECT * FROM test.replicated_truncate1 ORDER BY k; -SELECT * FROM test.replicated_truncate2 ORDER BY k; +SELECT * FROM replicated_truncate1 ORDER BY k; +SELECT * FROM replicated_truncate2 ORDER BY k; SELECT '======After Truncate And Insert Data======'; -INSERT INTO test.replicated_truncate1 VALUES ('2015-01-01', 10, 42); +INSERT INTO replicated_truncate1 VALUES ('2015-01-01', 10, 42); -SYSTEM SYNC REPLICA test.replicated_truncate2; +SYSTEM SYNC REPLICA replicated_truncate2; -SELECT * FROM test.replicated_truncate1 ORDER BY k; -SELECT * FROM test.replicated_truncate2 ORDER BY k; +SELECT * FROM replicated_truncate1 ORDER BY k; +SELECT * FROM replicated_truncate2 ORDER BY k; -DROP TABLE IF EXISTS test.replicated_truncate1; -DROP TABLE IF EXISTS test.replicated_truncate2; +DROP TABLE IF EXISTS replicated_truncate1; +DROP TABLE IF EXISTS replicated_truncate2; diff --git a/dbms/tests/queries/0_stateless/00623_truncate_table.sql b/dbms/tests/queries/0_stateless/00623_truncate_table.sql index ae987a20dee..97f85f920af 100644 --- a/dbms/tests/queries/0_stateless/00623_truncate_table.sql +++ b/dbms/tests/queries/0_stateless/00623_truncate_table.sql @@ -1,76 +1,76 @@ DROP DATABASE IF EXISTS truncate_test; -DROP TABLE IF EXISTS truncate_test.test_log; -DROP TABLE IF EXISTS truncate_test.test_memory; -DROP TABLE IF EXISTS truncate_test.test_tiny_log; -DROP TABLE IF EXISTS truncate_test.test_stripe_log; -DROP TABLE IF EXISTS truncate_test.test_merge_tree; -DROP TABLE IF EXISTS truncate_test.test_materialized_view; -DROP TABLE IF EXISTS truncate_test.test_materialized_depend; +DROP TABLE IF EXISTS truncate_test_log; +DROP TABLE IF EXISTS truncate_test_memory; +DROP TABLE IF EXISTS truncate_test_tiny_log; +DROP TABLE IF EXISTS truncate_test_stripe_log; +DROP TABLE IF EXISTS truncate_test_merge_tree; +DROP TABLE IF EXISTS truncate_test_materialized_view; +DROP TABLE IF EXISTS truncate_test_materialized_depend; CREATE DATABASE truncate_test; -CREATE TABLE truncate_test.test_set(id UInt64) ENGINE = Set; -CREATE TABLE truncate_test.test_log(id UInt64) ENGINE = Log; -CREATE TABLE truncate_test.test_memory(id UInt64) ENGINE = Memory; -CREATE TABLE truncate_test.test_tiny_log(id UInt64) ENGINE = TinyLog; -CREATE TABLE truncate_test.test_stripe_log(id UInt64) ENGINE = StripeLog; -CREATE TABLE truncate_test.test_merge_tree(p Date, k UInt64) ENGINE = MergeTree(p, k, 1); -CREATE TABLE truncate_test.test_materialized_depend(p Date, k UInt64) ENGINE = Null; -CREATE MATERIALIZED VIEW truncate_test.test_materialized_view ENGINE = MergeTree(p, k, 1) AS SELECT * FROM truncate_test.test_materialized_depend; +CREATE TABLE truncate_test_set(id UInt64) ENGINE = Set; +CREATE TABLE truncate_test_log(id UInt64) ENGINE = Log; +CREATE TABLE truncate_test_memory(id UInt64) ENGINE = Memory; +CREATE TABLE truncate_test_tiny_log(id UInt64) ENGINE = TinyLog; +CREATE TABLE truncate_test_stripe_log(id UInt64) ENGINE = StripeLog; +CREATE TABLE truncate_test_merge_tree(p Date, k UInt64) ENGINE = MergeTree(p, k, 1); +CREATE TABLE truncate_test_materialized_depend(p Date, k UInt64) ENGINE = Null; +CREATE MATERIALIZED VIEW truncate_test_materialized_view ENGINE = MergeTree(p, k, 1) AS SELECT * FROM truncate_test_materialized_depend; SELECT '======Before Truncate======'; -INSERT INTO truncate_test.test_set VALUES(0); -INSERT INTO truncate_test.test_log VALUES(1); -INSERT INTO truncate_test.test_memory VALUES(1); -INSERT INTO truncate_test.test_tiny_log VALUES(1); -INSERT INTO truncate_test.test_stripe_log VALUES(1); -INSERT INTO truncate_test.test_merge_tree VALUES('2000-01-01', 1); -INSERT INTO truncate_test.test_materialized_depend VALUES('2000-01-01', 1); -SELECT * FROM system.numbers WHERE number NOT IN truncate_test.test_set LIMIT 1; -SELECT * FROM truncate_test.test_log; -SELECT * FROM truncate_test.test_memory; -SELECT * FROM truncate_test.test_tiny_log; -SELECT * FROM truncate_test.test_stripe_log; -SELECT * FROM truncate_test.test_merge_tree; -SELECT * FROM truncate_test.test_materialized_view; +INSERT INTO truncate_test_set VALUES(0); +INSERT INTO truncate_test_log VALUES(1); +INSERT INTO truncate_test_memory VALUES(1); +INSERT INTO truncate_test_tiny_log VALUES(1); +INSERT INTO truncate_test_stripe_log VALUES(1); +INSERT INTO truncate_test_merge_tree VALUES('2000-01-01', 1); +INSERT INTO truncate_test_materialized_depend VALUES('2000-01-01', 1); +SELECT * FROM system.numbers WHERE number NOT IN truncate_test_set LIMIT 1; +SELECT * FROM truncate_test_log; +SELECT * FROM truncate_test_memory; +SELECT * FROM truncate_test_tiny_log; +SELECT * FROM truncate_test_stripe_log; +SELECT * FROM truncate_test_merge_tree; +SELECT * FROM truncate_test_materialized_view; SELECT '======After Truncate And Empty======'; -TRUNCATE TABLE truncate_test.test_set; -TRUNCATE TABLE truncate_test.test_log; -TRUNCATE TABLE truncate_test.test_memory; -TRUNCATE TABLE truncate_test.test_tiny_log; -TRUNCATE TABLE truncate_test.test_stripe_log; -TRUNCATE TABLE truncate_test.test_merge_tree; -TRUNCATE TABLE truncate_test.test_materialized_view; -SELECT * FROM system.numbers WHERE number NOT IN truncate_test.test_set LIMIT 1; -SELECT * FROM truncate_test.test_log; -SELECT * FROM truncate_test.test_memory; -SELECT * FROM truncate_test.test_tiny_log; -SELECT * FROM truncate_test.test_stripe_log; -SELECT * FROM truncate_test.test_merge_tree; -SELECT * FROM truncate_test.test_materialized_view; +TRUNCATE TABLE truncate_test_set; +TRUNCATE TABLE truncate_test_log; +TRUNCATE TABLE truncate_test_memory; +TRUNCATE TABLE truncate_test_tiny_log; +TRUNCATE TABLE truncate_test_stripe_log; +TRUNCATE TABLE truncate_test_merge_tree; +TRUNCATE TABLE truncate_test_materialized_view; +SELECT * FROM system.numbers WHERE number NOT IN truncate_test_set LIMIT 1; +SELECT * FROM truncate_test_log; +SELECT * FROM truncate_test_memory; +SELECT * FROM truncate_test_tiny_log; +SELECT * FROM truncate_test_stripe_log; +SELECT * FROM truncate_test_merge_tree; +SELECT * FROM truncate_test_materialized_view; SELECT '======After Truncate And Insert Data======'; -INSERT INTO truncate_test.test_set VALUES(0); -INSERT INTO truncate_test.test_log VALUES(1); -INSERT INTO truncate_test.test_memory VALUES(1); -INSERT INTO truncate_test.test_tiny_log VALUES(1); -INSERT INTO truncate_test.test_stripe_log VALUES(1); -INSERT INTO truncate_test.test_merge_tree VALUES('2000-01-01', 1); -INSERT INTO truncate_test.test_materialized_depend VALUES('2000-01-01', 1); -SELECT * FROM system.numbers WHERE number NOT IN truncate_test.test_set LIMIT 1; -SELECT * FROM truncate_test.test_log; -SELECT * FROM truncate_test.test_memory; -SELECT * FROM truncate_test.test_tiny_log; -SELECT * FROM truncate_test.test_stripe_log; -SELECT * FROM truncate_test.test_merge_tree; -SELECT * FROM truncate_test.test_materialized_view; +INSERT INTO truncate_test_set VALUES(0); +INSERT INTO truncate_test_log VALUES(1); +INSERT INTO truncate_test_memory VALUES(1); +INSERT INTO truncate_test_tiny_log VALUES(1); +INSERT INTO truncate_test_stripe_log VALUES(1); +INSERT INTO truncate_test_merge_tree VALUES('2000-01-01', 1); +INSERT INTO truncate_test_materialized_depend VALUES('2000-01-01', 1); +SELECT * FROM system.numbers WHERE number NOT IN truncate_test_set LIMIT 1; +SELECT * FROM truncate_test_log; +SELECT * FROM truncate_test_memory; +SELECT * FROM truncate_test_tiny_log; +SELECT * FROM truncate_test_stripe_log; +SELECT * FROM truncate_test_merge_tree; +SELECT * FROM truncate_test_materialized_view; -DROP TABLE IF EXISTS truncate_test.test_set; -DROP TABLE IF EXISTS truncate_test.test_log; -DROP TABLE IF EXISTS truncate_test.test_memory; -DROP TABLE IF EXISTS truncate_test.test_tiny_log; -DROP TABLE IF EXISTS truncate_test.test_stripe_log; -DROP TABLE IF EXISTS truncate_test.test_merge_tree; -DROP TABLE IF EXISTS truncate_test.test_materialized_view; -DROP TABLE IF EXISTS truncate_test.test_materialized_depend; +DROP TABLE IF EXISTS truncate_test_set; +DROP TABLE IF EXISTS truncate_test_log; +DROP TABLE IF EXISTS truncate_test_memory; +DROP TABLE IF EXISTS truncate_test_tiny_log; +DROP TABLE IF EXISTS truncate_test_stripe_log; +DROP TABLE IF EXISTS truncate_test_merge_tree; +DROP TABLE IF EXISTS truncate_test_materialized_view; +DROP TABLE IF EXISTS truncate_test_materialized_depend; DROP DATABASE IF EXISTS truncate_test; diff --git a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql b/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql index 7be1004131e..3b418731c8f 100644 --- a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql +++ b/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS nested; CREATE TABLE nested ( diff --git a/dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql b/dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql index dd629b7bb15..f7216b6da66 100644 --- a/dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql +++ b/dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.tab ; +DROP TABLE IF EXISTS tab ; -CREATE TABLE test.tab +CREATE TABLE tab ( date Date, key UInt32, @@ -10,7 +10,7 @@ CREATE TABLE test.tab ) ENGINE = SummingMergeTree(date, (date, key), 1); -INSERT INTO test.tab SELECT +INSERT INTO tab SELECT today(), number, [toUInt16(number)], @@ -18,7 +18,7 @@ INSERT INTO test.tab SELECT FROM system.numbers LIMIT 8190; -INSERT INTO test.tab SELECT +INSERT INTO tab SELECT today(), number + 8190, [toUInt16(number)], @@ -26,4 +26,4 @@ INSERT INTO test.tab SELECT FROM system.numbers LIMIT 10; -OPTIMIZE TABLE test.tab; +OPTIMIZE TABLE tab; diff --git a/dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh b/dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh index 954f10f8d98..3d83e9772c2 100755 --- a/dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh +++ b/dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh @@ -3,50 +3,50 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS csv"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo '"Hello, world"| 123| "2016-01-01" "Hello, ""world"""| "456"| 2016-01-02| Hello "world"| 789 |2016-01-03 "Hello - world"| 100| 2016-01-04|' | $CLICKHOUSE_CLIENT --format_csv_delimiter="|" --query="INSERT INTO test.csv FORMAT CSV"; + world"| 100| 2016-01-04|' | $CLICKHOUSE_CLIENT --format_csv_delimiter="|" --query="INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo '"Hello, world"; 123; "2016-01-01" "Hello, ""world"""; "456"; 2016-01-02; Hello "world"; 789 ;2016-01-03 "Hello - world"; 100; 2016-01-04;' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_delimiter=';'; INSERT INTO test.csv FORMAT CSV"; + world"; 100; 2016-01-04;' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_delimiter=';'; INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; -$CLICKHOUSE_CLIENT --format_csv_delimiter=";" --query="SELECT * FROM test.csv ORDER BY d FORMAT CSV"; -$CLICKHOUSE_CLIENT --format_csv_delimiter="/" --query="SELECT * FROM test.csv ORDER BY d FORMAT CSV"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; +$CLICKHOUSE_CLIENT --format_csv_delimiter=";" --query="SELECT * FROM csv ORDER BY d FORMAT CSV"; +$CLICKHOUSE_CLIENT --format_csv_delimiter="/" --query="SELECT * FROM csv ORDER BY d FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s1 String, s2 String) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s1 String, s2 String) ENGINE = Memory"; echo 'abc,def;hello; hello; world; -"hello ""world""";abc,def;' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_delimiter=';'; INSERT INTO test.csv FORMAT CSV"; +"hello ""world""";abc,def;' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_delimiter=';'; INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s1 String, s2 String) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s1 String, s2 String) ENGINE = Memory"; echo '"s1";"s2" abc,def;hello; hello; world; -"hello ""world""";abc,def;' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_delimiter=';'; INSERT INTO test.csv FORMAT CSVWithNames"; +"hello ""world""";abc,def;' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_delimiter=';'; INSERT INTO csv FORMAT CSVWithNames"; -$CLICKHOUSE_CLIENT --format_csv_delimiter=";" --query="SELECT * FROM test.csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --format_csv_delimiter="," --query="SELECT * FROM test.csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --format_csv_delimiter="/" --query="SELECT * FROM test.csv FORMAT CSV"; +$CLICKHOUSE_CLIENT --format_csv_delimiter=";" --query="SELECT * FROM csv FORMAT CSV"; +$CLICKHOUSE_CLIENT --format_csv_delimiter="," --query="SELECT * FROM csv FORMAT CSV"; +$CLICKHOUSE_CLIENT --format_csv_delimiter="/" --query="SELECT * FROM csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; diff --git a/dbms/tests/queries/0_stateless/00632_get_sample_block_cache.sql b/dbms/tests/queries/0_stateless/00632_get_sample_block_cache.sql index a15caadce89..ab557919413 100644 --- a/dbms/tests/queries/0_stateless/00632_get_sample_block_cache.sql +++ b/dbms/tests/queries/0_stateless/00632_get_sample_block_cache.sql @@ -1,9 +1,9 @@ -- This test (SELECT) without cache can take tens minutes -DROP TABLE IF EXISTS test.dict_string; -DROP TABLE IF EXISTS test.dict_ui64; -DROP TABLE IF EXISTS test.video_views; +DROP TABLE IF EXISTS dict_string; +DROP TABLE IF EXISTS dict_ui64; +DROP TABLE IF EXISTS video_views; -CREATE TABLE test.video_views +CREATE TABLE video_views ( entityIri String, courseId UInt64, @@ -33,30 +33,30 @@ PARTITION BY entityIri ORDER BY (learnerId, entityIri) SETTINGS index_granularity = 8192; -CREATE TABLE test.dict_string (entityIri String) ENGINE = Memory; -CREATE TABLE test.dict_ui64 (learnerId UInt64) ENGINE = Memory; +CREATE TABLE dict_string (entityIri String) ENGINE = Memory; +CREATE TABLE dict_ui64 (learnerId UInt64) ENGINE = Memory; ---SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count`, `time-before-full-watched-average`, if (isNaN((`overall-full-watched-learners-count`/`overall-watchers-count`) * 100), 0, (`overall-full-watched-learners-count`/`overall-watchers-count`) * 100) as `overall-watched-part`, if (isNaN((`full-watched-learners-count`/`watchers-count` * 100)), 0, (`full-watched-learners-count`/`watchers-count` * 100)) as `full-watched-part`, if (isNaN((`rejects-count`/`views-count` * 100)), 0, (`rejects-count`/`views-count` * 100)) as `rejects-part` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count`, `time-before-full-watched-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average` FROM (SELECT `entityIri`, `watchers-count` FROM (SELECT `entityIri` FROM `CloM8CwMR2`) ANY LEFT JOIN (SELECT uniq(learnerId) as `watchers-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewDurationSum) as `time-repeating-average`, `entityIri` FROM (SELECT sum(views.viewDuration) as viewDurationSum, `entityIri`, `learnerId` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `views`.`repeatingView` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `reject-views-duration-average`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewsCount) as `repeating-views-count-average`, `entityIri` FROM (SELECT count() as viewsCount, `learnerId`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `courseId` = 1 AND `entityIri` IN `CloM8CwMR2` WHERE `views`.`repeatingView` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `views-duration-average`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.watchedPart) as `watched-part-average`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `rejects-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(progressMax) as `progress-average`, `entityIri` FROM (SELECT max(views.progress) as progressMax, `entityIri`, `learnerId` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedViews) as `views-count-before-full-watched-average`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT any(duration) as `duration`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `full-watched-learners-count`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-watchers-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-full-watched-learners-count`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `views-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedTime) as `time-before-full-watched-average`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) FORMAT JSON; +--SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count`, `time-before-full-watched-average`, if (isNaN((`overall-full-watched-learners-count`/`overall-watchers-count`) * 100), 0, (`overall-full-watched-learners-count`/`overall-watchers-count`) * 100) as `overall-watched-part`, if (isNaN((`full-watched-learners-count`/`watchers-count` * 100)), 0, (`full-watched-learners-count`/`watchers-count` * 100)) as `full-watched-part`, if (isNaN((`rejects-count`/`views-count` * 100)), 0, (`rejects-count`/`views-count` * 100)) as `rejects-part` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count`, `time-before-full-watched-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average` FROM (SELECT `entityIri`, `watchers-count` FROM (SELECT `entityIri` FROM `CloM8CwMR2`) ANY LEFT JOIN (SELECT uniq(learnerId) as `watchers-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewDurationSum) as `time-repeating-average`, `entityIri` FROM (SELECT sum(views.viewDuration) as viewDurationSum, `entityIri`, `learnerId` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `views`.`repeatingView` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `reject-views-duration-average`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewsCount) as `repeating-views-count-average`, `entityIri` FROM (SELECT count() as viewsCount, `learnerId`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `courseId` = 1 AND `entityIri` IN `CloM8CwMR2` WHERE `views`.`repeatingView` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `views-duration-average`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.watchedPart) as `watched-part-average`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `rejects-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(progressMax) as `progress-average`, `entityIri` FROM (SELECT max(views.progress) as progressMax, `entityIri`, `learnerId` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedViews) as `views-count-before-full-watched-average`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT any(duration) as `duration`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `full-watched-learners-count`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-watchers-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-full-watched-learners-count`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `views-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedTime) as `time-before-full-watched-average`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN `CloM8CwMR2` AND `courseId` = 1 WHERE `learnerId` IN `tkRpHxGqM1` GROUP BY `entityIri`) USING `entityIri`) FORMAT JSON; SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count`, `time-before-full-watched-average`, if (isNaN((`overall-full-watched-learners-count`/`overall-watchers-count`) * 100), 0, (`overall-full-watched-learners-count`/`overall-watchers-count`) * 100) as `overall-watched-part`, if (isNaN((`full-watched-learners-count`/`watchers-count` * 100)), 0, (`full-watched-learners-count`/`watchers-count` * 100)) as `full-watched-part`, if (isNaN((`rejects-count`/`views-count` * 100)), 0, (`rejects-count`/`views-count` * 100)) as `rejects-part` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count`, `time-before-full-watched-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count`, `views-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count`, `overall-full-watched-learners-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count`, `overall-watchers-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration`, `full-watched-learners-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average`, `duration` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average`, `views-count-before-full-watched-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count`, `progress-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average`, `rejects-count` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average`, `watched-part-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average`, `repeating-views-count-average`, `views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, - `reject-views-duration-average`, `repeating-views-count-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average` FROM (SELECT `entityIri`, `watchers-count` FROM (SELECT `entityIri` FROM test.dict_string) ANY LEFT JOIN (SELECT uniq(learnerId) as `watchers-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewDurationSum) as `time-repeating-average`, `entityIri` FROM (SELECT sum(views.viewDuration) as viewDurationSum, `entityIri`, `learnerId` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `views`.`repeatingView` = 1 AND `learnerId` IN test.dict_ui64 GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `reject-views-duration-average`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewsCount) as `repeating-views-count-average`, `entityIri` FROM (SELECT count() as viewsCount, `learnerId`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `courseId` = 1 AND `entityIri` IN test.dict_string WHERE `views`.`repeatingView` = 1 AND `learnerId` IN test.dict_ui64 GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `views-duration-average`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.watchedPart) as `watched-part-average`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `rejects-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(progressMax) as `progress-average`, `entityIri` FROM (SELECT max(views.progress) as progressMax, `entityIri`, `learnerId` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedViews) as `views-count-before-full-watched-average`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT any(duration) as `duration`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `full-watched-learners-count`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-watchers-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-full-watched-learners-count`, - `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `views-count`, `entityIri` FROM `test`.`video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedTime) as `time-before-full-watched-average`, `entityIri` FROM `test`.`video_views` FINAL PREWHERE `entityIri` IN test.dict_string AND `courseId` = 1 WHERE `learnerId` IN test.dict_ui64 GROUP BY `entityIri`) USING `entityIri`); + `reject-views-duration-average`, `repeating-views-count-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average`, `reject-views-duration-average` FROM (SELECT `entityIri`, `watchers-count`, `time-repeating-average` FROM (SELECT `entityIri`, `watchers-count` FROM (SELECT `entityIri` FROM dict_string) ANY LEFT JOIN (SELECT uniq(learnerId) as `watchers-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewDurationSum) as `time-repeating-average`, `entityIri` FROM (SELECT sum(views.viewDuration) as viewDurationSum, `entityIri`, `learnerId` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `views`.`repeatingView` = 1 AND `learnerId` IN dict_ui64 GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `reject-views-duration-average`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(viewsCount) as `repeating-views-count-average`, `entityIri` FROM (SELECT count() as viewsCount, `learnerId`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `courseId` = 1 AND `entityIri` IN dict_string WHERE `views`.`repeatingView` = 1 AND `learnerId` IN dict_ui64 GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.viewDuration) as `views-duration-average`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(views.watchedPart) as `watched-part-average`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `rejects-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `views`.`reject` = 1 AND `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(progressMax) as `progress-average`, `entityIri` FROM (SELECT max(views.progress) as progressMax, `entityIri`, `learnerId` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `learnerId`, `entityIri`) GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedViews) as `views-count-before-full-watched-average`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT any(duration) as `duration`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `full-watched-learners-count`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-watchers-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT uniq(learnerId) as `overall-full-watched-learners-count`, + `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `fullWatched` = 1 AND `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT count() as `views-count`, `entityIri` FROM `video_views` FINAL ARRAY JOIN `views` PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`) ANY LEFT JOIN (SELECT avg(fullWatchedTime) as `time-before-full-watched-average`, `entityIri` FROM `video_views` FINAL PREWHERE `entityIri` IN dict_string AND `courseId` = 1 WHERE `learnerId` IN dict_ui64 GROUP BY `entityIri`) USING `entityIri`); SELECT 'Still alive'; -DROP TABLE test.dict_string; -DROP TABLE test.dict_ui64; -DROP TABLE test.video_views; +DROP TABLE dict_string; +DROP TABLE dict_ui64; +DROP TABLE video_views; -- Test for tsan: Ensure cache used from one thread SET max_threads = 32; -DROP TABLE IF EXISTS test.sample; +DROP TABLE IF EXISTS sample; -CREATE TABLE test.sample (d Date DEFAULT '2000-01-01', x UInt16) ENGINE = MergeTree(d, x, x, 10); -INSERT INTO test.sample (x) SELECT toUInt16(number) AS x FROM system.numbers LIMIT 65536; +CREATE TABLE sample (d Date DEFAULT '2000-01-01', x UInt16) ENGINE = MergeTree(d, x, x, 10); +INSERT INTO sample (x) SELECT toUInt16(number) AS x FROM system.numbers LIMIT 65536; SELECT count() FROM @@ -66,109 +66,109 @@ FROM count() AS c FROM ( - SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) - UNION ALL SELECT * FROM ( SELECT * FROM test.sample WHERE x > 0 ) + SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) + UNION ALL SELECT * FROM ( SELECT * FROM sample WHERE x > 0 ) ) GROUP BY x --HAVING c = 1 ORDER BY x ASC ); -DROP TABLE test.sample; +DROP TABLE sample; diff --git a/dbms/tests/queries/0_stateless/00633_func_or_in.sql b/dbms/tests/queries/0_stateless/00633_func_or_in.sql index 6f83b774eaf..8aa467b4ce8 100644 --- a/dbms/tests/queries/0_stateless/00633_func_or_in.sql +++ b/dbms/tests/queries/0_stateless/00633_func_or_in.sql @@ -1,8 +1,8 @@ -drop table if exists test.orin_test; +drop table if exists orin_test; -create table test.orin_test (c1 Int32) engine=Memory; -insert into test.orin_test values(1), (100); +create table orin_test (c1 Int32) engine=Memory; +insert into orin_test values(1), (100); -select minus(c1 = 1 or c1=2 or c1 =3, c1=5) from test.orin_test; +select minus(c1 = 1 or c1=2 or c1 =3, c1=5) from orin_test; -drop table test.orin_test; +drop table orin_test; diff --git a/dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh b/dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh index e4df41ccad8..2d853eebff7 100755 --- a/dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh +++ b/dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh @@ -4,36 +4,36 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.root" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.a" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.b" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.c" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS root" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS a" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS b" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS c" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.root (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/root', '1') ORDER BY d" -${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW test.a (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/a', '1') ORDER BY d AS SELECT * FROM test.root" -${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW test.b (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/b', '1') ORDER BY d SETTINGS parts_to_delay_insert=1, parts_to_throw_insert=1 AS SELECT * FROM test.root" -${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW test.c (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/c', '1') ORDER BY d AS SELECT * FROM test.root" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE root (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/root', '1') ORDER BY d" +${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW a (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/a', '1') ORDER BY d AS SELECT * FROM root" +${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW b (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/b', '1') ORDER BY d SETTINGS parts_to_delay_insert=1, parts_to_throw_insert=1 AS SELECT * FROM root" +${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW c (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/c', '1') ORDER BY d AS SELECT * FROM root" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.root VALUES (1)"; -${CLICKHOUSE_CLIENT} --query "SELECT _table, d FROM merge('test', '^[abc]\$') ORDER BY _table" -if ${CLICKHOUSE_CLIENT} --query "INSERT INTO test.root VALUES (2)" 2>/dev/null; then - echo "FAIL\nExpected 'too many parts' on table test.b" +${CLICKHOUSE_CLIENT} --query "INSERT INTO root VALUES (1)"; +${CLICKHOUSE_CLIENT} --query "SELECT _table, d FROM merge('${CLICKHOUSE_DATABASE}', '^[abc]\$') ORDER BY _table" +if ${CLICKHOUSE_CLIENT} --query "INSERT INTO root VALUES (2)" 2>/dev/null; then + echo "FAIL\nExpected 'too many parts' on table b" fi echo -${CLICKHOUSE_CLIENT} --query "SELECT _table, d FROM merge('test', '^[abc]\$') ORDER BY _table" +${CLICKHOUSE_CLIENT} --query "SELECT _table, d FROM merge('${CLICKHOUSE_DATABASE}', '^[abc]\$') ORDER BY _table" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.root" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.a" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.b" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.c" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS root" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS a" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS b" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS c" # Deduplication check for non-replicated root table echo -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.root (d UInt64) ENGINE = Null" -${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW test.a (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/a', '1') ORDER BY d AS SELECT * FROM test.root" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.root VALUES (1)"; -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.root VALUES (1)"; -${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.a"; -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.root" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.a" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE root (d UInt64) ENGINE = Null" +${CLICKHOUSE_CLIENT} --query "CREATE MATERIALIZED VIEW a (d UInt64) ENGINE = ReplicatedMergeTree('/clickhouse/test/a', '1') ORDER BY d AS SELECT * FROM root" +${CLICKHOUSE_CLIENT} --query "INSERT INTO root VALUES (1)"; +${CLICKHOUSE_CLIENT} --query "INSERT INTO root VALUES (1)"; +${CLICKHOUSE_CLIENT} --query "SELECT * FROM a"; +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS root" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS a" diff --git a/dbms/tests/queries/0_stateless/00634_logging_shard.sh b/dbms/tests/queries/0_stateless/00634_logging_shard.sh index 7df6e768a8b..1687072bbf1 100755 --- a/dbms/tests/queries/0_stateless/00634_logging_shard.sh +++ b/dbms/tests/queries/0_stateless/00634_logging_shard.sh @@ -30,18 +30,18 @@ lines_two_servers=`cat "$server_logs_file" | wc -l` (( $lines_two_servers >= 2 * $lines_one_server )) || echo "Fail: $lines_two_servers $lines_one_server" # INSERT -$CLICKHOUSE_CLIENT $settings -q "DROP TABLE IF EXISTS test.null" -$CLICKHOUSE_CLIENT $settings -q "CREATE TABLE test.null (i Int8) ENGINE = Null" +$CLICKHOUSE_CLIENT $settings -q "DROP TABLE IF EXISTS null" +$CLICKHOUSE_CLIENT $settings -q "CREATE TABLE null (i Int8) ENGINE = Null" > "$server_logs_file" -$CLICKHOUSE_CLIENT $settings -q "INSERT INTO test.null VALUES (0)" +$CLICKHOUSE_CLIENT $settings -q "INSERT INTO null VALUES (0)" lines_one_server=`cat "$server_logs_file" | wc -l` > "$server_logs_file" -$CLICKHOUSE_CLIENT $settings -q "INSERT INTO TABLE FUNCTION remote('127.0.0.2', 'test', 'null') VALUES (0)" +$CLICKHOUSE_CLIENT $settings -q "INSERT INTO TABLE FUNCTION remote('127.0.0.2', '${CLICKHOUSE_DATABASE}', 'null') VALUES (0)" lines_two_servers=`cat "$server_logs_file" | wc -l` -$CLICKHOUSE_CLIENT $settings -q "DROP TABLE IF EXISTS test.null" +$CLICKHOUSE_CLIENT $settings -q "DROP TABLE IF EXISTS null" (( $lines_two_servers > $lines_one_server )) || echo "Fail: $lines_two_servers $lines_one_server" diff --git a/dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh b/dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh index 47e9aa07476..395ab612f49 100755 --- a/dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh +++ b/dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh @@ -19,14 +19,14 @@ settings="$server_logs --log_queries=1 --log_query_threads=1 --log_profile_event # Test insert logging on each block and checkPacket() method $CLICKHOUSE_CLIENT $settings -n -q " -DROP TABLE IF EXISTS test.null; -CREATE TABLE test.null (i UInt8) ENGINE = MergeTree PARTITION BY tuple() ORDER BY tuple();" +DROP TABLE IF EXISTS null; +CREATE TABLE null (i UInt8) ENGINE = MergeTree PARTITION BY tuple() ORDER BY tuple();" -head -c 1000 /dev/zero | $CLICKHOUSE_CLIENT $settings --max_insert_block_size=10 --min_insert_block_size_rows=1 --min_insert_block_size_bytes=1 -q "INSERT INTO test.null FORMAT RowBinary" +head -c 1000 /dev/zero | $CLICKHOUSE_CLIENT $settings --max_insert_block_size=10 --min_insert_block_size_rows=1 --min_insert_block_size_bytes=1 -q "INSERT INTO null FORMAT RowBinary" $CLICKHOUSE_CLIENT $settings -n -q " -SELECT count() FROM test.null; -DROP TABLE test.null;" +SELECT count() FROM null; +DROP TABLE null;" (( `cat "$server_logs_file" | wc -l` >= 110 )) || echo Fail diff --git a/dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh b/dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh index cbd1e456688..a0291608c81 100755 --- a/dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh +++ b/dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh @@ -5,39 +5,39 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ${CLICKHOUSE_CLIENT} --query="SELECT '*** Single column partition key ***'" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.single_col_partition_key" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.single_col_partition_key(x UInt32) ENGINE MergeTree ORDER BY x PARTITION BY intDiv(x, 10)" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS single_col_partition_key" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE single_col_partition_key(x UInt32) ENGINE MergeTree ORDER BY x PARTITION BY intDiv(x, 10)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.single_col_partition_key VALUES (1), (2), (3), (4), (11), (12), (20)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO single_col_partition_key VALUES (1), (2), (3), (4), (11), (12), (20)" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.single_col_partition_key WHERE x < 3 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.single_col_partition_key WHERE x >= 11 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.single_col_partition_key WHERE x = 20 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM single_col_partition_key WHERE x < 3 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM single_col_partition_key WHERE x >= 11 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM single_col_partition_key WHERE x = 20 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.single_col_partition_key" +${CLICKHOUSE_CLIENT} --query="DROP TABLE single_col_partition_key" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Composite partition key ***'" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.composite_partition_key" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.composite_partition_key(a UInt32, b UInt32, c UInt32) ENGINE MergeTree ORDER BY c PARTITION BY (intDiv(a, 100), intDiv(b, 10), c)" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS composite_partition_key" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE composite_partition_key(a UInt32, b UInt32, c UInt32) ENGINE MergeTree ORDER BY c PARTITION BY (intDiv(a, 100), intDiv(b, 10), c)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.composite_partition_key VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO composite_partition_key VALUES \ (1, 1, 1), (2, 2, 1), (3, 3, 1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.composite_partition_key VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO composite_partition_key VALUES \ (100, 10, 2), (101, 11, 2), (102, 12, 2)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.composite_partition_key VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO composite_partition_key VALUES \ (200, 10, 2), (201, 11, 2), (202, 12, 2)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.composite_partition_key VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO composite_partition_key VALUES \ (301, 20, 3), (302, 21, 3), (303, 22, 3)" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE a > 400 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE b = 11 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE c = 4 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE a > 400 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE b = 11 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE c = 4 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE a < 200 AND c = 2 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE a = 301 AND b < 20 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE b >= 12 AND c = 2 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE a < 200 AND c = 2 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE a = 301 AND b < 20 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE b >= 12 AND c = 2 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.composite_partition_key WHERE a = 301 AND b = 21 AND c = 3 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM composite_partition_key WHERE a = 301 AND b = 21 AND c = 3 FORMAT XML" | grep -F rows_read | sed 's/^[ \t]*//g' -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.composite_partition_key" +${CLICKHOUSE_CLIENT} --query="DROP TABLE composite_partition_key" diff --git a/dbms/tests/queries/0_stateless/00639_startsWith.sql b/dbms/tests/queries/0_stateless/00639_startsWith.sql index 422332a3eb4..ae7649b8b8b 100644 --- a/dbms/tests/queries/0_stateless/00639_startsWith.sql +++ b/dbms/tests/queries/0_stateless/00639_startsWith.sql @@ -1,5 +1,3 @@ -USE test; - SELECT startsWith(s, 'He') FROM (SELECT arrayJoin(['', 'H', 'He', 'Hellow', '3434', 'fffffffffdHe']) AS s); SELECT startsWith(s, '') FROM (SELECT arrayJoin(['', 'h', 'hi']) AS s); SELECT startsWith('123', '123'); diff --git a/dbms/tests/queries/0_stateless/00640_endsWith.sql b/dbms/tests/queries/0_stateless/00640_endsWith.sql index c42a4618739..cd2e6a08e5c 100644 --- a/dbms/tests/queries/0_stateless/00640_endsWith.sql +++ b/dbms/tests/queries/0_stateless/00640_endsWith.sql @@ -1,5 +1,3 @@ -USE test; - SELECT endsWith(s, 'ow') FROM (SELECT arrayJoin(['', 'o', 'ow', 'Hellow', '3434', 'owfffffffdHe']) AS s); SELECT endsWith(s, '') FROM (SELECT arrayJoin(['', 'h', 'hi']) AS s); SELECT endsWith('123', '3'); diff --git a/dbms/tests/queries/0_stateless/00642_cast.sql b/dbms/tests/queries/0_stateless/00642_cast.sql index 4f0c1e7f699..26fcec938ed 100644 --- a/dbms/tests/queries/0_stateless/00642_cast.sql +++ b/dbms/tests/queries/0_stateless/00642_cast.sql @@ -17,8 +17,8 @@ SELECT cast(1, 'Enum8(\'hello\' = 1,\n\t\'world\' = 2)'); SELECT toTimeZone(CAST(1 AS TIMESTAMP), 'UTC'); -DROP TABLE IF EXISTS test.cast; -CREATE TABLE test.cast +DROP TABLE IF EXISTS cast; +CREATE TABLE cast ( x UInt8, e Enum8 @@ -39,10 +39,10 @@ CREATE TABLE test.cast ) ) ENGINE = MergeTree ORDER BY e; -SHOW CREATE TABLE test.cast FORMAT TSVRaw; -DESC TABLE test.cast; +SHOW CREATE TABLE cast FORMAT TSVRaw; +DESC TABLE cast; -INSERT INTO test.cast (x) VALUES (1); -SELECT * FROM test.cast; +INSERT INTO cast (x) VALUES (1); +SELECT * FROM cast; -DROP TABLE test.cast; +DROP TABLE cast; diff --git a/dbms/tests/queries/0_stateless/00643_cast_zookeeper.sql b/dbms/tests/queries/0_stateless/00643_cast_zookeeper.sql index 8ebfee12da5..cb4507c713f 100644 --- a/dbms/tests/queries/0_stateless/00643_cast_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00643_cast_zookeeper.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.cast1; -DROP TABLE IF EXISTS test.cast2; +DROP TABLE IF EXISTS cast1; +DROP TABLE IF EXISTS cast2; -CREATE TABLE test.cast1 +CREATE TABLE cast1 ( x UInt8, e Enum8 @@ -22,17 +22,17 @@ CREATE TABLE test.cast1 ) ) ENGINE = ReplicatedMergeTree('/clickhouse/tables/test_cast', 'r1') ORDER BY e; -SHOW CREATE TABLE test.cast1 FORMAT TSVRaw; -DESC TABLE test.cast1; +SHOW CREATE TABLE cast1 FORMAT TSVRaw; +DESC TABLE cast1; -INSERT INTO test.cast1 (x) VALUES (1); -SELECT * FROM test.cast1; +INSERT INTO cast1 (x) VALUES (1); +SELECT * FROM cast1; -CREATE TABLE test.cast2 AS test.cast1 ENGINE = ReplicatedMergeTree('/clickhouse/tables/test_cast', 'r2') ORDER BY e; +CREATE TABLE cast2 AS cast1 ENGINE = ReplicatedMergeTree('/clickhouse/tables/test_cast', 'r2') ORDER BY e; -SYSTEM SYNC REPLICA test.cast2; +SYSTEM SYNC REPLICA cast2; -SELECT * FROM test.cast2; +SELECT * FROM cast2; -DROP TABLE test.cast1; -DROP TABLE test.cast2; +DROP TABLE cast1; +DROP TABLE cast2; diff --git a/dbms/tests/queries/0_stateless/00646_weird_mmx.sql b/dbms/tests/queries/0_stateless/00646_weird_mmx.sql index f4af386c5d8..27016d3d627 100644 --- a/dbms/tests/queries/0_stateless/00646_weird_mmx.sql +++ b/dbms/tests/queries/0_stateless/00646_weird_mmx.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.weird_mmx; +DROP TABLE IF EXISTS weird_mmx; -CREATE TABLE test.weird_mmx (x Array(UInt64)) ENGINE = TinyLog; +CREATE TABLE weird_mmx (x Array(UInt64)) ENGINE = TinyLog; -- this triggers overlapping matches in LZ4 decompression routine; 915 is the minimum number -- see comment in LZ4_decompression_faster.cpp about usage of MMX registers -INSERT INTO test.weird_mmx SELECT range(number % 10) FROM system.numbers LIMIT 915; -SELECT sum(length(*)) FROM test.weird_mmx; +INSERT INTO weird_mmx SELECT range(number % 10) FROM system.numbers LIMIT 915; +SELECT sum(length(*)) FROM weird_mmx; -DROP TABLE test.weird_mmx; +DROP TABLE weird_mmx; diff --git a/dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.sql b/dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.sql index f2cf8a06334..ebf0c22d9d0 100644 --- a/dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.sql +++ b/dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.sql @@ -7,20 +7,20 @@ SELECT countMerge(x) AS y FROM ( SELECT 2 * countState() AS x FROM ( SELECT 1 )) SELECT countMerge(x) AS y FROM ( SELECT 0 * countState() AS x FROM ( SELECT 1 UNION ALL SELECT 2)); SELECT sumMerge(y) AS z FROM ( SELECT 3 * sumState(x) * 2 AS y FROM ( SELECT 1 AS x UNION ALL SELECT 2 AS x)); -DROP TABLE IF EXISTS test.mult_aggregation; -CREATE TABLE test.mult_aggregation(a UInt32, b UInt32) ENGINE = Memory; -INSERT INTO test.mult_aggregation VALUES(1, 1); -INSERT INTO test.mult_aggregation VALUES(1, 3); +DROP TABLE IF EXISTS mult_aggregation; +CREATE TABLE mult_aggregation(a UInt32, b UInt32) ENGINE = Memory; +INSERT INTO mult_aggregation VALUES(1, 1); +INSERT INTO mult_aggregation VALUES(1, 3); -SELECT sumMerge(x * 5), sumMerge(x) FROM (SELECT sumState(b) AS x FROM test.mult_aggregation); -SELECT uniqMerge(x * 10) FROM (SELECT uniqState(b) AS x FROM test.mult_aggregation); -SELECT maxMerge(x * 10) FROM (SELECT maxState(b) AS x FROM test.mult_aggregation); -SELECT avgMerge(x * 10) FROM (SELECT avgState(b) AS x FROM test.mult_aggregation); +SELECT sumMerge(x * 5), sumMerge(x) FROM (SELECT sumState(b) AS x FROM mult_aggregation); +SELECT uniqMerge(x * 10) FROM (SELECT uniqState(b) AS x FROM mult_aggregation); +SELECT maxMerge(x * 10) FROM (SELECT maxState(b) AS x FROM mult_aggregation); +SELECT avgMerge(x * 10) FROM (SELECT avgState(b) AS x FROM mult_aggregation); SELECT groupArrayMerge(y * 5) FROM (SELECT groupArrayState(x) AS y FROM (SELECT 1 AS x)); SELECT groupArrayMerge(2)(y * 5) FROM (SELECT groupArrayState(2)(x) AS y FROM (SELECT 1 AS x)); SELECT groupUniqArrayMerge(y * 5) FROM (SELECT groupUniqArrayState(x) AS y FROM (SELECT 1 AS x)); -SELECT sumMerge(y * a) FROM (SELECT a, sumState(b) AS y FROM test.mult_aggregation GROUP BY a); -- { serverError 44} +SELECT sumMerge(y * a) FROM (SELECT a, sumState(b) AS y FROM mult_aggregation GROUP BY a); -- { serverError 44} -DROP TABLE IF EXISTS test.mult_aggregation; +DROP TABLE IF EXISTS mult_aggregation; diff --git a/dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql b/dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql index aba76207d1d..1f873c94b18 100644 --- a/dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql +++ b/dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql @@ -1,5 +1,5 @@ -DROP TABLE IF EXISTS test.final_test; -CREATE TABLE test.final_test (id String, version Date) ENGINE = ReplacingMergeTree(version, id, 8192); -INSERT INTO test.final_test (id, version) VALUES ('2018-01-01', '2018-01-01'); -SELECT * FROM test.final_test FINAL PREWHERE id == '2018-01-02'; -DROP TABLE test.final_test; +DROP TABLE IF EXISTS final_test; +CREATE TABLE final_test (id String, version Date) ENGINE = ReplacingMergeTree(version, id, 8192); +INSERT INTO final_test (id, version) VALUES ('2018-01-01', '2018-01-01'); +SELECT * FROM final_test FINAL PREWHERE id == '2018-01-02'; +DROP TABLE final_test; diff --git a/dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql b/dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql index 9cdb963fea9..0948bdc8e51 100644 --- a/dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql +++ b/dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql @@ -1,21 +1,21 @@ -drop table if exists test.tab; -create table test.tab (val UInt32, n Nested(x UInt8, y String)) engine = Memory; -insert into test.tab values (1, [1, 2, 1, 1, 2, 1], ['a', 'a', 'b', 'a', 'b', 'b']); -select arrayEnumerateUniq(n.x) from test.tab; -select arrayEnumerateUniq(n.y) from test.tab; -select arrayEnumerateUniq(n.x, n.y) from test.tab; -select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y)) from test.tab; -select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), n.x) from test.tab; -select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), arrayMap((a, b) -> (b, a), n.x, n.y)) from test.tab; +drop table if exists tab; +create table tab (val UInt32, n Nested(x UInt8, y String)) engine = Memory; +insert into tab values (1, [1, 2, 1, 1, 2, 1], ['a', 'a', 'b', 'a', 'b', 'b']); +select arrayEnumerateUniq(n.x) from tab; +select arrayEnumerateUniq(n.y) from tab; +select arrayEnumerateUniq(n.x, n.y) from tab; +select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y)) from tab; +select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), n.x) from tab; +select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), arrayMap((a, b) -> (b, a), n.x, n.y)) from tab; -drop table test.tab; -create table test.tab (val UInt32, n Nested(x Nullable(UInt8), y String)) engine = Memory; -insert into test.tab values (1, [1, Null, 2, 1, 1, 2, 1, Null, Null], ['a', 'a', 'a', 'b', 'a', 'b', 'b', 'b', 'a']); -select arrayEnumerateUniq(n.x) from test.tab; -select arrayEnumerateUniq(n.y) from test.tab; -select arrayEnumerateUniq(n.x, n.y) from test.tab; -select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y)) from test.tab; -select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), n.x) from test.tab; -select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), arrayMap((a, b) -> (b, a), n.x, n.y)) from test.tab; +drop table tab; +create table tab (val UInt32, n Nested(x Nullable(UInt8), y String)) engine = Memory; +insert into tab values (1, [1, Null, 2, 1, 1, 2, 1, Null, Null], ['a', 'a', 'a', 'b', 'a', 'b', 'b', 'b', 'a']); +select arrayEnumerateUniq(n.x) from tab; +select arrayEnumerateUniq(n.y) from tab; +select arrayEnumerateUniq(n.x, n.y) from tab; +select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y)) from tab; +select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), n.x) from tab; +select arrayEnumerateUniq(arrayMap((a, b) -> (a, b), n.x, n.y), arrayMap((a, b) -> (b, a), n.x, n.y)) from tab; -drop table test.tab; +drop table tab; diff --git a/dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh b/dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh index 5066f3466d8..bda721426c7 100755 --- a/dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh +++ b/dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh @@ -3,42 +3,42 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo "'single quote' not end, 123, 2016-01-01 -'em good, 456, 2016-01-02" | $CLICKHOUSE_CLIENT --format_csv_allow_single_quotes=0 --query="INSERT INTO test.csv FORMAT CSV"; +'em good, 456, 2016-01-02" | $CLICKHOUSE_CLIENT --format_csv_allow_single_quotes=0 --query="INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo "'single quote' not end, 123, 2016-01-01 -'em good, 456, 2016-01-02" | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_allow_single_quotes=0; INSERT INTO test.csv FORMAT CSV"; +'em good, 456, 2016-01-02" | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_allow_single_quotes=0; INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo '"double quote" not end, 123, 2016-01-01 -"em good, 456, 2016-01-02' | $CLICKHOUSE_CLIENT --format_csv_allow_double_quotes=0 --query="INSERT INTO test.csv FORMAT CSV"; +"em good, 456, 2016-01-02' | $CLICKHOUSE_CLIENT --format_csv_allow_double_quotes=0 --query="INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.csv (s String, n UInt64, d Date) ENGINE = Memory"; +$CLICKHOUSE_CLIENT --query="CREATE TABLE csv (s String, n UInt64, d Date) ENGINE = Memory"; echo '"double quote" not end, 123, 2016-01-01 -"em good, 456, 2016-01-02' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_allow_double_quotes=0; INSERT INTO test.csv FORMAT CSV"; +"em good, 456, 2016-01-02' | $CLICKHOUSE_CLIENT --multiquery --query="SET format_csv_allow_double_quotes=0; INSERT INTO csv FORMAT CSV"; -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.csv ORDER BY d"; +$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY d"; -$CLICKHOUSE_CLIENT --query="DROP TABLE test.csv"; +$CLICKHOUSE_CLIENT --query="DROP TABLE csv"; diff --git a/dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh b/dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh index 8fad8b96100..e0a7c8e01ef 100755 --- a/dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh +++ b/dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh @@ -3,4 +3,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --ignore-error --multiquery --query "USE test; DROP TABLE IF EXISTS tab; CREATE TABLE tab (val UInt64) engine = Memory; SHOW CREATE TABLE tab format abcd; DESC tab; DROP TABLE tab;" ||: 2> /dev/null +${CLICKHOUSE_CLIENT} --ignore-error --multiquery --query "DROP TABLE IF EXISTS tab; CREATE TABLE tab (val UInt64) engine = Memory; SHOW CREATE TABLE tab format abcd; DESC tab; DROP TABLE tab;" ||: 2> /dev/null diff --git a/dbms/tests/queries/0_stateless/00652_mergetree_mutations.sh b/dbms/tests/queries/0_stateless/00652_mergetree_mutations.sh index a11377fac81..ca439775696 100755 --- a/dbms/tests/queries/0_stateless/00652_mergetree_mutations.sh +++ b/dbms/tests/queries/0_stateless/00652_mergetree_mutations.sh @@ -5,70 +5,70 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.mutations" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.mutations(d Date, x UInt32, s String, a UInt32 ALIAS x + 1, m MATERIALIZED x + 2) ENGINE MergeTree(d, intDiv(x, 10), 8192)" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE mutations(d Date, x UInt32, s String, a UInt32 ALIAS x + 1, m MATERIALIZED x + 2) ENGINE MergeTree(d, intDiv(x, 10), 8192)" # Test a mutation on empty table -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations DELETE WHERE x = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations DELETE WHERE x = 1" # Insert some data -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations(d, x, s) VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations(d, x, s) VALUES \ ('2000-01-01', 1, 'a')" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations(d, x, s) VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations(d, x, s) VALUES \ ('2000-01-01', 2, 'b'), ('2000-01-01', 3, 'c'), ('2000-01-01', 4, 'd') \ ('2000-02-01', 2, 'b'), ('2000-02-01', 3, 'c'), ('2000-02-01', 4, 'd')" # Try some malformed queries that should fail validation. -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations DELETE WHERE nonexistent = 0" 2>/dev/null || echo "Query should fail 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations DELETE WHERE d = '11'" 2>/dev/null || echo "Query should fail 2" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations DELETE WHERE nonexistent = 0" 2>/dev/null || echo "Query should fail 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations DELETE WHERE d = '11'" 2>/dev/null || echo "Query should fail 2" # TODO: Queries involving alias columns are not supported yet and should fail on submission. -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations UPDATE s = s || '' WHERE a = 0" 2>/dev/null || echo "Query involving aliases should fail on submission" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations UPDATE s = s || '' WHERE a = 0" 2>/dev/null || echo "Query involving aliases should fail on submission" # Delete some values -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations DELETE WHERE x % 2 = 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations DELETE WHERE s = 'd'" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations DELETE WHERE m = 3" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations DELETE WHERE x % 2 = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations DELETE WHERE s = 'd'" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations DELETE WHERE m = 3" # Insert more data -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations(d, x, s) VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations(d, x, s) VALUES \ ('2000-01-01', 5, 'e'), ('2000-02-01', 5, 'e')" # Wait until the last mutation is done. wait_for_mutation "mutations" "mutation_7.txt" # Check that the table contains only the data that should not be deleted. -${CLICKHOUSE_CLIENT} --query="SELECT d, x, s, m FROM test.mutations ORDER BY d, x" +${CLICKHOUSE_CLIENT} --query="SELECT d, x, s, m FROM mutations ORDER BY d, x" # Check the contents of the system.mutations table. ${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, command, block_numbers.partition_id, block_numbers.number, parts_to_do, is_done \ FROM system.mutations WHERE table = 'mutations' ORDER BY mutation_id" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test mutations cleaner ***'" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.mutations_cleaner" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_cleaner" # Create a table with finished_mutations_to_keep = 2 -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.mutations_cleaner(x UInt32) ENGINE MergeTree ORDER BY x SETTINGS finished_mutations_to_keep = 2" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE mutations_cleaner(x UInt32) ENGINE MergeTree ORDER BY x SETTINGS finished_mutations_to_keep = 2" # Insert some data -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations_cleaner(x) VALUES (1), (2), (3), (4)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations_cleaner(x) VALUES (1), (2), (3), (4)" # Add some mutations and wait for their execution -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner DELETE WHERE x = 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner DELETE WHERE x = 2" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner DELETE WHERE x = 3" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner DELETE WHERE x = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner DELETE WHERE x = 2" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner DELETE WHERE x = 3" wait_for_mutation "mutations_cleaner" "mutation_4.txt" # Sleep and then do an INSERT to wakeup the background task that will clean up the old mutations sleep 1 -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations_cleaner(x) VALUES (4)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations_cleaner(x) VALUES (4)" sleep 0.1 # Check that the first mutation is cleaned ${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, command, is_done FROM system.mutations WHERE table = 'mutations_cleaner' ORDER BY mutation_id" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations_cleaner" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations_cleaner" diff --git a/dbms/tests/queries/0_stateless/00652_mutations_alter_update.sh b/dbms/tests/queries/0_stateless/00652_mutations_alter_update.sh index 01a17481590..8dcc5f5c682 100755 --- a/dbms/tests/queries/0_stateless/00652_mutations_alter_update.sh +++ b/dbms/tests/queries/0_stateless/00652_mutations_alter_update.sh @@ -5,93 +5,93 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.alter_update" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS alter_update" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.alter_update \ +${CLICKHOUSE_CLIENT} --query="CREATE TABLE alter_update \ (d Date, key UInt32, value1 String, value2 UInt64, materialized_value String MATERIALIZED concat('materialized_', toString(value2 + 7))) \ ENGINE MergeTree ORDER BY key PARTITION BY toYYYYMM(d)" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test expected failures ***'" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update UPDATE d = today() WHERE 1" 2>/dev/null || echo "Updating partition key should fail" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update UPDATE key = 1 WHERE 1" 2>/dev/null || echo "Updating primary key should fail" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update UPDATE materialized_value = 'aaa' WHERE 1" 2>/dev/null || echo "Updating MATERIALIZED column should fail" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update UPDATE value1 = 'aaa' WHERE 'string'" 2>/dev/null || echo "Updating with non-UInt8 predicate should fail" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update UPDATE d = today() WHERE 1" 2>/dev/null || echo "Updating partition key should fail" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update UPDATE key = 1 WHERE 1" 2>/dev/null || echo "Updating primary key should fail" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update UPDATE materialized_value = 'aaa' WHERE 1" 2>/dev/null || echo "Updating MATERIALIZED column should fail" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update UPDATE value1 = 'aaa' WHERE 'string'" 2>/dev/null || echo "Updating with non-UInt8 predicate should fail" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test updating according to a predicate ***'" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.alter_update VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO alter_update VALUES \ ('2000-01-01', 123, 'abc', 1), \ ('2000-01-01', 234, 'cde', 2)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update UPDATE value1 = 'aaa', value2 = value2 + 100 WHERE key < 200" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update UPDATE value1 = 'aaa', value2 = value2 + 100 WHERE key < 200" wait_for_mutation "alter_update" "mutation_2.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.alter_update ORDER BY key" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM alter_update ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update DROP PARTITION 200001" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update DROP PARTITION 200001" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test several UPDATE commands with common subexpressions ***'" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.alter_update VALUES ('2000-01-01', 123, 'abc', 49)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO alter_update VALUES ('2000-01-01', 123, 'abc', 49)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update \ +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update \ UPDATE value2 = (value2 + 1) / 2 WHERE 1, \ UPDATE value2 = value2 + 1 WHERE 1" wait_for_mutation "alter_update" "mutation_4.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.alter_update ORDER BY key" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM alter_update ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update DROP PARTITION 200001" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update DROP PARTITION 200001" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test predicates with IN operator ***'" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.alter_update VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO alter_update VALUES \ ('2000-01-01', 123, 'abc', 10), \ ('2000-01-01', 234, 'cde', 20), \ ('2000-01-01', 345, 'fgh', 30), \ ('2000-01-01', 456, 'ijk', 40)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update \ +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update \ DELETE WHERE key IN (SELECT toUInt32(arrayJoin([121, 122, 123]))), \ UPDATE value1 = concat(value1, 'ccc') WHERE value2 IN (20, 30), \ UPDATE value1 = 'iii' WHERE value2 IN (SELECT toUInt64(40))" wait_for_mutation "alter_update" "mutation_6.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.alter_update ORDER BY key" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM alter_update ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update DROP PARTITION 200001" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update DROP PARTITION 200001" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test UPDATE of columns that DELETE depends on ***'" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.alter_update VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO alter_update VALUES \ ('2000-01-01', 123, 'abc', 10), \ ('2000-01-01', 234, 'cde', 20)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update \ +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update \ UPDATE value2 = value2 + 10 WHERE 1, \ DELETE WHERE value2 = 20" wait_for_mutation "alter_update" "mutation_8.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.alter_update ORDER BY key" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM alter_update ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update DROP PARTITION 200001" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update DROP PARTITION 200001" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test complex mixture of UPDATEs and DELETEs ***'" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.alter_update VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO alter_update VALUES \ ('2000-01-01', 123, 'abc', 10), \ ('2000-01-01', 234, 'cde', 20), \ ('2000-01-01', 345, 'fgh', 30), \ ('2000-01-01', 456, 'ijk', 40)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update \ +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update \ DELETE WHERE value2 IN (8, 9, 10), \ UPDATE value2 = value2 + 10 WHERE value2 <= 10, \ DELETE WHERE length(value1) + value2 = 23, \ @@ -99,36 +99,36 @@ ${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update \ UPDATE value1 = concat(value1, '_', materialized_value) WHERE key = 456" wait_for_mutation "alter_update" "mutation_10.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.alter_update ORDER BY key" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM alter_update ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update DROP PARTITION 200001" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update DROP PARTITION 200001" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test updating columns that MATERIALIZED columns depend on ***'" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.materialized_key" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS materialized_key" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.materialized_key \ +${CLICKHOUSE_CLIENT} --query="CREATE TABLE materialized_key \ (key UInt32 MATERIALIZED value + 1, value UInt32) \ ENGINE MergeTree ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.materialized_key UPDATE value = 1 WHERE 1" 2>/dev/null || echo "Updating column that MATERIALIZED key column depends on should fail" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE materialized_key UPDATE value = 1 WHERE 1" 2>/dev/null || echo "Updating column that MATERIALIZED key column depends on should fail" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.materialized_key" +${CLICKHOUSE_CLIENT} --query="DROP TABLE materialized_key" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.alter_update VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO alter_update VALUES \ ('2000-01-01', 123, 'abc', 10), \ ('2000-01-01', 234, 'cde', 20), \ ('2000-01-01', 345, 'fgh', 30), \ ('2000-01-01', 456, 'ijk', 40)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update \ +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update \ UPDATE value2 = value2 + 7 WHERE value2 <= 20" wait_for_mutation "alter_update" "mutation_12.txt" -${CLICKHOUSE_CLIENT} --query="SELECT value2, materialized_value FROM test.alter_update ORDER BY key" +${CLICKHOUSE_CLIENT} --query="SELECT value2, materialized_value FROM alter_update ORDER BY key" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.alter_update DROP PARTITION 200001" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE alter_update DROP PARTITION 200001" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.alter_update" +${CLICKHOUSE_CLIENT} --query="DROP TABLE alter_update" diff --git a/dbms/tests/queries/0_stateless/00652_mutations_default_database.sh b/dbms/tests/queries/0_stateless/00652_mutations_default_database.sh index bb142201e7c..5a83346f38b 100755 --- a/dbms/tests/queries/0_stateless/00652_mutations_default_database.sh +++ b/dbms/tests/queries/0_stateless/00652_mutations_default_database.sh @@ -6,10 +6,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib ${CLICKHOUSE_CLIENT} --multiquery << EOF -DROP TABLE IF EXISTS test.mutations; -DROP TABLE IF EXISTS test.for_subquery; - -USE test; +DROP TABLE IF EXISTS mutations; +DROP TABLE IF EXISTS for_subquery; CREATE TABLE mutations(x UInt32, y UInt32) ENGINE MergeTree ORDER BY x; INSERT INTO mutations VALUES (123, 1), (234, 2), (345, 3); @@ -23,7 +21,7 @@ EOF wait_for_mutation "mutations" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.mutations" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM mutations" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.for_subquery" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations" +${CLICKHOUSE_CLIENT} --query="DROP TABLE for_subquery" diff --git a/dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh b/dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh index 6d425e35d33..bd8cdfd889e 100755 --- a/dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh +++ b/dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh @@ -6,12 +6,10 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib ${CLICKHOUSE_CLIENT} --multiquery << EOF -DROP TABLE IF EXISTS test.mutations_r1; -DROP TABLE IF EXISTS test.for_subquery; +DROP TABLE IF EXISTS mutations_r1; +DROP TABLE IF EXISTS for_subquery; -USE test; - -CREATE TABLE mutations_r1(x UInt32, y UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations', 'r1') ORDER BY x; +CREATE TABLE mutations_r1(x UInt32, y UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/${CLICKHOUSE_DATABASE}/mutations', 'r1') ORDER BY x; INSERT INTO mutations_r1 VALUES (123, 1), (234, 2), (345, 3); CREATE TABLE for_subquery(x UInt32) ENGINE TinyLog; @@ -23,7 +21,7 @@ EOF wait_for_mutation "mutations_r1" "0000000001" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.mutations_r1" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM mutations_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.for_subquery" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE for_subquery" diff --git a/dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh b/dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh index 96f2263afad..e4b82cb80fa 100755 --- a/dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh +++ b/dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh @@ -5,40 +5,40 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.mutations_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.mutations_r2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_r2" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.mutations_r1(d Date, x UInt32, s String, m MATERIALIZED x + 2) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations', 'r1', d, intDiv(x, 10), 8192)" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.mutations_r2(d Date, x UInt32, s String, m MATERIALIZED x + 2) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations', 'r2', d, intDiv(x, 10), 8192)" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE mutations_r1(d Date, x UInt32, s String, m MATERIALIZED x + 2) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations', 'r1', d, intDiv(x, 10), 8192)" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE mutations_r2(d Date, x UInt32, s String, m MATERIALIZED x + 2) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations', 'r2', d, intDiv(x, 10), 8192)" # Test a mutation on empty table -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_r1 DELETE WHERE x = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_r1 DELETE WHERE x = 1" # Insert some data -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations_r1(d, x, s) VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations_r1(d, x, s) VALUES \ ('2000-01-01', 1, 'a')" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations_r1(d, x, s) VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations_r1(d, x, s) VALUES \ ('2000-01-01', 2, 'b'), ('2000-01-01', 3, 'c'), ('2000-01-01', 4, 'd') \ ('2000-02-01', 2, 'b'), ('2000-02-01', 3, 'c'), ('2000-02-01', 4, 'd')" # Try some malformed queries that should fail validation. -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_r1 DELETE WHERE nonexistent = 0" 2>/dev/null || echo "Query should fail 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_r1 DELETE WHERE d = '11'" 2>/dev/null || echo "Query should fail 2" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_r1 DELETE WHERE nonexistent = 0" 2>/dev/null || echo "Query should fail 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_r1 DELETE WHERE d = '11'" 2>/dev/null || echo "Query should fail 2" # Delete some values -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_r1 DELETE WHERE x % 2 = 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_r1 DELETE WHERE s = 'd'" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_r1 DELETE WHERE m = 3" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_r1 DELETE WHERE x % 2 = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_r1 DELETE WHERE s = 'd'" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_r1 DELETE WHERE m = 3" # Insert more data -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations_r1(d, x, s) VALUES \ +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations_r1(d, x, s) VALUES \ ('2000-01-01', 5, 'e'), ('2000-02-01', 5, 'e')" # Wait until the last mutation is done. wait_for_mutation "mutations_r2" "0000000003" # Check that the table contains only the data that should not be deleted. -${CLICKHOUSE_CLIENT} --query="SELECT d, x, s, m FROM test.mutations_r2 ORDER BY d, x" +${CLICKHOUSE_CLIENT} --query="SELECT d, x, s, m FROM mutations_r2 ORDER BY d, x" # Check the contents of the system.mutations table. ${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, command, block_numbers.partition_id, block_numbers.number, parts_to_do, is_done \ FROM system.mutations WHERE table = 'mutations_r2' ORDER BY mutation_id" @@ -46,32 +46,32 @@ ${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, command, block_numbers.partiti ${CLICKHOUSE_CLIENT} --query="SELECT '*** Test mutations cleaner ***'" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.mutations_cleaner_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.mutations_cleaner_r2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_cleaner_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS mutations_cleaner_r2" # Create 2 replicas with finished_mutations_to_keep = 2 -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.mutations_cleaner_r1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations_cleaner', 'r1') ORDER BY x SETTINGS \ +${CLICKHOUSE_CLIENT} --query="CREATE TABLE mutations_cleaner_r1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations_cleaner', 'r1') ORDER BY x SETTINGS \ finished_mutations_to_keep = 2, cleanup_delay_period = 1, cleanup_delay_period_random_add = 0" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.mutations_cleaner_r2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations_cleaner', 'r2') ORDER BY x SETTINGS \ +${CLICKHOUSE_CLIENT} --query="CREATE TABLE mutations_cleaner_r2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/mutations_cleaner', 'r2') ORDER BY x SETTINGS \ finished_mutations_to_keep = 2, cleanup_delay_period = 1, cleanup_delay_period_random_add = 0" # Insert some data -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.mutations_cleaner_r1(x) VALUES (1), (2), (3), (4)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO mutations_cleaner_r1(x) VALUES (1), (2), (3), (4)" # Add some mutations and wait for their execution -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner_r1 DELETE WHERE x = 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner_r1 DELETE WHERE x = 2" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner_r1 DELETE WHERE x = 3" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner_r1 DELETE WHERE x = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner_r1 DELETE WHERE x = 2" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner_r1 DELETE WHERE x = 3" wait_for_mutation "mutations_cleaner_r2" "0000000002" # Add another mutation and prevent its execution on the second replica -${CLICKHOUSE_CLIENT} --query="SYSTEM STOP REPLICATION QUEUES test.mutations_cleaner_r2" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.mutations_cleaner_r1 DELETE WHERE x = 4" +${CLICKHOUSE_CLIENT} --query="SYSTEM STOP REPLICATION QUEUES mutations_cleaner_r2" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE mutations_cleaner_r1 DELETE WHERE x = 4" # Sleep for more than cleanup_delay_period sleep 1.5 @@ -79,8 +79,8 @@ sleep 1.5 # Check that the first mutation is cleaned ${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, command, is_done FROM system.mutations WHERE table = 'mutations_cleaner_r2' ORDER BY mutation_id" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations_r2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations_r2" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations_cleaner_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.mutations_cleaner_r2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations_cleaner_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE mutations_cleaner_r2" diff --git a/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql b/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql index 29a44a4aa22..102c7a91e5c 100644 --- a/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql +++ b/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql @@ -1,4 +1,4 @@ -drop table if exists test.table; -create table test.table (val Int32) engine = MergeTree order by val; -insert into test.table values (-2), (0), (2); -select count() from test.table where toUInt64(val) == 0; +drop table if exists `table`; +create table `table` (val Int32) engine = MergeTree order by val; +insert into `table` values (-2), (0), (2); +select count() from `table` where toUInt64(val) == 0; diff --git a/dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh b/dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh index 0479abffe6b..4de52dc36b3 100755 --- a/dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh +++ b/dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh @@ -15,71 +15,71 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.string_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.fixed_string_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.signed_integer_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.unsigned_integer_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.enum_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.date_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS string_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS fixed_string_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS signed_integer_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS unsigned_integer_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS enum_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS date_test_table;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.string_test_table (val String) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.fixed_string_test_table (val FixedString(1)) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.signed_integer_test_table (val Int32) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.unsigned_integer_test_table (val UInt32) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.enum_test_table (val Enum16('hello' = 1, 'world' = 2, 'yandex' = 256, 'clickhouse' = 257)) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.date_test_table (val Date) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE string_test_table (val String) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE fixed_string_test_table (val FixedString(1)) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE signed_integer_test_table (val Int32) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE unsigned_integer_test_table (val UInt32) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE enum_test_table (val Enum16('hello' = 1, 'world' = 2, 'yandex' = 256, 'clickhouse' = 257)) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE date_test_table (val Date) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1;" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.string_test_table VALUES ('0'), ('2'), ('2');" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.fixed_string_test_table VALUES ('0'), ('2'), ('2');" +${CLICKHOUSE_CLIENT} --query="INSERT INTO string_test_table VALUES ('0'), ('2'), ('2');" +${CLICKHOUSE_CLIENT} --query="INSERT INTO fixed_string_test_table VALUES ('0'), ('2'), ('2');" # 131072 -> 17 bit is 1 -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.signed_integer_test_table VALUES (-2), (0), (2), (2), (131072), (131073), (131073);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.unsigned_integer_test_table VALUES (0), (2), (2), (131072), (131073), (131073);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.enum_test_table VALUES ('hello'), ('world'), ('world'), ('yandex'), ('clickhouse'), ('clickhouse');" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.date_test_table VALUES (1), (2), (2), (256), (257), (257);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO signed_integer_test_table VALUES (-2), (0), (2), (2), (131072), (131073), (131073);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO unsigned_integer_test_table VALUES (0), (2), (2), (131072), (131073), (131073);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO enum_test_table VALUES ('hello'), ('world'), ('world'), ('yandex'), ('clickhouse'), ('clickhouse');" +${CLICKHOUSE_CLIENT} --query="INSERT INTO date_test_table VALUES (1), (2), (2), (256), (257), (257);" CLICKHOUSE_CLIENT=`echo ${CLICKHOUSE_CLIENT} | sed 's/'"--send_logs_level=${CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL}"'/--send_logs_level=debug/g'` -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.string_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "3 marks to read from 1 ranges" && echo "no monotonic int case: String -> UInt64" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.fixed_string_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "3 marks to read from 1 ranges" && echo "no monotonic int case: FixedString -> UInt64" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM string_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "3 marks to read from 1 ranges" && echo "no monotonic int case: String -> UInt64" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM fixed_string_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "3 marks to read from 1 ranges" && echo "no monotonic int case: FixedString -> UInt64" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.signed_integer_test_table WHERE toInt64(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> Int64" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.signed_integer_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> UInt64" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.signed_integer_test_table WHERE toInt32(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> Int32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.signed_integer_test_table WHERE toUInt32(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> UInt32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.signed_integer_test_table WHERE toInt16(val) == 0;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Int32 -> Int16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.signed_integer_test_table WHERE toUInt16(val) == 0;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Int32 -> UInt16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM signed_integer_test_table WHERE toInt64(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> Int64" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM signed_integer_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> UInt64" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM signed_integer_test_table WHERE toInt32(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> Int32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM signed_integer_test_table WHERE toUInt32(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Int32 -> UInt32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM signed_integer_test_table WHERE toInt16(val) == 0;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Int32 -> Int16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM signed_integer_test_table WHERE toUInt16(val) == 0;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Int32 -> UInt16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.unsigned_integer_test_table WHERE toInt64(val) == 0;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: UInt32 -> Int64" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.unsigned_integer_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: UInt32 -> UInt64" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.unsigned_integer_test_table WHERE toInt32(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: UInt32 -> Int32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.unsigned_integer_test_table WHERE toUInt32(val) == 0;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: UInt32 -> UInt32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.unsigned_integer_test_table WHERE toInt16(val) == 0;" 2>&1 |grep -q "4 marks to read from" && echo "monotonic int case: UInt32 -> Int16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.unsigned_integer_test_table WHERE toUInt16(val) == 0;" 2>&1 |grep -q "4 marks to read from" && echo "monotonic int case: UInt32 -> UInt16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM unsigned_integer_test_table WHERE toInt64(val) == 0;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: UInt32 -> Int64" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM unsigned_integer_test_table WHERE toUInt64(val) == 0;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: UInt32 -> UInt64" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM unsigned_integer_test_table WHERE toInt32(val) == 0;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: UInt32 -> Int32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM unsigned_integer_test_table WHERE toUInt32(val) == 0;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: UInt32 -> UInt32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM unsigned_integer_test_table WHERE toInt16(val) == 0;" 2>&1 |grep -q "4 marks to read from" && echo "monotonic int case: UInt32 -> Int16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM unsigned_integer_test_table WHERE toUInt16(val) == 0;" 2>&1 |grep -q "4 marks to read from" && echo "monotonic int case: UInt32 -> UInt16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.enum_test_table WHERE toInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> Int32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.enum_test_table WHERE toUInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> UInt32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.enum_test_table WHERE toInt16(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> Int16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.enum_test_table WHERE toUInt16(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> UInt16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.enum_test_table WHERE toInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Enum16 -> Int8" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.enum_test_table WHERE toUInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Enum16 -> UInt8" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM enum_test_table WHERE toInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> Int32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM enum_test_table WHERE toUInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> UInt32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM enum_test_table WHERE toInt16(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> Int16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM enum_test_table WHERE toUInt16(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Enum16 -> UInt16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM enum_test_table WHERE toInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Enum16 -> Int8" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM enum_test_table WHERE toUInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Enum16 -> UInt8" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.date_test_table WHERE toInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Date -> Int32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.date_test_table WHERE toUInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Date -> UInt32" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.date_test_table WHERE toInt16(val) == 1;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Date -> Int16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.date_test_table WHERE toUInt16(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Date -> UInt16" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.date_test_table WHERE toInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Date -> Int8" -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.date_test_table WHERE toUInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Date -> UInt8" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM date_test_table WHERE toInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Date -> Int32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM date_test_table WHERE toUInt32(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Date -> UInt32" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM date_test_table WHERE toInt16(val) == 1;" 2>&1 |grep -q "2 marks to read from" && echo "monotonic int case: Date -> Int16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM date_test_table WHERE toUInt16(val) == 1;" 2>&1 |grep -q "1 marks to read from" && echo "monotonic int case: Date -> UInt16" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM date_test_table WHERE toInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Date -> Int8" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM date_test_table WHERE toUInt8(val) == 1;" 2>&1 |grep -q "5 marks to read from" && echo "monotonic int case: Date -> UInt8" CLICKHOUSE_CLIENT=`echo ${CLICKHOUSE_CLIENT} | sed 's/--send_logs_level=debug/'"--send_logs_level=${CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL}"'/g'` -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.string_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.fixed_string_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.signed_integer_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.unsigned_integer_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.enum_test_table;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.date_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS string_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS fixed_string_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS signed_integer_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS unsigned_integer_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS enum_test_table;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS date_test_table;" ${CLICKHOUSE_CLIENT} --query="SYSTEM START MERGES;" diff --git a/dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.sql b/dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.sql index 86b3a9f8032..8c1f2ebd361 100644 --- a/dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.sql +++ b/dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.sql @@ -1,17 +1,17 @@ -DROP TABLE IF EXISTS test.partitioned_by_tuple; +DROP TABLE IF EXISTS partitioned_by_tuple; -CREATE TABLE test.partitioned_by_tuple (d Date, x UInt8, w String, y UInt8) ENGINE SummingMergeTree (y) PARTITION BY (d, x) ORDER BY (d, x, w); +CREATE TABLE partitioned_by_tuple (d Date, x UInt8, w String, y UInt8) ENGINE SummingMergeTree (y) PARTITION BY (d, x) ORDER BY (d, x, w); -INSERT INTO test.partitioned_by_tuple VALUES ('2000-01-02', 1, 'first', 3); -INSERT INTO test.partitioned_by_tuple VALUES ('2000-01-01', 2, 'first', 2); -INSERT INTO test.partitioned_by_tuple VALUES ('2000-01-01', 1, 'first', 1), ('2000-01-01', 1, 'first', 2); +INSERT INTO partitioned_by_tuple VALUES ('2000-01-02', 1, 'first', 3); +INSERT INTO partitioned_by_tuple VALUES ('2000-01-01', 2, 'first', 2); +INSERT INTO partitioned_by_tuple VALUES ('2000-01-01', 1, 'first', 1), ('2000-01-01', 1, 'first', 2); -OPTIMIZE TABLE test.partitioned_by_tuple; +OPTIMIZE TABLE partitioned_by_tuple; -SELECT * FROM test.partitioned_by_tuple ORDER BY d, x, w, y; +SELECT * FROM partitioned_by_tuple ORDER BY d, x, w, y; -OPTIMIZE TABLE test.partitioned_by_tuple FINAL; +OPTIMIZE TABLE partitioned_by_tuple FINAL; -SELECT * FROM test.partitioned_by_tuple ORDER BY d, x, w, y; +SELECT * FROM partitioned_by_tuple ORDER BY d, x, w, y; -DROP TABLE test.partitioned_by_tuple; +DROP TABLE partitioned_by_tuple; diff --git a/dbms/tests/queries/0_stateless/00661_array_has_silviucpp.sql b/dbms/tests/queries/0_stateless/00661_array_has_silviucpp.sql index fa442110c7a..64af9d8d56d 100644 --- a/dbms/tests/queries/0_stateless/00661_array_has_silviucpp.sql +++ b/dbms/tests/queries/0_stateless/00661_array_has_silviucpp.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.has_function; +DROP TABLE IF EXISTS has_function; -CREATE TABLE test.has_function(arr Array(Nullable(String))) ENGINE = Memory; -INSERT INTO test.has_function(arr) values ([null, 'str1', 'str2']),(['str1', 'str2']), ([]), ([]); +CREATE TABLE has_function(arr Array(Nullable(String))) ENGINE = Memory; +INSERT INTO has_function(arr) values ([null, 'str1', 'str2']),(['str1', 'str2']), ([]), ([]); -SELECT arr, has(`arr`, 'str1') FROM test.has_function; +SELECT arr, has(`arr`, 'str1') FROM has_function; SELECT has([null, 'str1', 'str2'], 'str1'); -DROP TABLE test.has_function; +DROP TABLE has_function; diff --git a/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql b/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql index 4f241e96742..120c139c60f 100644 --- a/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql @@ -1,21 +1,21 @@ -DROP TABLE IF EXISTS test.partitioned_by_tuple_replica1; -DROP TABLE IF EXISTS test.partitioned_by_tuple_replica2; -CREATE TABLE test.partitioned_by_tuple_replica1(d Date, x UInt8, w String, y UInt8) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/partitioned_by_tuple', '1') PARTITION BY (d, x) ORDER BY (d, x, w); -CREATE TABLE test.partitioned_by_tuple_replica2(d Date, x UInt8, w String, y UInt8) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/partitioned_by_tuple', '2') PARTITION BY (d, x) ORDER BY (d, x, w); +DROP TABLE IF EXISTS partitioned_by_tuple_replica1; +DROP TABLE IF EXISTS partitioned_by_tuple_replica2; +CREATE TABLE partitioned_by_tuple_replica1(d Date, x UInt8, w String, y UInt8) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/partitioned_by_tuple', '1') PARTITION BY (d, x) ORDER BY (d, x, w); +CREATE TABLE partitioned_by_tuple_replica2(d Date, x UInt8, w String, y UInt8) ENGINE = ReplicatedSummingMergeTree('/clickhouse/tables/test/partitioned_by_tuple', '2') PARTITION BY (d, x) ORDER BY (d, x, w); -INSERT INTO test.partitioned_by_tuple_replica1 VALUES ('2000-01-02', 1, 'first', 3); -INSERT INTO test.partitioned_by_tuple_replica1 VALUES ('2000-01-01', 2, 'first', 2); -INSERT INTO test.partitioned_by_tuple_replica1 VALUES ('2000-01-01', 1, 'first', 1), ('2000-01-01', 1, 'first', 2); +INSERT INTO partitioned_by_tuple_replica1 VALUES ('2000-01-02', 1, 'first', 3); +INSERT INTO partitioned_by_tuple_replica1 VALUES ('2000-01-01', 2, 'first', 2); +INSERT INTO partitioned_by_tuple_replica1 VALUES ('2000-01-01', 1, 'first', 1), ('2000-01-01', 1, 'first', 2); -OPTIMIZE TABLE test.partitioned_by_tuple_replica1; +OPTIMIZE TABLE partitioned_by_tuple_replica1; -SYSTEM SYNC REPLICA test.partitioned_by_tuple_replica2; -SELECT * FROM test.partitioned_by_tuple_replica2 ORDER BY d, x, w, y; +SYSTEM SYNC REPLICA partitioned_by_tuple_replica2; +SELECT * FROM partitioned_by_tuple_replica2 ORDER BY d, x, w, y; -OPTIMIZE TABLE test.partitioned_by_tuple_replica1 FINAL; +OPTIMIZE TABLE partitioned_by_tuple_replica1 FINAL; -SYSTEM SYNC REPLICA test.partitioned_by_tuple_replica2; -SELECT * FROM test.partitioned_by_tuple_replica2 ORDER BY d, x, w, y; +SYSTEM SYNC REPLICA partitioned_by_tuple_replica2; +SELECT * FROM partitioned_by_tuple_replica2 ORDER BY d, x, w, y; -DROP TABLE test.partitioned_by_tuple_replica1; -DROP TABLE test.partitioned_by_tuple_replica2; +DROP TABLE partitioned_by_tuple_replica1; +DROP TABLE partitioned_by_tuple_replica2; diff --git a/dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql b/dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql index f5606c75f3e..35b59ddffc5 100644 --- a/dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql +++ b/dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.empty; -DROP TABLE IF EXISTS test.data; +DROP TABLE IF EXISTS empty; +DROP TABLE IF EXISTS data; -CREATE TABLE test.empty (value Int8) ENGINE = TinyLog; -CREATE TABLE test.data (value Int8) ENGINE = TinyLog; +CREATE TABLE empty (value Int8) ENGINE = TinyLog; +CREATE TABLE data (value Int8) ENGINE = TinyLog; -INSERT INTO test.data SELECT * FROM test.empty; -SELECT * FROM test.data; +INSERT INTO data SELECT * FROM empty; +SELECT * FROM data; -INSERT INTO test.data SELECT 1; -SELECT * FROM test.data; +INSERT INTO data SELECT 1; +SELECT * FROM data; -DROP TABLE test.empty; -DROP TABLE test.data; +DROP TABLE empty; +DROP TABLE data; diff --git a/dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql b/dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql index e0de4ec5b33..1d6a0fc787f 100644 --- a/dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql +++ b/dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.alter; -CREATE TABLE test.alter (`boolean_false` Nullable(String)) ENGINE = MergeTree ORDER BY tuple(); +DROP TABLE IF EXISTS alter; +CREATE TABLE alter (`boolean_false` Nullable(String)) ENGINE = MergeTree ORDER BY tuple(); -INSERT INTO test.alter (`boolean_false`) VALUES (NULL), (''), ('123'); -SELECT * FROM test.alter; -SELECT * FROM test.alter ORDER BY boolean_false NULLS LAST; +INSERT INTO alter (`boolean_false`) VALUES (NULL), (''), ('123'); +SELECT * FROM alter; +SELECT * FROM alter ORDER BY boolean_false NULLS LAST; -ALTER TABLE test.alter MODIFY COLUMN `boolean_false` Nullable(UInt8); -SELECT * FROM test.alter; -SELECT * FROM test.alter ORDER BY boolean_false NULLS LAST; +ALTER TABLE alter MODIFY COLUMN `boolean_false` Nullable(UInt8); +SELECT * FROM alter; +SELECT * FROM alter ORDER BY boolean_false NULLS LAST; -DROP TABLE test.alter; +DROP TABLE alter; diff --git a/dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql b/dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql index 5c164b1368e..5f6ad7c1d8e 100644 --- a/dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql +++ b/dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.array; -CREATE TABLE test.array (arr Array(Nullable(Float64))) ENGINE = Memory; -INSERT INTO test.array(arr) values ([1,2]),([3,4]),([5,6]),([7,8]); +DROP TABLE IF EXISTS array; +CREATE TABLE array (arr Array(Nullable(Float64))) ENGINE = Memory; +INSERT INTO array(arr) values ([1,2]),([3,4]),([5,6]),([7,8]); -select * from test.array where arr > [12.2]; -select * from test.array where arr > [null, 12.2]; -select * from test.array where arr > [null, 12]; +select * from array where arr > [12.2]; +select * from array where arr > [null, 12.2]; +select * from array where arr > [null, 12]; -DROP TABLE test.array; +DROP TABLE array; diff --git a/dbms/tests/queries/0_stateless/00671_max_intersections.sql b/dbms/tests/queries/0_stateless/00671_max_intersections.sql index 486a8e023a2..8e798b82137 100644 --- a/dbms/tests/queries/0_stateless/00671_max_intersections.sql +++ b/dbms/tests/queries/0_stateless/00671_max_intersections.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.test1; -DROP TABLE IF EXISTS test.test2; +DROP TABLE IF EXISTS test1; +DROP TABLE IF EXISTS test2; -CREATE TABLE test.test1(start Integer, end Integer) engine = Memory; -CREATE TABLE test.test2(start Integer, end Integer) engine = Memory; +CREATE TABLE test1(start Integer, end Integer) engine = Memory; +CREATE TABLE test2(start Integer, end Integer) engine = Memory; -INSERT INTO test.test1(start,end) VALUES (1,3),(3,5); -INSERT INTO test.test2(start,end) VALUES (3,5),(1,3); +INSERT INTO test1(start,end) VALUES (1,3),(3,5); +INSERT INTO test2(start,end) VALUES (3,5),(1,3); -SELECT maxIntersections(start,end) from test.test1; -SELECT maxIntersections(start,end) from test.test2; +SELECT maxIntersections(start,end) from test1; +SELECT maxIntersections(start,end) from test2; -DROP TABLE test.test1; -DROP TABLE test.test2; +DROP TABLE test1; +DROP TABLE test2; diff --git a/dbms/tests/queries/0_stateless/00672_arrayDistinct.sql b/dbms/tests/queries/0_stateless/00672_arrayDistinct.sql index 85cfb03fe94..8f7918b25ae 100644 --- a/dbms/tests/queries/0_stateless/00672_arrayDistinct.sql +++ b/dbms/tests/queries/0_stateless/00672_arrayDistinct.sql @@ -1,5 +1,3 @@ -USE test; - SELECT arrayDistinct([1, 2, 3]); SELECT arrayDistinct([1, 2, 3, 2, 2]); SELECT arrayDistinct([1, 2, NULL, 5, 2, NULL]); diff --git a/dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql b/dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql index 9a31bce2608..ed94a1aab30 100644 --- a/dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql +++ b/dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.mergetree; +DROP TABLE IF EXISTS mergetree; -CREATE TABLE test.mergetree (x UInt64) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.mergetree VALUES (1); +CREATE TABLE mergetree (x UInt64) ENGINE = MergeTree ORDER BY x; +INSERT INTO mergetree VALUES (1); -SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM test.mergetree WHERE x IN (SELECT * FROM numbers(10000000)))))))))))); +SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM mergetree WHERE x IN (SELECT * FROM numbers(10000000)))))))))))); SET force_primary_key = 1; -SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM test.mergetree WHERE x IN (SELECT * FROM numbers(10000000)))))))))))); +SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM (SELECT * FROM mergetree WHERE x IN (SELECT * FROM numbers(10000000)))))))))))); -DROP TABLE test.mergetree; +DROP TABLE mergetree; diff --git a/dbms/tests/queries/0_stateless/00674_join_on_syntax.sql b/dbms/tests/queries/0_stateless/00674_join_on_syntax.sql index 27d83e4684c..a58c3716a98 100644 --- a/dbms/tests/queries/0_stateless/00674_join_on_syntax.sql +++ b/dbms/tests/queries/0_stateless/00674_join_on_syntax.sql @@ -1,107 +1,107 @@ -drop table if exists test.tab1; -drop table if exists test.tab2; -drop table if exists test.tab3; -drop table if exists test.tab1_copy; +drop table if exists tab1; +drop table if exists tab2; +drop table if exists tab3; +drop table if exists tab1_copy; -create table test.tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1; -create table test.tab2 (a2 Int32, b2 Int32) engine = MergeTree order by a2; -create table test.tab3 (a3 Int32, b3 Int32) engine = MergeTree order by a3; -create table test.tab1_copy (a1 Int32, b1 Int32) engine = MergeTree order by a1; +create table tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1; +create table tab2 (a2 Int32, b2 Int32) engine = MergeTree order by a2; +create table tab3 (a3 Int32, b3 Int32) engine = MergeTree order by a3; +create table tab1_copy (a1 Int32, b1 Int32) engine = MergeTree order by a1; -insert into test.tab1 values (1, 2); -insert into test.tab2 values (2, 3); -insert into test.tab3 values (2, 3); -insert into test.tab1_copy values (2, 3); +insert into tab1 values (1, 2); +insert into tab2 values (2, 3); +insert into tab3 values (2, 3); +insert into tab1_copy values (2, 3); select 'joind columns from right table'; -select a1 from test.tab1 any left join test.tab2 on b1 = a2; -select a1, b1 from test.tab1 any left join test.tab2 on b1 = a2; -select a1, a2 from test.tab1 any left join test.tab2 on b1 = a2; -select a1, b2 from test.tab1 any left join test.tab2 on b1 = a2; -select a1, a2, b2 from test.tab1 any left join test.tab2 on b1 = a2; +select a1 from tab1 any left join tab2 on b1 = a2; +select a1, b1 from tab1 any left join tab2 on b1 = a2; +select a1, a2 from tab1 any left join tab2 on b1 = a2; +select a1, b2 from tab1 any left join tab2 on b1 = a2; +select a1, a2, b2 from tab1 any left join tab2 on b1 = a2; select 'join on expression'; -select b1 from test.tab1 any left join test.tab2 on toInt32(a1 + 1) = a2; -select b1, a2 from test.tab1 any left join test.tab2 on toInt32(a1 + 1) = a2; -select b1, b2 from test.tab1 any left join test.tab2 on toInt32(a1 + 1) = a2; -select a1 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1; -select a2 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1; -select a1, b1, a2, b2 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1; -select a1, b1, a2, b2, a2 + 1 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1; -select a1, b1, a2, b2 from test.tab1 any left join test.tab2 on a1 + 4 = b2 + 2; +select b1 from tab1 any left join tab2 on toInt32(a1 + 1) = a2; +select b1, a2 from tab1 any left join tab2 on toInt32(a1 + 1) = a2; +select b1, b2 from tab1 any left join tab2 on toInt32(a1 + 1) = a2; +select a1 from tab1 any left join tab2 on b1 + 1 = a2 + 1; +select a2 from tab1 any left join tab2 on b1 + 1 = a2 + 1; +select a1, b1, a2, b2 from tab1 any left join tab2 on b1 + 1 = a2 + 1; +select a1, b1, a2, b2, a2 + 1 from tab1 any left join tab2 on b1 + 1 = a2 + 1; +select a1, b1, a2, b2 from tab1 any left join tab2 on a1 + 4 = b2 + 2; select 'join on and chain'; -select a2, b2 from test.tab2 any left join test.tab3 on a2 = a3 and b2 = b3; -select a3, b3 from test.tab2 any left join test.tab3 on a2 = a3 and b2 = b3; -select a2, b2, a3, b3 from test.tab2 any left join test.tab3 on a2 = a3 and b2 = b3; -select a1 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; -select a1, b2 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; -select a1, b1, a2, b2 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; -select a2, b2 + 1 from test.tab1 any left join test.tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; +select a2, b2 from tab2 any left join tab3 on a2 = a3 and b2 = b3; +select a3, b3 from tab2 any left join tab3 on a2 = a3 and b2 = b3; +select a2, b2, a3, b3 from tab2 any left join tab3 on a2 = a3 and b2 = b3; +select a1 from tab1 any left join tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; +select a1, b2 from tab1 any left join tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; +select a1, b1, a2, b2 from tab1 any left join tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; +select a2, b2 + 1 from tab1 any left join tab2 on b1 + 1 = a2 + 1 and a1 + 4 = b2 + 2; select 'join on aliases'; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on first.b1 = second.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on second.a2 = first.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on first.b1 = second.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on second.a2 = first.b1; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on tab1.b1 = tab2.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on tab2.a2 = tab1.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab1.b1 = tab2.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab2.a2 = tab1.b1; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on test.tab1.b1 = test.tab2.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on test.tab2.a2 = test.tab1.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab1.b1 = tab2.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab2.a2 = tab1.b1; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on first.b1 = tab2.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on tab2.a2 = first.b1; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on first.b1 = test.tab2.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on test.tab2.a2 = first.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on first.b1 = tab2.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab2.a2 = first.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on first.b1 = tab2.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab2.a2 = first.b1; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on tab1.b1 = second.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on second.a2 = tab1.b1; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on test.tab1.b1 = second.a2; -select a1, a2, b1, b2 from test.tab1 first any left join test.tab2 second on second.a2 = test.tab1.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab1.b1 = second.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on second.a2 = tab1.b1; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on tab1.b1 = second.a2; +select a1, a2, b1, b2 from tab1 first any left join tab2 second on second.a2 = tab1.b1; -select a1, a2, first.b1, second.b2 from test.tab1 first any left join test.tab2 second on b1 = a2; -select a1, a2, tab1.b1, tab2.b2 from test.tab1 first any left join test.tab2 second on b1 = a2; -select a1, a2, test.tab1.b1, test.tab2.b2 from test.tab1 first any left join test.tab2 second on b1 = a2; +select a1, a2, first.b1, second.b2 from tab1 first any left join tab2 second on b1 = a2; +select a1, a2, tab1.b1, tab2.b2 from tab1 first any left join tab2 second on b1 = a2; +select a1, a2, tab1.b1, tab2.b2 from tab1 first any left join tab2 second on b1 = a2; select 'join on complex expression'; -select a2, b2 from test.tab2 any left join test.tab3 on a2 + b2 = a3 + b3; -select a2, b2 from test.tab2 any left join test.tab3 on a3 + tab3.b3 = a2 + b2; -select a2, b2 from test.tab2 second any left join test.tab3 on a3 + b3 = a2 + second.b2; -select a2, b2 from test.tab2 second any left join test.tab3 third on third.a3 + tab3.b3 = tab2.a2 + second.b2; -select a2, b2 from test.tab2 second any left join test.tab3 third on third.a3 + test.tab3.b3 = test.tab2.a2 + second.b2; +select a2, b2 from tab2 any left join tab3 on a2 + b2 = a3 + b3; +select a2, b2 from tab2 any left join tab3 on a3 + tab3.b3 = a2 + b2; +select a2, b2 from tab2 second any left join tab3 on a3 + b3 = a2 + second.b2; +select a2, b2 from tab2 second any left join tab3 third on third.a3 + tab3.b3 = tab2.a2 + second.b2; +select a2, b2 from tab2 second any left join tab3 third on third.a3 + tab3.b3 = tab2.a2 + second.b2; select 'duplicate column names'; -select a1, tab1_copy.a1 from test.tab1 any left join test.tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; -select a1, test.tab1_copy.a1 from test.tab1 any left join test.tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; -select a1, copy.a1 from test.tab1 any left join test.tab1_copy copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; -select a1, tab1_copy.a1 from test.tab1 any left join test.tab1_copy copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; -select a1, test.tab1_copy.a1 from test.tab1 any left join test.tab1_copy copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; +select a1, tab1_copy.a1 from tab1 any left join tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; +select a1, tab1_copy.a1 from tab1 any left join tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; +select a1, copy.a1 from tab1 any left join tab1_copy copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; +select a1, tab1_copy.a1 from tab1 any left join tab1_copy copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; +select a1, tab1_copy.a1 from tab1 any left join tab1_copy copy on tab1.b1 + 3 = tab1_copy.b1 + 2 FORMAT JSONEachRow; select 'subquery'; -select a1 from test.tab1 any left join (select * from test.tab2) on b1 = a2; -select a1 from test.tab1 any left join (select a2 from test.tab2) on b1 = a2; -select a1, b1 from test.tab1 any left join (select * from test.tab2) on b1 = a2; -select a1, b1, a2, b2 from test.tab1 any left join (select * from test.tab2) on b1 = a2; -select a1, a2 from test.tab1 any left join (select a2 from test.tab2) on b1 = a2; +select a1 from tab1 any left join (select * from tab2) on b1 = a2; +select a1 from tab1 any left join (select a2 from tab2) on b1 = a2; +select a1, b1 from tab1 any left join (select * from tab2) on b1 = a2; +select a1, b1, a2, b2 from tab1 any left join (select * from tab2) on b1 = a2; +select a1, a2 from tab1 any left join (select a2 from tab2) on b1 = a2; select 'subquery expression'; -select b1 from test.tab1 any left join (select * from test.tab2) on toInt32(a1 + 1) = a2; -select a1, b1, a2, b2 from test.tab1 any left join (select * from test.tab2) on b1 + 1 = a2 + 1; -select a1, b1, a2 from test.tab1 any left join (select * from test.tab2) on b1 + 1 = a2 + 1; +select b1 from tab1 any left join (select * from tab2) on toInt32(a1 + 1) = a2; +select a1, b1, a2, b2 from tab1 any left join (select * from tab2) on b1 + 1 = a2 + 1; +select a1, b1, a2 from tab1 any left join (select * from tab2) on b1 + 1 = a2 + 1; select 'subquery column alias'; -select a1, b1, a2, b2 from test.tab1 any left join (select *, a2 as z from test.tab2) on b1 + 1 = z + 1; -select a1, b1, a2, b2 from test.tab1 any left join (select *, a2 + 1 as z from test.tab2) on b1 + 1 = z; -select a1, b1, a2, b2 from test.tab1 any left join (select *, a2 + 1 as z from test.tab2) on b1 + 2 = z + 1 format TSV; +select a1, b1, a2, b2 from tab1 any left join (select *, a2 as z from tab2) on b1 + 1 = z + 1; +select a1, b1, a2, b2 from tab1 any left join (select *, a2 + 1 as z from tab2) on b1 + 1 = z; +select a1, b1, a2, b2 from tab1 any left join (select *, a2 + 1 as z from tab2) on b1 + 2 = z + 1 format TSV; select 'subquery alias'; -select a1, a2, b1, b2 from test.tab1 first any left join (select * from test.tab2) second on first.b1 = second.a2; -select a1, a2, b1, b2 from test.tab1 first any left join (select *, a2 as z from test.tab2) second on first.b1 = second.z; -select a1, a2, b1, b2 from test.tab1 first any left join (select *, a2 + 1 as z from test.tab2) second on first.b1 + 1 = second.z; -select tab1.a1, a2, test.tab1.b1, second.b2 from test.tab1 first any left join (select * from test.tab2) second on first.b1 = second.a2; -select a1, s.a1 from test.tab1 any left join (select * from test.tab1_copy) s on tab1.b1 + 3 = s.b1 + 2 FORMAT JSONEachRow; +select a1, a2, b1, b2 from tab1 first any left join (select * from tab2) second on first.b1 = second.a2; +select a1, a2, b1, b2 from tab1 first any left join (select *, a2 as z from tab2) second on first.b1 = second.z; +select a1, a2, b1, b2 from tab1 first any left join (select *, a2 + 1 as z from tab2) second on first.b1 + 1 = second.z; +select tab1.a1, a2, tab1.b1, second.b2 from tab1 first any left join (select * from tab2) second on first.b1 = second.a2; +select a1, s.a1 from tab1 any left join (select * from tab1_copy) s on tab1.b1 + 3 = s.b1 + 2 FORMAT JSONEachRow; diff --git a/dbms/tests/queries/0_stateless/00679_uuid_in_key.sql b/dbms/tests/queries/0_stateless/00679_uuid_in_key.sql index 7a61132b4ff..5eefaef6d18 100644 --- a/dbms/tests/queries/0_stateless/00679_uuid_in_key.sql +++ b/dbms/tests/queries/0_stateless/00679_uuid_in_key.sql @@ -1,5 +1,3 @@ -USE test; - CREATE TABLE IF NOT EXISTS uuid ( created_at DateTime, diff --git a/dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql b/dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql index 2c118f546c3..f28bdd1279e 100644 --- a/dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql +++ b/dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE test.test(x Int32) ENGINE = Log; -INSERT INTO test.test VALUES (123); +CREATE TABLE test(x Int32) ENGINE = Log; +INSERT INTO test VALUES (123); SELECT a1 FROM ( - SELECT x AS a1, x AS a2 FROM test.test + SELECT x AS a1, x AS a2 FROM test UNION ALL - SELECT x, x FROM test.test + SELECT x, x FROM test ); -DROP TABLE test.test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00682_empty_parts_merge.sh b/dbms/tests/queries/0_stateless/00682_empty_parts_merge.sh index 9cbdc68c1b1..3f9530b92c8 100755 --- a/dbms/tests/queries/0_stateless/00682_empty_parts_merge.sh +++ b/dbms/tests/queries/0_stateless/00682_empty_parts_merge.sh @@ -6,111 +6,111 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.ordinary" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.ordinary(k UInt32) ENGINE MergeTree ORDER BY k" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS ordinary" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE ordinary(k UInt32) ENGINE MergeTree ORDER BY k" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.ordinary(k) VALUES (1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.ordinary(k) VALUES (1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO ordinary(k) VALUES (1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO ordinary(k) VALUES (1)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.ordinary DELETE WHERE k = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE ordinary DELETE WHERE k = 1" wait_for_mutation "ordinary" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.ordinary PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.ordinary" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE ordinary PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM ordinary" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.ordinary" +${CLICKHOUSE_CLIENT} --query="DROP TABLE ordinary" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Vertical merge ***'" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.vertical" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.vertical(k UInt32, v UInt32) ENGINE MergeTree ORDER BY k \ +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS vertical" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE vertical(k UInt32, v UInt32) ENGINE MergeTree ORDER BY k \ SETTINGS enable_vertical_merge_algorithm=1, \ vertical_merge_algorithm_min_rows_to_activate=0, \ vertical_merge_algorithm_min_columns_to_activate=0" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.vertical(k, v) VALUES (1, 1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.vertical(k, v) VALUES (2, 2)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO vertical(k, v) VALUES (1, 1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO vertical(k, v) VALUES (2, 2)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.vertical DELETE WHERE k = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE vertical DELETE WHERE k = 1" wait_for_mutation "vertical" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.vertical PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.vertical" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE vertical PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM vertical" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.vertical" +${CLICKHOUSE_CLIENT} --query="DROP TABLE vertical" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.summing" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.summing(k UInt32, v UInt32) ENGINE SummingMergeTree ORDER BY k" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS summing" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE summing(k UInt32, v UInt32) ENGINE SummingMergeTree ORDER BY k" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.summing(k, v) VALUES (1, 1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.summing(k, v) VALUES (1, 2)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO summing(k, v) VALUES (1, 1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO summing(k, v) VALUES (1, 2)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.summing DELETE WHERE k = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE summing DELETE WHERE k = 1" wait_for_mutation "summing" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.summing PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.summing" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE summing PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM summing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.summing" +${CLICKHOUSE_CLIENT} --query="DROP TABLE summing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.aggregating" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.aggregating(k UInt32, v AggregateFunction(count)) ENGINE AggregatingMergeTree ORDER BY k" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS aggregating" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE aggregating(k UInt32, v AggregateFunction(count)) ENGINE AggregatingMergeTree ORDER BY k" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.aggregating(k) VALUES (1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.aggregating(k) VALUES (1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO aggregating(k) VALUES (1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO aggregating(k) VALUES (1)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.aggregating DELETE WHERE k = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE aggregating DELETE WHERE k = 1" wait_for_mutation "aggregating" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.aggregating PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.aggregating" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE aggregating PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM aggregating" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.aggregating" +${CLICKHOUSE_CLIENT} --query="DROP TABLE aggregating" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.replacing" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.replacing(k UInt32, v String) ENGINE ReplacingMergeTree ORDER BY k" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS replacing" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE replacing(k UInt32, v String) ENGINE ReplacingMergeTree ORDER BY k" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.replacing(k, v) VALUES (1, 'a')" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.replacing(k, v) VALUES (1, 'b')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO replacing(k, v) VALUES (1, 'a')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO replacing(k, v) VALUES (1, 'b')" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.replacing DELETE WHERE k = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE replacing DELETE WHERE k = 1" wait_for_mutation "replacing" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.replacing PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.replacing" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE replacing PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM replacing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.replacing" +${CLICKHOUSE_CLIENT} --query="DROP TABLE replacing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.collapsing" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.collapsing(k UInt32, v String, s Int8) ENGINE CollapsingMergeTree(s) ORDER BY k" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS collapsing" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE collapsing(k UInt32, v String, s Int8) ENGINE CollapsingMergeTree(s) ORDER BY k" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.collapsing(k, v, s) VALUES (1, 'a', 1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.collapsing(k, v, s) VALUES (2, 'b', 1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO collapsing(k, v, s) VALUES (1, 'a', 1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO collapsing(k, v, s) VALUES (2, 'b', 1)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.collapsing DELETE WHERE k IN (1, 2)" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE collapsing DELETE WHERE k IN (1, 2)" wait_for_mutation "collapsing" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.collapsing PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.collapsing" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE collapsing PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM collapsing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.collapsing" +${CLICKHOUSE_CLIENT} --query="DROP TABLE collapsing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.versioned_collapsing" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.versioned_collapsing(k UInt32, val String, ver UInt32, s Int8) ENGINE VersionedCollapsingMergeTree(s, ver) ORDER BY k" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS versioned_collapsing" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE versioned_collapsing(k UInt32, val String, ver UInt32, s Int8) ENGINE VersionedCollapsingMergeTree(s, ver) ORDER BY k" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.versioned_collapsing(k, val, ver, s) VALUES (1, 'a', 0, 1)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.versioned_collapsing(k, val, ver, s) VALUES (2, 'b', 0, 1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO versioned_collapsing(k, val, ver, s) VALUES (1, 'a', 0, 1)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO versioned_collapsing(k, val, ver, s) VALUES (2, 'b', 0, 1)" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.versioned_collapsing DELETE WHERE k IN (1, 2)" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE versioned_collapsing DELETE WHERE k IN (1, 2)" wait_for_mutation "versioned_collapsing" "mutation_3.txt" -${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE test.versioned_collapsing PARTITION tuple() FINAL" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.versioned_collapsing" +${CLICKHOUSE_CLIENT} --query="OPTIMIZE TABLE versioned_collapsing PARTITION tuple() FINAL" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM versioned_collapsing" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.versioned_collapsing" +${CLICKHOUSE_CLIENT} --query="DROP TABLE versioned_collapsing" diff --git a/dbms/tests/queries/0_stateless/00686_client_exit_code.sh b/dbms/tests/queries/0_stateless/00686_client_exit_code.sh index 996dac1b6bc..41b6de99236 100755 --- a/dbms/tests/queries/0_stateless/00686_client_exit_code.sh +++ b/dbms/tests/queries/0_stateless/00686_client_exit_code.sh @@ -5,5 +5,5 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -echo "INSERT INTO test.test FORMAT CSV" | ${CLICKHOUSE_CLIENT} -n 2>/dev/null +echo "INSERT INTO test FORMAT CSV" | ${CLICKHOUSE_CLIENT} -n 2>/dev/null echo $? diff --git a/dbms/tests/queries/0_stateless/00687_insert_into_mv.sql b/dbms/tests/queries/0_stateless/00687_insert_into_mv.sql index 62353839e9a..54e92efaabf 100644 --- a/dbms/tests/queries/0_stateless/00687_insert_into_mv.sql +++ b/dbms/tests/queries/0_stateless/00687_insert_into_mv.sql @@ -1,31 +1,31 @@ -DROP TABLE IF EXISTS test.test; -DROP TABLE IF EXISTS test.mv_bad; -DROP TABLE IF EXISTS test.mv_good; -DROP TABLE IF EXISTS test.mv_group; +DROP TABLE IF EXISTS test; +DROP TABLE IF EXISTS mv_bad; +DROP TABLE IF EXISTS mv_good; +DROP TABLE IF EXISTS mv_group; -CREATE TABLE test.test (x String) ENGINE = Null; +CREATE TABLE test (x String) ENGINE = Null; -create MATERIALIZED VIEW test.mv_bad (x String) +create MATERIALIZED VIEW mv_bad (x String) ENGINE = MergeTree Partition by tuple() order by tuple() -AS SELECT DISTINCT x FROM test.test; +AS SELECT DISTINCT x FROM test; -create MATERIALIZED VIEW test.mv_good (x String) +create MATERIALIZED VIEW mv_good (x String) ENGINE = MergeTree Partition by tuple() order by tuple() -AS SELECT x FROM test.test; +AS SELECT x FROM test; -create MATERIALIZED VIEW test.mv_group (x String) +create MATERIALIZED VIEW mv_group (x String) ENGINE = MergeTree Partition by tuple() order by tuple() -AS SELECT x FROM test.test group by x; +AS SELECT x FROM test group by x; -insert into test.test values ('stest'), ('stest'); +insert into test values ('stest'), ('stest'); -select * from test.mv_bad; +select * from mv_bad; SELECT '---'; -select * from test.mv_good; +select * from mv_good; SELECT '---'; -select * from test.mv_group; +select * from mv_group; -DROP TABLE test.mv_bad; -DROP TABLE test.mv_good; -DROP TABLE test.mv_group; -DROP TABLE test.test; +DROP TABLE mv_bad; +DROP TABLE mv_good; +DROP TABLE mv_group; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00687_top_and_offset.sh b/dbms/tests/queries/0_stateless/00687_top_and_offset.sh index 47b20f343eb..e061503db8d 100755 --- a/dbms/tests/queries/0_stateless/00687_top_and_offset.sh +++ b/dbms/tests/queries/0_stateless/00687_top_and_offset.sh @@ -4,25 +4,25 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test;" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.test(val Int64) engine = Memory;" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE test(val Int64) engine = Memory;" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (1);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (2);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (3);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (4);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (5);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (6);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (7);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (8);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test VALUES (9);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (1);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (2);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (3);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (4);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (5);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (6);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (7);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (8);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (9);" -${CLICKHOUSE_CLIENT} --query "SELECT TOP 2 * FROM test.test ORDER BY val;" -${CLICKHOUSE_CLIENT} --query "SELECT TOP (2) * FROM test.test ORDER BY val;" -${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.test ORDER BY val LIMIT 2 OFFSET 2;" +${CLICKHOUSE_CLIENT} --query "SELECT TOP 2 * FROM test ORDER BY val;" +${CLICKHOUSE_CLIENT} --query "SELECT TOP (2) * FROM test ORDER BY val;" +${CLICKHOUSE_CLIENT} --query "SELECT * FROM test ORDER BY val LIMIT 2 OFFSET 2;" -echo `${CLICKHOUSE_CLIENT} --query "SELECT TOP 2 * FROM test.test ORDER BY val LIMIT 2;" 2>&1 | grep -c "Code: 406"` -echo `${CLICKHOUSE_CLIENT} --query "SELECT * FROM test.test ORDER BY val LIMIT 2,3 OFFSET 2;" 2>&1 | grep -c "Code: 62"` +echo `${CLICKHOUSE_CLIENT} --query "SELECT TOP 2 * FROM test ORDER BY val LIMIT 2;" 2>&1 | grep -c "Code: 406"` +echo `${CLICKHOUSE_CLIENT} --query "SELECT * FROM test ORDER BY val LIMIT 2,3 OFFSET 2;" 2>&1 | grep -c "Code: 62"` -${CLICKHOUSE_CLIENT} --query "DROP TABLE test.test;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE test;" diff --git a/dbms/tests/queries/0_stateless/00688_case_without_else.sql b/dbms/tests/queries/0_stateless/00688_case_without_else.sql index acbb7bfb8f5..0b30eae601b 100644 --- a/dbms/tests/queries/0_stateless/00688_case_without_else.sql +++ b/dbms/tests/queries/0_stateless/00688_case_without_else.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; -CREATE TABLE test.test (a UInt8) ENGINE = Memory; +CREATE TABLE test (a UInt8) ENGINE = Memory; -INSERT INTO test.test VALUES (1), (2), (1), (3); +INSERT INTO test VALUES (1), (2), (1), (3); -SELECT CASE WHEN a=1 THEN 0 END FROM test.test; +SELECT CASE WHEN a=1 THEN 0 END FROM test; -DROP TABLE test.test; +DROP TABLE test; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql index d8b557dcb4c..8847ec223ea 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql @@ -1,6 +1,6 @@ -drop table if exists test.cardinality; -create table test.cardinality (x String) engine = MergeTree order by tuple(); -insert into test.cardinality (x) select concat('v', toString(number)) from numbers(10); -alter table test.cardinality add column y LowCardinality(String); -select * from test.cardinality; -drop table if exists test.cardinality; +drop table if exists cardinality; +create table cardinality (x String) engine = MergeTree order by tuple(); +insert into cardinality (x) select concat('v', toString(number)) from numbers(10); +alter table cardinality add column y LowCardinality(String); +select * from cardinality; +drop table if exists cardinality; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql index 54d8b4954c7..5a169403872 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql @@ -1,6 +1,6 @@ -drop table if exists test.lc_dict_reading; -create table test.lc_dict_reading (val UInt64, str StringWithDictionary, pat String) engine = MergeTree order by val; -insert into test.lc_dict_reading select number, if(number < 8192 * 4, number % 100, number) as s, s from system.numbers limit 1000000; -select sum(toUInt64(str)), sum(toUInt64(pat)) from test.lc_dict_reading where val < 8129 or val > 8192 * 4; -drop table if exists test.lc_dict_reading; +drop table if exists lc_dict_reading; +create table lc_dict_reading (val UInt64, str StringWithDictionary, pat String) engine = MergeTree order by val; +insert into lc_dict_reading select number, if(number < 8192 * 4, number % 100, number) as s, s from system.numbers limit 1000000; +select sum(toUInt64(str)), sum(toUInt64(pat)) from lc_dict_reading where val < 8129 or val > 8192 * 4; +drop table if exists lc_dict_reading; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql index ce65db892b2..d8f59f57dce 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql @@ -1,10 +1,10 @@ -drop table if exists test.lc; -create table test.lc (str StringWithDictionary, val UInt8WithDictionary) engine = MergeTree order by tuple(); -insert into test.lc values ('a', 1), ('b', 2); -select str, str in ('a', 'd') from test.lc; -select val, val in (1, 3) from test.lc; -select str, str in (select arrayJoin(['a', 'd'])) from test.lc; -select val, val in (select arrayJoin([1, 3])) from test.lc; -select str, str in (select str from test.lc) from test.lc; -select val, val in (select val from test.lc) from test.lc; -drop table if exists test.lc; +drop table if exists lc; +create table lc (str StringWithDictionary, val UInt8WithDictionary) engine = MergeTree order by tuple(); +insert into lc values ('a', 1), ('b', 2); +select str, str in ('a', 'd') from lc; +select val, val in (1, 3) from lc; +select str, str in (select arrayJoin(['a', 'd'])) from lc; +select val, val in (select arrayJoin([1, 3])) from lc; +select str, str in (select str from lc) from lc; +select val, val in (select val from lc) from lc; +drop table if exists lc; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql index 5a6d925a4d3..1248374aacc 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql @@ -1,11 +1,11 @@ SELECT CAST(NULL, 'LowCardinality(Nullable(Int8))'); -drop table if exists test.lc_null_int8_defnull; -CREATE TABLE test.lc_null_int8_defnull (val LowCardinality(Nullable(Int8)) DEFAULT NULL) ENGINE = MergeTree order by tuple(); -insert into test.lc_null_int8_defnull values (1); -select * from test.lc_null_int8_defnull values; -alter table test.lc_null_int8_defnull add column val2 LowCardinality(Nullable(Int8)) DEFAULT NULL; -insert into test.lc_null_int8_defnull values (2, 3); -select * from test.lc_null_int8_defnull order by val; -drop table if exists test.lc_null_int8_defnull; +drop table if exists lc_null_int8_defnull; +CREATE TABLE lc_null_int8_defnull (val LowCardinality(Nullable(Int8)) DEFAULT NULL) ENGINE = MergeTree order by tuple(); +insert into lc_null_int8_defnull values (1); +select * from lc_null_int8_defnull values; +alter table lc_null_int8_defnull add column val2 LowCardinality(Nullable(Int8)) DEFAULT NULL; +insert into lc_null_int8_defnull values (2, 3); +select * from lc_null_int8_defnull order by val; +drop table if exists lc_null_int8_defnull; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql index 3f3c42b190f..a15b2540fe6 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql @@ -1,5 +1,5 @@ -drop table if exists test.lc_prewhere; -create table test.lc_prewhere (key UInt64, val UInt64, str StringWithDictionary, s String) engine = MergeTree order by key settings index_granularity = 8192; -insert into test.lc_prewhere select number, if(number < 10 or number > 8192 * 9, 1, 0), toString(number) as s, s from system.numbers limit 100000; -select sum(toUInt64(str)), sum(toUInt64(s)) from test.lc_prewhere prewhere val == 1; -drop table if exists test.lc_prewhere; +drop table if exists lc_prewhere; +create table lc_prewhere (key UInt64, val UInt64, str StringWithDictionary, s String) engine = MergeTree order by key settings index_granularity = 8192; +insert into lc_prewhere select number, if(number < 10 or number > 8192 * 9, 1, 0), toString(number) as s, s from system.numbers limit 100000; +select sum(toUInt64(str)), sum(toUInt64(s)) from lc_prewhere prewhere val == 1; +drop table if exists lc_prewhere; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.sql index 7dedb78785c..74788122aee 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.sql @@ -5,24 +5,24 @@ select toTypeName(dict), dict, lowCardinalityIndices(dict), lowCardinalityKeys(d select 'MergeTree'; -drop table if exists test.lc_small_dict; -drop table if exists test.lc_big_dict; +drop table if exists lc_small_dict; +drop table if exists lc_big_dict; -create table test.lc_small_dict (str StringWithDictionary) engine = MergeTree order by str; -create table test.lc_big_dict (str StringWithDictionary) engine = MergeTree order by str; +create table lc_small_dict (str StringWithDictionary) engine = MergeTree order by str; +create table lc_big_dict (str StringWithDictionary) engine = MergeTree order by str; -insert into test.lc_small_dict select toString(number % 1000) from system.numbers limit 1000000; -insert into test.lc_big_dict select toString(number) from system.numbers limit 1000000; +insert into lc_small_dict select toString(number % 1000) from system.numbers limit 1000000; +insert into lc_big_dict select toString(number) from system.numbers limit 1000000; -detach table test.lc_small_dict; -detach table test.lc_big_dict; +detach table lc_small_dict; +detach table lc_big_dict; -attach table test.lc_small_dict; -attach table test.lc_big_dict; +attach table lc_small_dict; +attach table lc_big_dict; -select sum(toUInt64OrZero(str)) from test.lc_small_dict; -select sum(toUInt64OrZero(str)) from test.lc_big_dict; +select sum(toUInt64OrZero(str)) from lc_small_dict; +select sum(toUInt64OrZero(str)) from lc_big_dict; -drop table if exists test.lc_small_dict; -drop table if exists test.lc_big_dict; +drop table if exists lc_small_dict; +drop table if exists lc_big_dict; diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.sql b/dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.sql index a048cbc83ad..f1c41be16bc 100644 --- a/dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.sql +++ b/dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.sql @@ -1,67 +1,67 @@ -drop table if exists test.lc_str_0; -drop table if exists test.lc_str_1; -drop table if exists test.lc_null_str_0; -drop table if exists test.lc_null_str_1; -drop table if exists test.lc_int8_0; -drop table if exists test.lc_int8_1; -drop table if exists test.lc_null_int8_0; -drop table if exists test.lc_null_int8_1; -drop table if exists test.lc_fix_str_0; -drop table if exists test.lc_fix_str_1; -drop table if exists test.lc_null_fix_str_0; -drop table if exists test.lc_null_fix_str_1; +drop table if exists lc_str_0; +drop table if exists lc_str_1; +drop table if exists lc_null_str_0; +drop table if exists lc_null_str_1; +drop table if exists lc_int8_0; +drop table if exists lc_int8_1; +drop table if exists lc_null_int8_0; +drop table if exists lc_null_int8_1; +drop table if exists lc_fix_str_0; +drop table if exists lc_fix_str_1; +drop table if exists lc_null_fix_str_0; +drop table if exists lc_null_fix_str_1; -create table test.lc_str_0 (str LowCardinality(String)) engine = Memory; -create table test.lc_str_1 (str StringWithDictionary) engine = Memory; -create table test.lc_null_str_0 (str LowCardinality(Nullable(String))) engine = Memory; -create table test.lc_null_str_1 (str NullableWithDictionary(String)) engine = Memory; -create table test.lc_int8_0 (val LowCardinality(Int8)) engine = Memory; -create table test.lc_int8_1 (val Int8WithDictionary) engine = Memory; -create table test.lc_null_int8_0 (val LowCardinality(Nullable(Int8))) engine = Memory; -create table test.lc_null_int8_1 (val NullableWithDictionary(Int8)) engine = Memory; -create table test.lc_fix_str_0 (str LowCardinality(FixedString(2))) engine = Memory; -create table test.lc_fix_str_1 (str FixedStringWithDictionary(2)) engine = Memory; -create table test.lc_null_fix_str_0 (str LowCardinality(Nullable(FixedString(2)))) engine = Memory; -create table test.lc_null_fix_str_1 (str NullableWithDictionary(FixedString(2))) engine = Memory; +create table lc_str_0 (str LowCardinality(String)) engine = Memory; +create table lc_str_1 (str StringWithDictionary) engine = Memory; +create table lc_null_str_0 (str LowCardinality(Nullable(String))) engine = Memory; +create table lc_null_str_1 (str NullableWithDictionary(String)) engine = Memory; +create table lc_int8_0 (val LowCardinality(Int8)) engine = Memory; +create table lc_int8_1 (val Int8WithDictionary) engine = Memory; +create table lc_null_int8_0 (val LowCardinality(Nullable(Int8))) engine = Memory; +create table lc_null_int8_1 (val NullableWithDictionary(Int8)) engine = Memory; +create table lc_fix_str_0 (str LowCardinality(FixedString(2))) engine = Memory; +create table lc_fix_str_1 (str FixedStringWithDictionary(2)) engine = Memory; +create table lc_null_fix_str_0 (str LowCardinality(Nullable(FixedString(2)))) engine = Memory; +create table lc_null_fix_str_1 (str NullableWithDictionary(FixedString(2))) engine = Memory; -insert into test.lc_str_0 select 'a'; -insert into test.lc_str_1 select 'a'; -insert into test.lc_null_str_0 select 'a'; -insert into test.lc_null_str_1 select 'a'; -insert into test.lc_int8_0 select 1; -insert into test.lc_int8_1 select 1; -insert into test.lc_null_int8_0 select 1; -insert into test.lc_null_int8_1 select 1; -insert into test.lc_fix_str_0 select 'ab'; -insert into test.lc_fix_str_1 select 'ab'; -insert into test.lc_null_fix_str_0 select 'ab'; -insert into test.lc_null_fix_str_1 select 'ab'; +insert into lc_str_0 select 'a'; +insert into lc_str_1 select 'a'; +insert into lc_null_str_0 select 'a'; +insert into lc_null_str_1 select 'a'; +insert into lc_int8_0 select 1; +insert into lc_int8_1 select 1; +insert into lc_null_int8_0 select 1; +insert into lc_null_int8_1 select 1; +insert into lc_fix_str_0 select 'ab'; +insert into lc_fix_str_1 select 'ab'; +insert into lc_null_fix_str_0 select 'ab'; +insert into lc_null_fix_str_1 select 'ab'; -select str from test.lc_str_0; -select str from test.lc_str_1; -select str from test.lc_null_str_0; -select str from test.lc_null_str_1; -select val from test.lc_int8_0; -select val from test.lc_int8_1; -select val from test.lc_null_int8_0; -select val from test.lc_null_int8_1; -select str from test.lc_fix_str_0; -select str from test.lc_fix_str_1; -select str from test.lc_null_fix_str_0; -select str from test.lc_null_fix_str_1; +select str from lc_str_0; +select str from lc_str_1; +select str from lc_null_str_0; +select str from lc_null_str_1; +select val from lc_int8_0; +select val from lc_int8_1; +select val from lc_null_int8_0; +select val from lc_null_int8_1; +select str from lc_fix_str_0; +select str from lc_fix_str_1; +select str from lc_null_fix_str_0; +select str from lc_null_fix_str_1; -drop table if exists test.lc_str_0; -drop table if exists test.lc_str_1; -drop table if exists test.lc_null_str_0; -drop table if exists test.lc_null_str_1; -drop table if exists test.lc_int8_0; -drop table if exists test.lc_int8_1; -drop table if exists test.lc_null_int8_0; -drop table if exists test.lc_null_int8_1; -drop table if exists test.lc_fix_str_0; -drop table if exists test.lc_fix_str_1; -drop table if exists test.lc_null_fix_str_0; -drop table if exists test.lc_null_fix_str_1; +drop table if exists lc_str_0; +drop table if exists lc_str_1; +drop table if exists lc_null_str_0; +drop table if exists lc_null_str_1; +drop table if exists lc_int8_0; +drop table if exists lc_int8_1; +drop table if exists lc_null_int8_0; +drop table if exists lc_null_int8_1; +drop table if exists lc_fix_str_0; +drop table if exists lc_fix_str_1; +drop table if exists lc_null_fix_str_0; +drop table if exists lc_null_fix_str_1; select '-'; SELECT toLowCardinality('a') AS s, toTypeName(s), toTypeName(length(s)) from system.one; diff --git a/dbms/tests/queries/0_stateless/00689_catboost_pool_files.sh b/dbms/tests/queries/0_stateless/00689_catboost_pool_files.sh index ec5161574f7..b859a7c3e34 100755 --- a/dbms/tests/queries/0_stateless/00689_catboost_pool_files.sh +++ b/dbms/tests/queries/0_stateless/00689_catboost_pool_files.sh @@ -3,22 +3,22 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query="drop table if exists test.catboost_pool_desc;" -${CLICKHOUSE_CLIENT} --query="drop table if exists test.catboost_pool_vals;" -${CLICKHOUSE_CLIENT} --query="create table test.catboost_pool_desc (id String, type String) engine = File(TSV);" -${CLICKHOUSE_CLIENT} --query="insert into test.catboost_pool_desc select '0', 'Categ';" -${CLICKHOUSE_CLIENT} --query="create table test.catboost_pool_vals (str String) engine = File(TSV);" -${CLICKHOUSE_CLIENT} --query="insert into test.catboost_pool_vals select 'Hello';" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', 'data/test/catboost_pool_vals/data.TSV');" +${CLICKHOUSE_CLIENT} --query="drop table if exists catboost_pool_desc;" +${CLICKHOUSE_CLIENT} --query="drop table if exists catboost_pool_vals;" +${CLICKHOUSE_CLIENT} --query="create table catboost_pool_desc (id String, type String) engine = File(TSV);" +${CLICKHOUSE_CLIENT} --query="insert into catboost_pool_desc select '0', 'Categ';" +${CLICKHOUSE_CLIENT} --query="create table catboost_pool_vals (str String) engine = File(TSV);" +${CLICKHOUSE_CLIENT} --query="insert into catboost_pool_vals select 'Hello';" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', 'data/${CLICKHOUSE_DATABASE}/catboost_pool_vals/data.TSV');" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/test/catboost_pool_desc/data.TSV', '../../../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" +${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('data/${CLICKHOUSE_DATABASE}/catboost_pool_desc/data.TSV', '../../../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" ${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('${CURDIR}/00689_file.txt', '${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" ${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('../${CURDIR}/00689_file.txt', '../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" @@ -28,5 +28,5 @@ ${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('../../../../${CURDIR}/ ${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('../../../../../${CURDIR}/00689_file.txt', '../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" ${CLICKHOUSE_CLIENT} --query="select * from catBoostPool('../../../../../../${CURDIR}/00689_file.txt', '../../../../../../${CURDIR}/00689_file.txt');" 2>&1 | grep -o "Data" -${CLICKHOUSE_CLIENT} --query="drop table if exists test.catboost_pool_desc;" -${CLICKHOUSE_CLIENT} --query="drop table if exists test.catboost_pool_vals;" +${CLICKHOUSE_CLIENT} --query="drop table if exists catboost_pool_desc;" +${CLICKHOUSE_CLIENT} --query="drop table if exists catboost_pool_vals;" diff --git a/dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh b/dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh index dfee76df7c5..e9661babed6 100755 --- a/dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh +++ b/dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh @@ -5,11 +5,11 @@ CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL=none CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.test;" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.test (val Int64) engine = Memory;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test;" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE test (val Int64) engine = Memory;" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test SELECT 1;" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test SELECT NULL AS src;" 2>&1 | grep -oF 'while converting source column src to destination column val'; -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.test SELECT number % 2 ? 1 : NULL AS src FROM numbers(10);" 2>&1 | grep -oF 'while converting source column src to destination column val'; +${CLICKHOUSE_CLIENT} --query "INSERT INTO test SELECT 1;" +${CLICKHOUSE_CLIENT} --query "INSERT INTO test SELECT NULL AS src;" 2>&1 | grep -oF 'while converting source column src to destination column val'; +${CLICKHOUSE_CLIENT} --query "INSERT INTO test SELECT number % 2 ? 1 : NULL AS src FROM numbers(10);" 2>&1 | grep -oF 'while converting source column src to destination column val'; -${CLICKHOUSE_CLIENT} --query "DROP TABLE test.test;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE test;" diff --git a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql b/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql index 5971b2ed389..1e5b2a45d1a 100644 --- a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql +++ b/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql @@ -1,12 +1,12 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.mergetree; -CREATE TABLE test.mergetree (k UInt32, `n.x` Array(UInt64), `n.y` Array(UInt64)) ENGINE = MergeTree ORDER BY k; +DROP TABLE IF EXISTS mergetree; +CREATE TABLE mergetree (k UInt32, `n.x` Array(UInt64), `n.y` Array(UInt64)) ENGINE = MergeTree ORDER BY k; -INSERT INTO test.mergetree VALUES (3, [], [1, 2, 3]), (1, [111], []), (2, [], []); -- { serverError 190 } -SELECT * FROM test.mergetree; +INSERT INTO mergetree VALUES (3, [], [1, 2, 3]), (1, [111], []), (2, [], []); -- { serverError 190 } +SELECT * FROM mergetree; -INSERT INTO test.mergetree VALUES (3, [4, 5, 6], [1, 2, 3]), (1, [111], [222]), (2, [], []); -SELECT * FROM test.mergetree; +INSERT INTO mergetree VALUES (3, [4, 5, 6], [1, 2, 3]), (1, [111], [222]), (2, [], []); +SELECT * FROM mergetree; -DROP TABLE test.mergetree; +DROP TABLE mergetree; diff --git a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql b/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql index 0d15c7f9953..2d8dcc1f4f3 100644 --- a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql +++ b/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql @@ -1,7 +1,7 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.Issue_2231_Invalid_Nested_Columns_Size; -CREATE TABLE test.Issue_2231_Invalid_Nested_Columns_Size ( +DROP TABLE IF EXISTS Issue_2231_Invalid_Nested_Columns_Size; +CREATE TABLE Issue_2231_Invalid_Nested_Columns_Size ( Date Date, NestedColumn Nested( ID Int32, @@ -11,7 +11,7 @@ CREATE TABLE test.Issue_2231_Invalid_Nested_Columns_Size ( PARTITION BY tuple() ORDER BY Date; -INSERT INTO test.Issue_2231_Invalid_Nested_Columns_Size VALUES (today(), [2,2], [1]), (today(), [2,2], [1, 1]); -- { serverError 190 } +INSERT INTO Issue_2231_Invalid_Nested_Columns_Size VALUES (today(), [2,2], [1]), (today(), [2,2], [1, 1]); -- { serverError 190 } -SELECT * FROM test.Issue_2231_Invalid_Nested_Columns_Size; -DROP TABLE test.Issue_2231_Invalid_Nested_Columns_Size; +SELECT * FROM Issue_2231_Invalid_Nested_Columns_Size; +DROP TABLE Issue_2231_Invalid_Nested_Columns_Size; diff --git a/dbms/tests/queries/0_stateless/00699_materialized_view_mutations.sh b/dbms/tests/queries/0_stateless/00699_materialized_view_mutations.sh index f191ec3b77e..f42c2fb00d1 100755 --- a/dbms/tests/queries/0_stateless/00699_materialized_view_mutations.sh +++ b/dbms/tests/queries/0_stateless/00699_materialized_view_mutations.sh @@ -8,44 +8,44 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ${CLICKHOUSE_CLIENT} --multiquery --query=" -DROP TABLE IF EXISTS test.view; -DROP TABLE IF EXISTS test.null; +DROP TABLE IF EXISTS view; +DROP TABLE IF EXISTS null; -CREATE TABLE test.null (x UInt8) ENGINE = MergeTree ORDER BY tuple(); -CREATE MATERIALIZED VIEW test.view ENGINE = MergeTree ORDER BY tuple() AS SELECT * FROM test.null; +CREATE TABLE null (x UInt8) ENGINE = MergeTree ORDER BY tuple(); +CREATE MATERIALIZED VIEW view ENGINE = MergeTree ORDER BY tuple() AS SELECT * FROM null; -INSERT INTO test.null SELECT * FROM numbers(100); -SELECT count(), min(x), max(x) FROM test.null; -SELECT count(), min(x), max(x) FROM test.view; +INSERT INTO null SELECT * FROM numbers(100); +SELECT count(), min(x), max(x) FROM null; +SELECT count(), min(x), max(x) FROM view; -ALTER TABLE test.null DELETE WHERE x % 2 = 0;" +ALTER TABLE null DELETE WHERE x % 2 = 0;" wait_for_mutation null mutation_2.txt ${CLICKHOUSE_CLIENT} --multiquery --query=" -SELECT count(), min(x), max(x) FROM test.null; -SELECT count(), min(x), max(x) FROM test.view; +SELECT count(), min(x), max(x) FROM null; +SELECT count(), min(x), max(x) FROM view; -ALTER TABLE test.view DELETE WHERE x % 2 = 0; +ALTER TABLE view DELETE WHERE x % 2 = 0; " wait_for_mutation .inner.view mutation_2.txt ${CLICKHOUSE_CLIENT} --multiquery --query=" -SELECT count(), min(x), max(x) FROM test.null; -SELECT count(), min(x), max(x) FROM test.view; +SELECT count(), min(x), max(x) FROM null; +SELECT count(), min(x), max(x) FROM view; -ALTER TABLE test.null DELETE WHERE x % 2 = 1; -ALTER TABLE test.view DELETE WHERE x % 2 = 1; +ALTER TABLE null DELETE WHERE x % 2 = 1; +ALTER TABLE view DELETE WHERE x % 2 = 1; " wait_for_mutation null mutation_3.txt wait_for_mutation .inner.view mutation_3.txt ${CLICKHOUSE_CLIENT} --multiquery --query=" -SELECT count(), min(x), max(x) FROM test.null; -SELECT count(), min(x), max(x) FROM test.view; +SELECT count(), min(x), max(x) FROM null; +SELECT count(), min(x), max(x) FROM view; -DROP TABLE test.view; -DROP TABLE test.null; +DROP TABLE view; +DROP TABLE null; " diff --git a/dbms/tests/queries/0_stateless/00700_decimal_aggregates.sql b/dbms/tests/queries/0_stateless/00700_decimal_aggregates.sql index 0e482c9b109..7970c07b230 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_aggregates.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_aggregates.sql @@ -1,70 +1,70 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE test.decimal +CREATE TABLE decimal ( a Decimal32(4), b Decimal64(8), c Decimal128(8) ) ENGINE = Memory; -INSERT INTO test.decimal (a, b, c) +INSERT INTO decimal (a, b, c) SELECT toDecimal32(number - 50, 4), toDecimal64(number - 50, 8) / 3, toDecimal128(number - 50, 8) / 5 FROM system.numbers LIMIT 101; -SELECT count(a), count(b), count(c) FROM test.decimal; -SELECT [min(a), max(a)], [min(b), max(b)], [min(c), max(c)] FROM test.decimal; +SELECT count(a), count(b), count(c) FROM decimal; +SELECT [min(a), max(a)], [min(b), max(b)], [min(c), max(c)] FROM decimal; -SELECT sum(a), sum(b), sum(c), sumWithOverflow(a), sumWithOverflow(b), sumWithOverflow(c) FROM test.decimal; -SELECT sum(a), sum(b), sum(c), sumWithOverflow(a), sumWithOverflow(b), sumWithOverflow(c) FROM test.decimal WHERE a > 0; -SELECT sum(a), sum(b), sum(c), sumWithOverflow(a), sumWithOverflow(b), sumWithOverflow(c) FROM test.decimal WHERE a < 0; -SELECT sum(a+1), sum(b+1), sum(c+1), sumWithOverflow(a+1), sumWithOverflow(b+1), sumWithOverflow(c+1) FROM test.decimal; -SELECT sum(a-1), sum(b-1), sum(c-1), sumWithOverflow(a-1), sumWithOverflow(b-1), sumWithOverflow(c-1) FROM test.decimal; +SELECT sum(a), sum(b), sum(c), sumWithOverflow(a), sumWithOverflow(b), sumWithOverflow(c) FROM decimal; +SELECT sum(a), sum(b), sum(c), sumWithOverflow(a), sumWithOverflow(b), sumWithOverflow(c) FROM decimal WHERE a > 0; +SELECT sum(a), sum(b), sum(c), sumWithOverflow(a), sumWithOverflow(b), sumWithOverflow(c) FROM decimal WHERE a < 0; +SELECT sum(a+1), sum(b+1), sum(c+1), sumWithOverflow(a+1), sumWithOverflow(b+1), sumWithOverflow(c+1) FROM decimal; +SELECT sum(a-1), sum(b-1), sum(c-1), sumWithOverflow(a-1), sumWithOverflow(b-1), sumWithOverflow(c-1) FROM decimal; -SELECT avg(a), avg(b), avg(c) FROM test.decimal; -SELECT avg(a), avg(b), avg(c) FROM test.decimal WHERE a > 0; -SELECT avg(a), avg(b), avg(c) FROM test.decimal WHERE a < 0; +SELECT avg(a), avg(b), avg(c) FROM decimal; +SELECT avg(a), avg(b), avg(c) FROM decimal WHERE a > 0; +SELECT avg(a), avg(b), avg(c) FROM decimal WHERE a < 0; SELECT (uniq(a), uniq(b), uniq(c)), (uniqCombined(a), uniqCombined(b), uniqCombined(c)), (uniqCombined(17)(a), uniqCombined(17)(b), uniqCombined(17)(c)), (uniqExact(a), uniqExact(b), uniqExact(c)), (uniqHLL12(a), uniqHLL12(b), uniqHLL12(c)) -FROM (SELECT * FROM test.decimal ORDER BY a); +FROM (SELECT * FROM decimal ORDER BY a); -SELECT uniqUpTo(10)(a), uniqUpTo(10)(b), uniqUpTo(10)(c) FROM test.decimal WHERE a >= 0 AND a < 5; -SELECT uniqUpTo(10)(a), uniqUpTo(10)(b), uniqUpTo(10)(c) FROM test.decimal WHERE a >= 0 AND a < 10; +SELECT uniqUpTo(10)(a), uniqUpTo(10)(b), uniqUpTo(10)(c) FROM decimal WHERE a >= 0 AND a < 5; +SELECT uniqUpTo(10)(a), uniqUpTo(10)(b), uniqUpTo(10)(c) FROM decimal WHERE a >= 0 AND a < 10; -SELECT argMin(a, b), argMin(a, c), argMin(b, a), argMin(b, c), argMin(c, a), argMin(c, b) FROM test.decimal; -SELECT argMin(a, b), argMin(a, c), argMin(b, a), argMin(b, c), argMin(c, a), argMin(c, b) FROM test.decimal WHERE a > 0; -SELECT argMax(a, b), argMax(a, c), argMax(b, a), argMax(b, c), argMax(c, a), argMax(c, b) FROM test.decimal; -SELECT argMax(a, b), argMax(a, c), argMax(b, a), argMax(b, c), argMax(c, a), argMax(c, b) FROM test.decimal WHERE a < 0; +SELECT argMin(a, b), argMin(a, c), argMin(b, a), argMin(b, c), argMin(c, a), argMin(c, b) FROM decimal; +SELECT argMin(a, b), argMin(a, c), argMin(b, a), argMin(b, c), argMin(c, a), argMin(c, b) FROM decimal WHERE a > 0; +SELECT argMax(a, b), argMax(a, c), argMax(b, a), argMax(b, c), argMax(c, a), argMax(c, b) FROM decimal; +SELECT argMax(a, b), argMax(a, c), argMax(b, a), argMax(b, c), argMax(c, a), argMax(c, b) FROM decimal WHERE a < 0; -SELECT medianExact(a), medianExact(b), medianExact(c) FROM test.decimal; -SELECT quantileExact(a), quantileExact(b), quantileExact(c) FROM test.decimal WHERE a < 0; -SELECT quantileExact(0.0)(a), quantileExact(0.0)(b), quantileExact(0.0)(c) FROM test.decimal WHERE a >= 0; -SELECT quantileExact(0.2)(a), quantileExact(0.2)(b), quantileExact(0.2)(c) FROM test.decimal WHERE a >= 0; -SELECT quantileExact(0.4)(a), quantileExact(0.4)(b), quantileExact(0.4)(c) FROM test.decimal WHERE a >= 0; -SELECT quantileExact(0.6)(a), quantileExact(0.6)(b), quantileExact(0.6)(c) FROM test.decimal WHERE a >= 0; -SELECT quantileExact(0.8)(a), quantileExact(0.8)(b), quantileExact(0.8)(c) FROM test.decimal WHERE a >= 0; -SELECT quantileExact(1.0)(a), quantileExact(1.0)(b), quantileExact(1.0)(c) FROM test.decimal WHERE a >= 0; -SELECT quantilesExact(0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)(a) FROM test.decimal; -SELECT quantilesExact(0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)(b) FROM test.decimal; -SELECT quantilesExact(0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)(c) FROM test.decimal; +SELECT medianExact(a), medianExact(b), medianExact(c) FROM decimal; +SELECT quantileExact(a), quantileExact(b), quantileExact(c) FROM decimal WHERE a < 0; +SELECT quantileExact(0.0)(a), quantileExact(0.0)(b), quantileExact(0.0)(c) FROM decimal WHERE a >= 0; +SELECT quantileExact(0.2)(a), quantileExact(0.2)(b), quantileExact(0.2)(c) FROM decimal WHERE a >= 0; +SELECT quantileExact(0.4)(a), quantileExact(0.4)(b), quantileExact(0.4)(c) FROM decimal WHERE a >= 0; +SELECT quantileExact(0.6)(a), quantileExact(0.6)(b), quantileExact(0.6)(c) FROM decimal WHERE a >= 0; +SELECT quantileExact(0.8)(a), quantileExact(0.8)(b), quantileExact(0.8)(c) FROM decimal WHERE a >= 0; +SELECT quantileExact(1.0)(a), quantileExact(1.0)(b), quantileExact(1.0)(c) FROM decimal WHERE a >= 0; +SELECT quantilesExact(0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)(a) FROM decimal; +SELECT quantilesExact(0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)(b) FROM decimal; +SELECT quantilesExact(0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)(c) FROM decimal; -SELECT varPop(a) AS va, varPop(b) AS vb, varPop(c) AS vc, toTypeName(va), toTypeName(vb), toTypeName(vc) FROM test.decimal; -SELECT varPop(toFloat64(a)), varPop(toFloat64(b)), varPop(toFloat64(c)) FROM test.decimal; -SELECT varSamp(a) AS va, varSamp(b) AS vb, varSamp(c) AS vc, toTypeName(va), toTypeName(vb), toTypeName(vc) FROM test.decimal; -SELECT varSamp(toFloat64(a)), varSamp(toFloat64(b)), varSamp(toFloat64(c)) FROM test.decimal; +SELECT varPop(a) AS va, varPop(b) AS vb, varPop(c) AS vc, toTypeName(va), toTypeName(vb), toTypeName(vc) FROM decimal; +SELECT varPop(toFloat64(a)), varPop(toFloat64(b)), varPop(toFloat64(c)) FROM decimal; +SELECT varSamp(a) AS va, varSamp(b) AS vb, varSamp(c) AS vc, toTypeName(va), toTypeName(vb), toTypeName(vc) FROM decimal; +SELECT varSamp(toFloat64(a)), varSamp(toFloat64(b)), varSamp(toFloat64(c)) FROM decimal; -SELECT stddevPop(a) AS da, stddevPop(b) AS db, stddevPop(c) AS dc, toTypeName(da), toTypeName(db), toTypeName(dc) FROM test.decimal; -SELECT stddevPop(toFloat64(a)), stddevPop(toFloat64(b)), stddevPop(toFloat64(c)) FROM test.decimal; -SELECT stddevSamp(a) AS da, stddevSamp(b) AS db, stddevSamp(c) AS dc, toTypeName(da), toTypeName(db), toTypeName(dc) FROM test.decimal; -SELECT stddevSamp(toFloat64(a)), stddevSamp(toFloat64(b)), stddevSamp(toFloat64(c)) FROM test.decimal; +SELECT stddevPop(a) AS da, stddevPop(b) AS db, stddevPop(c) AS dc, toTypeName(da), toTypeName(db), toTypeName(dc) FROM decimal; +SELECT stddevPop(toFloat64(a)), stddevPop(toFloat64(b)), stddevPop(toFloat64(c)) FROM decimal; +SELECT stddevSamp(a) AS da, stddevSamp(b) AS db, stddevSamp(c) AS dc, toTypeName(da), toTypeName(db), toTypeName(dc) FROM decimal; +SELECT stddevSamp(toFloat64(a)), stddevSamp(toFloat64(b)), stddevSamp(toFloat64(c)) FROM decimal; -SELECT covarPop(a, a), covarPop(b, b), covarPop(c, c) FROM test.decimal; -- { serverError 43 } -SELECT covarSamp(a, a), covarSamp(b, b), covarSamp(c, c) FROM test.decimal; -- { serverError 43 } -SELECT corr(a, a), corr(b, b), corr(c, c) FROM test.decimal; -- { serverError 43 } +SELECT covarPop(a, a), covarPop(b, b), covarPop(c, c) FROM decimal; -- { serverError 43 } +SELECT covarSamp(a, a), covarSamp(b, b), covarSamp(c, c) FROM decimal; -- { serverError 43 } +SELECT corr(a, a), corr(b, b), corr(c, c) FROM decimal; -- { serverError 43 } SELECT 1 LIMIT 0; -- TODO: sumMap diff --git a/dbms/tests/queries/0_stateless/00700_decimal_arithm.sql b/dbms/tests/queries/0_stateless/00700_decimal_arithm.sql index fa0a3598c65..b04b0a1feed 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_arithm.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_arithm.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( a DECIMAL(9,0), b DECIMAL(18,0), @@ -15,53 +15,53 @@ CREATE TABLE IF NOT EXISTS test.decimal j dec(4,2) ) ENGINE = Memory; -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (42, 42, 42, 0.42, 0.42, 0.42, 42.42, 42.42, 42.42, 42.42); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-42, -42, -42, -0.42, -0.42, -0.42, -42.42, -42.42, -42.42, -42.42); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (42, 42, 42, 0.42, 0.42, 0.42, 42.42, 42.42, 42.42, 42.42); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-42, -42, -42, -0.42, -0.42, -0.42, -42.42, -42.42, -42.42, -42.42); -SELECT a + a, a - a, a * a, a / a, intDiv(a, a), intDivOrZero(a, a) FROM test.decimal WHERE a = 42; -SELECT b + b, b - b, b * b, b / b, intDiv(b, b), intDivOrZero(b, b) FROM test.decimal WHERE b = 42; -SELECT c + c, c - c, c * c, c / c, intDiv(c, c), intDivOrZero(c, c) FROM test.decimal WHERE c = 42; -SELECT e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e) FROM test.decimal WHERE e > 0; -- { serverError 69 } -SELECT f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f) FROM test.decimal WHERE f > 0; -- { serverError 69 } -SELECT g + g, g - g, g * g, g / g, intDiv(g, g), intDivOrZero(g, g) FROM test.decimal WHERE g > 0; -SELECT h + h, h - h, h * h, h / h, intDiv(h, h), intDivOrZero(h, h) FROM test.decimal WHERE h > 0; -- { serverError 407 } -SELECT h + h, h - h FROM test.decimal WHERE h > 0; -SELECT i + i, i - i, i * i, i / i, intDiv(i, i), intDivOrZero(i, i) FROM test.decimal WHERE i > 0; -- { serverError 407 } -SELECT i + i, i - i FROM test.decimal WHERE i > 0; -SELECT j + j, j - j, j * j, j / j, intDiv(j, j), intDivOrZero(j, j) FROM test.decimal WHERE j > 0; +SELECT a + a, a - a, a * a, a / a, intDiv(a, a), intDivOrZero(a, a) FROM decimal WHERE a = 42; +SELECT b + b, b - b, b * b, b / b, intDiv(b, b), intDivOrZero(b, b) FROM decimal WHERE b = 42; +SELECT c + c, c - c, c * c, c / c, intDiv(c, c), intDivOrZero(c, c) FROM decimal WHERE c = 42; +SELECT e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e) FROM decimal WHERE e > 0; -- { serverError 69 } +SELECT f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f) FROM decimal WHERE f > 0; -- { serverError 69 } +SELECT g + g, g - g, g * g, g / g, intDiv(g, g), intDivOrZero(g, g) FROM decimal WHERE g > 0; +SELECT h + h, h - h, h * h, h / h, intDiv(h, h), intDivOrZero(h, h) FROM decimal WHERE h > 0; -- { serverError 407 } +SELECT h + h, h - h FROM decimal WHERE h > 0; +SELECT i + i, i - i, i * i, i / i, intDiv(i, i), intDivOrZero(i, i) FROM decimal WHERE i > 0; -- { serverError 407 } +SELECT i + i, i - i FROM decimal WHERE i > 0; +SELECT j + j, j - j, j * j, j / j, intDiv(j, j), intDivOrZero(j, j) FROM decimal WHERE j > 0; -SELECT a + 21, a - 21, a - 84, a * 21, a * -21, a / 21, a / 84, intDiv(a, 21), intDivOrZero(a, 84) FROM test.decimal WHERE a = 42; -SELECT b + 21, b - 21, b - 84, b * 21, b * -21, b / 21, b / 84, intDiv(b, 21), intDivOrZero(b, 84) FROM test.decimal WHERE b = 42; -SELECT c + 21, c - 21, c - 84, c * 21, c * -21, c / 21, c / 84, intDiv(c, 21), intDivOrZero(c, 84) FROM test.decimal WHERE c = 42; -SELECT e + 21, e - 21, e - 84, e * 21, e * -21, e / 21, e / 84 FROM test.decimal WHERE e > 0; -- { serverError 407 } -SELECT f + 21, f - 21, f - 84, f * 21, f * -21, f / 21, f / 84 FROM test.decimal WHERE f > 0; -- { serverError 407 } -SELECT g + 21, g - 21, g - 84, g * 21, g * -21, g / 21, g / 84, intDiv(g, 21), intDivOrZero(g, 84) FROM test.decimal WHERE g > 0; -SELECT h + 21, h - 21, h - 84, h * 21, h * -21, h / 21, h / 84, intDiv(h, 21), intDivOrZero(h, 84) FROM test.decimal WHERE h > 0; -SELECT i + 21, i - 21, i - 84, i * 21, i * -21, i / 21, i / 84, intDiv(i, 21), intDivOrZero(i, 84) FROM test.decimal WHERE i > 0; -SELECT j + 21, j - 21, j - 84, j * 21, j * -21, j / 21, j / 84, intDiv(j, 21), intDivOrZero(j, 84) FROM test.decimal WHERE j > 0; +SELECT a + 21, a - 21, a - 84, a * 21, a * -21, a / 21, a / 84, intDiv(a, 21), intDivOrZero(a, 84) FROM decimal WHERE a = 42; +SELECT b + 21, b - 21, b - 84, b * 21, b * -21, b / 21, b / 84, intDiv(b, 21), intDivOrZero(b, 84) FROM decimal WHERE b = 42; +SELECT c + 21, c - 21, c - 84, c * 21, c * -21, c / 21, c / 84, intDiv(c, 21), intDivOrZero(c, 84) FROM decimal WHERE c = 42; +SELECT e + 21, e - 21, e - 84, e * 21, e * -21, e / 21, e / 84 FROM decimal WHERE e > 0; -- { serverError 407 } +SELECT f + 21, f - 21, f - 84, f * 21, f * -21, f / 21, f / 84 FROM decimal WHERE f > 0; -- { serverError 407 } +SELECT g + 21, g - 21, g - 84, g * 21, g * -21, g / 21, g / 84, intDiv(g, 21), intDivOrZero(g, 84) FROM decimal WHERE g > 0; +SELECT h + 21, h - 21, h - 84, h * 21, h * -21, h / 21, h / 84, intDiv(h, 21), intDivOrZero(h, 84) FROM decimal WHERE h > 0; +SELECT i + 21, i - 21, i - 84, i * 21, i * -21, i / 21, i / 84, intDiv(i, 21), intDivOrZero(i, 84) FROM decimal WHERE i > 0; +SELECT j + 21, j - 21, j - 84, j * 21, j * -21, j / 21, j / 84, intDiv(j, 21), intDivOrZero(j, 84) FROM decimal WHERE j > 0; -SELECT 21 + a, 21 - a, 84 - a, 21 * a, -21 * a, 21 / a, 84 / a, intDiv(21, a), intDivOrZero(84, a) FROM test.decimal WHERE a = 42; -SELECT 21 + b, 21 - b, 84 - b, 21 * b, -21 * b, 21 / b, 84 / b, intDiv(21, b), intDivOrZero(84, b) FROM test.decimal WHERE b = 42; -SELECT 21 + c, 21 - c, 84 - c, 21 * c, -21 * c, 21 / c, 84 / c, intDiv(21, c), intDivOrZero(84, c) FROM test.decimal WHERE c = 42; -SELECT 21 + e, 21 - e, 84 - e, 21 * e, -21 * e, 21 / e, 84 / e FROM test.decimal WHERE e > 0; -- { serverError 407 } -SELECT 21 + f, 21 - f, 84 - f, 21 * f, -21 * f, 21 / f, 84 / f FROM test.decimal WHERE f > 0; -- { serverError 407 } -SELECT 21 + g, 21 - g, 84 - g, 21 * g, -21 * g, 21 / g, 84 / g, intDiv(21, g), intDivOrZero(84, g) FROM test.decimal WHERE g > 0; -SELECT 21 + h, 21 - h, 84 - h, 21 * h, -21 * h, 21 / h, 84 / h FROM test.decimal WHERE h > 0; -- { serverError 407 } -SELECT 21 + h, 21 - h, 84 - h, 21 * h, -21 * h FROM test.decimal WHERE h > 0; -SELECT 21 + i, 21 - i, 84 - i, 21 * i, -21 * i, 21 / i, 84 / i, intDiv(21, i), intDivOrZero(84, i) FROM test.decimal WHERE i > 0; -SELECT 21 + j, 21 - j, 84 - j, 21 * j, -21 * j, 21 / j, 84 / j, intDiv(21, j), intDivOrZero(84, j) FROM test.decimal WHERE j > 0; +SELECT 21 + a, 21 - a, 84 - a, 21 * a, -21 * a, 21 / a, 84 / a, intDiv(21, a), intDivOrZero(84, a) FROM decimal WHERE a = 42; +SELECT 21 + b, 21 - b, 84 - b, 21 * b, -21 * b, 21 / b, 84 / b, intDiv(21, b), intDivOrZero(84, b) FROM decimal WHERE b = 42; +SELECT 21 + c, 21 - c, 84 - c, 21 * c, -21 * c, 21 / c, 84 / c, intDiv(21, c), intDivOrZero(84, c) FROM decimal WHERE c = 42; +SELECT 21 + e, 21 - e, 84 - e, 21 * e, -21 * e, 21 / e, 84 / e FROM decimal WHERE e > 0; -- { serverError 407 } +SELECT 21 + f, 21 - f, 84 - f, 21 * f, -21 * f, 21 / f, 84 / f FROM decimal WHERE f > 0; -- { serverError 407 } +SELECT 21 + g, 21 - g, 84 - g, 21 * g, -21 * g, 21 / g, 84 / g, intDiv(21, g), intDivOrZero(84, g) FROM decimal WHERE g > 0; +SELECT 21 + h, 21 - h, 84 - h, 21 * h, -21 * h, 21 / h, 84 / h FROM decimal WHERE h > 0; -- { serverError 407 } +SELECT 21 + h, 21 - h, 84 - h, 21 * h, -21 * h FROM decimal WHERE h > 0; +SELECT 21 + i, 21 - i, 84 - i, 21 * i, -21 * i, 21 / i, 84 / i, intDiv(21, i), intDivOrZero(84, i) FROM decimal WHERE i > 0; +SELECT 21 + j, 21 - j, 84 - j, 21 * j, -21 * j, 21 / j, 84 / j, intDiv(21, j), intDivOrZero(84, j) FROM decimal WHERE j > 0; -SELECT a, -a, -b, -c, -d, -e, -f, -g, -h, -j from test.decimal ORDER BY a; -SELECT abs(a), abs(b), abs(c), abs(d), abs(e), abs(f), abs(g), abs(h), abs(j) from test.decimal ORDER BY a; +SELECT a, -a, -b, -c, -d, -e, -f, -g, -h, -j from decimal ORDER BY a; +SELECT abs(a), abs(b), abs(c), abs(d), abs(e), abs(f), abs(g), abs(h), abs(j) from decimal ORDER BY a; SET decimal_check_overflow = 0; -SELECT (h * h) != 0, (h / h) != 1 FROM test.decimal WHERE h > 0; -SELECT (i * i) != 0, (i / i) = 1 FROM test.decimal WHERE i > 0; +SELECT (h * h) != 0, (h / h) != 1 FROM decimal WHERE h > 0; +SELECT (i * i) != 0, (i / i) = 1 FROM decimal WHERE i > 0; -SELECT e + 1 > e, e + 10 > e, 1 + e > e, 10 + e > e FROM test.decimal WHERE e > 0; -SELECT f + 1 > f, f + 10 > f, 1 + f > f, 10 + f > f FROM test.decimal WHERE f > 0; +SELECT e + 1 > e, e + 10 > e, 1 + e > e, 10 + e > e FROM decimal WHERE e > 0; +SELECT f + 1 > f, f + 10 > f, 1 + f > f, 10 + f > f FROM decimal WHERE f > 0; SELECT 1 / toDecimal32(0, 0); -- { serverError 153 } SELECT 1 / toDecimal64(0, 1); -- { serverError 153 } @@ -78,4 +78,4 @@ SELECT toDecimal32(0, 4) AS x, multiIf(x = 0, NULL, intDivOrZero(1, x)), multiIf SELECT toDecimal64(0, 8) AS x, multiIf(x = 0, NULL, intDivOrZero(1, x)), multiIf(x = 0, NULL, intDivOrZero(x, 0)); SELECT toDecimal64(0, 18) AS x, multiIf(x = 0, NULL, intDivOrZero(1, x)), multiIf(x = 0, NULL, intDivOrZero(x, 0)); -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_bounds.sql b/dbms/tests/queries/0_stateless/00700_decimal_bounds.sql index 13f62d2da18..677979afb16 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_bounds.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_bounds.sql @@ -1,11 +1,11 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal (x DECIMAL(10, -2)) ENGINE = Memory; -- { serverError 69 } -CREATE TABLE IF NOT EXISTS test.decimal (x DECIMAL(10, 15)) ENGINE = Memory; -- { serverError 69 } -CREATE TABLE IF NOT EXISTS test.decimal (x DECIMAL(0, 0)) ENGINE = Memory; -- { serverError 69 } +CREATE TABLE IF NOT EXISTS decimal (x DECIMAL(10, -2)) ENGINE = Memory; -- { serverError 69 } +CREATE TABLE IF NOT EXISTS decimal (x DECIMAL(10, 15)) ENGINE = Memory; -- { serverError 69 } +CREATE TABLE IF NOT EXISTS decimal (x DECIMAL(0, 0)) ENGINE = Memory; -- { serverError 69 } -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( a DECIMAL(9,0), b DECIMAL(18,0), @@ -19,80 +19,80 @@ CREATE TABLE IF NOT EXISTS test.decimal j DECIMAL(1,0) ) ENGINE = Memory; -INSERT INTO test.decimal (a) VALUES (1000000000); -- { clientError 69 } -INSERT INTO test.decimal (a) VALUES (-1000000000); -- { clientError 69 } -INSERT INTO test.decimal (b) VALUES (1000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (b) VALUES (-1000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (c) VALUES (100000000000000000000000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (c) VALUES (-100000000000000000000000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (d) VALUES (1); -- { clientError 69 } -INSERT INTO test.decimal (d) VALUES (-1); -- { clientError 69 } -INSERT INTO test.decimal (e) VALUES (1000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (e) VALUES (-1000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (f) VALUES (1); -- { clientError 69 } -INSERT INTO test.decimal (f) VALUES (-1); -- { clientError 69 } -INSERT INTO test.decimal (g) VALUES (10000); -- { clientError 69 } -INSERT INTO test.decimal (g) VALUES (-10000); -- { clientError 69 } -INSERT INTO test.decimal (h) VALUES (1000000000); -- { clientError 69 } -INSERT INTO test.decimal (h) VALUES (-1000000000); -- { clientError 69 } -INSERT INTO test.decimal (i) VALUES (100000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (i) VALUES (-100000000000000000000); -- { clientError 69 } -INSERT INTO test.decimal (j) VALUES (10); -- { clientError 69 } -INSERT INTO test.decimal (j) VALUES (-10); -- { clientError 69 } +INSERT INTO decimal (a) VALUES (1000000000); -- { clientError 69 } +INSERT INTO decimal (a) VALUES (-1000000000); -- { clientError 69 } +INSERT INTO decimal (b) VALUES (1000000000000000000); -- { clientError 69 } +INSERT INTO decimal (b) VALUES (-1000000000000000000); -- { clientError 69 } +INSERT INTO decimal (c) VALUES (100000000000000000000000000000000000000); -- { clientError 69 } +INSERT INTO decimal (c) VALUES (-100000000000000000000000000000000000000); -- { clientError 69 } +INSERT INTO decimal (d) VALUES (1); -- { clientError 69 } +INSERT INTO decimal (d) VALUES (-1); -- { clientError 69 } +INSERT INTO decimal (e) VALUES (1000000000000000000); -- { clientError 69 } +INSERT INTO decimal (e) VALUES (-1000000000000000000); -- { clientError 69 } +INSERT INTO decimal (f) VALUES (1); -- { clientError 69 } +INSERT INTO decimal (f) VALUES (-1); -- { clientError 69 } +INSERT INTO decimal (g) VALUES (10000); -- { clientError 69 } +INSERT INTO decimal (g) VALUES (-10000); -- { clientError 69 } +INSERT INTO decimal (h) VALUES (1000000000); -- { clientError 69 } +INSERT INTO decimal (h) VALUES (-1000000000); -- { clientError 69 } +INSERT INTO decimal (i) VALUES (100000000000000000000); -- { clientError 69 } +INSERT INTO decimal (i) VALUES (-100000000000000000000); -- { clientError 69 } +INSERT INTO decimal (j) VALUES (10); -- { clientError 69 } +INSERT INTO decimal (j) VALUES (-10); -- { clientError 69 } -INSERT INTO test.decimal (a) VALUES (0.1); -- { clientError 69 } -INSERT INTO test.decimal (a) VALUES (-0.1); -- { clientError 69 } -INSERT INTO test.decimal (b) VALUES (0.1); -- { clientError 69 } -INSERT INTO test.decimal (b) VALUES (-0.1); -- { clientError 69 } -INSERT INTO test.decimal (c) VALUES (0.1); -- { clientError 69 } -INSERT INTO test.decimal (c) VALUES (-0.1); -- { clientError 69 } -INSERT INTO test.decimal (d) VALUES (0.0000000001); -- { clientError 69 } -INSERT INTO test.decimal (d) VALUES (-0.0000000001); -- { clientError 69 } -INSERT INTO test.decimal (e) VALUES (0.0000000000000000001); -- { clientError 69 } -INSERT INTO test.decimal (e) VALUES (-0.0000000000000000001); -- { clientError 69 } -INSERT INTO test.decimal (f) VALUES (0.000000000000000000000000000000000000001); -- { clientError 69 } -INSERT INTO test.decimal (f) VALUES (-0.000000000000000000000000000000000000001); -- { clientError 69 } -INSERT INTO test.decimal (g) VALUES (0.000001); -- { clientError 69 } -INSERT INTO test.decimal (g) VALUES (-0.000001); -- { clientError 69 } -INSERT INTO test.decimal (h) VALUES (0.0000000001); -- { clientError 69 } -INSERT INTO test.decimal (h) VALUES (-0.0000000001); -- { clientError 69 } -INSERT INTO test.decimal (i) VALUES (0.0000000000000000001); -- { clientError 69 } -INSERT INTO test.decimal (i) VALUES (-0.0000000000000000001); -- { clientError 69 } -INSERT INTO test.decimal (j) VALUES (0.1); -- { clientError 69 } -INSERT INTO test.decimal (j) VALUES (-0.1); -- { clientError 69 } +INSERT INTO decimal (a) VALUES (0.1); -- { clientError 69 } +INSERT INTO decimal (a) VALUES (-0.1); -- { clientError 69 } +INSERT INTO decimal (b) VALUES (0.1); -- { clientError 69 } +INSERT INTO decimal (b) VALUES (-0.1); -- { clientError 69 } +INSERT INTO decimal (c) VALUES (0.1); -- { clientError 69 } +INSERT INTO decimal (c) VALUES (-0.1); -- { clientError 69 } +INSERT INTO decimal (d) VALUES (0.0000000001); -- { clientError 69 } +INSERT INTO decimal (d) VALUES (-0.0000000001); -- { clientError 69 } +INSERT INTO decimal (e) VALUES (0.0000000000000000001); -- { clientError 69 } +INSERT INTO decimal (e) VALUES (-0.0000000000000000001); -- { clientError 69 } +INSERT INTO decimal (f) VALUES (0.000000000000000000000000000000000000001); -- { clientError 69 } +INSERT INTO decimal (f) VALUES (-0.000000000000000000000000000000000000001); -- { clientError 69 } +INSERT INTO decimal (g) VALUES (0.000001); -- { clientError 69 } +INSERT INTO decimal (g) VALUES (-0.000001); -- { clientError 69 } +INSERT INTO decimal (h) VALUES (0.0000000001); -- { clientError 69 } +INSERT INTO decimal (h) VALUES (-0.0000000001); -- { clientError 69 } +INSERT INTO decimal (i) VALUES (0.0000000000000000001); -- { clientError 69 } +INSERT INTO decimal (i) VALUES (-0.0000000000000000001); -- { clientError 69 } +INSERT INTO decimal (j) VALUES (0.1); -- { clientError 69 } +INSERT INTO decimal (j) VALUES (-0.1); -- { clientError 69 } -INSERT INTO test.decimal (a, b, d, g) VALUES (999999999, 999999999999999999, 0.999999999, 9999.99999); -INSERT INTO test.decimal (a, b, d, g) VALUES (-999999999, -999999999999999999, -0.999999999, -9999.99999); -INSERT INTO test.decimal (c) VALUES (99999999999999999999999999999999999999); -INSERT INTO test.decimal (c) VALUES (-99999999999999999999999999999999999999); -INSERT INTO test.decimal (f) VALUES (0.99999999999999999999999999999999999999); -INSERT INTO test.decimal (f) VALUES (-0.99999999999999999999999999999999999999); -INSERT INTO test.decimal (e, h) VALUES (0.999999999999999999, 999999999.999999999); -INSERT INTO test.decimal (e, h) VALUES (-0.999999999999999999, -999999999.999999999); -INSERT INTO test.decimal (i) VALUES (99999999999999999999.999999999999999999); -INSERT INTO test.decimal (i) VALUES (-99999999999999999999.999999999999999999); +INSERT INTO decimal (a, b, d, g) VALUES (999999999, 999999999999999999, 0.999999999, 9999.99999); +INSERT INTO decimal (a, b, d, g) VALUES (-999999999, -999999999999999999, -0.999999999, -9999.99999); +INSERT INTO decimal (c) VALUES (99999999999999999999999999999999999999); +INSERT INTO decimal (c) VALUES (-99999999999999999999999999999999999999); +INSERT INTO decimal (f) VALUES (0.99999999999999999999999999999999999999); +INSERT INTO decimal (f) VALUES (-0.99999999999999999999999999999999999999); +INSERT INTO decimal (e, h) VALUES (0.999999999999999999, 999999999.999999999); +INSERT INTO decimal (e, h) VALUES (-0.999999999999999999, -999999999.999999999); +INSERT INTO decimal (i) VALUES (99999999999999999999.999999999999999999); +INSERT INTO decimal (i) VALUES (-99999999999999999999.999999999999999999); -INSERT INTO test.decimal (a, b, c, d, g, j, h) VALUES (1, 1, 1, 0.000000001, 0.00001, 1, 0.000000001); -INSERT INTO test.decimal (a, b, c, d, g, j, h) VALUES (-1, -1, -1, -0.000000001, -0.00001, -1, -0.000000001); -INSERT INTO test.decimal (e, f) VALUES (0.000000000000000001, 0.00000000000000000000000000000000000001); -INSERT INTO test.decimal (e, f) VALUES (-0.000000000000000001, -0.00000000000000000000000000000000000001); -INSERT INTO test.decimal (i) VALUES (0.000000000000000001); -INSERT INTO test.decimal (i) VALUES (-0.000000000000000001); +INSERT INTO decimal (a, b, c, d, g, j, h) VALUES (1, 1, 1, 0.000000001, 0.00001, 1, 0.000000001); +INSERT INTO decimal (a, b, c, d, g, j, h) VALUES (-1, -1, -1, -0.000000001, -0.00001, -1, -0.000000001); +INSERT INTO decimal (e, f) VALUES (0.000000000000000001, 0.00000000000000000000000000000000000001); +INSERT INTO decimal (e, f) VALUES (-0.000000000000000001, -0.00000000000000000000000000000000000001); +INSERT INTO decimal (i) VALUES (0.000000000000000001); +INSERT INTO decimal (i) VALUES (-0.000000000000000001); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0, -0, -0, -0, -0, -0, -0, -0, -0, -0); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0, -0, -0, -0, -0, -0, -0, -0, -0, -0); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0); -INSERT INTO test.decimal (a, b, g) VALUES ('42.00000', 42.0000000000000000000000000000000, '0.999990'); -INSERT INTO test.decimal (a) VALUES ('-9x'); -- { clientError 72 } -INSERT INTO test.decimal (a) VALUES ('0x1'); -- { clientError 72 } +INSERT INTO decimal (a, b, g) VALUES ('42.00000', 42.0000000000000000000000000000000, '0.999990'); +INSERT INTO decimal (a) VALUES ('-9x'); -- { clientError 72 } +INSERT INTO decimal (a) VALUES ('0x1'); -- { clientError 72 } -INSERT INTO test.decimal (a, b, c, d, e, f) VALUES ('0.9e9', '0.9e18', '0.9e38', '9e-9', '9e-18', '9e-38'); -INSERT INTO test.decimal (a, b, c, d, e, f) VALUES ('-0.9e9', '-0.9e18', '-0.9e38', '-9e-9', '-9e-18', '-9e-38'); +INSERT INTO decimal (a, b, c, d, e, f) VALUES ('0.9e9', '0.9e18', '0.9e38', '9e-9', '9e-18', '9e-38'); +INSERT INTO decimal (a, b, c, d, e, f) VALUES ('-0.9e9', '-0.9e18', '-0.9e38', '-9e-9', '-9e-18', '-9e-38'); -INSERT INTO test.decimal (a, b, c, d, e, f) VALUES ('1e9', '1e18', '1e38', '1e-10', '1e-19', '1e-39'); -- { clientError 69 } -INSERT INTO test.decimal (a, b, c, d, e, f) VALUES ('-1e9', '-1e18', '-1e38', '-1e-10', '-1e-19', '-1e-39'); -- { clientError 69 } +INSERT INTO decimal (a, b, c, d, e, f) VALUES ('1e9', '1e18', '1e38', '1e-10', '1e-19', '1e-39'); -- { clientError 69 } +INSERT INTO decimal (a, b, c, d, e, f) VALUES ('-1e9', '-1e18', '-1e38', '-1e-10', '-1e-19', '-1e-39'); -- { clientError 69 } -SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j; -DROP TABLE IF EXISTS test.decimal; +SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_compare.sql b/dbms/tests/queries/0_stateless/00700_decimal_compare.sql index 767bd0e3232..92bb86736c4 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_compare.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_compare.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( a DECIMAL(9,0), b DECIMAL(18,0), @@ -15,54 +15,54 @@ CREATE TABLE IF NOT EXISTS test.decimal j dec(4,2) ) ENGINE = Memory; -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (42, 42, 42, 0.42, 0.42, 0.42, 42.42, 42.42, 42.42, 42.42); -INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-42, -42, -42, -0.42, -0.42, -0.42, -42.42, -42.42, -42.42, -42.42); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (42, 42, 42, 0.42, 0.42, 0.42, 42.42, 42.42, 42.42, 42.42); +INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-42, -42, -42, -0.42, -0.42, -0.42, -42.42, -42.42, -42.42, -42.42); -SELECT a > toFloat64(0) FROM test.decimal; -- { serverError 43 } -SELECT g > toFloat32(0) FROM test.decimal; -- { serverError 43 } -SELECT a > '0.0' FROM test.decimal; -- { serverError 43 } +SELECT a > toFloat64(0) FROM decimal; -- { serverError 43 } +SELECT g > toFloat32(0) FROM decimal; -- { serverError 43 } +SELECT a > '0.0' FROM decimal; -- { serverError 43 } -SELECT a, b, a = b, a < b, a > b, a != b, a <= b, a >= b FROM test.decimal ORDER BY a; -SELECT a, g, a = g, a < g, a > g, a != g, a <= g, a >= g FROM test.decimal ORDER BY a; -SELECT a > 0, b > 0, g > 0 FROM test.decimal ORDER BY a DESC; -SELECT a, g > toInt8(0), g > toInt16(0), g > toInt32(0), g > toInt64(0) FROM test.decimal ORDER BY a; -SELECT a, g > toUInt8(0), g > toUInt16(0), g > toUInt32(0), g > toUInt64(0) FROM test.decimal ORDER BY a; -SELECT a, b, g FROM test.decimal WHERE a IN(42) AND b IN(42) AND g IN(42); -SELECT a, b, g FROM test.decimal WHERE a > 0 AND a <= 42 AND b <= 42 AND g <= 42; +SELECT a, b, a = b, a < b, a > b, a != b, a <= b, a >= b FROM decimal ORDER BY a; +SELECT a, g, a = g, a < g, a > g, a != g, a <= g, a >= g FROM decimal ORDER BY a; +SELECT a > 0, b > 0, g > 0 FROM decimal ORDER BY a DESC; +SELECT a, g > toInt8(0), g > toInt16(0), g > toInt32(0), g > toInt64(0) FROM decimal ORDER BY a; +SELECT a, g > toUInt8(0), g > toUInt16(0), g > toUInt32(0), g > toUInt64(0) FROM decimal ORDER BY a; +SELECT a, b, g FROM decimal WHERE a IN(42) AND b IN(42) AND g IN(42); +SELECT a, b, g FROM decimal WHERE a > 0 AND a <= 42 AND b <= 42 AND g <= 42; -SELECT d, e, f from test.decimal WHERE d > 0 AND d < 1 AND e > 0 AND e < 1 AND f > 0 AND f < 1; -SELECT j, h, i, j from test.decimal WHERE j > 42 AND h > 42 AND h > 42 AND j > 42; -SELECT j, h, i, j from test.decimal WHERE j < 42 AND h < 42 AND h < 42 AND j < 42; -SELECT a, b, c FROM test.decimal WHERE a = toInt8(42) AND b = toInt8(42) AND c = toInt8(42); -SELECT a, b, c FROM test.decimal WHERE a = toInt16(42) AND b = toInt16(42) AND c = toInt16(42); -SELECT a, b, c FROM test.decimal WHERE a = toInt32(42) AND b = toInt32(42) AND c = toInt32(42); -SELECT a, b, c FROM test.decimal WHERE a = toInt64(42) AND b = toInt64(42) AND c = toInt64(42); -SELECT a, b, c FROM test.decimal WHERE a = toFloat32(42); -- { serverError 43 } -SELECT a, b, c FROM test.decimal WHERE a = toFloat64(42); -- { serverError 43 } +SELECT d, e, f from decimal WHERE d > 0 AND d < 1 AND e > 0 AND e < 1 AND f > 0 AND f < 1; +SELECT j, h, i, j from decimal WHERE j > 42 AND h > 42 AND h > 42 AND j > 42; +SELECT j, h, i, j from decimal WHERE j < 42 AND h < 42 AND h < 42 AND j < 42; +SELECT a, b, c FROM decimal WHERE a = toInt8(42) AND b = toInt8(42) AND c = toInt8(42); +SELECT a, b, c FROM decimal WHERE a = toInt16(42) AND b = toInt16(42) AND c = toInt16(42); +SELECT a, b, c FROM decimal WHERE a = toInt32(42) AND b = toInt32(42) AND c = toInt32(42); +SELECT a, b, c FROM decimal WHERE a = toInt64(42) AND b = toInt64(42) AND c = toInt64(42); +SELECT a, b, c FROM decimal WHERE a = toFloat32(42); -- { serverError 43 } +SELECT a, b, c FROM decimal WHERE a = toFloat64(42); -- { serverError 43 } -SELECT least(a, b), least(a, g), greatest(a, b), greatest(a, g) FROM test.decimal ORDER BY a; -SELECT least(a, 0), least(b, 0), least(g, 0) FROM test.decimal ORDER BY a; -SELECT greatest(a, 0), greatest(b, 0), greatest(g, 0) FROM test.decimal ORDER BY a; +SELECT least(a, b), least(a, g), greatest(a, b), greatest(a, g) FROM decimal ORDER BY a; +SELECT least(a, 0), least(b, 0), least(g, 0) FROM decimal ORDER BY a; +SELECT greatest(a, 0), greatest(b, 0), greatest(g, 0) FROM decimal ORDER BY a; -SELECT (a, d, g) = (b, e, h), (a, d, g) != (b, e, h) FROM test.decimal ORDER BY a; -SELECT (a, d, g) = (c, f, i), (a, d, g) != (c, f, i) FROM test.decimal ORDER BY a; +SELECT (a, d, g) = (b, e, h), (a, d, g) != (b, e, h) FROM decimal ORDER BY a; +SELECT (a, d, g) = (c, f, i), (a, d, g) != (c, f, i) FROM decimal ORDER BY a; -SELECT toUInt32(2147483648) AS x, a == x FROM test.decimal WHERE a = 42; -- { serverError 407 } -SELECT toUInt64(2147483648) AS x, b == x, x == ((b - 42) + x) FROM test.decimal WHERE a = 42; -SELECT toUInt64(9223372036854775808) AS x, b == x FROM test.decimal WHERE a = 42; -- { serverError 407 } -SELECT toUInt64(9223372036854775808) AS x, c == x, x == ((c - 42) + x) FROM test.decimal WHERE a = 42; +SELECT toUInt32(2147483648) AS x, a == x FROM decimal WHERE a = 42; -- { serverError 407 } +SELECT toUInt64(2147483648) AS x, b == x, x == ((b - 42) + x) FROM decimal WHERE a = 42; +SELECT toUInt64(9223372036854775808) AS x, b == x FROM decimal WHERE a = 42; -- { serverError 407 } +SELECT toUInt64(9223372036854775808) AS x, c == x, x == ((c - 42) + x) FROM decimal WHERE a = 42; -SELECT g = 10000, (g - g + 10000) == 10000 FROM test.decimal WHERE a = 42; -SELECT 10000 = g, 10000 = (g - g + 10000) FROM test.decimal WHERE a = 42; -SELECT g = 30000 FROM test.decimal WHERE a = 42; -- { serverError 407 } -SELECT 30000 = g FROM test.decimal WHERE a = 42; -- { serverError 407 } -SELECT h = 30000, (h - g + 30000) = 30000 FROM test.decimal WHERE a = 42; -SELECT 30000 = h, 30000 = (h - g + 30000) FROM test.decimal WHERE a = 42; -SELECT h = 10000000000 FROM test.decimal WHERE a = 42; -- { serverError 407 } -SELECT i = 10000000000, (i - g + 10000000000) = 10000000000 FROM test.decimal WHERE a = 42; -SELECT 10000000000 = i, 10000000000 = (i - g + 10000000000) FROM test.decimal WHERE a = 42; +SELECT g = 10000, (g - g + 10000) == 10000 FROM decimal WHERE a = 42; +SELECT 10000 = g, 10000 = (g - g + 10000) FROM decimal WHERE a = 42; +SELECT g = 30000 FROM decimal WHERE a = 42; -- { serverError 407 } +SELECT 30000 = g FROM decimal WHERE a = 42; -- { serverError 407 } +SELECT h = 30000, (h - g + 30000) = 30000 FROM decimal WHERE a = 42; +SELECT 30000 = h, 30000 = (h - g + 30000) FROM decimal WHERE a = 42; +SELECT h = 10000000000 FROM decimal WHERE a = 42; -- { serverError 407 } +SELECT i = 10000000000, (i - g + 10000000000) = 10000000000 FROM decimal WHERE a = 42; +SELECT 10000000000 = i, 10000000000 = (i - g + 10000000000) FROM decimal WHERE a = 42; -SELECT min(a), min(b), min(c), min(d), min(e), min(f), min(g), min(h), min(i), min(j) FROM test.decimal; -SELECT max(a), max(b), max(c), max(d), max(e), max(f), max(g), max(h), max(i), max(j) FROM test.decimal; +SELECT min(a), min(b), min(c), min(d), min(e), min(f), min(g), min(h), min(i), min(j) FROM decimal; +SELECT max(a), max(b), max(c), max(d), max(e), max(f), max(g), max(h), max(i), max(j) FROM decimal; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_complex_types.sql b/dbms/tests/queries/0_stateless/00700_decimal_complex_types.sql index 7cf763b43ea..64c22be058d 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_complex_types.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_complex_types.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE test.decimal +CREATE TABLE decimal ( a Array(Decimal32(3)), b Array(Decimal64(3)), @@ -15,92 +15,92 @@ CREATE TABLE test.decimal tup Tuple(Decimal32(1), Decimal64(1), Decimal128(1)) ) ENGINE = Memory; -INSERT INTO test.decimal (a, b, c, nest.a, nest.b, nest.c, tup) +INSERT INTO decimal (a, b, c, nest.a, nest.b, nest.c, tup) VALUES ([0.1, 0.2, 0.3], [0.4, 0.5, 0.6], [0.7, 0.8, 0.9], [1.1, 1.2], [2.1, 2.2], [3.1, 3.2], (9.1, 9.2, 9.3)); -SELECT toTypeName(a), toTypeName(b), toTypeName(c) FROM test.decimal; -SELECT toTypeName(nest.a), toTypeName(nest.b), toTypeName(nest.c) FROM test.decimal; -SELECT toTypeName(a[1]), toTypeName(b[2]), toTypeName(c[3]) FROM test.decimal; -SELECT toTypeName(nest.a[1]), toTypeName(nest.b[1]), toTypeName(nest.c[1]) FROM test.decimal; -SELECT toTypeName(tup), toTypeName(tup.1), toTypeName(tup.2), toTypeName(tup.3) FROM test.decimal; +SELECT toTypeName(a), toTypeName(b), toTypeName(c) FROM decimal; +SELECT toTypeName(nest.a), toTypeName(nest.b), toTypeName(nest.c) FROM decimal; +SELECT toTypeName(a[1]), toTypeName(b[2]), toTypeName(c[3]) FROM decimal; +SELECT toTypeName(nest.a[1]), toTypeName(nest.b[1]), toTypeName(nest.c[1]) FROM decimal; +SELECT toTypeName(tup), toTypeName(tup.1), toTypeName(tup.2), toTypeName(tup.3) FROM decimal; -SELECT arrayJoin(a) FROM test.decimal; -SELECT arrayJoin(b) FROM test.decimal; -SELECT arrayJoin(c) FROM test.decimal; +SELECT arrayJoin(a) FROM decimal; +SELECT arrayJoin(b) FROM decimal; +SELECT arrayJoin(c) FROM decimal; -SELECT tup, tup.1, tup.2, tup.3 FROM test.decimal; -SELECT a, arrayPopBack(a), arrayPopFront(a), arrayResize(a, 1), arraySlice(a, 2, 1) FROM test.decimal; -SELECT b, arrayPopBack(b), arrayPopFront(b), arrayResize(b, 1), arraySlice(b, 2, 1) FROM test.decimal; -SELECT c, arrayPopBack(c), arrayPopFront(c), arrayResize(c, 1), arraySlice(c, 2, 1) FROM test.decimal; -SELECT nest.a, arrayPopBack(nest.a), arrayPopFront(nest.a), arrayResize(nest.a, 1), arraySlice(nest.a, 2, 1) FROM test.decimal; -SELECT nest.b, arrayPopBack(nest.b), arrayPopFront(nest.b), arrayResize(nest.b, 1), arraySlice(nest.b, 2, 1) FROM test.decimal; -SELECT nest.c, arrayPopBack(nest.c), arrayPopFront(nest.c), arrayResize(nest.c, 1), arraySlice(nest.c, 2, 1) FROM test.decimal; -SELECT arrayPushBack(a, toDecimal32(0, 3)), arrayPushFront(a, toDecimal32(0, 3)) FROM test.decimal; -SELECT arrayPushBack(b, toDecimal64(0, 3)), arrayPushFront(b, toDecimal64(0, 3)) FROM test.decimal; -SELECT arrayPushBack(c, toDecimal128(0, 3)), arrayPushFront(c, toDecimal128(0, 3)) FROM test.decimal; +SELECT tup, tup.1, tup.2, tup.3 FROM decimal; +SELECT a, arrayPopBack(a), arrayPopFront(a), arrayResize(a, 1), arraySlice(a, 2, 1) FROM decimal; +SELECT b, arrayPopBack(b), arrayPopFront(b), arrayResize(b, 1), arraySlice(b, 2, 1) FROM decimal; +SELECT c, arrayPopBack(c), arrayPopFront(c), arrayResize(c, 1), arraySlice(c, 2, 1) FROM decimal; +SELECT nest.a, arrayPopBack(nest.a), arrayPopFront(nest.a), arrayResize(nest.a, 1), arraySlice(nest.a, 2, 1) FROM decimal; +SELECT nest.b, arrayPopBack(nest.b), arrayPopFront(nest.b), arrayResize(nest.b, 1), arraySlice(nest.b, 2, 1) FROM decimal; +SELECT nest.c, arrayPopBack(nest.c), arrayPopFront(nest.c), arrayResize(nest.c, 1), arraySlice(nest.c, 2, 1) FROM decimal; +SELECT arrayPushBack(a, toDecimal32(0, 3)), arrayPushFront(a, toDecimal32(0, 3)) FROM decimal; +SELECT arrayPushBack(b, toDecimal64(0, 3)), arrayPushFront(b, toDecimal64(0, 3)) FROM decimal; +SELECT arrayPushBack(c, toDecimal128(0, 3)), arrayPushFront(c, toDecimal128(0, 3)) FROM decimal; -SELECT arrayPushBack(a, toDecimal32(0, 2)) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayPushBack(b, toDecimal64(0, 2)) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayPushBack(c, toDecimal128(0, 2)) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayPushFront(a, toDecimal32(0, 4)) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayPushFront(b, toDecimal64(0, 4)) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayPushFront(c, toDecimal128(0, 4)) AS x, toTypeName(x) FROM test.decimal; +SELECT arrayPushBack(a, toDecimal32(0, 2)) AS x, toTypeName(x) FROM decimal; +SELECT arrayPushBack(b, toDecimal64(0, 2)) AS x, toTypeName(x) FROM decimal; +SELECT arrayPushBack(c, toDecimal128(0, 2)) AS x, toTypeName(x) FROM decimal; +SELECT arrayPushFront(a, toDecimal32(0, 4)) AS x, toTypeName(x) FROM decimal; +SELECT arrayPushFront(b, toDecimal64(0, 4)) AS x, toTypeName(x) FROM decimal; +SELECT arrayPushFront(c, toDecimal128(0, 4)) AS x, toTypeName(x) FROM decimal; -SELECT length(a), length(b), length(c) FROM test.decimal; -SELECT length(nest.a), length(nest.b), length(nest.c) FROM test.decimal; -SELECT empty(a), empty(b), empty(c) FROM test.decimal; -SELECT empty(nest.a), empty(nest.b), empty(nest.c) FROM test.decimal; -SELECT notEmpty(a), notEmpty(b), notEmpty(c) FROM test.decimal; -SELECT notEmpty(nest.a), notEmpty(nest.b), notEmpty(nest.c) FROM test.decimal; -SELECT arrayUniq(a), arrayUniq(b), arrayUniq(c) FROM test.decimal; -SELECT arrayUniq(nest.a), arrayUniq(nest.b), arrayUniq(nest.c) FROM test.decimal; +SELECT length(a), length(b), length(c) FROM decimal; +SELECT length(nest.a), length(nest.b), length(nest.c) FROM decimal; +SELECT empty(a), empty(b), empty(c) FROM decimal; +SELECT empty(nest.a), empty(nest.b), empty(nest.c) FROM decimal; +SELECT notEmpty(a), notEmpty(b), notEmpty(c) FROM decimal; +SELECT notEmpty(nest.a), notEmpty(nest.b), notEmpty(nest.c) FROM decimal; +SELECT arrayUniq(a), arrayUniq(b), arrayUniq(c) FROM decimal; +SELECT arrayUniq(nest.a), arrayUniq(nest.b), arrayUniq(nest.c) FROM decimal; -SELECT has(a, toDecimal32(0.1, 3)), has(a, toDecimal32(1.0, 3)) FROM test.decimal; -SELECT has(b, toDecimal64(0.4, 3)), has(b, toDecimal64(1.0, 3)) FROM test.decimal; -SELECT has(c, toDecimal128(0.7, 3)), has(c, toDecimal128(1.0, 3)) FROM test.decimal; +SELECT has(a, toDecimal32(0.1, 3)), has(a, toDecimal32(1.0, 3)) FROM decimal; +SELECT has(b, toDecimal64(0.4, 3)), has(b, toDecimal64(1.0, 3)) FROM decimal; +SELECT has(c, toDecimal128(0.7, 3)), has(c, toDecimal128(1.0, 3)) FROM decimal; -SELECT has(a, toDecimal32(0.1, 2)) FROM test.decimal; -- { serverError 43 } -SELECT has(a, toDecimal32(0.1, 4)) FROM test.decimal; -- { serverError 43 } -SELECT has(a, toDecimal64(0.1, 3)) FROM test.decimal; -- { serverError 43 } -SELECT has(a, toDecimal128(0.1, 3)) FROM test.decimal; -- { serverError 43 } -SELECT has(b, toDecimal32(0.4, 3)) FROM test.decimal; -- { serverError 43 } -SELECT has(b, toDecimal64(0.4, 2)) FROM test.decimal; -- { serverError 43 } -SELECT has(b, toDecimal64(0.4, 4)) FROM test.decimal; -- { serverError 43 } -SELECT has(b, toDecimal128(0.4, 3)) FROM test.decimal; -- { serverError 43 } -SELECT has(c, toDecimal32(0.7, 3)) FROM test.decimal; -- { serverError 43 } -SELECT has(c, toDecimal64(0.7, 3)) FROM test.decimal; -- { serverError 43 } -SELECT has(c, toDecimal128(0.7, 2)) FROM test.decimal; -- { serverError 43 } -SELECT has(c, toDecimal128(0.7, 4)) FROM test.decimal; -- { serverError 43 } +SELECT has(a, toDecimal32(0.1, 2)) FROM decimal; -- { serverError 43 } +SELECT has(a, toDecimal32(0.1, 4)) FROM decimal; -- { serverError 43 } +SELECT has(a, toDecimal64(0.1, 3)) FROM decimal; -- { serverError 43 } +SELECT has(a, toDecimal128(0.1, 3)) FROM decimal; -- { serverError 43 } +SELECT has(b, toDecimal32(0.4, 3)) FROM decimal; -- { serverError 43 } +SELECT has(b, toDecimal64(0.4, 2)) FROM decimal; -- { serverError 43 } +SELECT has(b, toDecimal64(0.4, 4)) FROM decimal; -- { serverError 43 } +SELECT has(b, toDecimal128(0.4, 3)) FROM decimal; -- { serverError 43 } +SELECT has(c, toDecimal32(0.7, 3)) FROM decimal; -- { serverError 43 } +SELECT has(c, toDecimal64(0.7, 3)) FROM decimal; -- { serverError 43 } +SELECT has(c, toDecimal128(0.7, 2)) FROM decimal; -- { serverError 43 } +SELECT has(c, toDecimal128(0.7, 4)) FROM decimal; -- { serverError 43 } -SELECT indexOf(a, toDecimal32(0.1, 3)), indexOf(a, toDecimal32(1.0, 3)) FROM test.decimal; -SELECT indexOf(b, toDecimal64(0.5, 3)), indexOf(b, toDecimal64(1.0, 3)) FROM test.decimal; -SELECT indexOf(c, toDecimal128(0.9, 3)), indexOf(c, toDecimal128(1.0, 3)) FROM test.decimal; +SELECT indexOf(a, toDecimal32(0.1, 3)), indexOf(a, toDecimal32(1.0, 3)) FROM decimal; +SELECT indexOf(b, toDecimal64(0.5, 3)), indexOf(b, toDecimal64(1.0, 3)) FROM decimal; +SELECT indexOf(c, toDecimal128(0.9, 3)), indexOf(c, toDecimal128(1.0, 3)) FROM decimal; -SELECT indexOf(a, toDecimal32(0.1, 2)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(a, toDecimal32(0.1, 4)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(a, toDecimal64(0.1, 3)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(a, toDecimal128(0.1, 3)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(b, toDecimal32(0.4, 3)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(b, toDecimal64(0.4, 2)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(b, toDecimal64(0.4, 4)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(b, toDecimal128(0.4, 3)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(c, toDecimal32(0.7, 3)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(c, toDecimal64(0.7, 3)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(c, toDecimal128(0.7, 2)) FROM test.decimal; -- { serverError 43 } -SELECT indexOf(c, toDecimal128(0.7, 4)) FROM test.decimal; -- { serverError 43 } +SELECT indexOf(a, toDecimal32(0.1, 2)) FROM decimal; -- { serverError 43 } +SELECT indexOf(a, toDecimal32(0.1, 4)) FROM decimal; -- { serverError 43 } +SELECT indexOf(a, toDecimal64(0.1, 3)) FROM decimal; -- { serverError 43 } +SELECT indexOf(a, toDecimal128(0.1, 3)) FROM decimal; -- { serverError 43 } +SELECT indexOf(b, toDecimal32(0.4, 3)) FROM decimal; -- { serverError 43 } +SELECT indexOf(b, toDecimal64(0.4, 2)) FROM decimal; -- { serverError 43 } +SELECT indexOf(b, toDecimal64(0.4, 4)) FROM decimal; -- { serverError 43 } +SELECT indexOf(b, toDecimal128(0.4, 3)) FROM decimal; -- { serverError 43 } +SELECT indexOf(c, toDecimal32(0.7, 3)) FROM decimal; -- { serverError 43 } +SELECT indexOf(c, toDecimal64(0.7, 3)) FROM decimal; -- { serverError 43 } +SELECT indexOf(c, toDecimal128(0.7, 2)) FROM decimal; -- { serverError 43 } +SELECT indexOf(c, toDecimal128(0.7, 4)) FROM decimal; -- { serverError 43 } -SELECT arrayConcat(a, b) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(a, c) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(b, c) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(a, nest.a) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(b, nest.b) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(c, nest.c) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(a, nest.b) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(a, nest.c) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(b, nest.a) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(b, nest.c) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(c, nest.a) AS x, toTypeName(x) FROM test.decimal; -SELECT arrayConcat(c, nest.b) AS x, toTypeName(x) FROM test.decimal; +SELECT arrayConcat(a, b) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(a, c) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(b, c) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(a, nest.a) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(b, nest.b) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(c, nest.c) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(a, nest.b) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(a, nest.c) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(b, nest.a) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(b, nest.c) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(c, nest.a) AS x, toTypeName(x) FROM decimal; +SELECT arrayConcat(c, nest.b) AS x, toTypeName(x) FROM decimal; SELECT toDecimal32(12345.6789, 4) AS x, countEqual([x+1, x, x], x), countEqual([x, x-1, x], x), countEqual([x, x], x-0); SELECT toDecimal32(-12345.6789, 4) AS x, countEqual([x+1, x, x], x), countEqual([x, x-1, x], x), countEqual([x, x], x+0); @@ -171,4 +171,4 @@ SELECT number % 2 ? toDecimal128('128.1', 5) : toDecimal32('32.2', 1) FROM syste SELECT number % 2 ? toDecimal128('128.1', 5) : toDecimal64('64.2', 2) FROM system.numbers LIMIT 2; -- { serverError 48 } SELECT number % 2 ? toDecimal128('128.1', 5) : toDecimal128('128.2', 3) FROM system.numbers LIMIT 2; -- { serverError 48 } -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_defaults.sql b/dbms/tests/queries/0_stateless/00700_decimal_defaults.sql index e61d7ef9df9..32410847726 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_defaults.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_defaults.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( a DECIMAL(9,4) DEFAULT 0, b DECIMAL(18,4) DEFAULT a / 2, @@ -11,10 +11,10 @@ CREATE TABLE IF NOT EXISTS test.decimal f ALIAS c * 6 ) ENGINE = Memory; -DESC TABLE test.decimal; +DESC TABLE decimal; -INSERT INTO test.decimal (a) VALUES (0), (1), (2), (3); -SELECT * FROM test.decimal; -SELECT a, b, c, d, e, f FROM test.decimal; +INSERT INTO decimal (a) VALUES (0), (1), (2), (3); +SELECT * FROM decimal; +SELECT a, b, c, d, e, f FROM decimal; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_formats.sql b/dbms/tests/queries/0_stateless/00700_decimal_formats.sql index 90008b608b3..16a47f5e9b1 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_formats.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_formats.sql @@ -1,34 +1,34 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( a DEC(9, 3), b DEC(18, 9), c DEC(38, 18) ) ENGINE = Memory; -INSERT INTO test.decimal (a, b, c) VALUES (42.0, -42.0, 42) (0.42, -0.42, .42) (42.42, -42.42, 42.42); -INSERT INTO test.decimal (a, b, c) FORMAT JSONEachRow {"a":1.1, "b":-1.1, "c":1.1} {"a":1.0, "b":-1.0, "c":1} {"a":0.1, "b":-0.1, "c":.1}; -INSERT INTO test.decimal (a, b, c) FORMAT CSV 2.0,-2.0,2 +INSERT INTO decimal (a, b, c) VALUES (42.0, -42.0, 42) (0.42, -0.42, .42) (42.42, -42.42, 42.42); +INSERT INTO decimal (a, b, c) FORMAT JSONEachRow {"a":1.1, "b":-1.1, "c":1.1} {"a":1.0, "b":-1.0, "c":1} {"a":0.1, "b":-0.1, "c":.1}; +INSERT INTO decimal (a, b, c) FORMAT CSV 2.0,-2.0,2 ; -INSERT INTO test.decimal (a, b, c) FORMAT CSV 0.2 ,-0.2 ,.2 +INSERT INTO decimal (a, b, c) FORMAT CSV 0.2 ,-0.2 ,.2 ; -INSERT INTO test.decimal (a, b, c) FORMAT CSV 2.2 , -2.2 , 2.2 +INSERT INTO decimal (a, b, c) FORMAT CSV 2.2 , -2.2 , 2.2 ; -INSERT INTO test.decimal (a, b, c) FORMAT TabSeparated 3.3 -3.3 3.3 +INSERT INTO decimal (a, b, c) FORMAT TabSeparated 3.3 -3.3 3.3 ; -INSERT INTO test.decimal (a, b, c) FORMAT TabSeparated 3.0 -3.0 3 +INSERT INTO decimal (a, b, c) FORMAT TabSeparated 3.0 -3.0 3 ; -INSERT INTO test.decimal (a, b, c) FORMAT TabSeparated 0.3 -0.3 .3 +INSERT INTO decimal (a, b, c) FORMAT TabSeparated 0.3 -0.3 .3 ; -INSERT INTO test.decimal (a, b, c) FORMAT CSV 4.4E+5,-4E+8,.4E+20 +INSERT INTO decimal (a, b, c) FORMAT CSV 4.4E+5,-4E+8,.4E+20 ; -INSERT INTO test.decimal (a, b, c) FORMAT CSV 5.5e-2, -5e-9 ,.5e-17 +INSERT INTO decimal (a, b, c) FORMAT CSV 5.5e-2, -5e-9 ,.5e-17 ; -SELECT * FROM test.decimal ORDER BY a FORMAT JSONEachRow; -SELECT * FROM test.decimal ORDER BY b DESC FORMAT CSV; -SELECT * FROM test.decimal ORDER BY c FORMAT TabSeparated; +SELECT * FROM decimal ORDER BY a FORMAT JSONEachRow; +SELECT * FROM decimal ORDER BY b DESC FORMAT CSV; +SELECT * FROM decimal ORDER BY c FORMAT TabSeparated; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_in_keys.sql b/dbms/tests/queries/0_stateless/00700_decimal_in_keys.sql index 46d440b32b4..9c52572a1f7 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_in_keys.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_in_keys.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( d1 DECIMAL(9, 8), d2 DECIMAL(18, 8), @@ -11,20 +11,20 @@ ENGINE = MergeTree PARTITION BY toInt32(d1) ORDER BY (d2, d3); -INSERT INTO test.decimal (d1, d2, d3) VALUES (4.2, 4.2, 4.2); +INSERT INTO decimal (d1, d2, d3) VALUES (4.2, 4.2, 4.2); -SELECT count() FROM test.decimal WHERE d1 = toDecimal32('4.2', 8); -SELECT count() FROM test.decimal WHERE d1 != toDecimal32('4.2', 8); -SELECT count() FROM test.decimal WHERE d1 < toDecimal32('4.2', 8); -SELECT count() FROM test.decimal WHERE d1 > toDecimal32('4.2', 8); -SELECT count() FROM test.decimal WHERE d1 <= toDecimal32('4.2', 8); -SELECT count() FROM test.decimal WHERE d1 >= toDecimal32('4.2', 8); +SELECT count() FROM decimal WHERE d1 = toDecimal32('4.2', 8); +SELECT count() FROM decimal WHERE d1 != toDecimal32('4.2', 8); +SELECT count() FROM decimal WHERE d1 < toDecimal32('4.2', 8); +SELECT count() FROM decimal WHERE d1 > toDecimal32('4.2', 8); +SELECT count() FROM decimal WHERE d1 <= toDecimal32('4.2', 8); +SELECT count() FROM decimal WHERE d1 >= toDecimal32('4.2', 8); -INSERT INTO test.decimal (d1, d2, d3) +INSERT INTO decimal (d1, d2, d3) SELECT toDecimal32(number % 10, 8), toDecimal64(number, 8), toDecimal128(number, 8) FROM system.numbers LIMIT 50; -SELECT count() FROM test.decimal WHERE d1 = 1; -SELECT * FROM test.decimal WHERE d1 > 5 AND d2 < 30 ORDER BY d2 DESC; -SELECT * FROM test.decimal WHERE d1 IN(1, 3) ORDER BY d2; +SELECT count() FROM decimal WHERE d1 = 1; +SELECT * FROM decimal WHERE d1 > 5 AND d2 < 30 ORDER BY d2 DESC; +SELECT * FROM decimal WHERE d1 IN(1, 3) ORDER BY d2; -DROP TABLE test.decimal; +DROP TABLE decimal; diff --git a/dbms/tests/queries/0_stateless/00700_decimal_null.sql b/dbms/tests/queries/0_stateless/00700_decimal_null.sql index 1cc389b29c9..84398182b43 100644 --- a/dbms/tests/queries/0_stateless/00700_decimal_null.sql +++ b/dbms/tests/queries/0_stateless/00700_decimal_null.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; -CREATE TABLE IF NOT EXISTS test.decimal +CREATE TABLE IF NOT EXISTS decimal ( a DEC(9, 2), b DEC(18, 5), @@ -35,27 +35,27 @@ SELECT nullIf(toDecimal128(1, 0), toNullable(toDecimal128(1, 0))); SELECT nullIf(toNullable(toDecimal128(1, 0)), toDecimal128(2, 0)); SELECT nullIf(toDecimal128(1, 0), toNullable(toDecimal128(2, 0))); -INSERT INTO test.decimal (a, b, c, d, e, f) VALUES (1.1, 1.1, 1.1, 1.1, 1.1, 1.1); -INSERT INTO test.decimal (a, b, c, d) VALUES (2.2, 2.2, 2.2, 2.2); -INSERT INTO test.decimal (a, b, c, e) VALUES (3.3, 3.3, 3.3, 3.3); -INSERT INTO test.decimal (a, b, c, f) VALUES (4.4, 4.4, 4.4, 4.4); -INSERT INTO test.decimal (a, b, c) VALUES (5.5, 5.5, 5.5); +INSERT INTO decimal (a, b, c, d, e, f) VALUES (1.1, 1.1, 1.1, 1.1, 1.1, 1.1); +INSERT INTO decimal (a, b, c, d) VALUES (2.2, 2.2, 2.2, 2.2); +INSERT INTO decimal (a, b, c, e) VALUES (3.3, 3.3, 3.3, 3.3); +INSERT INTO decimal (a, b, c, f) VALUES (4.4, 4.4, 4.4, 4.4); +INSERT INTO decimal (a, b, c) VALUES (5.5, 5.5, 5.5); -SELECT * FROM test.decimal ORDER BY d, e, f; -SELECT isNull(a), isNotNull(a) FROM test.decimal WHERE a = toDecimal32(5.5, 1); -SELECT isNull(b), isNotNull(b) FROM test.decimal WHERE a = toDecimal32(5.5, 1); -SELECT isNull(c), isNotNull(c) FROM test.decimal WHERE a = toDecimal32(5.5, 1); -SELECT isNull(d), isNotNull(d) FROM test.decimal WHERE a = toDecimal32(5.5, 1); -SELECT isNull(e), isNotNull(e) FROM test.decimal WHERE a = toDecimal32(5.5, 1); -SELECT isNull(f), isNotNull(f) FROM test.decimal WHERE a = toDecimal32(5.5, 1); -SELECT count() FROM test.decimal WHERE a IS NOT NULL; -SELECT count() FROM test.decimal WHERE b IS NOT NULL; -SELECT count() FROM test.decimal WHERE c IS NOT NULL; -SELECT count() FROM test.decimal WHERE d IS NULL; -SELECT count() FROM test.decimal WHERE e IS NULL; -SELECT count() FROM test.decimal WHERE f IS NULL; -SELECT count() FROM test.decimal WHERE d IS NULL AND e IS NULL; -SELECT count() FROM test.decimal WHERE d IS NULL AND f IS NULL; -SELECT count() FROM test.decimal WHERE e IS NULL AND f IS NULL; +SELECT * FROM decimal ORDER BY d, e, f; +SELECT isNull(a), isNotNull(a) FROM decimal WHERE a = toDecimal32(5.5, 1); +SELECT isNull(b), isNotNull(b) FROM decimal WHERE a = toDecimal32(5.5, 1); +SELECT isNull(c), isNotNull(c) FROM decimal WHERE a = toDecimal32(5.5, 1); +SELECT isNull(d), isNotNull(d) FROM decimal WHERE a = toDecimal32(5.5, 1); +SELECT isNull(e), isNotNull(e) FROM decimal WHERE a = toDecimal32(5.5, 1); +SELECT isNull(f), isNotNull(f) FROM decimal WHERE a = toDecimal32(5.5, 1); +SELECT count() FROM decimal WHERE a IS NOT NULL; +SELECT count() FROM decimal WHERE b IS NOT NULL; +SELECT count() FROM decimal WHERE c IS NOT NULL; +SELECT count() FROM decimal WHERE d IS NULL; +SELECT count() FROM decimal WHERE e IS NULL; +SELECT count() FROM decimal WHERE f IS NULL; +SELECT count() FROM decimal WHERE d IS NULL AND e IS NULL; +SELECT count() FROM decimal WHERE d IS NULL AND f IS NULL; +SELECT count() FROM decimal WHERE e IS NULL AND f IS NULL; -DROP TABLE IF EXISTS test.decimal; +DROP TABLE IF EXISTS decimal; diff --git a/dbms/tests/queries/0_stateless/00701_join_default_strictness.sql b/dbms/tests/queries/0_stateless/00701_join_default_strictness.sql index 0a952d7210b..ad3dbde629a 100644 --- a/dbms/tests/queries/0_stateless/00701_join_default_strictness.sql +++ b/dbms/tests/queries/0_stateless/00701_join_default_strictness.sql @@ -1,21 +1,21 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.a1; -DROP TABLE IF EXISTS test.a2; +DROP TABLE IF EXISTS a1; +DROP TABLE IF EXISTS a2; SET send_logs_level = 'none'; -CREATE TABLE test.a1(a UInt8, b UInt8) ENGINE=Memory; -CREATE TABLE test.a2(a UInt8, b UInt8) ENGINE=Memory; +CREATE TABLE a1(a UInt8, b UInt8) ENGINE=Memory; +CREATE TABLE a2(a UInt8, b UInt8) ENGINE=Memory; -INSERT INTO test.a1 VALUES (1, 1); -INSERT INTO test.a1 VALUES (1, 2); -INSERT INTO test.a1 VALUES (1, 3); -INSERT INTO test.a2 VALUES (1, 2); -INSERT INTO test.a2 VALUES (1, 3); -INSERT INTO test.a2 VALUES (1, 4); +INSERT INTO a1 VALUES (1, 1); +INSERT INTO a1 VALUES (1, 2); +INSERT INTO a1 VALUES (1, 3); +INSERT INTO a2 VALUES (1, 2); +INSERT INTO a2 VALUES (1, 3); +INSERT INTO a2 VALUES (1, 4); -SELECT a, b FROM test.a1 LEFT JOIN (SELECT a, b FROM test.a2) USING a ORDER BY b SETTINGS join_default_strictness='ANY'; -SELECT a, b FROM test.a1 LEFT JOIN (SELECT a, b FROM test.a2) USING a ORDER BY b; -- default SETTINGS join_default_strictness='ALL'; +SELECT a, b FROM a1 LEFT JOIN (SELECT a, b FROM a2) USING a ORDER BY b SETTINGS join_default_strictness='ANY'; +SELECT a, b FROM a1 LEFT JOIN (SELECT a, b FROM a2) USING a ORDER BY b; -- default SETTINGS join_default_strictness='ALL'; -DROP TABLE IF EXISTS test.a1; -DROP TABLE IF EXISTS test.a2; +DROP TABLE IF EXISTS a1; +DROP TABLE IF EXISTS a2; diff --git a/dbms/tests/queries/0_stateless/00701_rollup.sql b/dbms/tests/queries/0_stateless/00701_rollup.sql index 1a52ccd09dc..cbb5dc73981 100644 --- a/dbms/tests/queries/0_stateless/00701_rollup.sql +++ b/dbms/tests/queries/0_stateless/00701_rollup.sql @@ -1,21 +1,21 @@ -DROP TABLE IF EXISTS test.rollup; -CREATE TABLE test.rollup(a String, b Int32, s Int32) ENGINE = Memory; +DROP TABLE IF EXISTS rollup; +CREATE TABLE rollup(a String, b Int32, s Int32) ENGINE = Memory; -INSERT INTO test.rollup VALUES('a', 1, 10); -INSERT INTO test.rollup VALUES('a', 1, 15); -INSERT INTO test.rollup VALUES('a', 2, 20); -INSERT INTO test.rollup VALUES('a', 2, 25); -INSERT INTO test.rollup VALUES('b', 1, 10); -INSERT INTO test.rollup VALUES('b', 1, 5); -INSERT INTO test.rollup VALUES('b', 2, 20); -INSERT INTO test.rollup VALUES('b', 2, 15); +INSERT INTO rollup VALUES('a', 1, 10); +INSERT INTO rollup VALUES('a', 1, 15); +INSERT INTO rollup VALUES('a', 2, 20); +INSERT INTO rollup VALUES('a', 2, 25); +INSERT INTO rollup VALUES('b', 1, 10); +INSERT INTO rollup VALUES('b', 1, 5); +INSERT INTO rollup VALUES('b', 2, 20); +INSERT INTO rollup VALUES('b', 2, 15); -SELECT a, b, sum(s), count() from test.rollup GROUP BY ROLLUP(a, b) ORDER BY a, b; +SELECT a, b, sum(s), count() from rollup GROUP BY ROLLUP(a, b) ORDER BY a, b; -SELECT a, b, sum(s), count() from test.rollup GROUP BY ROLLUP(a, b) WITH TOTALS ORDER BY a, b; +SELECT a, b, sum(s), count() from rollup GROUP BY ROLLUP(a, b) WITH TOTALS ORDER BY a, b; -SELECT a, sum(s), count() from test.rollup GROUP BY ROLLUP(a) ORDER BY a; +SELECT a, sum(s), count() from rollup GROUP BY ROLLUP(a) ORDER BY a; -SELECT a, sum(s), count() from test.rollup GROUP BY a WITH ROLLUP ORDER BY a; +SELECT a, sum(s), count() from rollup GROUP BY a WITH ROLLUP ORDER BY a; -SELECT a, sum(s), count() from test.rollup GROUP BY a WITH ROLLUP WITH TOTALS ORDER BY a; +SELECT a, sum(s), count() from rollup GROUP BY a WITH ROLLUP WITH TOTALS ORDER BY a; diff --git a/dbms/tests/queries/0_stateless/00702_join_on_dups.sql b/dbms/tests/queries/0_stateless/00702_join_on_dups.sql index 577681053a9..ca774a0a6c3 100644 --- a/dbms/tests/queries/0_stateless/00702_join_on_dups.sql +++ b/dbms/tests/queries/0_stateless/00702_join_on_dups.sql @@ -1,4 +1,3 @@ -use test; drop table if exists X; drop table if exists Y; diff --git a/dbms/tests/queries/0_stateless/00702_join_with_using.sql b/dbms/tests/queries/0_stateless/00702_join_with_using.sql index 6956730eabf..d30ce2293fc 100644 --- a/dbms/tests/queries/0_stateless/00702_join_with_using.sql +++ b/dbms/tests/queries/0_stateless/00702_join_with_using.sql @@ -1,20 +1,19 @@ -DROP TABLE IF EXISTS test.using1; -DROP TABLE IF EXISTS test.using2; +DROP TABLE IF EXISTS using1; +DROP TABLE IF EXISTS using2; -CREATE TABLE test.using1(a UInt8, b UInt8) ENGINE=Memory; -CREATE TABLE test.using2(a UInt8, b UInt8) ENGINE=Memory; +CREATE TABLE using1(a UInt8, b UInt8) ENGINE=Memory; +CREATE TABLE using2(a UInt8, b UInt8) ENGINE=Memory; -INSERT INTO test.using1 VALUES (1, 1) (2, 2) (3, 3); -INSERT INTO test.using2 VALUES (4, 4) (2, 2) (3, 3); +INSERT INTO using1 VALUES (1, 1) (2, 2) (3, 3); +INSERT INTO using2 VALUES (4, 4) (2, 2) (3, 3); -SELECT * FROM test.using1 ALL LEFT JOIN (SELECT * FROM test.using2) USING (a, a, a, b, b, b, a, a) ORDER BY a; +SELECT * FROM using1 ALL LEFT JOIN (SELECT * FROM using2) USING (a, a, a, b, b, b, a, a) ORDER BY a; -DROP TABLE test.using1; -DROP TABLE test.using2; +DROP TABLE using1; +DROP TABLE using2; -- -use test; drop table if exists persons; drop table if exists children; diff --git a/dbms/tests/queries/0_stateless/00702_join_with_using_dups.sql b/dbms/tests/queries/0_stateless/00702_join_with_using_dups.sql index 4f68381c28f..d45c6628b9a 100644 --- a/dbms/tests/queries/0_stateless/00702_join_with_using_dups.sql +++ b/dbms/tests/queries/0_stateless/00702_join_with_using_dups.sql @@ -1,4 +1,3 @@ -use test; drop table if exists X; drop table if exists Y; diff --git a/dbms/tests/queries/0_stateless/00702_where_with_quailified_names.sql b/dbms/tests/queries/0_stateless/00702_where_with_quailified_names.sql index 91948d720fd..60dadff14fb 100644 --- a/dbms/tests/queries/0_stateless/00702_where_with_quailified_names.sql +++ b/dbms/tests/queries/0_stateless/00702_where_with_quailified_names.sql @@ -1,4 +1,3 @@ -USE test; DROP TABLE IF EXISTS where_qualified; CREATE TABLE where_qualified(a UInt32, b UInt8) ENGINE = Memory; INSERT INTO where_qualified VALUES(1, 1); diff --git a/dbms/tests/queries/0_stateless/00703_join_crash.sql b/dbms/tests/queries/0_stateless/00703_join_crash.sql index 29b86e055fb..eb968580b7c 100644 --- a/dbms/tests/queries/0_stateless/00703_join_crash.sql +++ b/dbms/tests/queries/0_stateless/00703_join_crash.sql @@ -1,13 +1,13 @@ -drop table IF EXISTS test.tab1; -drop table IF EXISTS test.tab1_copy; +drop table IF EXISTS tab1; +drop table IF EXISTS tab1_copy; -create table test.tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1; -create table test.tab1_copy (a1 Int32, b1 Int32) engine = MergeTree order by a1; +create table tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1; +create table tab1_copy (a1 Int32, b1 Int32) engine = MergeTree order by a1; -insert into test.tab1 values (1, 2); -insert into test.tab1_copy values (2, 3); +insert into tab1 values (1, 2); +insert into tab1_copy values (2, 3); -select tab1.a1, tab1_copy.a1, tab1.b1 from test.tab1 any left join test.tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2; +select tab1.a1, tab1_copy.a1, tab1.b1 from tab1 any left join tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2; -drop table test.tab1; -drop table test.tab1_copy; +drop table tab1; +drop table tab1_copy; diff --git a/dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql b/dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql index 22220896b40..06dfe87a2d9 100644 --- a/dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql +++ b/dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql @@ -1,4 +1,4 @@ -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; SELECT arrayCumSumNonNegative([1, 2, 3, 4]); @@ -8,21 +8,21 @@ SELECT arrayDifference([1, 2, 3, 4]); SELECT arrayDifference([1, 7, 100, 5]); -CREATE TABLE test.test(a Array(Int64), b Array(Float64), c Array(UInt64)) ENGINE=Memory; +CREATE TABLE test(a Array(Int64), b Array(Float64), c Array(UInt64)) ENGINE=Memory; -INSERT INTO test.test VALUES ([1, -3, 0, 1], [1.0, 0.4, -0.1], [1, 3, 1]); +INSERT INTO test VALUES ([1, -3, 0, 1], [1.0, 0.4, -0.1], [1, 3, 1]); -SELECT arrayCumSumNonNegative(a) FROM test.test; +SELECT arrayCumSumNonNegative(a) FROM test; -SELECT arrayCumSumNonNegative(b) FROM test.test; +SELECT arrayCumSumNonNegative(b) FROM test; -SELECT arrayCumSumNonNegative(c) FROM test.test; +SELECT arrayCumSumNonNegative(c) FROM test; -SELECT arrayDifference(a) FROM test.test; +SELECT arrayDifference(a) FROM test; -SELECT arrayDifference(b) FROM test.test; +SELECT arrayDifference(b) FROM test; -SELECT arrayDifference(c) FROM test.test; +SELECT arrayDifference(c) FROM test; -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; diff --git a/dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh b/dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh index f805c7aa03e..4e3ad2327f7 100755 --- a/dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh +++ b/dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh @@ -5,23 +5,23 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh ${CLICKHOUSE_CLIENT} --multiquery --query=" -DROP TABLE IF EXISTS test.memory; -CREATE TABLE test.memory (x UInt64) ENGINE = Memory; +DROP TABLE IF EXISTS memory; +CREATE TABLE memory (x UInt64) ENGINE = Memory; SET max_block_size = 1, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; -INSERT INTO test.memory SELECT * FROM numbers(1000);" +INSERT INTO memory SELECT * FROM numbers(1000);" ${CLICKHOUSE_CLIENT} --multiquery --query=" SET max_threads = 1; -SELECT count() FROM test.memory WHERE NOT ignore(sleep(0.0001));" & +SELECT count() FROM memory WHERE NOT ignore(sleep(0.0001));" & sleep 0.05; ${CLICKHOUSE_CLIENT} --multiquery --query=" -TRUNCATE TABLE test.memory; -DROP TABLE test.memory; +TRUNCATE TABLE memory; +DROP TABLE memory; " wait diff --git a/dbms/tests/queries/0_stateless/00705_aggregate_states_addition.sql b/dbms/tests/queries/0_stateless/00705_aggregate_states_addition.sql index 02820ef1025..a2d9660955d 100644 --- a/dbms/tests/queries/0_stateless/00705_aggregate_states_addition.sql +++ b/dbms/tests/queries/0_stateless/00705_aggregate_states_addition.sql @@ -1,4 +1,3 @@ -USE test; SET send_logs_level = 'none'; DROP TABLE IF EXISTS add_aggregate; CREATE TABLE add_aggregate(a UInt32, b UInt32) ENGINE = Memory; diff --git a/dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.sh b/dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.sh index f8dbc7cc2c3..157899da443 100755 --- a/dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.sh +++ b/dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.sh @@ -7,8 +7,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) function stress() { while true; do - ${CLICKHOUSE_CLIENT} --query "CREATE TABLE IF NOT EXISTS test.table (x UInt8) ENGINE = MergeTree ORDER BY tuple()" 2>/dev/null - ${CLICKHOUSE_CLIENT} --query "DROP TABLE test.table" 2>/dev/null + ${CLICKHOUSE_CLIENT} --query "CREATE TABLE IF NOT EXISTS table (x UInt8) ENGINE = MergeTree ORDER BY tuple()" 2>/dev/null + ${CLICKHOUSE_CLIENT} --query "DROP TABLE table" 2>/dev/null done } @@ -23,4 +23,4 @@ done wait echo -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.table"; +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS table"; diff --git a/dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.sql b/dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.sql index 17492a92f33..084ab904d87 100644 --- a/dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.sql +++ b/dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.sql @@ -1,10 +1,10 @@ -DROP TABLE IF EXISTS test.partition_id; +DROP TABLE IF EXISTS partition_id; -CREATE TABLE IF NOT EXISTS test.partition_id (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); +CREATE TABLE IF NOT EXISTS partition_id (d Date DEFAULT '2000-01-01', x UInt64) ENGINE = MergeTree(d, x, 5); -INSERT INTO test.partition_id VALUES (100, 1), (200, 2), (300, 3); +INSERT INTO partition_id VALUES (100, 1), (200, 2), (300, 3); -SELECT _partition_id FROM test.partition_id ORDER BY x; +SELECT _partition_id FROM partition_id ORDER BY x; -DROP TABLE IF EXISTS test.partition_id; +DROP TABLE IF EXISTS partition_id; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias.sql index 5cfc2318f3d..58fe90d6f5e 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias.sql @@ -1,35 +1,35 @@ -drop table if exists test.prewhere_alias; -CREATE TABLE test.prewhere_alias (a UInt8, b Int32, c UInt8 ALIAS a, d Int64 ALIAS b + 1, e Int32 alias a + b) ENGINE = MergeTree ORDER BY tuple(); -insert into test.prewhere_alias values (1, 1); +drop table if exists prewhere_alias; +CREATE TABLE prewhere_alias (a UInt8, b Int32, c UInt8 ALIAS a, d Int64 ALIAS b + 1, e Int32 alias a + b) ENGINE = MergeTree ORDER BY tuple(); +insert into prewhere_alias values (1, 1); select '-'; -select a from test.prewhere_alias prewhere a = 1; -select b from test.prewhere_alias prewhere a = 1; -select c from test.prewhere_alias prewhere a = 1; -select d from test.prewhere_alias prewhere a = 1; +select a from prewhere_alias prewhere a = 1; +select b from prewhere_alias prewhere a = 1; +select c from prewhere_alias prewhere a = 1; +select d from prewhere_alias prewhere a = 1; select '-'; -select a from test.prewhere_alias prewhere b = 1; -select b from test.prewhere_alias prewhere b = 1; -select c from test.prewhere_alias prewhere b = 1; -select d from test.prewhere_alias prewhere b = 1; +select a from prewhere_alias prewhere b = 1; +select b from prewhere_alias prewhere b = 1; +select c from prewhere_alias prewhere b = 1; +select d from prewhere_alias prewhere b = 1; select '-'; -select a from test.prewhere_alias prewhere c = 1; -select b from test.prewhere_alias prewhere c = 1; -select c from test.prewhere_alias prewhere c = 1; -select d from test.prewhere_alias prewhere c = 1; +select a from prewhere_alias prewhere c = 1; +select b from prewhere_alias prewhere c = 1; +select c from prewhere_alias prewhere c = 1; +select d from prewhere_alias prewhere c = 1; select '-'; -select a from test.prewhere_alias prewhere d = 2; -select b from test.prewhere_alias prewhere d = 2; -select c from test.prewhere_alias prewhere d = 2; -select d from test.prewhere_alias prewhere d = 2; +select a from prewhere_alias prewhere d = 2; +select b from prewhere_alias prewhere d = 2; +select c from prewhere_alias prewhere d = 2; +select d from prewhere_alias prewhere d = 2; select '-'; -select a from test.prewhere_alias prewhere a; -select b from test.prewhere_alias prewhere a; -select c from test.prewhere_alias prewhere a; -select d from test.prewhere_alias prewhere a; +select a from prewhere_alias prewhere a; +select b from prewhere_alias prewhere a; +select c from prewhere_alias prewhere a; +select d from prewhere_alias prewhere a; select '-'; -select a from test.prewhere_alias prewhere c; -select b from test.prewhere_alias prewhere c; -select c from test.prewhere_alias prewhere c; -select d from test.prewhere_alias prewhere c; -drop table if exists test.prewhere_alias; +select a from prewhere_alias prewhere c; +select b from prewhere_alias prewhere c; +select c from prewhere_alias prewhere c; +select d from prewhere_alias prewhere c; +drop table if exists prewhere_alias; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql index 6b0079c2bb3..60301fa8bf9 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql @@ -1,5 +1,5 @@ -drop table if exists test.tab; -create table test.tab (a UInt32, b UInt32 alias a + 1, c UInt32) engine = MergeTree order by tuple(); -insert into test.tab values (1, 2); -select ignore(_part) from test.tab prewhere b = 2; +drop table if exists tab; +create table tab (a UInt32, b UInt32 alias a + 1, c UInt32) engine = MergeTree order by tuple(); +insert into tab values (1, 2); +select ignore(_part) from tab prewhere b = 2; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql index 57e24c691ef..83f9748f5c6 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql @@ -1,5 +1,5 @@ -drop table if exists test.prewhere_alias; -create table test.prewhere_alias (a Int32, b Int32, c alias a + b) engine = MergeTree order by b; -insert into test.prewhere_alias values(1, 1); -select a, c + toInt32(1), (c + toInt32(1)) * 2 from test.prewhere_alias prewhere (c + toInt32(1)) * 2 = 6; -drop table test.prewhere_alias; +drop table if exists prewhere_alias; +create table prewhere_alias (a Int32, b Int32, c alias a + b) engine = MergeTree order by b; +insert into prewhere_alias values(1, 1); +select a, c + toInt32(1), (c + toInt32(1)) * 2 from prewhere_alias prewhere (c + toInt32(1)) * 2 = 6; +drop table prewhere_alias; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql index 6c0df7cb94b..2c5c494fc1f 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql @@ -1,14 +1,14 @@ -drop table if exists test.table; +drop table if exists table; -CREATE TABLE test.table (a UInt32, date Date, b UInt64, c UInt64, str String, d Int8, arr Array(UInt64), arr_alias Array(UInt64) ALIAS arr) ENGINE = MergeTree(date, intHash32(c), (a, date, intHash32(c), b), 8192); +CREATE TABLE table (a UInt32, date Date, b UInt64, c UInt64, str String, d Int8, arr Array(UInt64), arr_alias Array(UInt64) ALIAS arr) ENGINE = MergeTree(date, intHash32(c), (a, date, intHash32(c), b), 8192); SELECT alias2 AS alias3 -FROM test.table +FROM table ARRAY JOIN arr_alias AS alias2, arrayEnumerateUniq(arr_alias) AS _uniq_Event WHERE (date = toDate('2010-10-10')) AND (a IN (2, 3)) AND (str NOT IN ('z', 'x')) AND (d != -1) LIMIT 1; -drop table if exists test.table; +drop table if exists table; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_final.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_final.sql index 88c0ad22b26..4528d4f61f0 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_final.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_final.sql @@ -1,12 +1,12 @@ -drop table if exists test.trepl; -create table test.trepl(d Date,a Int32, b Int32) engine = ReplacingMergeTree(d, (a,b), 8192); -insert into test.trepl values ('2018-09-19', 1, 1); -select b from test.trepl FINAL prewhere a < 1000; -drop table test.trepl; +drop table if exists trepl; +create table trepl(d Date,a Int32, b Int32) engine = ReplacingMergeTree(d, (a,b), 8192); +insert into trepl values ('2018-09-19', 1, 1); +select b from trepl FINAL prewhere a < 1000; +drop table trepl; -drop table if exists test.versioned_collapsing; -create table test.versioned_collapsing(d Date, x UInt32, sign Int8, version UInt32) engine = VersionedCollapsingMergeTree(d, x, 8192, sign, version); -insert into test.versioned_collapsing values ('2018-09-19', 123, 1, 0); -select x from test.versioned_collapsing FINAL prewhere version < 1000; -drop table test.versioned_collapsing; +drop table if exists versioned_collapsing; +create table versioned_collapsing(d Date, x UInt32, sign Int8, version UInt32) engine = VersionedCollapsingMergeTree(d, x, 8192, sign, version); +insert into versioned_collapsing values ('2018-09-19', 123, 1, 0); +select x from versioned_collapsing FINAL prewhere version < 1000; +drop table versioned_collapsing; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql index 20515bd513e..56f6c273550 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.mergetree; -CREATE TABLE test.mergetree (x UInt8, s String) ENGINE = MergeTree ORDER BY tuple(); +DROP TABLE IF EXISTS mergetree; +CREATE TABLE mergetree (x UInt8, s String) ENGINE = MergeTree ORDER BY tuple(); -INSERT INTO test.mergetree VALUES (1, 'Hello, world!'); -SELECT * FROM test.mergetree; +INSERT INTO mergetree VALUES (1, 'Hello, world!'); +SELECT * FROM mergetree; -ALTER TABLE test.mergetree ADD COLUMN y UInt8 DEFAULT 0; -INSERT INTO test.mergetree VALUES (2, 'Goodbye.', 3); -SELECT * FROM test.mergetree ORDER BY x; +ALTER TABLE mergetree ADD COLUMN y UInt8 DEFAULT 0; +INSERT INTO mergetree VALUES (2, 'Goodbye.', 3); +SELECT * FROM mergetree ORDER BY x; -SELECT s FROM test.mergetree PREWHERE x AND y ORDER BY s; -SELECT s, y FROM test.mergetree PREWHERE x AND y ORDER BY s; +SELECT s FROM mergetree PREWHERE x AND y ORDER BY s; +SELECT s, y FROM mergetree PREWHERE x AND y ORDER BY s; -DROP TABLE test.mergetree; +DROP TABLE mergetree; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql index 9dbe8125196..2c27f5f5bb6 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql @@ -1,13 +1,13 @@ create database if not exists test; -drop table if exists test.t; -create table test.t (a Int32, b Int32) engine = MergeTree partition by (a,b) order by (a); +drop table if exists t; +create table t (a Int32, b Int32) engine = MergeTree partition by (a,b) order by (a); -insert into test.t values (1, 1); -alter table test.t add column c Int32; +insert into t values (1, 1); +alter table t add column c Int32; -select b from test.t prewhere a < 1000; -select c from test.t where a < 1000; -select c from test.t prewhere a < 1000; +select b from t prewhere a < 1000; +select c from t where a < 1000; +select c from t prewhere a < 1000; -drop table test.t; +drop table t; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.sql index 32bfeccf556..22e05e2ff12 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.sql @@ -1,10 +1,10 @@ -drop table if exists test.tab; -create table test.tab (a UInt32, b UInt32) engine = MergeTree order by b % 2 sample by b % 2; -insert into test.tab values (1, 2), (1, 4); -select a from test.tab sample 1 / 2 prewhere b = 2; -drop table if exists test.tab; +drop table if exists tab; +create table tab (a UInt32, b UInt32) engine = MergeTree order by b % 2 sample by b % 2; +insert into tab values (1, 2), (1, 4); +select a from tab sample 1 / 2 prewhere b = 2; +drop table if exists tab; -DROP TABLE IF EXISTS test.sample_prewhere; -CREATE TABLE test.sample_prewhere (CounterID UInt32, UserID UInt64) ENGINE = MergeTree ORDER BY UserID SAMPLE BY UserID; -SELECT count() FROM test.sample_prewhere SAMPLE 1/2 PREWHERE CounterID = 1; -DROP TABLE test.sample_prewhere; +DROP TABLE IF EXISTS sample_prewhere; +CREATE TABLE sample_prewhere (CounterID UInt32, UserID UInt64) ENGINE = MergeTree ORDER BY UserID SAMPLE BY UserID; +SELECT count() FROM sample_prewhere SAMPLE 1/2 PREWHERE CounterID = 1; +DROP TABLE sample_prewhere; diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql b/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql index 6c9a4ed31a7..2e837c2be6f 100644 --- a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql +++ b/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql @@ -1,6 +1,6 @@ -drop table if exists test.t; -create table test.t (date Date, counter UInt64, sampler UInt64, alias_col alias date + 1) engine = MergeTree(date, intHash32(sampler), (counter, date, intHash32(sampler)), 8192); -insert into test.t values ('2018-01-01', 1, 1); -select alias_col from test.t sample 1 / 2 where date = '2018-01-01' and counter = 1 and sampler = 1; -drop table if exists test.t; +drop table if exists t; +create table t (date Date, counter UInt64, sampler UInt64, alias_col alias date + 1) engine = MergeTree(date, intHash32(sampler), (counter, date, intHash32(sampler)), 8192); +insert into t values ('2018-01-01', 1, 1); +select alias_col from t sample 1 / 2 where date = '2018-01-01' and counter = 1 and sampler = 1; +drop table if exists t; diff --git a/dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.sql b/dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.sql index ea9d8f6b45a..9996187534e 100644 --- a/dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.sql +++ b/dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.collapsing; +DROP TABLE IF EXISTS collapsing; -CREATE TABLE test.collapsing(key String, value String, sign Int8) ENGINE CollapsingMergeTree(sign) +CREATE TABLE collapsing(key String, value String, sign Int8) ENGINE CollapsingMergeTree(sign) ORDER BY key SETTINGS enable_vertical_merge_algorithm=1, vertical_merge_algorithm_min_rows_to_activate=0, vertical_merge_algorithm_min_columns_to_activate=0; -INSERT INTO test.collapsing VALUES ('k1', 'k1v1', 1); -INSERT INTO test.collapsing VALUES ('k1', 'k1v1', -1), ('k1', 'k1v2', 1); -INSERT INTO test.collapsing VALUES ('k2', 'k2v1', 1), ('k2', 'k2v1', -1), ('k3', 'k3v1', 1); -INSERT INTO test.collapsing VALUES ('k4', 'k4v1', -1), ('k4', 'k4v2', 1), ('k4', 'k4v2', -1); +INSERT INTO collapsing VALUES ('k1', 'k1v1', 1); +INSERT INTO collapsing VALUES ('k1', 'k1v1', -1), ('k1', 'k1v2', 1); +INSERT INTO collapsing VALUES ('k2', 'k2v1', 1), ('k2', 'k2v1', -1), ('k3', 'k3v1', 1); +INSERT INTO collapsing VALUES ('k4', 'k4v1', -1), ('k4', 'k4v2', 1), ('k4', 'k4v2', -1); -OPTIMIZE TABLE test.collapsing PARTITION tuple() FINAL; +OPTIMIZE TABLE collapsing PARTITION tuple() FINAL; -SELECT * FROM test.collapsing ORDER BY key; +SELECT * FROM collapsing ORDER BY key; -DROP TABLE test.collapsing; +DROP TABLE collapsing; diff --git a/dbms/tests/queries/0_stateless/00714_alter_uuid.sql b/dbms/tests/queries/0_stateless/00714_alter_uuid.sql index 116d640785a..6dca79c37ab 100644 --- a/dbms/tests/queries/0_stateless/00714_alter_uuid.sql +++ b/dbms/tests/queries/0_stateless/00714_alter_uuid.sql @@ -1,5 +1,3 @@ -USE test; - SELECT '00000000-0000-01f8-9cb8-cb1b82fb3900' AS str, toUUID(str); SELECT toFixedString('00000000-0000-02f8-9cb8-cb1b82fb3900', 36) AS str, toUUID(str); diff --git a/dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sql b/dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sql index d7b485d46f0..9a1c1b77cae 100644 --- a/dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sql @@ -1,42 +1,42 @@ -DROP TABLE IF EXISTS test.fetches_r1; -DROP TABLE IF EXISTS test.fetches_r2; +DROP TABLE IF EXISTS fetches_r1; +DROP TABLE IF EXISTS fetches_r2; -CREATE TABLE test.fetches_r1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/fetches', 'r1') ORDER BY x; -CREATE TABLE test.fetches_r2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/fetches', 'r2') ORDER BY x +CREATE TABLE fetches_r1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/fetches', 'r1') ORDER BY x; +CREATE TABLE fetches_r2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/fetches', 'r2') ORDER BY x SETTINGS prefer_fetch_merged_part_time_threshold=0, prefer_fetch_merged_part_size_threshold=0; -INSERT INTO test.fetches_r1 VALUES (1); -INSERT INTO test.fetches_r1 VALUES (2); -INSERT INTO test.fetches_r1 VALUES (3); +INSERT INTO fetches_r1 VALUES (1); +INSERT INTO fetches_r1 VALUES (2); +INSERT INTO fetches_r1 VALUES (3); -SYSTEM SYNC REPLICA test.fetches_r2; +SYSTEM SYNC REPLICA fetches_r2; -DETACH TABLE test.fetches_r2; +DETACH TABLE fetches_r2; SET replication_alter_partitions_sync=0; -OPTIMIZE TABLE test.fetches_r1 PARTITION tuple() FINAL; -SYSTEM SYNC REPLICA test.fetches_r1; +OPTIMIZE TABLE fetches_r1 PARTITION tuple() FINAL; +SYSTEM SYNC REPLICA fetches_r1; -- After attach replica r2 should fetch the merged part from r1. -ATTACH TABLE test.fetches_r2; -SYSTEM SYNC REPLICA test.fetches_r2; +ATTACH TABLE fetches_r2; +SYSTEM SYNC REPLICA fetches_r2; SELECT '*** Check data after fetch of merged part ***'; -SELECT _part, * FROM test.fetches_r2 ORDER BY x; +SELECT _part, * FROM fetches_r2 ORDER BY x; -DETACH TABLE test.fetches_r2; +DETACH TABLE fetches_r2; -- Add mutation that doesn't change data. -ALTER TABLE test.fetches_r1 DELETE WHERE x = 0; -SYSTEM SYNC REPLICA test.fetches_r1; +ALTER TABLE fetches_r1 DELETE WHERE x = 0; +SYSTEM SYNC REPLICA fetches_r1; -- After attach replica r2 should compare checksums for mutated part and clone the local part. -ATTACH TABLE test.fetches_r2; -SYSTEM SYNC REPLICA test.fetches_r2; +ATTACH TABLE fetches_r2; +SYSTEM SYNC REPLICA fetches_r2; SELECT '*** Check data after fetch/clone of mutated part ***'; -SELECT _part, * FROM test.fetches_r2 ORDER BY x; +SELECT _part, * FROM fetches_r2 ORDER BY x; -DROP TABLE test.fetches_r1; -DROP TABLE test.fetches_r2; +DROP TABLE fetches_r1; +DROP TABLE fetches_r2; diff --git a/dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.sh b/dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.sh index ac7dab7febe..c38902a0bda 100755 --- a/dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.sh +++ b/dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.sh @@ -5,33 +5,33 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.json_each_row_nested" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.json_each_row_nested (d1 UInt8, d2 String, n Nested (s String, i Int32) ) ENGINE = Memory" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS json_each_row_nested" +$CLICKHOUSE_CLIENT -q "CREATE TABLE json_each_row_nested (d1 UInt8, d2 String, n Nested (s String, i Int32) ) ENGINE = Memory" echo '{"d1" : 1, "d2" : "ok", "n.s" : ["abc", "def"], "n.i" : [1, 23]} { } {"t1" : 0, "n.t2":true,"n.i":[45, 67, 8], "n.s":["x", "y", "z"],"t5":[],"t6":"trash" } {"d2":"ok","n.s":["dog", "cat", "pig"], "n.x":[["1","2"]], "d1":"1", "n.i":[3, 3, 3]} {"t0" : -0.1, "n.s" : ["zero","negative one"], "a.b" : 0, "n.i" : [0, -1], "d2" : "ok", "d1" : 1}' \ -| $CLICKHOUSE_CLIENT --input_format_skip_unknown_fields=1 -q "INSERT INTO test.json_each_row_nested FORMAT JSONEachRow" +| $CLICKHOUSE_CLIENT --input_format_skip_unknown_fields=1 -q "INSERT INTO json_each_row_nested FORMAT JSONEachRow" -$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM test.json_each_row_nested" +$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM json_each_row_nested" test_nested_json() { -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.json_each_row_nested" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS json_each_row_nested" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.json_each_row_nested (d1 UInt8, d2 String, n Nested (s String, i Int32) ) ENGINE = Memory" +$CLICKHOUSE_CLIENT -q "CREATE TABLE json_each_row_nested (d1 UInt8, d2 String, n Nested (s String, i Int32) ) ENGINE = Memory" echo '{"d1" : 1, "d2" : "ok", "n" : { "s" : ["abc", "def"], "i" : [1, 23]} } { } {"t1" : 0, "n.t2":true,"n" : {"i":[45, 67, 8], "s":["x", "y", "z"]}, "t5":[],"t6":"trash" } {"d2":"ok","n" : {"s":["dog", "cat", "pig"], "x":[["1","2"]], "i":[3, 3, 3]}, "d1":"1", "n.j":[4, 4, 4]} {"t0" : -0.1, "n": {"s" : ["zero","negative one"], "i" : [0, -1]}, "d2" : "ok", "d1" : 1}' \ -| $CLICKHOUSE_CLIENT "$@" --input_format_skip_unknown_fields=1 -q "INSERT INTO test.json_each_row_nested FORMAT JSONEachRow" +| $CLICKHOUSE_CLIENT "$@" --input_format_skip_unknown_fields=1 -q "INSERT INTO json_each_row_nested FORMAT JSONEachRow" -$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM test.json_each_row_nested" -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.json_each_row_nested" +$CLICKHOUSE_CLIENT --max_threads=1 -q "SELECT * FROM json_each_row_nested" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS json_each_row_nested" } test_nested_json diff --git a/dbms/tests/queries/0_stateless/00716_allow_ddl.sql b/dbms/tests/queries/0_stateless/00716_allow_ddl.sql index 2f66cc96a35..c060bf37290 100755 --- a/dbms/tests/queries/0_stateless/00716_allow_ddl.sql +++ b/dbms/tests/queries/0_stateless/00716_allow_ddl.sql @@ -2,7 +2,7 @@ SET send_logs_level = 'none'; SET allow_ddl = 0; CREATE DATABASE some_db; -- { serverError 392 } -CREATE TABLE test.some_table(a Int32) ENGINE = Memory; -- { serverError 392} -ALTER TABLE test.some_table DELETE WHERE 1; -- { serverError 392} -RENAME TABLE test.some_table TO test.some_table1; -- { serverError 392} +CREATE TABLE some_table(a Int32) ENGINE = Memory; -- { serverError 392} +ALTER TABLE some_table DELETE WHERE 1; -- { serverError 392} +RENAME TABLE some_table TO some_table1; -- { serverError 392} SET allow_ddl = 1; -- { serverError 392} diff --git a/dbms/tests/queries/0_stateless/00717_default_join_type.sql b/dbms/tests/queries/0_stateless/00717_default_join_type.sql index 4249790747c..0530a583e97 100644 --- a/dbms/tests/queries/0_stateless/00717_default_join_type.sql +++ b/dbms/tests/queries/0_stateless/00717_default_join_type.sql @@ -1,10 +1,10 @@ -DROP TABLE IF EXISTS test.default_join1; -DROP TABLE IF EXISTS test.default_join2; +DROP TABLE IF EXISTS default_join1; +DROP TABLE IF EXISTS default_join2; -CREATE TABLE test.default_join1(a Int64, b Int64) ENGINE=Memory; -CREATE TABLE test.default_join2(a Int64, b Int64) ENGINE=Memory; +CREATE TABLE default_join1(a Int64, b Int64) ENGINE=Memory; +CREATE TABLE default_join2(a Int64, b Int64) ENGINE=Memory; -INSERT INTO test.default_join1 VALUES(1, 1), (2, 2), (3, 3); -INSERT INTO test.default_join2 VALUES(3, 3), (4, 4); +INSERT INTO default_join1 VALUES(1, 1), (2, 2), (3, 3); +INSERT INTO default_join2 VALUES(3, 3), (4, 4); -SELECT a, b FROM test.default_join1 JOIN (SELECT a, b FROM test.default_join2) USING a ORDER BY b SETTINGS join_default_strictness='ANY'; +SELECT a, b FROM default_join1 JOIN (SELECT a, b FROM default_join2) USING a ORDER BY b SETTINGS join_default_strictness='ANY'; diff --git a/dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql b/dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql index 4e82d54b876..e9ec65a144d 100644 --- a/dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql +++ b/dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql @@ -1,22 +1,22 @@ -drop table if exists test.tab; -create table test.tab (a String, b StringWithDictionary) engine = MergeTree order by a; -insert into test.tab values ('a_1', 'b_1'), ('a_2', 'b_2'); -select count() from test.tab; -select a from test.tab group by a order by a; -select b from test.tab group by b order by b; -select length(b) as l from test.tab group by l; -select sum(length(a)), b from test.tab group by b order by b; -select sum(length(b)), a from test.tab group by a order by a; -select a, b from test.tab group by a, b order by a, b; -select sum(length(a)) from test.tab group by b, b || '_'; -select length(b) as l from test.tab group by l; -select length(b) as l from test.tab group by l, l + 1; -select length(b) as l from test.tab group by l, l + 1, l + 2; -select length(b) as l from test.tab group by l, l + 1, l + 2, l + 3; -select length(b) as l from test.tab group by l, l + 1, l + 2, l + 3, l + 4; -select length(b) as l from test.tab group by l, l + 1, l + 2, l + 3, l + 4, l + 5; -select a, length(b) as l from test.tab group by a, l, l + 1 order by a; -select b, length(b) as l from test.tab group by b, l, l + 1 order by b; -select a, b, length(b) as l from test.tab group by a, b, l, l + 1 order by a, b; -drop table if exists test.tab; +drop table if exists tab; +create table tab (a String, b StringWithDictionary) engine = MergeTree order by a; +insert into tab values ('a_1', 'b_1'), ('a_2', 'b_2'); +select count() from tab; +select a from tab group by a order by a; +select b from tab group by b order by b; +select length(b) as l from tab group by l; +select sum(length(a)), b from tab group by b order by b; +select sum(length(b)), a from tab group by a order by a; +select a, b from tab group by a, b order by a, b; +select sum(length(a)) from tab group by b, b || '_'; +select length(b) as l from tab group by l; +select length(b) as l from tab group by l, l + 1; +select length(b) as l from tab group by l, l + 1, l + 2; +select length(b) as l from tab group by l, l + 1, l + 2, l + 3; +select length(b) as l from tab group by l, l + 1, l + 2, l + 3, l + 4; +select length(b) as l from tab group by l, l + 1, l + 2, l + 3, l + 4, l + 5; +select a, length(b) as l from tab group by a, l, l + 1 order by a; +select b, length(b) as l from tab group by b, l, l + 1 order by b; +select a, b, length(b) as l from tab group by a, b, l, l + 1 order by a, b; +drop table if exists tab; diff --git a/dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql b/dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql index a531643a095..df89ff9d91f 100644 --- a/dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql +++ b/dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql @@ -1,17 +1,17 @@ -create table test.tab (a String, b LowCardinality(UInt32)) engine = MergeTree order by a; -insert into test.tab values ('a', 1); -select *, toTypeName(b) from test.tab; -alter table test.tab modify column b UInt32; -select *, toTypeName(b) from test.tab; -alter table test.tab modify column b LowCardinality(UInt32); -select *, toTypeName(b) from test.tab; -alter table test.tab modify column b StringWithDictionary; -select *, toTypeName(b) from test.tab; -alter table test.tab modify column b LowCardinality(UInt32); -select *, toTypeName(b) from test.tab; -alter table test.tab modify column b String; -select *, toTypeName(b) from test.tab; -alter table test.tab modify column b LowCardinality(UInt32); -select *, toTypeName(b) from test.tab; -drop table if exists test.tab; +create table tab (a String, b LowCardinality(UInt32)) engine = MergeTree order by a; +insert into tab values ('a', 1); +select *, toTypeName(b) from tab; +alter table tab modify column b UInt32; +select *, toTypeName(b) from tab; +alter table tab modify column b LowCardinality(UInt32); +select *, toTypeName(b) from tab; +alter table tab modify column b StringWithDictionary; +select *, toTypeName(b) from tab; +alter table tab modify column b LowCardinality(UInt32); +select *, toTypeName(b) from tab; +alter table tab modify column b String; +select *, toTypeName(b) from tab; +alter table tab modify column b LowCardinality(UInt32); +select *, toTypeName(b) from tab; +drop table if exists tab; diff --git a/dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh b/dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh index 8724eb7f09a..0cad7556674 100755 --- a/dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh +++ b/dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh @@ -9,13 +9,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ${CLICKHOUSE_CLIENT} --query "select number as SomeID, number+1 as OtherID from system.numbers limit 1000 into outfile '${CLICKHOUSE_TMP}/test_squashing_block_without_column.out' format Native" -${CLICKHOUSE_CLIENT} --query "drop table if exists test.squashed_numbers" -${CLICKHOUSE_CLIENT} --query "create table test.squashed_numbers (SomeID UInt64, DifferentID UInt64, OtherID UInt64) engine Memory" +${CLICKHOUSE_CLIENT} --query "drop table if exists squashed_numbers" +${CLICKHOUSE_CLIENT} --query "create table squashed_numbers (SomeID UInt64, DifferentID UInt64, OtherID UInt64) engine Memory" -address=${CLICKHOUSE_HOST} -port=${CLICKHOUSE_PORT_HTTP} -url="${CLICKHOUSE_PORT_HTTP_PROTO}://$address:$port/" +#address=${CLICKHOUSE_HOST} +#port=${CLICKHOUSE_PORT_HTTP} +#url="${CLICKHOUSE_PORT_HTTP_PROTO}://$address:$port/" -${CLICKHOUSE_CURL} -sS --data-binary "@${CLICKHOUSE_TMP}/test_squashing_block_without_column.out" "${url}?query=insert%20into%20test.squashed_numbers%20format%20Native" +${CLICKHOUSE_CURL} -sS --data-binary "@${CLICKHOUSE_TMP}/test_squashing_block_without_column.out" "${CLICKHOUSE_URL_PARAMS}&query=insert%20into%20squashed_numbers%20format%20Native" ${CLICKHOUSE_CLIENT} --query "select 'Still alive'" diff --git a/dbms/tests/queries/0_stateless/00719_parallel_ddl_table.sh b/dbms/tests/queries/0_stateless/00719_parallel_ddl_table.sh index 0559f1dd592..ec9ffbd09fd 100755 --- a/dbms/tests/queries/0_stateless/00719_parallel_ddl_table.sh +++ b/dbms/tests/queries/0_stateless/00719_parallel_ddl_table.sh @@ -4,13 +4,13 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.parallel_ddl" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS parallel_ddl" function query() { for i in {1..100}; do - ${CLICKHOUSE_CLIENT} --query "CREATE TABLE IF NOT EXISTS test.parallel_ddl(a Int) ENGINE = Memory" - ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.parallel_ddl" + ${CLICKHOUSE_CLIENT} --query "CREATE TABLE IF NOT EXISTS parallel_ddl(a Int) ENGINE = Memory" + ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS parallel_ddl" done } @@ -20,4 +20,4 @@ done wait -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.parallel_ddl" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS parallel_ddl" diff --git a/dbms/tests/queries/0_stateless/00720_with_cube.sql b/dbms/tests/queries/0_stateless/00720_with_cube.sql index 032c83f17b5..50ceb784d59 100644 --- a/dbms/tests/queries/0_stateless/00720_with_cube.sql +++ b/dbms/tests/queries/0_stateless/00720_with_cube.sql @@ -1,19 +1,19 @@ -DROP TABLE IF EXISTS test.rollup; -CREATE TABLE test.rollup(a String, b Int32, s Int32) ENGINE = Memory; +DROP TABLE IF EXISTS rollup; +CREATE TABLE rollup(a String, b Int32, s Int32) ENGINE = Memory; -INSERT INTO test.rollup VALUES('a', 1, 10); -INSERT INTO test.rollup VALUES('a', 1, 15); -INSERT INTO test.rollup VALUES('a', 2, 20); -INSERT INTO test.rollup VALUES('a', 2, 25); -INSERT INTO test.rollup VALUES('b', 1, 10); -INSERT INTO test.rollup VALUES('b', 1, 5); -INSERT INTO test.rollup VALUES('b', 2, 20); -INSERT INTO test.rollup VALUES('b', 2, 15); +INSERT INTO rollup VALUES('a', 1, 10); +INSERT INTO rollup VALUES('a', 1, 15); +INSERT INTO rollup VALUES('a', 2, 20); +INSERT INTO rollup VALUES('a', 2, 25); +INSERT INTO rollup VALUES('b', 1, 10); +INSERT INTO rollup VALUES('b', 1, 5); +INSERT INTO rollup VALUES('b', 2, 20); +INSERT INTO rollup VALUES('b', 2, 15); -SELECT a, b, sum(s), count() from test.rollup GROUP BY CUBE(a, b) ORDER BY a, b; +SELECT a, b, sum(s), count() from rollup GROUP BY CUBE(a, b) ORDER BY a, b; -SELECT a, b, sum(s), count() from test.rollup GROUP BY CUBE(a, b) WITH TOTALS ORDER BY a, b; +SELECT a, b, sum(s), count() from rollup GROUP BY CUBE(a, b) WITH TOTALS ORDER BY a, b; -SELECT a, b, sum(s), count() from test.rollup GROUP BY a, b WITH CUBE ORDER BY a; +SELECT a, b, sum(s), count() from rollup GROUP BY a, b WITH CUBE ORDER BY a; -SELECT a, b, sum(s), count() from test.rollup GROUP BY a, b WITH CUBE WITH TOTALS ORDER BY a; +SELECT a, b, sum(s), count() from rollup GROUP BY a, b WITH CUBE WITH TOTALS ORDER BY a; diff --git a/dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql b/dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql index 4d76c3ea033..3d598363684 100644 --- a/dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql @@ -1,18 +1,18 @@ -DROP TABLE IF EXISTS test.byte_identical_r1; -DROP TABLE IF EXISTS test.byte_identical_r2; +DROP TABLE IF EXISTS byte_identical_r1; +DROP TABLE IF EXISTS byte_identical_r2; -CREATE TABLE test.byte_identical_r1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/byte_identical', 'r1') ORDER BY x; -CREATE TABLE test.byte_identical_r2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/byte_identical', 'r2') ORDER BY x; +CREATE TABLE byte_identical_r1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/byte_identical', 'r1') ORDER BY x; +CREATE TABLE byte_identical_r2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/byte_identical', 'r2') ORDER BY x; -INSERT INTO test.byte_identical_r1(x) VALUES (1), (2), (3); -SYSTEM SYNC REPLICA test.byte_identical_r2; +INSERT INTO byte_identical_r1(x) VALUES (1), (2), (3); +SYSTEM SYNC REPLICA byte_identical_r2; -- Add a column with a default expression that will yield different values on different replicas. -- Call optimize to materialize it. Replicas should compare checksums and restore consistency. -ALTER TABLE test.byte_identical_r1 ADD COLUMN y DEFAULT rand(); -OPTIMIZE TABLE test.byte_identical_r1 PARTITION tuple() FINAL; +ALTER TABLE byte_identical_r1 ADD COLUMN y DEFAULT rand(); +OPTIMIZE TABLE byte_identical_r1 PARTITION tuple() FINAL; -SELECT x, t1.y - t2.y FROM test.byte_identical_r1 t1 ANY INNER JOIN test.byte_identical_r2 t2 USING x ORDER BY x; +SELECT x, t1.y - t2.y FROM byte_identical_r1 t1 ANY INNER JOIN byte_identical_r2 t2 USING x ORDER BY x; -DROP TABLE test.byte_identical_r1; -DROP TABLE test.byte_identical_r2; +DROP TABLE byte_identical_r1; +DROP TABLE byte_identical_r2; diff --git a/dbms/tests/queries/0_stateless/00722_inner_join.sql b/dbms/tests/queries/0_stateless/00722_inner_join.sql index 0c544b12ab9..aa1e3674579 100644 --- a/dbms/tests/queries/0_stateless/00722_inner_join.sql +++ b/dbms/tests/queries/0_stateless/00722_inner_join.sql @@ -1,6 +1,6 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.one; -CREATE TABLE test.one(dummy UInt8) ENGINE = Memory; +DROP TABLE IF EXISTS one; +CREATE TABLE one(dummy UInt8) ENGINE = Memory; SELECT database, t.name FROM system.tables AS t @@ -82,4 +82,4 @@ SELECT count() JOIN system.databases AS db ON db.name = t.database WHERE t.name = 'one'; -DROP TABLE test.one; +DROP TABLE one; diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_1.sql b/dbms/tests/queries/0_stateless/00725_join_on_bug_1.sql index b807bb7ef32..3e150176819 100644 --- a/dbms/tests/queries/0_stateless/00725_join_on_bug_1.sql +++ b/dbms/tests/queries/0_stateless/00725_join_on_bug_1.sql @@ -1,15 +1,15 @@ -DROP TABLE IF EXISTS test.a1; -DROP TABLE IF EXISTS test.a2; +DROP TABLE IF EXISTS a1; +DROP TABLE IF EXISTS a2; -CREATE TABLE test.a1(a UInt8, b UInt8) ENGINE=Memory; -CREATE TABLE test.a2(a UInt8, b UInt8) ENGINE=Memory; +CREATE TABLE a1(a UInt8, b UInt8) ENGINE=Memory; +CREATE TABLE a2(a UInt8, b UInt8) ENGINE=Memory; -INSERT INTO test.a1 VALUES (1, 1), (1, 2), (2, 3); -INSERT INTO test.a2 VALUES (1, 2), (1, 3), (1, 4); +INSERT INTO a1 VALUES (1, 1), (1, 2), (2, 3); +INSERT INTO a2 VALUES (1, 2), (1, 3), (1, 4); -SELECT * FROM test.a1 as a left JOIN test.a2 as b on a.a=b.a ORDER BY b SETTINGS join_default_strictness='ANY'; +SELECT * FROM a1 as a left JOIN a2 as b on a.a=b.a ORDER BY b SETTINGS join_default_strictness='ANY'; SELECT '-'; -SELECT a1.*, a2.* FROM test.a1 ANY LEFT JOIN test.a2 USING a ORDER BY b; +SELECT a1.*, a2.* FROM a1 ANY LEFT JOIN a2 USING a ORDER BY b; -DROP TABLE IF EXISTS test.a1; -DROP TABLE IF EXISTS test.a2; +DROP TABLE IF EXISTS a1; +DROP TABLE IF EXISTS a2; diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_2.sql b/dbms/tests/queries/0_stateless/00725_join_on_bug_2.sql index 7e95aa4a1d3..c0b33c11d1a 100644 --- a/dbms/tests/queries/0_stateless/00725_join_on_bug_2.sql +++ b/dbms/tests/queries/0_stateless/00725_join_on_bug_2.sql @@ -1,23 +1,23 @@ -drop table if exists test.t; -drop table if exists test.s; +drop table if exists t; +drop table if exists s; -create table test.t(a Int64, b Int64) engine = TinyLog; -insert into test.t values(1,1); -insert into test.t values(2,2); -create table test.s(a Int64, b Int64) engine = TinyLog; -insert into test.s values(1,1); +create table t(a Int64, b Int64) engine = TinyLog; +insert into t values(1,1); +insert into t values(2,2); +create table s(a Int64, b Int64) engine = TinyLog; +insert into s values(1,1); -select a, b, s_a, s_b from test.t all left join (select a,b,a s_a, b s_b from test.s) using (a,b); +select a, b, s_a, s_b from t all left join (select a,b,a s_a, b s_b from s) using (a,b); select '-'; -select t.*, s.* from test.t all left join test.s using (a,b); +select t.*, s.* from t all left join s using (a,b); select '-'; -select a,b,s_a,s_b from test.t all left join (select a, b, a s_a, b s_b from test.s) s on (s.a = t.a and s.b = t.b); +select a,b,s_a,s_b from t all left join (select a, b, a s_a, b s_b from s) s on (s.a = t.a and s.b = t.b); select '-'; -select * from test.t all left join (select a s_a, b s_b from test.s) on (s_a = t.a and s_b = t.b); +select * from t all left join (select a s_a, b s_b from s) on (s_a = t.a and s_b = t.b); select '-'; -select a,b,s_a,s_b from test.t all left join (select a,b, a s_a, b s_b from test.s) on (s_a = t.a and s_b = t.b); +select a,b,s_a,s_b from t all left join (select a,b, a s_a, b s_b from s) on (s_a = t.a and s_b = t.b); select '-'; -select t.*, s.* from test.t all left join test.s on (s.a = t.a and s.b = t.b); +select t.*, s.* from t all left join s on (s.a = t.a and s.b = t.b); -drop table if exists test.t; -drop table if exists test.s; +drop table if exists t; +drop table if exists s; diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_3.sql b/dbms/tests/queries/0_stateless/00725_join_on_bug_3.sql index e3232d268c3..ad9ff23eae1 100644 --- a/dbms/tests/queries/0_stateless/00725_join_on_bug_3.sql +++ b/dbms/tests/queries/0_stateless/00725_join_on_bug_3.sql @@ -1,14 +1,14 @@ -drop table if exists test.t; -drop table if exists test.z; +drop table if exists t; +drop table if exists z; -create table test.t(a Int64, b Int64) engine = TinyLog; -insert into test.t values(1,1); -insert into test.t values(2,2); -create table test.z(c Int64, d Int64, e Int64) engine = TinyLog; -insert into test.z values(1,1,1); +create table t(a Int64, b Int64) engine = TinyLog; +insert into t values(1,1); +insert into t values(2,2); +create table z(c Int64, d Int64, e Int64) engine = TinyLog; +insert into z values(1,1,1); -select * from test.t all left join test.z on (z.c = t.a and z.d = t.b); +select * from t all left join z on (z.c = t.a and z.d = t.b); -drop table if exists test.t; -drop table if exists test.z; +drop table if exists t; +drop table if exists z; diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql b/dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql index 00c5b12d7ff..94c6931471e 100644 --- a/dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql +++ b/dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql @@ -1,13 +1,13 @@ -drop table if exists test.t; -drop table if exists test.s; +drop table if exists t; +drop table if exists s; -create table test.t(a Int64, b Int64, c String) engine = TinyLog; -insert into test.t values(1,1,'a'),(2,2,'b'); -create table test.s(a Int64, b Int64, c String) engine = TinyLog; -insert into test.s values(1,1,'a'); +create table t(a Int64, b Int64, c String) engine = TinyLog; +insert into t values(1,1,'a'),(2,2,'b'); +create table s(a Int64, b Int64, c String) engine = TinyLog; +insert into s values(1,1,'a'); -select t.* from test.t all left join test.s on (s.a = t.a and s.b = t.b) where s.a = 0 and s.b = 0; +select t.* from t all left join s on (s.a = t.a and s.b = t.b) where s.a = 0 and s.b = 0; -drop table if exists test.t; -drop table if exists test.s; +drop table if exists t; +drop table if exists s; diff --git a/dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.sql b/dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.sql index 53618d6e2ba..c737642f4b7 100644 --- a/dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.sql +++ b/dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.sql @@ -1,8 +1,6 @@ -DROP TABLE IF EXISTS test.src; -DROP TABLE IF EXISTS test.mv1; -DROP TABLE IF EXISTS test.mv2; - -USE test; +DROP TABLE IF EXISTS src; +DROP TABLE IF EXISTS mv1; +DROP TABLE IF EXISTS mv2; CREATE TABLE src (x UInt8) ENGINE = Null; CREATE MATERIALIZED VIEW mv1 ENGINE = Memory AS SELECT x FROM src WHERE x % 2 = 0; @@ -17,6 +15,6 @@ INSERT INTO src VALUES (3), (4); SELECT * FROM mv1 ORDER BY x; SELECT * FROM mv2 ORDER BY x; -DROP TABLE test.mv1; -DROP TABLE test.mv2; -DROP TABLE test.src; +DROP TABLE mv1; +DROP TABLE mv2; +DROP TABLE src; diff --git a/dbms/tests/queries/0_stateless/00728_json_each_row_parsing.sh b/dbms/tests/queries/0_stateless/00728_json_each_row_parsing.sh index 2719fe375a1..69462d72aaa 100755 --- a/dbms/tests/queries/0_stateless/00728_json_each_row_parsing.sh +++ b/dbms/tests/queries/0_stateless/00728_json_each_row_parsing.sh @@ -6,10 +6,10 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) cur_name=${BASH_SOURCE[0]} -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.json_parse;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.json_parse (aaa String, bbb String) ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS json_parse;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE json_parse (aaa String, bbb String) ENGINE = Memory;" -for n in {1..1000000}; do echo '{"aaa":"aaa","bbb":"bbb"}'; done | curl -sS "${CLICKHOUSE_URL}?query=INSERT%20INTO%20test.json_parse%20FORMAT%20JSONEachRow" -0 --data-binary @- +for n in {1..1000000}; do echo '{"aaa":"aaa","bbb":"bbb"}'; done | curl -sS "${CLICKHOUSE_URL_PARAMS}&query=INSERT%20INTO%20json_parse%20FORMAT%20JSONEachRow" -0 --data-binary @- -${CLICKHOUSE_CLIENT} --query="SELECT count() FROM test.json_parse;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.json_parse;" +${CLICKHOUSE_CLIENT} --query="SELECT count() FROM json_parse;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE json_parse;" diff --git a/dbms/tests/queries/0_stateless/00729_prewhere_array_join.sql b/dbms/tests/queries/0_stateless/00729_prewhere_array_join.sql index 8c0c86b1931..dc6ff4b36f9 100644 --- a/dbms/tests/queries/0_stateless/00729_prewhere_array_join.sql +++ b/dbms/tests/queries/0_stateless/00729_prewhere_array_join.sql @@ -1,5 +1,4 @@ SET send_logs_level = 'none'; -USE test; drop table if exists t1; create table t1 (id UInt64, val Array(String),nid UInt64, eDate Date)ENGINE = MergeTree(eDate, (id, eDate), 8192); diff --git a/dbms/tests/queries/0_stateless/00730_unicode_terminal_format.sql b/dbms/tests/queries/0_stateless/00730_unicode_terminal_format.sql index fabf2fdfddf..546ba4d68fe 100644 --- a/dbms/tests/queries/0_stateless/00730_unicode_terminal_format.sql +++ b/dbms/tests/queries/0_stateless/00730_unicode_terminal_format.sql @@ -1,24 +1,24 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.unicode; +DROP TABLE IF EXISTS unicode; -CREATE TABLE test.unicode(c1 String, c2 String) ENGINE = Memory; -INSERT INTO test.unicode VALUES ('Здравствуйте', 'Этот код можно отредактировать и запустить!'), -INSERT INTO test.unicode VALUES ('你好', '这段代码是可以编辑并且能够运行的!'), -INSERT INTO test.unicode VALUES ('Hola', '¡Este código es editable y ejecutable!'), -INSERT INTO test.unicode VALUES ('Bonjour', 'Ce code est modifiable et exécutable !'), -INSERT INTO test.unicode VALUES ('Ciao', 'Questo codice è modificabile ed eseguibile!'), -INSERT INTO test.unicode VALUES ('こんにちは', 'このコードは編集して実行出来ます!'), -INSERT INTO test.unicode VALUES ('안녕하세요', '여기에서 코드를 수정하고 실행할 수 있습니다!'), -INSERT INTO test.unicode VALUES ('Cześć', 'Ten kod można edytować oraz uruchomić!'), -INSERT INTO test.unicode VALUES ('Olá', 'Este código é editável e executável!'), -INSERT INTO test.unicode VALUES ('Chào bạn', 'Bạn có thể edit và run code trực tiếp!'), -INSERT INTO test.unicode VALUES ('Hallo', 'Dieser Code kann bearbeitet und ausgeführt werden!'), -INSERT INTO test.unicode VALUES ('Hej', 'Den här koden kan redigeras och köras!'), -INSERT INTO test.unicode VALUES ('Ahoj', 'Tento kód můžete upravit a spustit'); -INSERT INTO test.unicode VALUES ('Tabs \t Tabs', 'Non-first \t Tabs'); -INSERT INTO test.unicode VALUES ('Control characters \x1f\x1f\x1f\x1f with zero width', 'Invalid UTF-8 which eats pending characters \xf0, or invalid by itself \x80 with zero width'); -INSERT INTO test.unicode VALUES ('Russian ё and ё ', 'Zero bytes \0 \0 in middle'); -SELECT * FROM test.unicode SETTINGS max_threads = 1 FORMAT PrettyNoEscapes; +CREATE TABLE unicode(c1 String, c2 String) ENGINE = Memory; +INSERT INTO unicode VALUES ('Здравствуйте', 'Этот код можно отредактировать и запустить!'), +INSERT INTO unicode VALUES ('你好', '这段代码是可以编辑并且能够运行的!'), +INSERT INTO unicode VALUES ('Hola', '¡Este código es editable y ejecutable!'), +INSERT INTO unicode VALUES ('Bonjour', 'Ce code est modifiable et exécutable !'), +INSERT INTO unicode VALUES ('Ciao', 'Questo codice è modificabile ed eseguibile!'), +INSERT INTO unicode VALUES ('こんにちは', 'このコードは編集して実行出来ます!'), +INSERT INTO unicode VALUES ('안녕하세요', '여기에서 코드를 수정하고 실행할 수 있습니다!'), +INSERT INTO unicode VALUES ('Cześć', 'Ten kod można edytować oraz uruchomić!'), +INSERT INTO unicode VALUES ('Olá', 'Este código é editável e executável!'), +INSERT INTO unicode VALUES ('Chào bạn', 'Bạn có thể edit và run code trực tiếp!'), +INSERT INTO unicode VALUES ('Hallo', 'Dieser Code kann bearbeitet und ausgeführt werden!'), +INSERT INTO unicode VALUES ('Hej', 'Den här koden kan redigeras och köras!'), +INSERT INTO unicode VALUES ('Ahoj', 'Tento kód můžete upravit a spustit'); +INSERT INTO unicode VALUES ('Tabs \t Tabs', 'Non-first \t Tabs'); +INSERT INTO unicode VALUES ('Control characters \x1f\x1f\x1f\x1f with zero width', 'Invalid UTF-8 which eats pending characters \xf0, or invalid by itself \x80 with zero width'); +INSERT INTO unicode VALUES ('Russian ё and ё ', 'Zero bytes \0 \0 in middle'); +SELECT * FROM unicode SETTINGS max_threads = 1 FORMAT PrettyNoEscapes; SELECT 'Tabs \t Tabs', 'Long\tTitle' FORMAT PrettyNoEscapes; SELECT '你好', '世界' FORMAT Vertical; @@ -26,4 +26,4 @@ SELECT 'Tabs \t Tabs', 'Non-first \t Tabs' FORMAT Vertical; SELECT 'Control characters \x1f\x1f\x1f\x1f with zero width', 'Invalid UTF-8 which eats pending characters \xf0, and invalid by itself \x80 with zero width' FORMAT Vertical; SELECT 'Russian ё and ё', 'Zero bytes \0 \0 in middle' FORMAT Vertical; -DROP TABLE IF EXISTS test.unicode; +DROP TABLE IF EXISTS unicode; diff --git a/dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh b/dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh index 8d8a847fbe6..bb67ae9fa83 100755 --- a/dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh +++ b/dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh @@ -11,18 +11,18 @@ settings="$server_logs --log_queries=1 --log_query_threads=1 --log_profile_event # Test insert logging on each block and checkPacket() method $CLICKHOUSE_CLIENT $settings -n -q " -DROP TABLE IF EXISTS test.merge_tree_table; -CREATE TABLE test.merge_tree_table (id UInt64, date Date, uid UInt32) ENGINE = MergeTree(date, id, 8192);" +DROP TABLE IF EXISTS merge_tree_table; +CREATE TABLE merge_tree_table (id UInt64, date Date, uid UInt32) ENGINE = MergeTree(date, id, 8192);" -$CLICKHOUSE_CLIENT $settings -q "INSERT INTO test.merge_tree_table SELECT (intHash64(number)) % 10000, toDate('2018-08-01'), rand() FROM system.numbers LIMIT 10000000;" +$CLICKHOUSE_CLIENT $settings -q "INSERT INTO merge_tree_table SELECT (intHash64(number)) % 10000, toDate('2018-08-01'), rand() FROM system.numbers LIMIT 10000000;" -$CLICKHOUSE_CLIENT $settings -q "OPTIMIZE TABLE test.merge_tree_table FINAL;" +$CLICKHOUSE_CLIENT $settings -q "OPTIMIZE TABLE merge_tree_table FINAL;" -toching_many_parts_query="SELECT count() from (SELECT toDayOfWeek(date) as m, id, count() FROM test.merge_tree_table GROUP BY id, m ORDER BY count() DESC LIMIT 10 SETTINGS max_threads = 1)" +toching_many_parts_query="SELECT count() from (SELECT toDayOfWeek(date) as m, id, count() FROM merge_tree_table GROUP BY id, m ORDER BY count() DESC LIMIT 10 SETTINGS max_threads = 1)" $CLICKHOUSE_CLIENT $settings -q "$toching_many_parts_query" &> /dev/null $CLICKHOUSE_CLIENT $settings -q "SYSTEM FLUSH LOGS" $CLICKHOUSE_CLIENT $settings -q "SELECT pi.Values FROM system.query_log ARRAY JOIN ProfileEvents as pi WHERE query='$toching_many_parts_query' and pi.Names = 'FileOpen' ORDER BY event_time DESC LIMIT 1;" -$CLICKHOUSE_CLIENT $settings -q "DROP TABLE IF EXISTS test.merge_tree_table;" +$CLICKHOUSE_CLIENT $settings -q "DROP TABLE IF EXISTS merge_tree_table;" diff --git a/dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql b/dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql index f560283434f..536983e0783 100644 --- a/dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql +++ b/dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql @@ -1,6 +1,6 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.decimal_sum; -CREATE TABLE test.decimal_sum +DROP TABLE IF EXISTS decimal_sum; +CREATE TABLE decimal_sum ( date Date, sum32 Decimal32(4), @@ -8,20 +8,20 @@ CREATE TABLE test.decimal_sum sum128 Decimal128(10) ) Engine = SummingMergeTree(date, (date), 8192); -INSERT INTO test.decimal_sum VALUES ('2001-01-01', 1, 1, -1); -INSERT INTO test.decimal_sum VALUES ('2001-01-01', 1, -1, -1); +INSERT INTO decimal_sum VALUES ('2001-01-01', 1, 1, -1); +INSERT INTO decimal_sum VALUES ('2001-01-01', 1, -1, -1); -OPTIMIZE TABLE test.decimal_sum; -SELECT * FROM test.decimal_sum; +OPTIMIZE TABLE decimal_sum; +SELECT * FROM decimal_sum; -INSERT INTO test.decimal_sum VALUES ('2001-01-01', -2, 1, 2); +INSERT INTO decimal_sum VALUES ('2001-01-01', -2, 1, 2); -OPTIMIZE TABLE test.decimal_sum; -SELECT * FROM test.decimal_sum; +OPTIMIZE TABLE decimal_sum; +SELECT * FROM decimal_sum; -INSERT INTO test.decimal_sum VALUES ('2001-01-01', 0, -1, 0); +INSERT INTO decimal_sum VALUES ('2001-01-01', 0, -1, 0); -OPTIMIZE TABLE test.decimal_sum; -SELECT * FROM test.decimal_sum; +OPTIMIZE TABLE decimal_sum; +SELECT * FROM decimal_sum; -drop table test.decimal_sum; +drop table decimal_sum; diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql b/dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql index 1c7aa898638..c71446d0074 100644 --- a/dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql @@ -1,30 +1,30 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; -CREATE TABLE test.quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; -CREATE TABLE test.quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; +CREATE TABLE quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; +CREATE TABLE quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; -INSERT INTO test.quorum1 VALUES (1, '1990-11-15'); -INSERT INTO test.quorum1 VALUES (2, '1990-11-15'); -INSERT INTO test.quorum1 VALUES (3, '2020-12-16'); +INSERT INTO quorum1 VALUES (1, '1990-11-15'); +INSERT INTO quorum1 VALUES (2, '1990-11-15'); +INSERT INTO quorum1 VALUES (3, '2020-12-16'); -SYSTEM SYNC REPLICA test.quorum2; +SYSTEM SYNC REPLICA quorum2; SET select_sequential_consistency=1; -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; SET insert_quorum=2; -INSERT INTO test.quorum1 VALUES (4, '1990-11-15'); -INSERT INTO test.quorum1 VALUES (5, '1990-11-15'); -INSERT INTO test.quorum1 VALUES (6, '2020-12-16'); +INSERT INTO quorum1 VALUES (4, '1990-11-15'); +INSERT INTO quorum1 VALUES (5, '1990-11-15'); +INSERT INTO quorum1 VALUES (6, '2020-12-16'); -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql b/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql index a956688e893..d99459d38ef 100644 --- a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql @@ -1,38 +1,38 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; -CREATE TABLE test.quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; -CREATE TABLE test.quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; +CREATE TABLE quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; +CREATE TABLE quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; SET insert_quorum=2; SET select_sequential_consistency=1; -INSERT INTO test.quorum1 VALUES (1, '2018-11-15'); -INSERT INTO test.quorum1 VALUES (2, '2018-11-15'); -INSERT INTO test.quorum1 VALUES (3, '2018-12-16'); +INSERT INTO quorum1 VALUES (1, '2018-11-15'); +INSERT INTO quorum1 VALUES (2, '2018-11-15'); +INSERT INTO quorum1 VALUES (3, '2018-12-16'); SET insert_quorum_timeout=0; -SYSTEM STOP FETCHES test.quorum1; +SYSTEM STOP FETCHES quorum1; -INSERT INTO test.quorum2 VALUES (4, toDate('2018-12-16')); -- { serverError 319 } +INSERT INTO quorum2 VALUES (4, toDate('2018-12-16')); -- { serverError 319 } -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; SET select_sequential_consistency=0; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; SET select_sequential_consistency=1; -SYSTEM START FETCHES test.quorum1; -SYSTEM SYNC REPLICA test.quorum1; +SYSTEM START FETCHES quorum1; +SYSTEM SYNC REPLICA quorum1; -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql b/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql index be333378aed..39d2b5feaf1 100644 --- a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql @@ -1,35 +1,35 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; -CREATE TABLE test.quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; -CREATE TABLE test.quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; +CREATE TABLE quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; +CREATE TABLE quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; SET insert_quorum=2; SET select_sequential_consistency=1; SET insert_quorum_timeout=0; -SYSTEM STOP FETCHES test.quorum1; +SYSTEM STOP FETCHES quorum1; -INSERT INTO test.quorum2 VALUES (1, '2018-11-15'); -- { serverError 319 } +INSERT INTO quorum2 VALUES (1, '2018-11-15'); -- { serverError 319 } -SELECT count(*) FROM test.quorum1; -SELECT count(*) FROM test.quorum2; +SELECT count(*) FROM quorum1; +SELECT count(*) FROM quorum2; SET select_sequential_consistency=0; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; SET select_sequential_consistency=1; SET insert_quorum_timeout=100; -SYSTEM START FETCHES test.quorum1; -SYSTEM SYNC REPLICA test.quorum1; +SYSTEM START FETCHES quorum1; +SYSTEM SYNC REPLICA quorum1; -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql b/dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql index 9a21c3319de..6e05beeaf25 100644 --- a/dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql @@ -1,28 +1,28 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; -CREATE TABLE test.quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; -CREATE TABLE test.quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; +CREATE TABLE quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; +CREATE TABLE quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; -INSERT INTO test.quorum1 VALUES (1, '1990-11-15'); -INSERT INTO test.quorum1 VALUES (2, '1990-11-15'); -INSERT INTO test.quorum1 VALUES (3, '2020-12-16'); +INSERT INTO quorum1 VALUES (1, '1990-11-15'); +INSERT INTO quorum1 VALUES (2, '1990-11-15'); +INSERT INTO quorum1 VALUES (3, '2020-12-16'); -SYSTEM SYNC REPLICA test.quorum2; +SYSTEM SYNC REPLICA quorum2; SET select_sequential_consistency=1; SET insert_quorum=2; SET insert_quorum_timeout=0; -SYSTEM STOP FETCHES test.quorum1; +SYSTEM STOP FETCHES quorum1; -INSERT INTO test.quorum2 VALUES (4, toDate('2020-12-16')); -- { serverError 319 } +INSERT INTO quorum2 VALUES (4, toDate('2020-12-16')); -- { serverError 319 } -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql b/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql index 61d0d59af17..6b8ba6c0af4 100644 --- a/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql @@ -1,20 +1,20 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; -CREATE TABLE test.quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; -CREATE TABLE test.quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; +CREATE TABLE quorum1(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '1') ORDER BY x PARTITION BY y; +CREATE TABLE quorum2(x UInt32, y Date) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/quorum', '2') ORDER BY x PARTITION BY y; SET insert_quorum=2; SET select_sequential_consistency=1; -INSERT INTO test.quorum1 VALUES (1, '2018-11-15'); -INSERT INTO test.quorum1 VALUES (2, '2018-11-15'); -INSERT INTO test.quorum1 VALUES (3, '2018-12-16'); +INSERT INTO quorum1 VALUES (1, '2018-11-15'); +INSERT INTO quorum1 VALUES (2, '2018-11-15'); +INSERT INTO quorum1 VALUES (3, '2018-12-16'); -SELECT x FROM test.quorum1 ORDER BY x; -SELECT x FROM test.quorum2 ORDER BY x; +SELECT x FROM quorum1 ORDER BY x; +SELECT x FROM quorum2 ORDER BY x; -DROP TABLE IF EXISTS test.quorum1; -DROP TABLE IF EXISTS test.quorum2; +DROP TABLE IF EXISTS quorum1; +DROP TABLE IF EXISTS quorum2; diff --git a/dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql b/dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql index 422f69878fd..2f10146472a 100644 --- a/dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql +++ b/dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql @@ -1,7 +1,7 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.or_expr_bug; -CREATE TABLE test.or_expr_bug (a UInt64, b UInt64) ENGINE = Memory; +DROP TABLE IF EXISTS or_expr_bug; +CREATE TABLE or_expr_bug (a UInt64, b UInt64) ENGINE = Memory; -INSERT INTO test.or_expr_bug VALUES(1,21),(1,22),(1,23),(2,21),(2,22),(2,23),(3,21),(3,22),(3,23); +INSERT INTO or_expr_bug VALUES(1,21),(1,22),(1,23),(2,21),(2,22),(2,23),(3,21),(3,22),(3,23); -SELECT count(*) FROM test.or_expr_bug WHERE (a=1 OR a=2 OR a=3) AND (b=21 OR b=22 OR b=23); +SELECT count(*) FROM or_expr_bug WHERE (a=1 OR a=2 OR a=3) AND (b=21 OR b=22 OR b=23); diff --git a/dbms/tests/queries/0_stateless/00736_disjunction_optimisation.sql b/dbms/tests/queries/0_stateless/00736_disjunction_optimisation.sql index caf2af7a037..700221ef7f0 100644 --- a/dbms/tests/queries/0_stateless/00736_disjunction_optimisation.sql +++ b/dbms/tests/queries/0_stateless/00736_disjunction_optimisation.sql @@ -1,21 +1,21 @@ -DROP TABLE IF EXISTS test.bug; -CREATE TABLE IF NOT EXISTS test.bug(k UInt64, s UInt64) ENGINE = Memory; -insert into test.bug values(1,21),(1,22),(1,23),(2,21),(2,22),(2,23),(3,21),(3,22),(3,23); +DROP TABLE IF EXISTS bug; +CREATE TABLE IF NOT EXISTS bug(k UInt64, s UInt64) ENGINE = Memory; +insert into bug values(1,21),(1,22),(1,23),(2,21),(2,22),(2,23),(3,21),(3,22),(3,23); set optimize_min_equality_disjunction_chain_length = 2; -select * from test.bug; -select * from test.bug where (k =1 or k=2 or k =3) and (s=21 or s=22 or s=23); -select * from (select * from test.bug where k=1 or k=2 or k=3) where (s=21 or s=22 or s=23); -select k, (k=1 or k=2 or k=3), s, (s=21), (s=21 or s=22), (s=21 or s=22 or s=23) from test.bug; -select s, (s=21 or s=22 or s=23) from test.bug; +select * from bug; +select * from bug where (k =1 or k=2 or k =3) and (s=21 or s=22 or s=23); +select * from (select * from bug where k=1 or k=2 or k=3) where (s=21 or s=22 or s=23); +select k, (k=1 or k=2 or k=3), s, (s=21), (s=21 or s=22), (s=21 or s=22 or s=23) from bug; +select s, (s=21 or s=22 or s=23) from bug; set optimize_min_equality_disjunction_chain_length = 3; -select * from test.bug; -select * from test.bug where (k =1 or k=2 or k =3) and (s=21 or s=22 or s=23); -select * from (select * from test.bug where k=1 or k=2 or k=3) where (s=21 or s=22 or s=23); -select k, (k=1 or k=2 or k=3), s, (s=21), (s=21 or s=22), (s=21 or s=22 or s=23) from test.bug; -select s, (s=21 or s=22 or s=23) from test.bug; +select * from bug; +select * from bug where (k =1 or k=2 or k =3) and (s=21 or s=22 or s=23); +select * from (select * from bug where k=1 or k=2 or k=3) where (s=21 or s=22 or s=23); +select k, (k=1 or k=2 or k=3), s, (s=21), (s=21 or s=22), (s=21 or s=22 or s=23) from bug; +select s, (s=21 or s=22 or s=23) from bug; -DROP TABLE test.bug; +DROP TABLE bug; diff --git a/dbms/tests/queries/0_stateless/00737_decimal_group_by.sql b/dbms/tests/queries/0_stateless/00737_decimal_group_by.sql index 0904bb1d601..c9db69b6c30 100644 --- a/dbms/tests/queries/0_stateless/00737_decimal_group_by.sql +++ b/dbms/tests/queries/0_stateless/00737_decimal_group_by.sql @@ -10,17 +10,17 @@ select x from (select toDecimal32(1.3, 2) x) group by x; select x from (select toDecimal64(2.3, 4) x) group by x; select x from (select toDecimal128(3.3, 12) x) group by x; -DROP TABLE IF EXISTS test.decimal; -CREATE TABLE IF NOT EXISTS test.decimal +DROP TABLE IF EXISTS decimal; +CREATE TABLE IF NOT EXISTS decimal ( A UInt64, B Decimal128(18), C Decimal128(18) ) Engine = Memory; -INSERT INTO test.decimal VALUES (1,1,1), (1,1,2), (1,1,3), (1,1,4); +INSERT INTO decimal VALUES (1,1,1), (1,1,2), (1,1,3), (1,1,4); -SELECT A, toString(B) AS B_str, toString(SUM(C)) AS c_str FROM test.decimal GROUP BY A, B_str; -SELECT A, B_str, toString(cc) FROM (SELECT A, toString(B) AS B_str, SUM(C) AS cc FROM test.decimal GROUP BY A, B_str); +SELECT A, toString(B) AS B_str, toString(SUM(C)) AS c_str FROM decimal GROUP BY A, B_str; +SELECT A, B_str, toString(cc) FROM (SELECT A, toString(B) AS B_str, SUM(C) AS cc FROM decimal GROUP BY A, B_str); -DROP TABLE test.decimal; +DROP TABLE decimal; diff --git a/dbms/tests/queries/0_stateless/00738_lock_for_inner_table.sh b/dbms/tests/queries/0_stateless/00738_lock_for_inner_table.sh index db20f6172f0..00a817ea1d9 100755 --- a/dbms/tests/queries/0_stateless/00738_lock_for_inner_table.sh +++ b/dbms/tests/queries/0_stateless/00738_lock_for_inner_table.sh @@ -4,22 +4,22 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -echo "DROP TABLE IF EXISTS test.tab; -DROP TABLE IF EXISTS test.mv; -CREATE TABLE test.tab(a Int) ENGINE = Log; -CREATE MATERIALIZED VIEW test.mv ENGINE = Log AS SELECT a FROM test.tab;" | ${CLICKHOUSE_CLIENT} -n +echo "DROP TABLE IF EXISTS tab; +DROP TABLE IF EXISTS mv; +CREATE TABLE tab(a Int) ENGINE = Log; +CREATE MATERIALIZED VIEW mv ENGINE = Log AS SELECT a FROM tab;" | ${CLICKHOUSE_CLIENT} -n -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.tab SELECT number FROM numbers(10000000)" & +${CLICKHOUSE_CLIENT} --query "INSERT INTO tab SELECT number FROM numbers(10000000)" & function drop() { sleep 0.1 - ${CLICKHOUSE_CLIENT} --query "DROP TABLE test.\`.inner.mv\`" -n + ${CLICKHOUSE_CLIENT} --query "DROP TABLE \`.inner.mv\`" -n } drop & wait -echo "DROP TABLE IF EXISTS test.tab; -DROP TABLE IF EXISTS test.mv;" | ${CLICKHOUSE_CLIENT} -n +echo "DROP TABLE IF EXISTS tab; +DROP TABLE IF EXISTS mv;" | ${CLICKHOUSE_CLIENT} -n diff --git a/dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql b/dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql index 41b13e32a99..f9ccd9623e1 100644 --- a/dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql +++ b/dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.sites; -CREATE TABLE test.sites (Domain UInt8, `Users.UserID` Array(UInt64), `Users.Dates` Array(Array(Date))) ENGINE = MergeTree ORDER BY Domain SETTINGS vertical_merge_algorithm_min_rows_to_activate = 0, vertical_merge_algorithm_min_columns_to_activate = 0; +DROP TABLE IF EXISTS sites; +CREATE TABLE sites (Domain UInt8, `Users.UserID` Array(UInt64), `Users.Dates` Array(Array(Date))) ENGINE = MergeTree ORDER BY Domain SETTINGS vertical_merge_algorithm_min_rows_to_activate = 0, vertical_merge_algorithm_min_columns_to_activate = 0; SYSTEM STOP MERGES; -INSERT INTO test.sites VALUES (1,[1],[[]]); -INSERT INTO test.sites VALUES (2,[1],[['2018-06-22']]); +INSERT INTO sites VALUES (1,[1],[[]]); +INSERT INTO sites VALUES (2,[1],[['2018-06-22']]); -SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM test.sites; +SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM sites; SYSTEM START MERGES; -OPTIMIZE TABLE test.sites FINAL; -SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM test.sites; +OPTIMIZE TABLE sites FINAL; +SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM sites; -DROP TABLE test.sites; +DROP TABLE sites; diff --git a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql b/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql index 57a7aa81ade..29d11b4d97d 100644 --- a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql +++ b/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.perf; -CREATE TABLE test.perf (site String, user_id UInt64, z Float64) ENGINE = Log; +DROP TABLE IF EXISTS perf; +CREATE TABLE perf (site String, user_id UInt64, z Float64) ENGINE = Log; -SELECT * FROM (SELECT perf_1.z AS z_1 FROM test.perf AS perf_1); +SELECT * FROM (SELECT perf_1.z AS z_1 FROM perf AS perf_1); SELECT sum(mul)/sqrt(sum(sqr_dif_1) * sum(sqr_dif_2)) AS z_r FROM( @@ -10,11 +10,11 @@ SELECT avg(z_2) AS z_2_avg FROM ( SELECT perf_1.site, perf_1.z AS z_1 - FROM test.perf AS perf_1 + FROM perf AS perf_1 WHERE user_id = 000 ) ALL INNER JOIN ( SELECT perf_2.site, perf_2.z AS z_2 - FROM test.perf AS perf_2 + FROM perf AS perf_2 WHERE user_id = 999 ) USING site) as avg_values, z_1 - avg_values.1 AS dif_1, @@ -24,12 +24,12 @@ SELECT dif_2*dif_2 AS sqr_dif_2 FROM ( SELECT perf_1.site, perf_1.z AS z_1 - FROM test.perf AS perf_1 + FROM perf AS perf_1 WHERE user_id = 000 ) ALL INNER JOIN ( SELECT perf_2.site, perf_2.z AS z_2 - FROM test.perf AS perf_2 + FROM perf AS perf_2 WHERE user_id = 999 ) USING site); -DROP TABLE test.perf; +DROP TABLE perf; diff --git a/dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.sql b/dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.sql index 2401e1713fd..46c6bcb99b2 100644 --- a/dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.sql +++ b/dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.sql @@ -1,4 +1,3 @@ -USE test; DROP TABLE IF EXISTS installation_stats; CREATE TABLE installation_stats (message String, info String, message_type String) ENGINE = Log; diff --git a/dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.sql b/dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.sql index 0012db98f0e..1c31e7cb087 100644 --- a/dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.sql +++ b/dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.sql @@ -3,21 +3,21 @@ SET min_count_to_compile_expression = 1; SET optimize_move_to_prewhere = 0; SET enable_optimize_predicate_expression=0; -DROP TABLE IF EXISTS test.dt; -DROP TABLE IF EXISTS test.testx; +DROP TABLE IF EXISTS dt; +DROP TABLE IF EXISTS testx; -CREATE TABLE test.dt(tkey Int32) ENGINE = MergeTree order by tuple(); -INSERT INTO test.dt VALUES (300000); -CREATE TABLE test.testx(t Int32, a UInt8) ENGINE = MergeTree ORDER BY tuple(); -INSERT INTO test.testx VALUES (100000, 0); +CREATE TABLE dt(tkey Int32) ENGINE = MergeTree order by tuple(); +INSERT INTO dt VALUES (300000); +CREATE TABLE testx(t Int32, a UInt8) ENGINE = MergeTree ORDER BY tuple(); +INSERT INTO testx VALUES (100000, 0); -SELECT COUNT(*) FROM test.testx WHERE NOT a AND t < (SELECT tkey FROM test.dt); +SELECT COUNT(*) FROM testx WHERE NOT a AND t < (SELECT tkey FROM dt); -DROP TABLE test.dt; -CREATE TABLE test.dt(tkey Int32) ENGINE = MergeTree order by tuple(); -INSERT INTO test.dt VALUES (0); +DROP TABLE dt; +CREATE TABLE dt(tkey Int32) ENGINE = MergeTree order by tuple(); +INSERT INTO dt VALUES (0); -SELECT COUNT(*) FROM test.testx WHERE NOT a AND t < (SELECT tkey FROM test.dt); +SELECT COUNT(*) FROM testx WHERE NOT a AND t < (SELECT tkey FROM dt); -DROP TABLE IF EXISTS test.dt; -DROP TABLE IF EXISTS test.testx; +DROP TABLE IF EXISTS dt; +DROP TABLE IF EXISTS testx; diff --git a/dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql b/dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql index 3ca3148b9d6..b1e7fe35675 100644 --- a/dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql +++ b/dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql @@ -1,20 +1,20 @@ SET compile_expressions = 1; SET min_count_to_compile_expression = 1; -DROP TABLE IF EXISTS test.time_table; +DROP TABLE IF EXISTS time_table; -CREATE TABLE test.time_table(timecol DateTime, value Int32) ENGINE = MergeTree order by tuple(); +CREATE TABLE time_table(timecol DateTime, value Int32) ENGINE = MergeTree order by tuple(); -INSERT INTO test.time_table VALUES (now() - 5, 5), (now() - 3, 3); +INSERT INTO time_table VALUES (now() - 5, 5), (now() - 3, 3); -SELECT COUNT() from test.time_table WHERE value < now() - 1 AND value != 0 AND modulo(value, 2) != 0 AND timecol < now() - 1; +SELECT COUNT() from time_table WHERE value < now() - 1 AND value != 0 AND modulo(value, 2) != 0 AND timecol < now() - 1; SELECT sleep(3); -INSERT INTO test.time_table VALUES (now(), 101); +INSERT INTO time_table VALUES (now(), 101); SELECT sleep(3); -SELECT COUNT() from test.time_table WHERE value < now() - 1 AND value != 0 AND modulo(value, 2) != 0 AND timecol < now() - 1; +SELECT COUNT() from time_table WHERE value < now() - 1 AND value != 0 AND modulo(value, 2) != 0 AND timecol < now() - 1; -DROP TABLE IF EXISTS test.time_table; +DROP TABLE IF EXISTS time_table; diff --git a/dbms/tests/queries/0_stateless/00748_insert_array_with_null.sql b/dbms/tests/queries/0_stateless/00748_insert_array_with_null.sql index 027f9b6b472..b9cfe5a6115 100644 --- a/dbms/tests/queries/0_stateless/00748_insert_array_with_null.sql +++ b/dbms/tests/queries/0_stateless/00748_insert_array_with_null.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.arraytest; +DROP TABLE IF EXISTS arraytest; -CREATE TABLE test.arraytest ( created_date Date DEFAULT toDate(created_at), created_at DateTime DEFAULT now(), strings Array(String) DEFAULT emptyArrayString()) ENGINE = MergeTree(created_date, cityHash64(created_at), (created_date, cityHash64(created_at)), 8192); +CREATE TABLE arraytest ( created_date Date DEFAULT toDate(created_at), created_at DateTime DEFAULT now(), strings Array(String) DEFAULT emptyArrayString()) ENGINE = MergeTree(created_date, cityHash64(created_at), (created_date, cityHash64(created_at)), 8192); -INSERT INTO test.arraytest (created_at, strings) VALUES (now(), ['aaaaa', 'bbbbb', 'ccccc']); -INSERT INTO test.arraytest (created_at, strings) VALUES (now(), ['aaaaa', 'bbbbb', null]); -- { clientError 53 } +INSERT INTO arraytest (created_at, strings) VALUES (now(), ['aaaaa', 'bbbbb', 'ccccc']); +INSERT INTO arraytest (created_at, strings) VALUES (now(), ['aaaaa', 'bbbbb', null]); -- { clientError 53 } -SELECT strings from test.arraytest; +SELECT strings from arraytest; -DROP TABLE IF EXISTS test.arraytest; +DROP TABLE IF EXISTS arraytest; diff --git a/dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql b/dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql index f2cf8579bab..de43da698dc 100644 --- a/dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql +++ b/dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql @@ -1,19 +1,19 @@ -DROP TABLE IF EXISTS test.left_table; -DROP TABLE IF EXISTS test.right_table; +DROP TABLE IF EXISTS left_table; +DROP TABLE IF EXISTS right_table; -CREATE TABLE test.left_table(APIKey Int32, SomeColumn String) ENGINE = MergeTree ORDER BY tuple(); +CREATE TABLE left_table(APIKey Int32, SomeColumn String) ENGINE = MergeTree ORDER BY tuple(); -INSERT INTO test.left_table VALUES(1, 'somestr'); +INSERT INTO left_table VALUES(1, 'somestr'); -CREATE TABLE test.right_table(APIKey Int32, EventValueForPostback String) ENGINE = MergeTree ORDER BY tuple(); +CREATE TABLE right_table(APIKey Int32, EventValueForPostback String) ENGINE = MergeTree ORDER BY tuple(); -INSERT INTO test.right_table VALUES(1, 'hello'), (2, 'WORLD'); +INSERT INTO right_table VALUES(1, 'hello'), (2, 'WORLD'); SELECT APIKey, ConversionEventValue FROM - test.left_table AS left_table + left_table AS left_table ALL INNER JOIN ( SELECT * @@ -23,18 +23,18 @@ ALL INNER JOIN APIKey, EventValueForPostback AS ConversionEventValue FROM - test.right_table AS right_table + right_table AS right_table ) ALL INNER JOIN ( SELECT APIKey FROM - test.left_table as left_table + left_table as left_table GROUP BY APIKey ) USING (APIKey) ) USING (APIKey); -DROP TABLE IF EXISTS test.left_table; -DROP TABLE IF EXISTS test.right_table; +DROP TABLE IF EXISTS left_table; +DROP TABLE IF EXISTS right_table; diff --git a/dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql b/dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql index 5957ec3f50f..89cf5a61625 100644 --- a/dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql +++ b/dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.sample_merge_tree; +DROP TABLE IF EXISTS sample_merge_tree; -CREATE TABLE test.sample_merge_tree (dt DateTime, x UInt64) ENGINE = MergeTree PARTITION BY toYYYYMMDD(dt) ORDER BY x SETTINGS min_merge_bytes_to_use_direct_io=1, index_granularity = 8192; +CREATE TABLE sample_merge_tree (dt DateTime, x UInt64) ENGINE = MergeTree PARTITION BY toYYYYMMDD(dt) ORDER BY x SETTINGS min_merge_bytes_to_use_direct_io=1, index_granularity = 8192; -INSERT INTO test.sample_merge_tree VALUES (toDateTime('2018-10-31 05:05:00'), 0), (toDateTime('2018-10-31 06:06:00'), 10), (toDateTime('2018-10-28 10:00:00'), 20); +INSERT INTO sample_merge_tree VALUES (toDateTime('2018-10-31 05:05:00'), 0), (toDateTime('2018-10-31 06:06:00'), 10), (toDateTime('2018-10-28 10:00:00'), 20); -OPTIMIZE TABLE test.sample_merge_tree FINAL; +OPTIMIZE TABLE sample_merge_tree FINAL; -SELECT * FROM test.sample_merge_tree ORDER BY x; +SELECT * FROM sample_merge_tree ORDER BY x; -DROP TABLE IF EXISTS test.sample_merge_tree; +DROP TABLE IF EXISTS sample_merge_tree; diff --git a/dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql b/dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql index ca0dbaacbdb..c0234eaad8c 100644 --- a/dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql +++ b/dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql @@ -1,7 +1,7 @@ -drop table if exists test.low_null_float; -CREATE TABLE test.low_null_float (a LowCardinality(Nullable(Float64))) ENGINE = MergeTree order by tuple(); -INSERT INTO test.low_null_float (a) SELECT if(number % 3 == 0, Null, number) FROM system.numbers LIMIT 1000000; +drop table if exists low_null_float; +CREATE TABLE low_null_float (a LowCardinality(Nullable(Float64))) ENGINE = MergeTree order by tuple(); +INSERT INTO low_null_float (a) SELECT if(number % 3 == 0, Null, number) FROM system.numbers LIMIT 1000000; -SELECT a, count() FROM test.low_null_float GROUP BY a ORDER BY count() desc, a LIMIT 10; -drop table if exists test.low_null_float; +SELECT a, count() FROM low_null_float GROUP BY a ORDER BY count() desc, a LIMIT 10; +drop table if exists low_null_float; diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql b/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql index 53582107ab4..9e2ef3f2ff6 100644 --- a/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql @@ -1,6 +1,6 @@ -drop table if exists test.lc_lambda; -create table test.lc_lambda (arr Array(LowCardinality(UInt64))) engine = Memory; -insert into test.lc_lambda select range(number) from system.numbers limit 10; -select arrayFilter(x -> x % 2 == 0, arr) from test.lc_lambda; -drop table if exists test.lc_lambda; +drop table if exists lc_lambda; +create table lc_lambda (arr Array(LowCardinality(UInt64))) engine = Memory; +insert into lc_lambda select range(number) from system.numbers limit 10; +select arrayFilter(x -> x % 2 == 0, arr) from lc_lambda; +drop table if exists lc_lambda; diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql b/dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql index f4fab9728e1..1c19700e34d 100644 --- a/dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql @@ -1,5 +1,5 @@ -drop table if exists test.lc_left_aj; -CREATE TABLE test.lc_left_aj +drop table if exists lc_left_aj; +CREATE TABLE lc_left_aj ( str Array(LowCardinality(String)), null_str Array(LowCardinality(Nullable(String))), @@ -8,14 +8,14 @@ CREATE TABLE test.lc_left_aj ) ENGINE = Memory; -insert into test.lc_left_aj values (['a', 'b'], ['c', Null], [1, 2.0], [3., Null]), ([], ['c', Null], [1, 2.0], [3., Null]), (['a', 'b'], [], [1, 2.0], [3., Null]), (['a', 'b'], ['c', Null], [], [3., Null]), (['a', 'b'], ['c', Null], [1, 2.0], []); +insert into lc_left_aj values (['a', 'b'], ['c', Null], [1, 2.0], [3., Null]), ([], ['c', Null], [1, 2.0], [3., Null]), (['a', 'b'], [], [1, 2.0], [3., Null]), (['a', 'b'], ['c', Null], [], [3., Null]), (['a', 'b'], ['c', Null], [1, 2.0], []); -select *, arr from test.lc_left_aj left array join str as arr; +select *, arr from lc_left_aj left array join str as arr; select '-'; -select *, arr from test.lc_left_aj left array join null_str as arr; +select *, arr from lc_left_aj left array join null_str as arr; select '-'; -select *, arr from test.lc_left_aj left array join val as arr; +select *, arr from lc_left_aj left array join val as arr; select '-'; -select *, arr from test.lc_left_aj left array join null_val as arr; -drop table if exists test.lc_left_aj; +select *, arr from lc_left_aj left array join null_val as arr; +drop table if exists lc_left_aj; diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql b/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql index 57e09ab61e2..733fce41e02 100644 --- a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql @@ -1,15 +1,15 @@ -drop table if exists test.lc; -drop table if exists test.lc_mv; +drop table if exists lc; +drop table if exists lc_mv; -create table test.lc (str StringWithDictionary) engine = MergeTree order by tuple(); +create table lc (str StringWithDictionary) engine = MergeTree order by tuple(); -insert into test.lc values ('a'), ('bbb'), ('ab'), ('accccc'), ('baasddas'), ('bcde'); +insert into lc values ('a'), ('bbb'), ('ab'), ('accccc'), ('baasddas'), ('bcde'); -CREATE MATERIALIZED VIEW test.lc_mv ENGINE = AggregatingMergeTree() ORDER BY tuple() populate AS SELECT substring(str, 1, 1) as letter, min(length(str)) AS min_len, max(length(str)) AS max_len FROM test.lc GROUP BY substring(str, 1, 1); +CREATE MATERIALIZED VIEW lc_mv ENGINE = AggregatingMergeTree() ORDER BY tuple() populate AS SELECT substring(str, 1, 1) as letter, min(length(str)) AS min_len, max(length(str)) AS max_len FROM lc GROUP BY substring(str, 1, 1); -insert into test.lc values ('a'), ('bbb'), ('ab'), ('accccc'), ('baasddas'), ('bcde'); -select * from test.lc_mv order by letter; +insert into lc values ('a'), ('bbb'), ('ab'), ('accccc'), ('baasddas'), ('bcde'); +select * from lc_mv order by letter; -drop table if exists test.lc; -drop table if exists test.lc_mv; +drop table if exists lc; +drop table if exists lc_mv; diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql b/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql index 506f9e16710..354fce8f814 100644 --- a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql @@ -1,14 +1,14 @@ -drop table if exists test.radacct; -drop table if exists test.mv_traffic_by_tadig15min; +drop table if exists radacct; +drop table if exists mv_traffic_by_tadig15min; -CREATE TABLE test.radacct ( radacctid UInt64, f3gppchargingid Nullable(String), f3gppggsnaddress Nullable(String), f3gppggsnmccmnc Nullable(String), f3gppgprsqos Nullable(String), f3gppimeisv Nullable(String), f3gppimsi Nullable(UInt64), f3gppimsimccmnc Nullable(String), f3gpploci Nullable(String), f3gppnsapi Nullable(String), f3gpprattype Nullable(String), f3gppsgsnaddress Nullable(String), f3gppsgsnmccmnc Nullable(String), acctdelaytime Nullable(UInt32), acctinputoctets Nullable(UInt64), acctinputpackets Nullable(UInt64), acctoutputoctets Nullable(UInt64), acctoutputpackets Nullable(UInt64), acctsessionid String, acctstatustype Nullable(String), acctuniqueid String, calledstationid Nullable(String), callingstationid Nullable(String), framedipaddress Nullable(String), nasidentifier Nullable(String), nasipaddress Nullable(String), acctstarttime Nullable(DateTime), acctstoptime Nullable(DateTime), acctsessiontime Nullable(UInt32), acctterminatecause Nullable(String), acctstartdelay Nullable(UInt32), acctstopdelay Nullable(UInt32), connectinfo_start Nullable(String), connectinfo_stop Nullable(String), timestamp DateTime, username Nullable(String), realm Nullable(String), f3gppimsi_int UInt64, f3gppsgsnaddress_int Nullable(UInt32), timestamp_date Date, tac Nullable(String), mnc Nullable(String), tadig LowCardinality(String), country LowCardinality(String), tadig_op_ip Nullable(String) DEFAULT CAST('TADIG NOT FOUND', 'Nullable(String)'), mcc Nullable(UInt16) MATERIALIZED toUInt16OrNull(substring(f3gppsgsnmccmnc, 1, 6))) ENGINE = MergeTree(timestamp_date, (timestamp, radacctid, acctuniqueid), 8192); +CREATE TABLE radacct ( radacctid UInt64, f3gppchargingid Nullable(String), f3gppggsnaddress Nullable(String), f3gppggsnmccmnc Nullable(String), f3gppgprsqos Nullable(String), f3gppimeisv Nullable(String), f3gppimsi Nullable(UInt64), f3gppimsimccmnc Nullable(String), f3gpploci Nullable(String), f3gppnsapi Nullable(String), f3gpprattype Nullable(String), f3gppsgsnaddress Nullable(String), f3gppsgsnmccmnc Nullable(String), acctdelaytime Nullable(UInt32), acctinputoctets Nullable(UInt64), acctinputpackets Nullable(UInt64), acctoutputoctets Nullable(UInt64), acctoutputpackets Nullable(UInt64), acctsessionid String, acctstatustype Nullable(String), acctuniqueid String, calledstationid Nullable(String), callingstationid Nullable(String), framedipaddress Nullable(String), nasidentifier Nullable(String), nasipaddress Nullable(String), acctstarttime Nullable(DateTime), acctstoptime Nullable(DateTime), acctsessiontime Nullable(UInt32), acctterminatecause Nullable(String), acctstartdelay Nullable(UInt32), acctstopdelay Nullable(UInt32), connectinfo_start Nullable(String), connectinfo_stop Nullable(String), timestamp DateTime, username Nullable(String), realm Nullable(String), f3gppimsi_int UInt64, f3gppsgsnaddress_int Nullable(UInt32), timestamp_date Date, tac Nullable(String), mnc Nullable(String), tadig LowCardinality(String), country LowCardinality(String), tadig_op_ip Nullable(String) DEFAULT CAST('TADIG NOT FOUND', 'Nullable(String)'), mcc Nullable(UInt16) MATERIALIZED toUInt16OrNull(substring(f3gppsgsnmccmnc, 1, 6))) ENGINE = MergeTree(timestamp_date, (timestamp, radacctid, acctuniqueid), 8192); -insert into test.radacct values (1, 'a', 'b', 'c', 'd', 'e', 2, 'a', 'b', 'c', 'd', 'e', 'f', 3, 4, 5, 6, 7, 'a', 'Stop', 'c', 'd', 'e', 'f', 'g', 'h', '2018-10-10 15:54:21', '2018-10-10 15:54:21', 8, 'a', 9, 10, 'a', 'b', '2018-10-10 15:54:21', 'a', 'b', 11, 12, '2018-10-10', 'a', 'b', 'c', 'd', 'e'); +insert into radacct values (1, 'a', 'b', 'c', 'd', 'e', 2, 'a', 'b', 'c', 'd', 'e', 'f', 3, 4, 5, 6, 7, 'a', 'Stop', 'c', 'd', 'e', 'f', 'g', 'h', '2018-10-10 15:54:21', '2018-10-10 15:54:21', 8, 'a', 9, 10, 'a', 'b', '2018-10-10 15:54:21', 'a', 'b', 11, 12, '2018-10-10', 'a', 'b', 'c', 'd', 'e'); -create materialized view test.mv_traffic_by_tadig15min Engine=AggregatingMergeTree partition by tadig order by (ts,tadig) populate as select toStartOfFifteenMinutes(timestamp) ts,toDayOfWeek(timestamp) dow, tadig, sumState(acctinputoctets+acctoutputoctets) traffic_bytes,maxState(timestamp) last_stop, minState(radacctid) min_radacctid,maxState(radacctid) max_radacctid from test.radacct where acctstatustype='Stop' and acctinputoctets+acctoutputoctets > 0 group by tadig,ts,dow; +create materialized view mv_traffic_by_tadig15min Engine=AggregatingMergeTree partition by tadig order by (ts,tadig) populate as select toStartOfFifteenMinutes(timestamp) ts,toDayOfWeek(timestamp) dow, tadig, sumState(acctinputoctets+acctoutputoctets) traffic_bytes,maxState(timestamp) last_stop, minState(radacctid) min_radacctid,maxState(radacctid) max_radacctid from radacct where acctstatustype='Stop' and acctinputoctets+acctoutputoctets > 0 group by tadig,ts,dow; -select tadig, ts, dow, sumMerge(traffic_bytes), maxMerge(last_stop), minMerge(min_radacctid), maxMerge(max_radacctid) from test.mv_traffic_by_tadig15min group by tadig, ts, dow; +select tadig, ts, dow, sumMerge(traffic_bytes), maxMerge(last_stop), minMerge(min_radacctid), maxMerge(max_radacctid) from mv_traffic_by_tadig15min group by tadig, ts, dow; -drop table if exists test.radacct; -drop table if exists test.mv_traffic_by_tadig15min; +drop table if exists radacct; +drop table if exists mv_traffic_by_tadig15min; diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_permute.sql b/dbms/tests/queries/0_stateless/00752_low_cardinality_permute.sql index 44f991cb8bc..5c0716a926f 100644 --- a/dbms/tests/queries/0_stateless/00752_low_cardinality_permute.sql +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_permute.sql @@ -1,7 +1,7 @@ -drop table if exists test.lc_perm; -create table test.lc_perm (val UInt32, str LowCardinality(String)) engine = MergeTree order by val; -insert into test.lc_perm values (1, 'w'), (10, 'x'), (3, 'y'), (8, 'z'), (4, 'w'), (6, 'y'), (11, 'x'), (0, 'z'), (12, 'a'), (13, 'b'), (14, 'c'), (15, 'd'), (16, 'e'), (17, 'f'), (18, 'g'), (19, 'h'); -select * from test.lc_perm; -select str from test.lc_perm where val < 12 order by str; -drop table if exists test.lc_perm; +drop table if exists lc_perm; +create table lc_perm (val UInt32, str LowCardinality(String)) engine = MergeTree order by val; +insert into lc_perm values (1, 'w'), (10, 'x'), (3, 'y'), (8, 'z'), (4, 'w'), (6, 'y'), (11, 'x'), (0, 'z'), (12, 'a'), (13, 'b'), (14, 'c'), (15, 'd'), (16, 'e'), (17, 'f'), (18, 'g'), (19, 'h'); +select * from lc_perm; +select str from lc_perm where val < 12 order by str; +drop table if exists lc_perm; diff --git a/dbms/tests/queries/0_stateless/00753_alter_attach.sql b/dbms/tests/queries/0_stateless/00753_alter_attach.sql index 10e53118c3b..86388396410 100644 --- a/dbms/tests/queries/0_stateless/00753_alter_attach.sql +++ b/dbms/tests/queries/0_stateless/00753_alter_attach.sql @@ -1,20 +1,20 @@ -DROP TABLE IF EXISTS test.alter_attach; -CREATE TABLE test.alter_attach (x UInt64, p UInt8) ENGINE = MergeTree ORDER BY tuple() PARTITION BY p; -INSERT INTO test.alter_attach VALUES (1, 1), (2, 1), (3, 1); +DROP TABLE IF EXISTS alter_attach; +CREATE TABLE alter_attach (x UInt64, p UInt8) ENGINE = MergeTree ORDER BY tuple() PARTITION BY p; +INSERT INTO alter_attach VALUES (1, 1), (2, 1), (3, 1); -ALTER TABLE test.alter_attach DETACH PARTITION 1; +ALTER TABLE alter_attach DETACH PARTITION 1; -ALTER TABLE test.alter_attach ADD COLUMN s String; -INSERT INTO test.alter_attach VALUES (4, 2, 'Hello'), (5, 2, 'World'); +ALTER TABLE alter_attach ADD COLUMN s String; +INSERT INTO alter_attach VALUES (4, 2, 'Hello'), (5, 2, 'World'); -ALTER TABLE test.alter_attach ATTACH PARTITION 1; -SELECT * FROM test.alter_attach ORDER BY x; +ALTER TABLE alter_attach ATTACH PARTITION 1; +SELECT * FROM alter_attach ORDER BY x; -ALTER TABLE test.alter_attach DETACH PARTITION 2; -ALTER TABLE test.alter_attach DROP COLUMN s; -INSERT INTO test.alter_attach VALUES (6, 3), (7, 3); +ALTER TABLE alter_attach DETACH PARTITION 2; +ALTER TABLE alter_attach DROP COLUMN s; +INSERT INTO alter_attach VALUES (6, 3), (7, 3); -ALTER TABLE test.alter_attach ATTACH PARTITION 2; -SELECT * FROM test.alter_attach ORDER BY x; +ALTER TABLE alter_attach ATTACH PARTITION 2; +SELECT * FROM alter_attach ORDER BY x; -DROP TABLE test.alter_attach; +DROP TABLE alter_attach; diff --git a/dbms/tests/queries/0_stateless/00753_quantile_format.sql b/dbms/tests/queries/0_stateless/00753_quantile_format.sql index 732ae0a9bb4..3a0947015ea 100644 --- a/dbms/tests/queries/0_stateless/00753_quantile_format.sql +++ b/dbms/tests/queries/0_stateless/00753_quantile_format.sql @@ -1,30 +1,30 @@ -DROP TABLE IF EXISTS test.datetime; +DROP TABLE IF EXISTS datetime; -CREATE TABLE test.datetime (d DateTime) ENGINE = Memory; -INSERT INTO test.datetime(d) VALUES(toDateTime('2016-06-15 23:00:00')); +CREATE TABLE datetime (d DateTime) ENGINE = Memory; +INSERT INTO datetime(d) VALUES(toDateTime('2016-06-15 23:00:00')); -SELECT quantile(0.2)(d) FROM test.datetime; -SELECT quantiles(0.2)(d) FROM test.datetime; +SELECT quantile(0.2)(d) FROM datetime; +SELECT quantiles(0.2)(d) FROM datetime; -SELECT quantileDeterministic(0.2)(d, 1) FROM test.datetime; -SELECT quantilesDeterministic(0.2)(d, 1) FROM test.datetime; +SELECT quantileDeterministic(0.2)(d, 1) FROM datetime; +SELECT quantilesDeterministic(0.2)(d, 1) FROM datetime; -SELECT quantileExact(0.2)(d) FROM test.datetime; -SELECT quantilesExact(0.2)(d) FROM test.datetime; +SELECT quantileExact(0.2)(d) FROM datetime; +SELECT quantilesExact(0.2)(d) FROM datetime; -SELECT quantileExactWeighted(0.2)(d, 1) FROM test.datetime; -SELECT quantilesExactWeighted(0.2)(d, 1) FROM test.datetime; +SELECT quantileExactWeighted(0.2)(d, 1) FROM datetime; +SELECT quantilesExactWeighted(0.2)(d, 1) FROM datetime; -SELECT quantileTiming(0.2)(d) FROM test.datetime; -- { serverError 43 } -SELECT quantilesTiming(0.2)(d) FROM test.datetime; -- { serverError 43 } +SELECT quantileTiming(0.2)(d) FROM datetime; -- { serverError 43 } +SELECT quantilesTiming(0.2)(d) FROM datetime; -- { serverError 43 } -SELECT quantileTimingWeighted(0.2)(d, 1) FROM test.datetime; -- { serverError 43 } -SELECT quantilesTimingWeighted(0.2)(d, 1) FROM test.datetime; -- { serverError 43 } +SELECT quantileTimingWeighted(0.2)(d, 1) FROM datetime; -- { serverError 43 } +SELECT quantilesTimingWeighted(0.2)(d, 1) FROM datetime; -- { serverError 43 } -SELECT quantileTDigest(0.2)(d) FROM test.datetime; -SELECT quantilesTDigest(0.2)(d) FROM test.datetime; +SELECT quantileTDigest(0.2)(d) FROM datetime; +SELECT quantilesTDigest(0.2)(d) FROM datetime; -SELECT quantileTDigestWeighted(0.2)(d, 1) FROM test.datetime; -SELECT quantilesTDigestWeighted(0.2)(d, 1) FROM test.datetime; +SELECT quantileTDigestWeighted(0.2)(d, 1) FROM datetime; +SELECT quantilesTDigestWeighted(0.2)(d, 1) FROM datetime; -DROP TABLE test.datetime; +DROP TABLE datetime; diff --git a/dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql b/dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql index 04b4ce28edf..a0f8f69fd4b 100644 --- a/dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql +++ b/dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql @@ -1,8 +1,8 @@ CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.check_system_tables; +DROP TABLE IF EXISTS check_system_tables; -- Check MergeTree declaration in new format -CREATE TABLE test.check_system_tables +CREATE TABLE check_system_tables ( name1 UInt8, name2 UInt8, @@ -22,10 +22,10 @@ FROM system.columns WHERE table = 'check_system_tables' FORMAT PrettyCompactNoEscapes; -DROP TABLE IF EXISTS test.check_system_tables; +DROP TABLE IF EXISTS check_system_tables; -- Check VersionedCollapsingMergeTree -CREATE TABLE test.check_system_tables +CREATE TABLE check_system_tables ( date Date, value String, @@ -45,10 +45,10 @@ FROM system.columns WHERE table = 'check_system_tables' FORMAT PrettyCompactNoEscapes; -DROP TABLE IF EXISTS test.check_system_tables; +DROP TABLE IF EXISTS check_system_tables; -- Check MergeTree declaration in old format -CREATE TABLE test.check_system_tables +CREATE TABLE check_system_tables ( Event Date, UserId UInt32, @@ -65,4 +65,4 @@ FROM system.columns WHERE table = 'check_system_tables' FORMAT PrettyCompactNoEscapes; -DROP TABLE IF EXISTS test.check_system_tables; +DROP TABLE IF EXISTS check_system_tables; diff --git a/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh b/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh index 6adcec4a14e..745334a4a99 100755 --- a/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh +++ b/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh @@ -3,103 +3,103 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.mergetree;" -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.distributed;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS mergetree;" +${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS distributed;" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.mergetree (a Int64, b Int64, c Int64) ENGINE = MergeTree ORDER BY (a, b);" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE test.distributed AS test.mergetree ENGINE = Distributed(test_unavailable_shard, test, mergetree, jumpConsistentHash(a+b, 2));" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE mergetree (a Int64, b Int64, c Int64) ENGINE = MergeTree ORDER BY (a, b);" +${CLICKHOUSE_CLIENT} --query "CREATE TABLE distributed AS mergetree ENGINE = Distributed(test_unavailable_shard, ${CLICKHOUSE_DATABASE}, mergetree, jumpConsistentHash(a+b, 2));" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.mergetree VALUES (0, 0, 0);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.mergetree VALUES (1, 0, 0);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.mergetree VALUES (0, 1, 1);" -${CLICKHOUSE_CLIENT} --query "INSERT INTO test.mergetree VALUES (1, 1, 1);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO mergetree VALUES (0, 0, 0);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO mergetree VALUES (1, 0, 0);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO mergetree VALUES (0, 1, 1);" +${CLICKHOUSE_CLIENT} --query "INSERT INTO mergetree VALUES (1, 1, 1);" # Should fail because second shard is unavailable -${CLICKHOUSE_CLIENT} --query "SELECT count(*) FROM test.distributed;" 2>&1 \ +${CLICKHOUSE_CLIENT} --query "SELECT count(*) FROM distributed;" 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' # Should fail without setting `optimize_skip_unused_shards` -${CLICKHOUSE_CLIENT} --query "SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0;" 2>&1 \ +${CLICKHOUSE_CLIENT} --query "SELECT count(*) FROM distributed WHERE a = 0 AND b = 0;" 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' # Should pass now ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0; " # Should still fail because of matching unavailable shard ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 2 AND b = 2; + SELECT count(*) FROM distributed WHERE a = 2 AND b = 2; " 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' # Try more complext expressions for constant folding - all should pass. ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 1 AND a = 0 AND b = 0; + SELECT count(*) FROM distributed WHERE a = 1 AND a = 0 AND b = 0; " ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a IN (0, 1) AND b IN (0, 1); + SELECT count(*) FROM distributed WHERE a IN (0, 1) AND b IN (0, 1); " ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0 OR a = 1 AND b = 1; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0 OR a = 1 AND b = 1; " # TODO: should pass one day. #${CLICKHOUSE_CLIENT} -n --query=" # SET optimize_skip_unused_shards = 1; -# SELECT count(*) FROM test.distributed WHERE a = 0 AND b >= 0 AND b <= 1; +# SELECT count(*) FROM distributed WHERE a = 0 AND b >= 0 AND b <= 1; #" ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0 AND c = 0; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0 AND c = 0; " ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0 AND c != 10; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0 AND c != 10; " ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0 AND (a+b)*b != 12; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0 AND (a+b)*b != 12; " ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE (a = 0 OR a = 1) AND (b = 0 OR b = 1); + SELECT count(*) FROM distributed WHERE (a = 0 OR a = 1) AND (b = 0 OR b = 1); " # These ones should fail. ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b <= 1; + SELECT count(*) FROM distributed WHERE a = 0 AND b <= 1; " 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND c = 0; + SELECT count(*) FROM distributed WHERE a = 0 AND c = 0; " 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 OR a = 1 AND b = 0; + SELECT count(*) FROM distributed WHERE a = 0 OR a = 1 AND b = 0; " 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0 OR a = 2 AND b = 2; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0 OR a = 2 AND b = 2; " 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' ${CLICKHOUSE_CLIENT} -n --query=" SET optimize_skip_unused_shards = 1; - SELECT count(*) FROM test.distributed WHERE a = 0 AND b = 0 OR c = 0; + SELECT count(*) FROM distributed WHERE a = 0 AND b = 0 OR c = 0; " 2>&1 \ | fgrep -q "All connection tries failed" && echo 'OK' || echo 'FAIL' diff --git a/dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql b/dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql index c0551f2f7ef..8ce6716e03c 100644 --- a/dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql +++ b/dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.size_hint; -CREATE TABLE test.size_hint (s Array(String)) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 1000; +DROP TABLE IF EXISTS size_hint; +CREATE TABLE size_hint (s Array(String)) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 1000; SET max_block_size = 1000; SET max_memory_usage = 1000000000; -INSERT INTO test.size_hint SELECT arrayMap(x -> 'Hello', range(1000)) FROM numbers(10000); +INSERT INTO size_hint SELECT arrayMap(x -> 'Hello', range(1000)) FROM numbers(10000); SET max_memory_usage = 100000000, max_threads = 2; -SELECT count(), sum(length(s)) FROM test.size_hint; +SELECT count(), sum(length(s)) FROM size_hint; -DROP TABLE test.size_hint; +DROP TABLE size_hint; diff --git a/dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.sql b/dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.sql index 28d5cd6499a..483d5e6e522 100644 --- a/dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.sql +++ b/dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.sql @@ -1,8 +1,8 @@ SET input_format_defaults_for_omitted_fields=1; CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE test.defaults +DROP TABLE IF EXISTS defaults; +CREATE TABLE defaults ( x UInt32, y UInt32, @@ -13,21 +13,21 @@ CREATE TABLE test.defaults f ALIAS x + y ) ENGINE = MergeTree ORDER BY x; -INSERT INTO test.defaults FORMAT JSONEachRow {"x":1, "y":1}; -INSERT INTO test.defaults (x, y) SELECT x, y FROM test.defaults LIMIT 1; -INSERT INTO test.defaults FORMAT JSONEachRow {"x":2, "y":2, "c":2}; -INSERT INTO test.defaults FORMAT JSONEachRow {"x":3, "y":3, "a":3, "b":3, "c":3}; -INSERT INTO test.defaults FORMAT JSONEachRow {"x":4} {"y":5, "c":5} {"a":6, "b":6, "c":6}; +INSERT INTO defaults FORMAT JSONEachRow {"x":1, "y":1}; +INSERT INTO defaults (x, y) SELECT x, y FROM defaults LIMIT 1; +INSERT INTO defaults FORMAT JSONEachRow {"x":2, "y":2, "c":2}; +INSERT INTO defaults FORMAT JSONEachRow {"x":3, "y":3, "a":3, "b":3, "c":3}; +INSERT INTO defaults FORMAT JSONEachRow {"x":4} {"y":5, "c":5} {"a":6, "b":6, "c":6}; -SELECT * FROM test.defaults ORDER BY (x, y); +SELECT * FROM defaults ORDER BY (x, y); -ALTER TABLE test.defaults ADD COLUMN n Nested(a UInt64, b String); -INSERT INTO test.defaults FORMAT JSONEachRow {"x":7, "y":7, "n.a":[1,2], "n.b":["a","b"]}; -SELECT * FROM test.defaults WHERE x = 7 FORMAT JSONEachRow; +ALTER TABLE defaults ADD COLUMN n Nested(a UInt64, b String); +INSERT INTO defaults FORMAT JSONEachRow {"x":7, "y":7, "n.a":[1,2], "n.b":["a","b"]}; +SELECT * FROM defaults WHERE x = 7 FORMAT JSONEachRow; -ALTER TABLE test.defaults ADD COLUMN n.c Array(UInt8) DEFAULT arrayMap(x -> 0, n.a) AFTER n.a; -INSERT INTO test.defaults FORMAT JSONEachRow {"x":8, "y":8, "n.a":[3,4], "n.b":["c","d"]}; -INSERT INTO test.defaults FORMAT JSONEachRow {"x":9, "y":9}; -SELECT * FROM test.defaults WHERE x > 7 ORDER BY x FORMAT JSONEachRow; +ALTER TABLE defaults ADD COLUMN n.c Array(UInt8) DEFAULT arrayMap(x -> 0, n.a) AFTER n.a; +INSERT INTO defaults FORMAT JSONEachRow {"x":8, "y":8, "n.a":[3,4], "n.b":["c","d"]}; +INSERT INTO defaults FORMAT JSONEachRow {"x":9, "y":9}; +SELECT * FROM defaults WHERE x > 7 ORDER BY x FORMAT JSONEachRow; -DROP TABLE test.defaults; +DROP TABLE defaults; diff --git a/dbms/tests/queries/0_stateless/00799_function_dry_run.sql b/dbms/tests/queries/0_stateless/00799_function_dry_run.sql index ac472c317d0..4f3df6a0ff8 100644 --- a/dbms/tests/queries/0_stateless/00799_function_dry_run.sql +++ b/dbms/tests/queries/0_stateless/00799_function_dry_run.sql @@ -1,8 +1,6 @@ -- https://stackoverflow.com/questions/53416531/clickhouse-moving-average -DROP TABLE IF EXISTS test.bm; - -USE test; +DROP TABLE IF EXISTS bm; CREATE TABLE bm (amount float, business_dttm DateTime) engine Log; @@ -34,4 +32,4 @@ FROM ORDER BY business_dttm ); -DROP TABLE test.bm; +DROP TABLE bm; diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql b/dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql index fa7a2edc329..af6f9da9ce1 100644 --- a/dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql +++ b/dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.table1; -DROP TABLE IF EXISTS test.table2; +DROP TABLE IF EXISTS table1; +DROP TABLE IF EXISTS table2; -CREATE TABLE test.table1 +CREATE TABLE table1 ( dt Date, id Int32, @@ -9,7 +9,7 @@ arr Array(LowCardinality(String)) ) ENGINE = MergeTree PARTITION BY toMonday(dt) ORDER BY (dt, id) SETTINGS index_granularity = 8192; -CREATE TABLE test.table2 +CREATE TABLE table2 ( dt Date, id Int32, @@ -17,15 +17,15 @@ arr Array(LowCardinality(String)) ) ENGINE = MergeTree PARTITION BY toMonday(dt) ORDER BY (dt, id) SETTINGS index_granularity = 8192; -insert into test.table1 (dt, id, arr) values ('2019-01-14', 1, ['aaa']); -insert into test.table2 (dt, id, arr) values ('2019-01-14', 1, ['aaa','bbb','ccc']); +insert into table1 (dt, id, arr) values ('2019-01-14', 1, ['aaa']); +insert into table2 (dt, id, arr) values ('2019-01-14', 1, ['aaa','bbb','ccc']); select dt, id, arraySort(groupArrayArray(arr)) from ( - select dt, id, arr from test.table1 + select dt, id, arr from table1 where dt = '2019-01-14' and id = 1 UNION ALL - select dt, id, arr from test.table2 + select dt, id, arr from table2 where dt = '2019-01-14' and id = 1 ) group by dt, id; diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql b/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql index fc9f2600109..bac864e6e21 100644 --- a/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql +++ b/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql @@ -1,5 +1,5 @@ -drop table if exists test.lc; -create table test.lc (val LowCardinality(UInt64)) engine = MergeTree order by val; -insert into test.lc select number % 123 from system.numbers limit 100000; -select distinct(val) from test.lc order by val; -drop table if exists test.lc; +drop table if exists lc; +create table lc (val LowCardinality(UInt64)) engine = MergeTree order by val; +insert into lc select number % 123 from system.numbers limit 100000; +select distinct(val) from lc order by val; +drop table if exists lc; diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql b/dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql index 0f02f6aa2d5..71bfb38d3c4 100644 --- a/dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql +++ b/dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql @@ -1,7 +1,7 @@ -drop table if exists test.lc; -create table test.lc (names Array(LowCardinality(String))) engine=MergeTree order by tuple(); -insert into test.lc values ([]); -insert into test.lc select emptyArrayString(); -select * from test.lc; -drop table if exists test.lc; +drop table if exists lc; +create table lc (names Array(LowCardinality(String))) engine=MergeTree order by tuple(); +insert into lc values ([]); +insert into lc select emptyArrayString(); +select * from lc; +drop table if exists lc; diff --git a/dbms/tests/queries/0_stateless/00804_rollup_with_having.sql b/dbms/tests/queries/0_stateless/00804_rollup_with_having.sql index 2bb5dec0136..cddaa8b6451 100644 --- a/dbms/tests/queries/0_stateless/00804_rollup_with_having.sql +++ b/dbms/tests/queries/0_stateless/00804_rollup_with_having.sql @@ -1,14 +1,14 @@ -DROP TABLE IF EXISTS test.rollup_having; -CREATE TABLE test.rollup_having ( +DROP TABLE IF EXISTS rollup_having; +CREATE TABLE rollup_having ( a Nullable(String), b Nullable(String) ) ENGINE = Memory; -INSERT INTO test.rollup_having VALUES (NULL, NULL); -INSERT INTO test.rollup_having VALUES ('a', NULL); -INSERT INTO test.rollup_having VALUES ('a', 'b'); +INSERT INTO rollup_having VALUES (NULL, NULL); +INSERT INTO rollup_having VALUES ('a', NULL); +INSERT INTO rollup_having VALUES ('a', 'b'); -SELECT a, b, count(*) FROM test.rollup_having GROUP BY a, b WITH ROLLUP HAVING a IS NOT NULL; -SELECT a, b, count(*) FROM test.rollup_having GROUP BY a, b WITH ROLLUP HAVING a IS NOT NULL and b IS NOT NULL; +SELECT a, b, count(*) FROM rollup_having GROUP BY a, b WITH ROLLUP HAVING a IS NOT NULL; +SELECT a, b, count(*) FROM rollup_having GROUP BY a, b WITH ROLLUP HAVING a IS NOT NULL and b IS NOT NULL; -DROP TABLE test.rollup_having; +DROP TABLE rollup_having; diff --git a/dbms/tests/queries/0_stateless/00806_alter_update.sql b/dbms/tests/queries/0_stateless/00806_alter_update.sql index 65e98188c3f..104b1185fcf 100644 --- a/dbms/tests/queries/0_stateless/00806_alter_update.sql +++ b/dbms/tests/queries/0_stateless/00806_alter_update.sql @@ -1,11 +1,11 @@ -DROP TABLE IF EXISTS test.alter_update; +DROP TABLE IF EXISTS alter_update; -CREATE TABLE test.alter_update (d Date, e Enum8('foo'=1, 'bar'=2)) Engine = MergeTree(d, (d), 8192); -INSERT INTO test.alter_update (d, e) VALUES ('2018-01-01', 'foo'); -INSERT INTO test.alter_update (d, e) VALUES ('2018-01-02', 'bar'); +CREATE TABLE alter_update (d Date, e Enum8('foo'=1, 'bar'=2)) Engine = MergeTree(d, (d), 8192); +INSERT INTO alter_update (d, e) VALUES ('2018-01-01', 'foo'); +INSERT INTO alter_update (d, e) VALUES ('2018-01-02', 'bar'); -ALTER TABLE test.alter_update UPDATE e = CAST('foo', 'Enum8(\'foo\' = 1, \'bar\' = 2)') WHERE d='2018-01-02'; +ALTER TABLE alter_update UPDATE e = CAST('foo', 'Enum8(\'foo\' = 1, \'bar\' = 2)') WHERE d='2018-01-02'; SELECT sleep(1); -- TODO: there should be setting for sync ALTER UPDATE someday. -SELECT e FROM test.alter_update ORDER BY d; +SELECT e FROM alter_update ORDER BY d; diff --git a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql b/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql index ab57047f3e0..1e0a1a745f5 100644 --- a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql +++ b/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql @@ -1,24 +1,24 @@ SET send_logs_level = 'none'; -DROP TABLE IF EXISTS test.test; -CREATE TABLE test.test(date Date, id Int8, name String, value Int64, sign Int8) ENGINE = CollapsingMergeTree(sign) ORDER BY (id, date); +DROP TABLE IF EXISTS test; +CREATE TABLE test(date Date, id Int8, name String, value Int64, sign Int8) ENGINE = CollapsingMergeTree(sign) ORDER BY (id, date); -INSERT INTO test.test VALUES('2000-01-01', 1, 'test string 1', 1, 1); -INSERT INTO test.test VALUES('2000-01-01', 2, 'test string 2', 2, 1); +INSERT INTO test VALUES('2000-01-01', 1, 'test string 1', 1, 1); +INSERT INTO test VALUES('2000-01-01', 2, 'test string 2', 2, 1); SET enable_optimize_predicate_expression = 1; SELECT '-------ENABLE OPTIMIZE PREDICATE-------'; -SELECT * FROM (SELECT * FROM test.test FINAL) WHERE id = 1; -SELECT * FROM (SELECT * FROM test.test LIMIT 1) WHERE id = 1; -SELECT * FROM (SELECT id FROM test.test GROUP BY id LIMIT 1 BY id) WHERE id = 1; +SELECT * FROM (SELECT * FROM test FINAL) WHERE id = 1; +SELECT * FROM (SELECT * FROM test LIMIT 1) WHERE id = 1; +SELECT * FROM (SELECT id FROM test GROUP BY id LIMIT 1 BY id) WHERE id = 1; SET force_primary_key = 1; SELECT '-------FORCE PRIMARY KEY-------'; -SELECT * FROM (SELECT * FROM test.test FINAL) WHERE id = 1; -- { serverError 277 } -SELECT * FROM (SELECT * FROM test.test LIMIT 1) WHERE id = 1; -- { serverError 277 } -SELECT * FROM (SELECT id FROM test.test GROUP BY id LIMIT 1 BY id) WHERE id = 1; -- { serverError 277 } +SELECT * FROM (SELECT * FROM test FINAL) WHERE id = 1; -- { serverError 277 } +SELECT * FROM (SELECT * FROM test LIMIT 1) WHERE id = 1; -- { serverError 277 } +SELECT * FROM (SELECT id FROM test GROUP BY id LIMIT 1 BY id) WHERE id = 1; -- { serverError 277 } SELECT '-------CHECK STATEFUL FUNCTIONS-------'; SELECT n, z, changed FROM ( @@ -36,4 +36,4 @@ SELECT arrayJoin(arrayMap(x -> x, arraySort(groupArray((ts, n))))) AS k FROM ( ) WHERE z = 'a' GROUP BY z; -DROP TABLE IF EXISTS test.test; +DROP TABLE IF EXISTS test; diff --git a/dbms/tests/queries/0_stateless/00812_prewhere_alias_array.sql b/dbms/tests/queries/0_stateless/00812_prewhere_alias_array.sql index 0679623194f..7637dd23b37 100644 --- a/dbms/tests/queries/0_stateless/00812_prewhere_alias_array.sql +++ b/dbms/tests/queries/0_stateless/00812_prewhere_alias_array.sql @@ -1,4 +1,4 @@ -DROP TABLE IF EXISTS test.prewhere; -CREATE TABLE test.prewhere (x Array(UInt64), y ALIAS x, s String) ENGINE = MergeTree ORDER BY tuple(); -SELECT count() FROM test.prewhere PREWHERE (length(s) >= 1) = 0 WHERE NOT ignore(y); -DROP TABLE test.prewhere; +DROP TABLE IF EXISTS prewhere; +CREATE TABLE prewhere (x Array(UInt64), y ALIAS x, s String) ENGINE = MergeTree ORDER BY tuple(); +SELECT count() FROM prewhere PREWHERE (length(s) >= 1) = 0 WHERE NOT ignore(y); +DROP TABLE prewhere; diff --git a/dbms/tests/queries/0_stateless/00816_join_column_names_sarg.sql b/dbms/tests/queries/0_stateless/00816_join_column_names_sarg.sql index a9d30e7152e..38f1056373c 100644 --- a/dbms/tests/queries/0_stateless/00816_join_column_names_sarg.sql +++ b/dbms/tests/queries/0_stateless/00816_join_column_names_sarg.sql @@ -1,5 +1,3 @@ -USE test; - drop table if exists t1; drop table if exists t2; create table t1 (a Int8, val Float32) engine=Memory(); @@ -11,7 +9,7 @@ INSERT INTO t2 VALUES (1, 456); select t1.a, t2.a from t1 all inner join t2 on t1.a=t2.a; -- Received exception from server (version 18.14.1): --- Code: 47. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Unknown identifier: test.t2.a. +-- Code: 47. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Unknown identifier: t2.a. -- this query works fine select t1.a, t2.* from t1 all inner join t2 on t1.a=t2.a; diff --git a/dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh b/dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh index c1fc0ebce6a..17779b73add 100755 --- a/dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh +++ b/dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh @@ -5,17 +5,17 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -echo "DROP TABLE IF EXISTS test.concurrent_alter_column" | ${CLICKHOUSE_CLIENT} -echo "CREATE TABLE test.concurrent_alter_column (ts DATETIME) ENGINE = MergeTree PARTITION BY toStartOfDay(ts) ORDER BY tuple()" | ${CLICKHOUSE_CLIENT} +echo "DROP TABLE IF EXISTS concurrent_alter_column" | ${CLICKHOUSE_CLIENT} +echo "CREATE TABLE concurrent_alter_column (ts DATETIME) ENGINE = MergeTree PARTITION BY toStartOfDay(ts) ORDER BY tuple()" | ${CLICKHOUSE_CLIENT} -for i in {1..500}; do echo "ALTER TABLE test.concurrent_alter_column ADD COLUMN c$i DOUBLE;"; done | ${CLICKHOUSE_CLIENT} -n +for i in {1..500}; do echo "ALTER TABLE concurrent_alter_column ADD COLUMN c$i DOUBLE;"; done | ${CLICKHOUSE_CLIENT} -n -for i in {1..100}; do echo "ALTER TABLE test.concurrent_alter_column ADD COLUMN d DOUBLE" | ${CLICKHOUSE_CLIENT}; sleep `echo 0.0$RANDOM`; echo "ALTER TABLE test.concurrent_alter_column DROP COLUMN d" | ${CLICKHOUSE_CLIENT} -n; done & -for i in {1..100}; do echo "ALTER TABLE test.concurrent_alter_column ADD COLUMN e DOUBLE" | ${CLICKHOUSE_CLIENT}; sleep `echo 0.0$RANDOM`; echo "ALTER TABLE test.concurrent_alter_column DROP COLUMN e" | ${CLICKHOUSE_CLIENT} -n; done & -for i in {1..100}; do echo "ALTER TABLE test.concurrent_alter_column ADD COLUMN f DOUBLE" | ${CLICKHOUSE_CLIENT}; sleep `echo 0.0$RANDOM`; echo "ALTER TABLE test.concurrent_alter_column DROP COLUMN f" | ${CLICKHOUSE_CLIENT} -n; done & +for i in {1..100}; do echo "ALTER TABLE concurrent_alter_column ADD COLUMN d DOUBLE" | ${CLICKHOUSE_CLIENT}; sleep `echo 0.0$RANDOM`; echo "ALTER TABLE concurrent_alter_column DROP COLUMN d" | ${CLICKHOUSE_CLIENT} -n; done & +for i in {1..100}; do echo "ALTER TABLE concurrent_alter_column ADD COLUMN e DOUBLE" | ${CLICKHOUSE_CLIENT}; sleep `echo 0.0$RANDOM`; echo "ALTER TABLE concurrent_alter_column DROP COLUMN e" | ${CLICKHOUSE_CLIENT} -n; done & +for i in {1..100}; do echo "ALTER TABLE concurrent_alter_column ADD COLUMN f DOUBLE" | ${CLICKHOUSE_CLIENT}; sleep `echo 0.0$RANDOM`; echo "ALTER TABLE concurrent_alter_column DROP COLUMN f" | ${CLICKHOUSE_CLIENT} -n; done & wait -echo "DROP TABLE test.concurrent_alter_column" | ${CLICKHOUSE_CLIENT} +echo "DROP TABLE concurrent_alter_column" | ${CLICKHOUSE_CLIENT} echo 'did not crash' diff --git a/dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.sql b/dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.sql index e6160720859..b8bd6d3384c 100644 --- a/dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.sql +++ b/dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.sql @@ -1,16 +1,14 @@ -USE test; +DROP TABLE IF EXISTS using1; +DROP TABLE IF EXISTS using2; -DROP TABLE IF EXISTS test.using1; -DROP TABLE IF EXISTS test.using2; +CREATE TABLE using1(a String, b DateTime) ENGINE=MergeTree order by a; +CREATE TABLE using2(c String, a String, d DateTime) ENGINE=MergeTree order by c; -CREATE TABLE test.using1(a String, b DateTime) ENGINE=MergeTree order by a; -CREATE TABLE test.using2(c String, a String, d DateTime) ENGINE=MergeTree order by c; +INSERT INTO using1 VALUES ('a', '2018-01-01 00:00:00') ('b', '2018-01-01 00:00:00') ('c', '2018-01-01 00:00:00'); +INSERT INTO using2 VALUES ('d', 'd', '2018-01-01 00:00:00') ('b', 'b', '2018-01-01 00:00:00') ('c', 'c', '2018-01-01 00:00:00'); -INSERT INTO test.using1 VALUES ('a', '2018-01-01 00:00:00') ('b', '2018-01-01 00:00:00') ('c', '2018-01-01 00:00:00'); -INSERT INTO test.using2 VALUES ('d', 'd', '2018-01-01 00:00:00') ('b', 'b', '2018-01-01 00:00:00') ('c', 'c', '2018-01-01 00:00:00'); +SELECT * FROM using1 t1 ALL LEFT JOIN (SELECT *, c as a, d as b FROM using2) t2 USING (a, b) ORDER BY d; +SELECT * FROM using1 t1 ALL INNER JOIN (SELECT *, c as a, d as b FROM using2) t2 USING (a, b) ORDER BY d; -SELECT * FROM test.using1 t1 ALL LEFT JOIN (SELECT *, c as a, d as b FROM test.using2) t2 USING (a, b) ORDER BY d; -SELECT * FROM test.using1 t1 ALL INNER JOIN (SELECT *, c as a, d as b FROM test.using2) t2 USING (a, b) ORDER BY d; - -DROP TABLE test.using1; -DROP TABLE test.using2; +DROP TABLE using1; +DROP TABLE using2; diff --git a/dbms/tests/queries/0_stateless/00818_join_bug_4271.sql b/dbms/tests/queries/0_stateless/00818_join_bug_4271.sql index 8f7fc7f8ef4..c273b3f1925 100644 --- a/dbms/tests/queries/0_stateless/00818_join_bug_4271.sql +++ b/dbms/tests/queries/0_stateless/00818_join_bug_4271.sql @@ -1,5 +1,3 @@ -use test; - drop table if exists t; drop table if exists s; diff --git a/dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql b/dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql index 780dcd7e602..9737d894740 100644 --- a/dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql +++ b/dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql @@ -1,5 +1,5 @@ -DROP TABLE IF EXISTS test.visits1; -CREATE TABLE test.visits1 +DROP TABLE IF EXISTS visits1; +CREATE TABLE visits1 ( Sign Int8, Arr Array(Int8), @@ -8,10 +8,10 @@ CREATE TABLE test.visits1 CounterID UInt32 ) ENGINE = Memory; -SELECT arrayMap(x -> x * Sign, Arr) FROM test.visits1; +SELECT arrayMap(x -> x * Sign, Arr) FROM visits1; SELECT PP.Key2 AS `ym:s:pl2` -FROM test.visits1 +FROM visits1 ARRAY JOIN `ParsedParams.Key2` AS `PP.Key2`, `ParsedParams.Key1` AS `PP.Key1`, @@ -19,7 +19,7 @@ ARRAY JOIN arrayEnumerateUniq(`ParsedParams.Key2`) AS _uniq_ParsedParams WHERE CounterID = 100500; -DROP TABLE test.visits1; +DROP TABLE visits1; select u, cumSum from ( select u, min(d) mn, max(d) mx, groupArray(d) dg, groupArray(v) vg, diff --git a/dbms/tests/queries/0_stateless/00820_multiple_joins.sql b/dbms/tests/queries/0_stateless/00820_multiple_joins.sql index 8588edc5641..309b369ade3 100644 --- a/dbms/tests/queries/0_stateless/00820_multiple_joins.sql +++ b/dbms/tests/queries/0_stateless/00820_multiple_joins.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS table1; DROP TABLE IF EXISTS table2; DROP TABLE IF EXISTS table3; diff --git a/dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql b/dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql index cbd3eb6e467..9e87c739928 100644 --- a/dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql +++ b/dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql @@ -1,12 +1,12 @@ -DROP TABLE IF EXISTS test.table1; -DROP TABLE IF EXISTS test.table2; +DROP TABLE IF EXISTS table1; +DROP TABLE IF EXISTS table2; -CREATE TABLE test.table1 AS system.columns ENGINE = Distributed('test_shard_localhost', system, columns); -CREATE TABLE test.table2 AS system.tables ENGINE = Distributed('test_shard_localhost', system, tables); +CREATE TABLE table1 AS system.columns ENGINE = Distributed('test_shard_localhost', system, columns); +CREATE TABLE table2 AS system.tables ENGINE = Distributed('test_shard_localhost', system, tables); -SELECT 1 FROM test.table1 T1 ALL INNER JOIN test.table2 T2 ON T1.table = T2.name LIMIT 1; +SELECT 1 FROM table1 T1 ALL INNER JOIN table2 T2 ON T1.table = T2.name LIMIT 1; SELECT 1 FROM cluster('test_shard_localhost', system.columns) T1 ALL INNER JOIN cluster('test_shard_localhost', system.tables) T2 ON T1.table = T2.name LIMIT 1; -SELECT 1 FROM (SELECT * FROM test.table1) T1 ALL INNER JOIN (SELECT * FROM test.table2) T2 ON T1.table = T2.name LIMIT 1; +SELECT 1 FROM (SELECT * FROM table1) T1 ALL INNER JOIN (SELECT * FROM table2) T2 ON T1.table = T2.name LIMIT 1; -DROP TABLE IF EXISTS test.table1; -DROP TABLE IF EXISTS test.table2; +DROP TABLE IF EXISTS table1; +DROP TABLE IF EXISTS table2; diff --git a/dbms/tests/queries/0_stateless/00823_capnproto_input.sh b/dbms/tests/queries/0_stateless/00823_capnproto_input.sh index cf0e2739abd..8a0e9a074dd 100755 --- a/dbms/tests/queries/0_stateless/00823_capnproto_input.sh +++ b/dbms/tests/queries/0_stateless/00823_capnproto_input.sh @@ -37,8 +37,8 @@ struct CapnProto nestedthree @4 : NestedNestedTwo; }" > ${CLICKHOUSE_TMP}/test.capnp -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.capnproto_input" -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.capnproto_input +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS capnproto_input" +$CLICKHOUSE_CLIENT -q "CREATE TABLE capnproto_input ( number UInt64, string String, @@ -50,10 +50,10 @@ $CLICKHOUSE_CLIENT -q "CREATE TABLE test.capnproto_input nestedtwo_nestedtext String ) ENGINE = Memory" -echo -ne '\x00\x00\x00\x00\x15\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x00\x01\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x12\x00\x00\x00\x0c\x00\x00\x00\x01\x00\x02\x00\x20\x00\x00\x00\x00\x00\x03\x00\x34\x00\x00\x00\x00\x00\x01\x00\x32\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x00\x00\x01\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x34\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x01\x00\x00\x00\x08\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x37\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x39\x00\x00\x00\x00\x00\x00\x00' | $CLICKHOUSE_CLIENT --stacktrace --format_schema="${CLICKHOUSE_TMP}/test:CapnProto" --query="INSERT INTO test.capnproto_input FORMAT CapnProto"; +echo -ne '\x00\x00\x00\x00\x15\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x00\x01\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x12\x00\x00\x00\x0c\x00\x00\x00\x01\x00\x02\x00\x20\x00\x00\x00\x00\x00\x03\x00\x34\x00\x00\x00\x00\x00\x01\x00\x32\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x00\x00\x01\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x34\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x01\x00\x00\x00\x08\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x37\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x12\x00\x00\x00\x39\x00\x00\x00\x00\x00\x00\x00' | $CLICKHOUSE_CLIENT --stacktrace --format_schema="${CLICKHOUSE_TMP}/test:CapnProto" --query="INSERT INTO capnproto_input FORMAT CapnProto"; -$CLICKHOUSE_CLIENT -q "SELECT * FROM test.capnproto_input" -$CLICKHOUSE_CLIENT -q "DROP TABLE test.capnproto_input" +$CLICKHOUSE_CLIENT -q "SELECT * FROM capnproto_input" +$CLICKHOUSE_CLIENT -q "DROP TABLE capnproto_input" # remove the schema file rm ${CLICKHOUSE_TMP}/test.capnp diff --git a/dbms/tests/queries/0_stateless/00823_sequence_match_dfa.sql b/dbms/tests/queries/0_stateless/00823_sequence_match_dfa.sql index e32e928785d..d8818449e77 100644 --- a/dbms/tests/queries/0_stateless/00823_sequence_match_dfa.sql +++ b/dbms/tests/queries/0_stateless/00823_sequence_match_dfa.sql @@ -1,8 +1,8 @@ -- this test cannot pass without the new DFA matching algorithm of sequenceMatch -DROP TABLE IF EXISTS test.sequence; +DROP TABLE IF EXISTS sequence; -CREATE TABLE test.sequence +CREATE TABLE sequence ( userID UInt64, eventType Enum8('A' = 1, 'B' = 2, 'C' = 3), @@ -10,16 +10,16 @@ CREATE TABLE test.sequence ) ENGINE = Memory; -INSERT INTO test.sequence SELECT 1, number = 0 ? 'A' : (number < 1000000 ? 'B' : 'C'), number FROM numbers(1000001); +INSERT INTO sequence SELECT 1, number = 0 ? 'A' : (number < 1000000 ? 'B' : 'C'), number FROM numbers(1000001); SELECT userID -FROM test.sequence +FROM sequence GROUP BY userID HAVING sequenceMatch('(?1).*(?2).*(?3)')(toDateTime(EventTime), eventType = 'A', eventType = 'B', eventType = 'C'); SELECT userID -FROM test.sequence +FROM sequence GROUP BY userID HAVING sequenceMatch('(?1).*(?2).*(?3)')(toDateTime(EventTime), eventType = 'A', eventType = 'B', eventType = 'A'); -DROP TABLE test.sequence; +DROP TABLE sequence; diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.insh b/dbms/tests/queries/0_stateless/00825_protobuf_format_input.insh index c871a8970cc..d615f6e4e6d 100644 --- a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.insh +++ b/dbms/tests/queries/0_stateless/00825_protobuf_format_input.insh @@ -1,4 +1,4 @@ -echo -ne '\xf3\x01\x0a\x24\x61\x37\x35\x32\x32\x31\x35\x38\x2d\x33\x64\x34\x31\x2d\x34\x62\x37\x37\x2d\x61\x64\x36\x39\x2d\x36\x63\x35\x39\x38\x65\x65\x35\x35\x63\x34\x39\x12\x04\x49\x76\x61\x6e\x1a\x06\x50\x65\x74\x72\x6f\x76\x20\x01\x28\xaf\x1f\x32\x03\x70\x6e\x67\x3a\x0c\x2b\x37\x34\x39\x35\x31\x32\x33\x34\x35\x36\x37\x40\x01\x4d\xfc\xd0\x30\x5c\x50\x26\x58\x09\x62\x09\x59\x65\x73\x74\x65\x72\x64\x61\x79\x62\x07\x46\x6c\x6f\x77\x65\x72\x73\x6a\x04\xff\x01\x00\x00\x72\x06\x4d\x6f\x73\x63\x6f\x77\x7a\x08\x4b\x03\x5f\x42\x72\x7d\x16\x42\x81\x01\x1f\x85\xeb\x51\xb8\x1e\x09\x40\x89\x01\x33\x33\x33\x33\x33\xc3\x6a\x40\x95\x01\xcd\xcc\xcc\x3d\x9d\x01\x9a\x99\xb9\x40\xa0\x01\x80\xc4\xd7\x8d\x7f\xaa\x01\x0c\x0a\x05\x6d\x65\x74\x65\x72\x15\x00\x00\x80\x3f\xaa\x01\x11\x0a\x0a\x63\x65\x6e\x74\x69\x6d\x65\x74\x65\x72\x15\x0a\xd7\x23\x3c\xaa\x01\x10\x0a\x09\x6b\x69\x6c\x6f\x6d\x65\x74\x65\x72\x15\x00\x00\x7a\x44\xb2\x01\x10\x0a\x0e\xa2\x06\x0b\x0a\x09\x08\xf4\x03\x12\x04\xf5\x03\xf6\x03\x7e\x0a\x24\x63\x36\x39\x34\x61\x64\x38\x61\x2d\x66\x37\x31\x34\x2d\x34\x65\x61\x33\x2d\x39\x30\x37\x64\x2d\x66\x64\x35\x34\x66\x62\x32\x35\x64\x39\x62\x35\x12\x07\x4e\x61\x74\x61\x6c\x69\x61\x1a\x08\x53\x6f\x6b\x6f\x6c\x6f\x76\x61\x28\xa6\x3f\x32\x03\x6a\x70\x67\x50\x1a\x58\x0b\x6a\x04\x64\xc8\x01\x32\x72\x08\x50\x6c\x79\x6d\x6f\x75\x74\x68\x7a\x08\x6a\x9d\x49\x42\x46\x8c\x84\xc0\x81\x01\x6e\x86\x1b\xf0\xf9\x21\x09\x40\x95\x01\x42\x60\xe5\x3b\x9d\x01\xcd\xcc\xac\x40\xa0\x01\xff\xff\xa9\xce\x93\x8c\x09\xc0\x01\x0a\x24\x61\x37\x64\x61\x31\x61\x61\x36\x2d\x66\x34\x32\x35\x2d\x34\x37\x38\x39\x2d\x38\x39\x34\x37\x2d\x62\x30\x33\x34\x37\x38\x36\x65\x64\x33\x37\x34\x12\x06\x56\x61\x73\x69\x6c\x79\x1a\x07\x53\x69\x64\x6f\x72\x6f\x76\x20\x01\x28\xfb\x48\x32\x03\x62\x6d\x70\x3a\x0d\x2b\x34\x34\x32\x30\x31\x32\x33\x34\x35\x36\x37\x38\x40\x01\x4d\x50\xe0\x27\x5c\x50\x17\x58\x04\x62\x05\x53\x75\x6e\x6e\x79\x6a\x05\xfa\x01\xf4\x01\x0a\x72\x08\x4d\x75\x72\x6d\x61\x6e\x73\x6b\x7a\x08\xfd\xf0\x89\x42\xc8\x4c\x04\x42\x81\x01\x11\x2d\x44\x54\xfb\x21\x09\x40\x89\x01\x00\x00\x00\xe8\x76\x48\x37\x42\x95\x01\x00\x00\x48\x44\x9d\x01\xcd\xcc\x4c\xc0\xa0\x01\x80\xd4\x9f\x93\x01\xaa\x01\x0c\x0a\x05\x70\x6f\x75\x6e\x64\x15\x00\x00\x80\x41\xb2\x01\x0a\x0a\x08\xa2\x06\x05\x0a\x03\x08\xf7\x03' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.table FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:Person'" -echo -ne '\xb3\x01\x12\x05\x46\x72\x69\x64\x61\x28\x99\xe1\xf3\xd1\x0b\x52\x08\x45\x72\x6d\x61\x6b\x6f\x76\x61\x72\x0c\x00\x00\xdc\x42\x00\x00\x52\x43\x00\x00\x94\x42\x79\x48\xce\x3d\x51\x00\x00\x00\x00\xc8\x02\x14\xc2\x05\x08\x00\x00\x80\x44\x00\x00\x80\x49\x9a\x06\x02\x4b\x42\x9a\x06\x02\x4d\x42\xa1\x06\x00\x00\x00\x00\x00\x00\xe0\x3f\xa8\x06\x2a\xa8\x06\xa8\xff\xff\xff\xff\xff\xff\xff\xff\x01\xb0\x06\x01\xbd\x06\x25\x06\x49\x40\xfa\x06\x02\x34\x30\x90\x08\xe2\x08\xe1\x08\x89\xe6\x6e\xdd\x01\x00\x00\x00\xb0\x09\xc3\x19\xd0\x0c\xb7\x02\xe2\x12\x24\x32\x30\x66\x63\x64\x39\x35\x61\x2d\x33\x33\x32\x64\x2d\x34\x31\x64\x62\x2d\x61\x39\x65\x63\x2d\x31\x36\x31\x66\x36\x34\x34\x64\x30\x35\x39\x63\xa0\x38\xbc\x05\xaa\x38\x02\xbd\x05\xb4\x01\x08\x01\x12\x06\x49\x73\x6f\x6c\x64\x65\x52\x07\x4c\x61\x76\x72\x6f\x76\x61\x72\x0c\x00\x00\x7f\x43\x00\x00\x00\x00\x00\x00\x7f\x43\xaa\x01\x03\x61\x62\x63\xc8\x02\x32\xc2\x05\x08\x00\x00\x00\x41\x00\x00\x80\x3f\x9a\x06\x04\x42\x79\x74\x65\x9a\x06\x03\x42\x69\x74\xa1\x06\x00\x00\x00\x00\x00\x00\x12\x40\xa8\x06\x1a\xa8\x06\xb0\xff\xff\xff\xff\xff\xff\xff\xff\x01\xb0\x06\x01\xbd\x06\xf9\x0f\x49\x40\xc2\x06\x01\x2c\xfa\x06\x02\x33\x32\x90\x08\x78\xe1\x08\x39\x4e\x2b\xfe\xe4\xf5\xff\xff\xb0\x09\xe8\x30\xd8\x12\x01\xe2\x12\x24\x37\x63\x66\x61\x36\x38\x35\x36\x2d\x61\x35\x34\x61\x2d\x34\x37\x38\x36\x2d\x62\x38\x65\x35\x2d\x37\x34\x35\x31\x35\x39\x64\x35\x32\x32\x37\x38\xa0\x38\xbe\x05\xc2\x3e\x05\x15\x00\x00\xb6\x42' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.table FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:AltPerson'" -echo -ne '\xa5\x02\x0a\x24\x61\x61\x30\x65\x35\x61\x30\x36\x2d\x63\x61\x62\x32\x2d\x34\x30\x33\x34\x2d\x61\x36\x61\x32\x2d\x34\x38\x65\x38\x32\x62\x39\x31\x36\x36\x34\x65\x12\x06\x4c\x65\x6f\x6e\x69\x64\x1a\x08\x4b\x69\x72\x69\x6c\x6c\x6f\x76\x22\x04\x6d\x61\x6c\x65\x2a\x0a\x31\x39\x38\x33\x2d\x30\x36\x2d\x32\x34\x3a\x0c\x2b\x37\x34\x39\x35\x30\x32\x37\x35\x38\x36\x34\x42\x01\x31\x4a\x13\x32\x30\x31\x39\x2d\x30\x32\x2d\x30\x34\x20\x30\x39\x3a\x34\x35\x3a\x30\x30\x52\x02\x33\x35\x5a\x06\x63\x61\x6e\x63\x65\x72\x62\x07\x37\x20\x72\x69\x6e\x67\x73\x62\x08\x45\x61\x73\x74\x73\x69\x64\x65\x62\x0b\x4c\x61\x73\x74\x20\x48\x75\x72\x72\x61\x68\x6a\x01\x30\x6a\x01\x30\x6a\x03\x32\x35\x35\x72\x09\x53\x61\x6e\x20\x44\x69\x65\x67\x6f\x7a\x09\x33\x32\x2e\x38\x32\x33\x39\x34\x33\x7a\x0b\x2d\x31\x31\x37\x2e\x30\x38\x31\x33\x32\x37\x82\x01\x09\x33\x2e\x31\x34\x31\x35\x39\x32\x37\x8a\x01\x08\x31\x35\x30\x30\x30\x30\x30\x30\x92\x01\x06\x31\x38\x36\x2e\x37\x35\x9a\x01\x04\x2d\x32\x2e\x31\xa2\x01\x0b\x32\x30\x36\x35\x39\x38\x32\x39\x33\x33\x31\xaa\x01\x18\x0a\x06\x6d\x69\x6e\x75\x74\x65\x0a\x04\x68\x6f\x75\x72\x12\x02\x36\x30\x12\x04\x33\x36\x30\x30\xb2\x01\x08\x0a\x06\x12\x04\x31\x38\x30\x30' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.table FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:StrPerson'" -echo -ne '\xdd\x01\x0a\x24\x33\x66\x61\x65\x65\x30\x36\x34\x2d\x63\x34\x66\x37\x2d\x34\x64\x33\x34\x2d\x62\x36\x66\x33\x2d\x38\x64\x38\x31\x63\x32\x62\x36\x61\x31\x35\x64\x12\x04\x4e\x69\x63\x6b\x1a\x0a\x4b\x6f\x6c\x65\x73\x6e\x69\x6b\x6f\x76\x20\x01\x28\xda\x52\x32\x03\x62\x6d\x70\x3a\x0c\x34\x31\x32\x2d\x36\x38\x37\x2d\x35\x30\x30\x37\x40\x01\x4d\x2f\x27\xf2\x5b\x50\x14\x58\x09\x62\x06\x48\x61\x76\x61\x6e\x61\x68\x80\x01\x68\x00\x68\x80\x01\x72\x0a\x50\x69\x74\x74\x73\x62\x75\x72\x67\x68\x7a\x08\x9b\x11\x22\x42\x1f\xe6\x9f\xc2\x81\x01\x28\x2d\x44\x54\xfb\x21\x09\x40\x89\x01\x00\x00\x00\xe8\x76\x48\x27\x42\x95\x01\x00\x00\x43\x44\x9d\x01\x66\x66\x92\x41\xa0\x01\xce\xdf\xb8\xba\x01\xab\x01\x0d\xcd\xcc\xe2\x41\x0d\xcd\xcc\x4c\x3e\x0d\x00\x00\x80\x3f\x12\x05\x6f\x75\x6e\x63\x65\x12\x05\x63\x61\x72\x61\x74\x12\x04\x67\x72\x61\x6d\xac\x01\xb3\x01\x0b\xa2\x06\x05\x0b\x08\x96\x4a\x0c\x0c\xb4\x01' | $CLICKHOUSE_CLIENT --query="INSERT INTO test.table FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format_syntax2:Syntax2Person'" +echo -ne '\xf3\x01\x0a\x24\x61\x37\x35\x32\x32\x31\x35\x38\x2d\x33\x64\x34\x31\x2d\x34\x62\x37\x37\x2d\x61\x64\x36\x39\x2d\x36\x63\x35\x39\x38\x65\x65\x35\x35\x63\x34\x39\x12\x04\x49\x76\x61\x6e\x1a\x06\x50\x65\x74\x72\x6f\x76\x20\x01\x28\xaf\x1f\x32\x03\x70\x6e\x67\x3a\x0c\x2b\x37\x34\x39\x35\x31\x32\x33\x34\x35\x36\x37\x40\x01\x4d\xfc\xd0\x30\x5c\x50\x26\x58\x09\x62\x09\x59\x65\x73\x74\x65\x72\x64\x61\x79\x62\x07\x46\x6c\x6f\x77\x65\x72\x73\x6a\x04\xff\x01\x00\x00\x72\x06\x4d\x6f\x73\x63\x6f\x77\x7a\x08\x4b\x03\x5f\x42\x72\x7d\x16\x42\x81\x01\x1f\x85\xeb\x51\xb8\x1e\x09\x40\x89\x01\x33\x33\x33\x33\x33\xc3\x6a\x40\x95\x01\xcd\xcc\xcc\x3d\x9d\x01\x9a\x99\xb9\x40\xa0\x01\x80\xc4\xd7\x8d\x7f\xaa\x01\x0c\x0a\x05\x6d\x65\x74\x65\x72\x15\x00\x00\x80\x3f\xaa\x01\x11\x0a\x0a\x63\x65\x6e\x74\x69\x6d\x65\x74\x65\x72\x15\x0a\xd7\x23\x3c\xaa\x01\x10\x0a\x09\x6b\x69\x6c\x6f\x6d\x65\x74\x65\x72\x15\x00\x00\x7a\x44\xb2\x01\x10\x0a\x0e\xa2\x06\x0b\x0a\x09\x08\xf4\x03\x12\x04\xf5\x03\xf6\x03\x7e\x0a\x24\x63\x36\x39\x34\x61\x64\x38\x61\x2d\x66\x37\x31\x34\x2d\x34\x65\x61\x33\x2d\x39\x30\x37\x64\x2d\x66\x64\x35\x34\x66\x62\x32\x35\x64\x39\x62\x35\x12\x07\x4e\x61\x74\x61\x6c\x69\x61\x1a\x08\x53\x6f\x6b\x6f\x6c\x6f\x76\x61\x28\xa6\x3f\x32\x03\x6a\x70\x67\x50\x1a\x58\x0b\x6a\x04\x64\xc8\x01\x32\x72\x08\x50\x6c\x79\x6d\x6f\x75\x74\x68\x7a\x08\x6a\x9d\x49\x42\x46\x8c\x84\xc0\x81\x01\x6e\x86\x1b\xf0\xf9\x21\x09\x40\x95\x01\x42\x60\xe5\x3b\x9d\x01\xcd\xcc\xac\x40\xa0\x01\xff\xff\xa9\xce\x93\x8c\x09\xc0\x01\x0a\x24\x61\x37\x64\x61\x31\x61\x61\x36\x2d\x66\x34\x32\x35\x2d\x34\x37\x38\x39\x2d\x38\x39\x34\x37\x2d\x62\x30\x33\x34\x37\x38\x36\x65\x64\x33\x37\x34\x12\x06\x56\x61\x73\x69\x6c\x79\x1a\x07\x53\x69\x64\x6f\x72\x6f\x76\x20\x01\x28\xfb\x48\x32\x03\x62\x6d\x70\x3a\x0d\x2b\x34\x34\x32\x30\x31\x32\x33\x34\x35\x36\x37\x38\x40\x01\x4d\x50\xe0\x27\x5c\x50\x17\x58\x04\x62\x05\x53\x75\x6e\x6e\x79\x6a\x05\xfa\x01\xf4\x01\x0a\x72\x08\x4d\x75\x72\x6d\x61\x6e\x73\x6b\x7a\x08\xfd\xf0\x89\x42\xc8\x4c\x04\x42\x81\x01\x11\x2d\x44\x54\xfb\x21\x09\x40\x89\x01\x00\x00\x00\xe8\x76\x48\x37\x42\x95\x01\x00\x00\x48\x44\x9d\x01\xcd\xcc\x4c\xc0\xa0\x01\x80\xd4\x9f\x93\x01\xaa\x01\x0c\x0a\x05\x70\x6f\x75\x6e\x64\x15\x00\x00\x80\x41\xb2\x01\x0a\x0a\x08\xa2\x06\x05\x0a\x03\x08\xf7\x03' | $CLICKHOUSE_CLIENT --query="INSERT INTO table_00825 FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:Person'" +echo -ne '\xb3\x01\x12\x05\x46\x72\x69\x64\x61\x28\x99\xe1\xf3\xd1\x0b\x52\x08\x45\x72\x6d\x61\x6b\x6f\x76\x61\x72\x0c\x00\x00\xdc\x42\x00\x00\x52\x43\x00\x00\x94\x42\x79\x48\xce\x3d\x51\x00\x00\x00\x00\xc8\x02\x14\xc2\x05\x08\x00\x00\x80\x44\x00\x00\x80\x49\x9a\x06\x02\x4b\x42\x9a\x06\x02\x4d\x42\xa1\x06\x00\x00\x00\x00\x00\x00\xe0\x3f\xa8\x06\x2a\xa8\x06\xa8\xff\xff\xff\xff\xff\xff\xff\xff\x01\xb0\x06\x01\xbd\x06\x25\x06\x49\x40\xfa\x06\x02\x34\x30\x90\x08\xe2\x08\xe1\x08\x89\xe6\x6e\xdd\x01\x00\x00\x00\xb0\x09\xc3\x19\xd0\x0c\xb7\x02\xe2\x12\x24\x32\x30\x66\x63\x64\x39\x35\x61\x2d\x33\x33\x32\x64\x2d\x34\x31\x64\x62\x2d\x61\x39\x65\x63\x2d\x31\x36\x31\x66\x36\x34\x34\x64\x30\x35\x39\x63\xa0\x38\xbc\x05\xaa\x38\x02\xbd\x05\xb4\x01\x08\x01\x12\x06\x49\x73\x6f\x6c\x64\x65\x52\x07\x4c\x61\x76\x72\x6f\x76\x61\x72\x0c\x00\x00\x7f\x43\x00\x00\x00\x00\x00\x00\x7f\x43\xaa\x01\x03\x61\x62\x63\xc8\x02\x32\xc2\x05\x08\x00\x00\x00\x41\x00\x00\x80\x3f\x9a\x06\x04\x42\x79\x74\x65\x9a\x06\x03\x42\x69\x74\xa1\x06\x00\x00\x00\x00\x00\x00\x12\x40\xa8\x06\x1a\xa8\x06\xb0\xff\xff\xff\xff\xff\xff\xff\xff\x01\xb0\x06\x01\xbd\x06\xf9\x0f\x49\x40\xc2\x06\x01\x2c\xfa\x06\x02\x33\x32\x90\x08\x78\xe1\x08\x39\x4e\x2b\xfe\xe4\xf5\xff\xff\xb0\x09\xe8\x30\xd8\x12\x01\xe2\x12\x24\x37\x63\x66\x61\x36\x38\x35\x36\x2d\x61\x35\x34\x61\x2d\x34\x37\x38\x36\x2d\x62\x38\x65\x35\x2d\x37\x34\x35\x31\x35\x39\x64\x35\x32\x32\x37\x38\xa0\x38\xbe\x05\xc2\x3e\x05\x15\x00\x00\xb6\x42' | $CLICKHOUSE_CLIENT --query="INSERT INTO table_00825 FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:AltPerson'" +echo -ne '\xa5\x02\x0a\x24\x61\x61\x30\x65\x35\x61\x30\x36\x2d\x63\x61\x62\x32\x2d\x34\x30\x33\x34\x2d\x61\x36\x61\x32\x2d\x34\x38\x65\x38\x32\x62\x39\x31\x36\x36\x34\x65\x12\x06\x4c\x65\x6f\x6e\x69\x64\x1a\x08\x4b\x69\x72\x69\x6c\x6c\x6f\x76\x22\x04\x6d\x61\x6c\x65\x2a\x0a\x31\x39\x38\x33\x2d\x30\x36\x2d\x32\x34\x3a\x0c\x2b\x37\x34\x39\x35\x30\x32\x37\x35\x38\x36\x34\x42\x01\x31\x4a\x13\x32\x30\x31\x39\x2d\x30\x32\x2d\x30\x34\x20\x30\x39\x3a\x34\x35\x3a\x30\x30\x52\x02\x33\x35\x5a\x06\x63\x61\x6e\x63\x65\x72\x62\x07\x37\x20\x72\x69\x6e\x67\x73\x62\x08\x45\x61\x73\x74\x73\x69\x64\x65\x62\x0b\x4c\x61\x73\x74\x20\x48\x75\x72\x72\x61\x68\x6a\x01\x30\x6a\x01\x30\x6a\x03\x32\x35\x35\x72\x09\x53\x61\x6e\x20\x44\x69\x65\x67\x6f\x7a\x09\x33\x32\x2e\x38\x32\x33\x39\x34\x33\x7a\x0b\x2d\x31\x31\x37\x2e\x30\x38\x31\x33\x32\x37\x82\x01\x09\x33\x2e\x31\x34\x31\x35\x39\x32\x37\x8a\x01\x08\x31\x35\x30\x30\x30\x30\x30\x30\x92\x01\x06\x31\x38\x36\x2e\x37\x35\x9a\x01\x04\x2d\x32\x2e\x31\xa2\x01\x0b\x32\x30\x36\x35\x39\x38\x32\x39\x33\x33\x31\xaa\x01\x18\x0a\x06\x6d\x69\x6e\x75\x74\x65\x0a\x04\x68\x6f\x75\x72\x12\x02\x36\x30\x12\x04\x33\x36\x30\x30\xb2\x01\x08\x0a\x06\x12\x04\x31\x38\x30\x30' | $CLICKHOUSE_CLIENT --query="INSERT INTO table_00825 FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:StrPerson'" +echo -ne '\xdd\x01\x0a\x24\x33\x66\x61\x65\x65\x30\x36\x34\x2d\x63\x34\x66\x37\x2d\x34\x64\x33\x34\x2d\x62\x36\x66\x33\x2d\x38\x64\x38\x31\x63\x32\x62\x36\x61\x31\x35\x64\x12\x04\x4e\x69\x63\x6b\x1a\x0a\x4b\x6f\x6c\x65\x73\x6e\x69\x6b\x6f\x76\x20\x01\x28\xda\x52\x32\x03\x62\x6d\x70\x3a\x0c\x34\x31\x32\x2d\x36\x38\x37\x2d\x35\x30\x30\x37\x40\x01\x4d\x2f\x27\xf2\x5b\x50\x14\x58\x09\x62\x06\x48\x61\x76\x61\x6e\x61\x68\x80\x01\x68\x00\x68\x80\x01\x72\x0a\x50\x69\x74\x74\x73\x62\x75\x72\x67\x68\x7a\x08\x9b\x11\x22\x42\x1f\xe6\x9f\xc2\x81\x01\x28\x2d\x44\x54\xfb\x21\x09\x40\x89\x01\x00\x00\x00\xe8\x76\x48\x27\x42\x95\x01\x00\x00\x43\x44\x9d\x01\x66\x66\x92\x41\xa0\x01\xce\xdf\xb8\xba\x01\xab\x01\x0d\xcd\xcc\xe2\x41\x0d\xcd\xcc\x4c\x3e\x0d\x00\x00\x80\x3f\x12\x05\x6f\x75\x6e\x63\x65\x12\x05\x63\x61\x72\x61\x74\x12\x04\x67\x72\x61\x6d\xac\x01\xb3\x01\x0b\xa2\x06\x05\x0b\x08\x96\x4a\x0c\x0c\xb4\x01' | $CLICKHOUSE_CLIENT --query="INSERT INTO table_00825 FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format_syntax2:Syntax2Person'" diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.sh b/dbms/tests/queries/0_stateless/00825_protobuf_format_input.sh index 87d90261042..beffbca12f9 100755 --- a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.sh +++ b/dbms/tests/queries/0_stateless/00825_protobuf_format_input.sh @@ -7,10 +7,9 @@ set -e -o pipefail # Run the client. $CLICKHOUSE_CLIENT --multiquery <<'EOF' -CREATE DATABASE IF NOT EXISTS test; -DROP TABLE IF EXISTS test.table; +DROP TABLE IF EXISTS table_00825; -CREATE TABLE test.table (uuid UUID, +CREATE TABLE table_00825 (uuid UUID, name String, surname String, gender Enum8('male'=1, 'female'=0), @@ -43,4 +42,4 @@ EOF # build/utils/test-data-generator/ProtobufDelimitedMessagesSerializer source $CURDIR/00825_protobuf_format_input.insh -$CLICKHOUSE_CLIENT --query "SELECT * FROM test.table ORDER BY uuid;" +$CLICKHOUSE_CLIENT --query "SELECT * FROM table_00825 ORDER BY uuid;" diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_output.sh b/dbms/tests/queries/0_stateless/00825_protobuf_format_output.sh index 1f1717a6f1a..979bb3d878d 100755 --- a/dbms/tests/queries/0_stateless/00825_protobuf_format_output.sh +++ b/dbms/tests/queries/0_stateless/00825_protobuf_format_output.sh @@ -11,10 +11,9 @@ set -e -o pipefail # Run the client. $CLICKHOUSE_CLIENT --multiquery <'; -SELECT * FROM test.table ORDER BY name FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:AltPerson'; +SELECT * FROM table_00825 ORDER BY name FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:AltPerson'; SELECT 'STRINGS->'; -SELECT * FROM test.table ORDER BY name FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:StrPerson'; +SELECT * FROM table_00825 ORDER BY name FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format:StrPerson'; SELECT 'SYNTAX2->'; -SELECT * FROM test.table ORDER BY name FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format_syntax2:Syntax2Person'; +SELECT * FROM table_00825 ORDER BY name FORMAT Protobuf SETTINGS format_schema = '$CURDIR/00825_protobuf_format_syntax2:Syntax2Person'; EOF diff --git a/dbms/tests/queries/0_stateless/00826_cross_to_inner_join.sql b/dbms/tests/queries/0_stateless/00826_cross_to_inner_join.sql index b84cb268107..d25f33db559 100644 --- a/dbms/tests/queries/0_stateless/00826_cross_to_inner_join.sql +++ b/dbms/tests/queries/0_stateless/00826_cross_to_inner_join.sql @@ -1,5 +1,4 @@ SET enable_debug_queries = 1; -USE test; set allow_experimental_cross_to_join_conversion = 0; select * from system.one cross join system.one; diff --git a/dbms/tests/queries/0_stateless/00829_bitmap_function.sql b/dbms/tests/queries/0_stateless/00829_bitmap_function.sql index 55f920c8c55..9013b53d99e 100644 --- a/dbms/tests/queries/0_stateless/00829_bitmap_function.sql +++ b/dbms/tests/queries/0_stateless/00829_bitmap_function.sql @@ -9,15 +9,15 @@ SELECT bitmapOrCardinality(bitmapBuild([1,2,3]),bitmapBuild([3,4,5])); SELECT bitmapXorCardinality(bitmapBuild([1,2,3]),bitmapBuild([3,4,5])); SELECT bitmapAndnotCardinality(bitmapBuild([1,2,3]),bitmapBuild([3,4,5])); -DROP TABLE IF EXISTS test.bitmap_test; -CREATE TABLE test.bitmap_test(pickup_date Date, city_id UInt32, uid UInt32)ENGINE = Memory; -INSERT INTO test.bitmap_test SELECT '2019-01-01', 1, number FROM numbers(1,50); -INSERT INTO test.bitmap_test SELECT '2019-01-02', 1, number FROM numbers(11,60); +DROP TABLE IF EXISTS bitmap_test; +CREATE TABLE bitmap_test(pickup_date Date, city_id UInt32, uid UInt32)ENGINE = Memory; +INSERT INTO bitmap_test SELECT '2019-01-01', 1, number FROM numbers(1,50); +INSERT INTO bitmap_test SELECT '2019-01-02', 1, number FROM numbers(11,60); -SELECT groupBitmap( uid ) AS user_num FROM test.bitmap_test; +SELECT groupBitmap( uid ) AS user_num FROM bitmap_test; -SELECT pickup_date, groupBitmap( uid ) AS user_num, bitmapToArray(groupBitmapState( uid )) AS users FROM test.bitmap_test GROUP BY pickup_date; +SELECT pickup_date, groupBitmap( uid ) AS user_num, bitmapToArray(groupBitmapState( uid )) AS users FROM bitmap_test GROUP BY pickup_date; SELECT bitmapCardinality(day_today) AS today_users, @@ -28,11 +28,11 @@ SELECT bitmapXorCardinality(day_today, day_before) AS diff_users FROM ( - SELECT city_id, groupBitmapState( uid ) AS day_today FROM test.bitmap_test WHERE pickup_date = '2019-01-02' GROUP BY city_id + SELECT city_id, groupBitmapState( uid ) AS day_today FROM bitmap_test WHERE pickup_date = '2019-01-02' GROUP BY city_id ) ALL LEFT JOIN ( - SELECT city_id, groupBitmapState( uid ) AS day_before FROM test.bitmap_test WHERE pickup_date = '2019-01-01' GROUP BY city_id + SELECT city_id, groupBitmapState( uid ) AS day_before FROM bitmap_test WHERE pickup_date = '2019-01-01' GROUP BY city_id ) USING city_id; @@ -45,17 +45,17 @@ SELECT bitmapCardinality(bitmapXor(day_today, day_before)) AS diff_users FROM ( - SELECT city_id, groupBitmapState( uid ) AS day_today FROM test.bitmap_test WHERE pickup_date = '2019-01-02' GROUP BY city_id + SELECT city_id, groupBitmapState( uid ) AS day_today FROM bitmap_test WHERE pickup_date = '2019-01-02' GROUP BY city_id ) ALL LEFT JOIN ( - SELECT city_id, groupBitmapState( uid ) AS day_before FROM test.bitmap_test WHERE pickup_date = '2019-01-01' GROUP BY city_id + SELECT city_id, groupBitmapState( uid ) AS day_before FROM bitmap_test WHERE pickup_date = '2019-01-01' GROUP BY city_id ) USING city_id; -DROP TABLE IF EXISTS test.bitmap_state_test; -CREATE TABLE test.bitmap_state_test +DROP TABLE IF EXISTS bitmap_state_test; +CREATE TABLE bitmap_state_test ( pickup_date Date, city_id UInt32, @@ -63,15 +63,15 @@ CREATE TABLE test.bitmap_state_test ) ENGINE = AggregatingMergeTree( pickup_date, ( pickup_date, city_id ), 8192); -INSERT INTO test.bitmap_state_test SELECT +INSERT INTO bitmap_state_test SELECT pickup_date, city_id, groupBitmapState(uid) AS uv -FROM test.bitmap_test +FROM bitmap_test GROUP BY pickup_date, city_id; -SELECT pickup_date, groupBitmapMerge(uv) AS users from test.bitmap_state_test group by pickup_date; +SELECT pickup_date, groupBitmapMerge(uv) AS users from bitmap_state_test group by pickup_date; -DROP TABLE IF EXISTS test.bitmap_test; -DROP TABLE IF EXISTS test.bitmap_state_test; +DROP TABLE IF EXISTS bitmap_test; +DROP TABLE IF EXISTS bitmap_state_test; diff --git a/dbms/tests/queries/0_stateless/00830_join_overwrite.sql b/dbms/tests/queries/0_stateless/00830_join_overwrite.sql index d6fca471746..cb7e277906b 100644 --- a/dbms/tests/queries/0_stateless/00830_join_overwrite.sql +++ b/dbms/tests/queries/0_stateless/00830_join_overwrite.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS kv; CREATE TABLE kv (k UInt32, v UInt32) ENGINE Join(Any, Left, k); diff --git a/dbms/tests/queries/0_stateless/00832_storage_file_lock.sql b/dbms/tests/queries/0_stateless/00832_storage_file_lock.sql index a3aeee110b0..808d591d351 100644 --- a/dbms/tests/queries/0_stateless/00832_storage_file_lock.sql +++ b/dbms/tests/queries/0_stateless/00832_storage_file_lock.sql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS test.file; -CREATE TABLE test.file (number UInt64) ENGINE = File(TSV); -SELECT * FROM test.file; -- { serverError 107 } -INSERT INTO test.file VALUES (1); -SELECT * FROM test.file; -DROP TABLE test.file; +DROP TABLE IF EXISTS file; +CREATE TABLE file (number UInt64) ENGINE = File(TSV); +SELECT * FROM file; -- { serverError 107 } +INSERT INTO file VALUES (1); +SELECT * FROM file; +DROP TABLE file; diff --git a/dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh b/dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh index 5a1b813ecb1..92478119fe0 100755 --- a/dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh +++ b/dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh @@ -25,5 +25,5 @@ $CLICKHOUSE_CLIENT -q "select * FROM numberss(10);" 2>&1 | grep "Maybe you meant $CLICKHOUSE_CLIENT -q "select * FROM anothernumbers(10);" 2>&1 | grep -v "Maybe you meant: \['numbers'\]." &>/dev/null $CLICKHOUSE_CLIENT -q "select * FROM mynumbers(10);" 2>&1 | grep "Maybe you meant: \['numbers'\]." &>/dev/null -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.stored_aggregates (d Date, Uniq AggregateFunction(uniq, UInt64)) ENGINE = MergeTre(d, d, 8192);" 2>&1 | grep "Maybe you meant: \['MergeTree'\]." &>/dev/null -$CLICKHOUSE_CLIENT -q "CREATE TABLE test.stored_aggregates (d Date, Uniq AgregateFunction(uniq, UInt64)) ENGINE = MergeTree(d, d, 8192);" 2>&1 | grep "Maybe you meant: \['AggregateFunction'\]." &>/dev/null +$CLICKHOUSE_CLIENT -q "CREATE TABLE stored_aggregates (d Date, Uniq AggregateFunction(uniq, UInt64)) ENGINE = MergeTre(d, d, 8192);" 2>&1 | grep "Maybe you meant: \['MergeTree'\]." &>/dev/null +$CLICKHOUSE_CLIENT -q "CREATE TABLE stored_aggregates (d Date, Uniq AgregateFunction(uniq, UInt64)) ENGINE = MergeTree(d, d, 8192);" 2>&1 | grep "Maybe you meant: \['AggregateFunction'\]." &>/dev/null diff --git a/dbms/tests/queries/0_stateless/00834_kill_mutation.sh b/dbms/tests/queries/0_stateless/00834_kill_mutation.sh index d70963db8e2..8c604ef8fac 100755 --- a/dbms/tests/queries/0_stateless/00834_kill_mutation.sh +++ b/dbms/tests/queries/0_stateless/00834_kill_mutation.sh @@ -5,38 +5,38 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS kill_mutation" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.kill_mutation(d Date, x UInt32, s String) ENGINE MergeTree ORDER BY x PARTITION BY d" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE kill_mutation(d Date, x UInt32, s String) ENGINE MergeTree ORDER BY x PARTITION BY d" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.kill_mutation VALUES ('2000-01-01', 1, 'a')" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.kill_mutation VALUES ('2001-01-01', 2, 'b')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO kill_mutation VALUES ('2000-01-01', 1, 'a')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO kill_mutation VALUES ('2001-01-01', 2, 'b')" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Create and kill a single invalid mutation ***'" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.kill_mutation DELETE WHERE toUInt32(s) = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE kill_mutation DELETE WHERE toUInt32(s) = 1" sleep 0.1 -${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_1_1_0', '20010101_2_2_0'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = 'test' AND table = 'kill_mutation'" +${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_1_1_0', '20010101_2_2_0'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation'" -${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = 'test' AND table = 'kill_mutation'" +${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation'" -${CLICKHOUSE_CLIENT} --query="SELECT mutation_id FROM system.mutations WHERE database = 'test' AND table = 'kill_mutation'" +${CLICKHOUSE_CLIENT} --query="SELECT mutation_id FROM system.mutations WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation'" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Create and kill invalid mutation that blocks another mutation ***'" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.kill_mutation DELETE WHERE toUInt32(s) = 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.kill_mutation DELETE WHERE x = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE kill_mutation DELETE WHERE toUInt32(s) = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE kill_mutation DELETE WHERE x = 1" -${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_1_1_0', '20010101_2_2_0'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = 'test' AND table = 'kill_mutation' AND mutation_id = 'mutation_4.txt'" +${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_1_1_0', '20010101_2_2_0'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation' AND mutation_id = 'mutation_4.txt'" sleep 0.1 -${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = 'test' AND table = 'kill_mutation' AND mutation_id = 'mutation_4.txt'" +${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation' AND mutation_id = 'mutation_4.txt'" wait_for_mutation "kill_mutation" "mutation_5.txt" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.kill_mutation" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM kill_mutation" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.kill_mutation" +${CLICKHOUSE_CLIENT} --query="DROP TABLE kill_mutation" diff --git a/dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh b/dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh index dfaa85f2f2b..6322ce9e3ba 100755 --- a/dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh +++ b/dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh @@ -5,43 +5,43 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/mergetree_mutations.lib -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.kill_mutation_r2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS kill_mutation_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS kill_mutation_r2" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.kill_mutation_r1(d Date, x UInt32, s String) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/kill_mutation', '1') ORDER BY x PARTITION BY d" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.kill_mutation_r2(d Date, x UInt32, s String) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/kill_mutation', '2') ORDER BY x PARTITION BY d" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE kill_mutation_r1(d Date, x UInt32, s String) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/kill_mutation', '1') ORDER BY x PARTITION BY d" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE kill_mutation_r2(d Date, x UInt32, s String) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/kill_mutation', '2') ORDER BY x PARTITION BY d" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.kill_mutation_r1 VALUES ('2000-01-01', 1, 'a')" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.kill_mutation_r1 VALUES ('2001-01-01', 2, 'b')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO kill_mutation_r1 VALUES ('2000-01-01', 1, 'a')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO kill_mutation_r1 VALUES ('2001-01-01', 2, 'b')" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Create and kill a single invalid mutation ***'" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.kill_mutation_r1 DELETE WHERE toUInt32(s) = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE kill_mutation_r1 DELETE WHERE toUInt32(s) = 1" sleep 1 -${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_0_0_0', '20010101_0_0_0'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = 'test' AND table = 'kill_mutation_r1'" +${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_0_0_0', '20010101_0_0_0'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation_r1'" -${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = 'test' AND table = 'kill_mutation_r1'" +${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation_r1'" -${CLICKHOUSE_CLIENT} --query="SELECT mutation_id FROM system.mutations WHERE database = 'test' AND table = 'kill_mutation_r1'" +${CLICKHOUSE_CLIENT} --query="SELECT mutation_id FROM system.mutations WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation_r1'" ${CLICKHOUSE_CLIENT} --query="SELECT '*** Create and kill invalid mutation that blocks another mutation ***'" -${CLICKHOUSE_CLIENT} --query="SYSTEM SYNC REPLICA test.kill_mutation_r1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.kill_mutation_r1 DELETE WHERE toUInt32(s) = 1" -${CLICKHOUSE_CLIENT} --query="ALTER TABLE test.kill_mutation_r1 DELETE WHERE x = 1" +${CLICKHOUSE_CLIENT} --query="SYSTEM SYNC REPLICA kill_mutation_r1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE kill_mutation_r1 DELETE WHERE toUInt32(s) = 1" +${CLICKHOUSE_CLIENT} --query="ALTER TABLE kill_mutation_r1 DELETE WHERE x = 1" sleep 1 -${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_0_0_0_1', '20010101_0_0_0_1'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = 'test' AND table = 'kill_mutation_r1' AND mutation_id = '0000000001'" +${CLICKHOUSE_CLIENT} --query="SELECT mutation_id, latest_failed_part IN ('20000101_0_0_0_1', '20010101_0_0_0_1'), latest_fail_time != 0, substr(latest_fail_reason, 1, 8) FROM system.mutations WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation_r1' AND mutation_id = '0000000001'" -${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = 'test' AND table = 'kill_mutation_r1' AND mutation_id = '0000000001'" +${CLICKHOUSE_CLIENT} --query="KILL MUTATION WHERE database = '${CLICKHOUSE_DATABASE}' AND table = 'kill_mutation_r1' AND mutation_id = '0000000001'" wait_for_mutation "kill_mutation_r2" "0000000002" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.kill_mutation_r2" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM kill_mutation_r2" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.kill_mutation_r1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.kill_mutation_r2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE kill_mutation_r1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE kill_mutation_r2" diff --git a/dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql b/dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql index 576192e9d47..5fc8b60b145 100644 --- a/dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql +++ b/dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql @@ -1,10 +1,10 @@ -DROP TABLE IF EXISTS test.file; -CREATE TABLE test.file (s String, n UInt32) ENGINE = File(CSVWithNames); +DROP TABLE IF EXISTS file; +CREATE TABLE file (s String, n UInt32) ENGINE = File(CSVWithNames); -- BTW, WithNames formats are totally unsuitable for more than a single INSERT -INSERT INTO test.file VALUES ('hello', 1), ('world', 2); +INSERT INTO file VALUES ('hello', 1), ('world', 2); -SELECT * FROM test.file; -CREATE TEMPORARY TABLE file2 AS SELECT * FROM test.file; +SELECT * FROM file; +CREATE TEMPORARY TABLE file2 AS SELECT * FROM file; SELECT * FROM file2; -DROP TABLE test.file; +DROP TABLE file; diff --git a/dbms/tests/queries/0_stateless/00837_minmax_index.sh b/dbms/tests/queries/0_stateless/00837_minmax_index.sh index 67686475970..210e36603b5 100755 --- a/dbms/tests/queries/0_stateless/00837_minmax_index.sh +++ b/dbms/tests/queries/0_stateless/00837_minmax_index.sh @@ -5,12 +5,12 @@ CLICKHOUSE_CLIENT_OPT="--allow_experimental_data_skipping_indices=1" CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.minmax_idx;" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS minmax_idx;" $CLICKHOUSE_CLIENT -n --query=" SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.minmax_idx +CREATE TABLE minmax_idx ( u64 UInt64, i32 Int32, @@ -27,7 +27,7 @@ ORDER BY u64 SETTINGS index_granularity = 2;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.minmax_idx VALUES +$CLICKHOUSE_CLIENT --query="INSERT INTO minmax_idx VALUES (0, 5, 4.7, 6.5, 'cba', 'b', '2014-01-04'), (1, 5, 4.7, 6.5, 'cba', 'b', '2014-03-11'), (2, 2, 4.5, 2.5, 'abc', 'a', '2014-01-01'), @@ -42,11 +42,11 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO test.minmax_idx VALUES (12, 5, 4.7, 6.5, 'cba', 'b', '2015-01-01')" # simple select -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.minmax_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.minmax_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM minmax_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt" +$CLICKHOUSE_CLIENT --query="SELECT * FROM minmax_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt FORMAT JSON" | grep "rows_read" # select with hole made by primary key -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.minmax_idx WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.minmax_idx WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM minmax_idx WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt" +$CLICKHOUSE_CLIENT --query="SELECT * FROM minmax_idx WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.minmax_idx" \ No newline at end of file +$CLICKHOUSE_CLIENT --query="DROP TABLE minmax_idx" \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql b/dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql index ceb361170f3..6c4d2b95a8e 100644 --- a/dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql +++ b/dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.minmax_idx1; -DROP TABLE IF EXISTS test.minmax_idx2; +DROP TABLE IF EXISTS minmax_idx1; +DROP TABLE IF EXISTS minmax_idx2; SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.minmax_idx1 +CREATE TABLE minmax_idx1 ( u64 UInt64, i32 Int32, @@ -20,7 +20,7 @@ CREATE TABLE test.minmax_idx1 ORDER BY u64 SETTINGS index_granularity = 2; -CREATE TABLE test.minmax_idx2 +CREATE TABLE minmax_idx2 ( u64 UInt64, i32 Int32, @@ -39,36 +39,36 @@ SETTINGS index_granularity = 2; /* many small inserts => table will make merges */ -INSERT INTO test.minmax_idx1 VALUES (2, 2, 4.5, 2.5, 'abc', 'a', '2014-01-01'); -INSERT INTO test.minmax_idx1 VALUES (0, 5, 4.7, 6.5, 'cba', 'b', '2014-01-04'); -INSERT INTO test.minmax_idx2 VALUES (3, 5, 6.9, 1.57, 'bac', 'c', '2017-01-01'); -INSERT INTO test.minmax_idx2 VALUES (4, 2, 4.5, 2.5, 'abc', 'a', '2016-01-01'); -INSERT INTO test.minmax_idx2 VALUES (13, 5, 4.7, 6.5, 'cba', 'b', '2015-01-01'); -INSERT INTO test.minmax_idx1 VALUES (5, 5, 6.9, 1.57, 'bac', 'c', '2014-11-11'); +INSERT INTO minmax_idx1 VALUES (2, 2, 4.5, 2.5, 'abc', 'a', '2014-01-01'); +INSERT INTO minmax_idx1 VALUES (0, 5, 4.7, 6.5, 'cba', 'b', '2014-01-04'); +INSERT INTO minmax_idx2 VALUES (3, 5, 6.9, 1.57, 'bac', 'c', '2017-01-01'); +INSERT INTO minmax_idx2 VALUES (4, 2, 4.5, 2.5, 'abc', 'a', '2016-01-01'); +INSERT INTO minmax_idx2 VALUES (13, 5, 4.7, 6.5, 'cba', 'b', '2015-01-01'); +INSERT INTO minmax_idx1 VALUES (5, 5, 6.9, 1.57, 'bac', 'c', '2014-11-11'); -SYSTEM SYNC REPLICA test.minmax_idx1; -SYSTEM SYNC REPLICA test.minmax_idx2; +SYSTEM SYNC REPLICA minmax_idx1; +SYSTEM SYNC REPLICA minmax_idx2; -INSERT INTO test.minmax_idx1 VALUES (6, 2, 4.5, 2.5, 'abc', 'a', '2014-02-11'); -INSERT INTO test.minmax_idx1 VALUES (1, 5, 4.7, 6.5, 'cba', 'b', '2014-03-11'); -INSERT INTO test.minmax_idx1 VALUES (7, 5, 6.9, 1.57, 'bac', 'c', '2014-04-11'); -INSERT INTO test.minmax_idx1 VALUES (8, 2, 4.5, 2.5, 'abc', 'a', '2014-05-11'); -INSERT INTO test.minmax_idx2 VALUES (12, 5, 4.7, 6.5, 'cba', 'b', '2014-06-11'); -INSERT INTO test.minmax_idx2 VALUES (9, 5, 6.9, 1.57, 'bac', 'c', '2014-07-11'); +INSERT INTO minmax_idx1 VALUES (6, 2, 4.5, 2.5, 'abc', 'a', '2014-02-11'); +INSERT INTO minmax_idx1 VALUES (1, 5, 4.7, 6.5, 'cba', 'b', '2014-03-11'); +INSERT INTO minmax_idx1 VALUES (7, 5, 6.9, 1.57, 'bac', 'c', '2014-04-11'); +INSERT INTO minmax_idx1 VALUES (8, 2, 4.5, 2.5, 'abc', 'a', '2014-05-11'); +INSERT INTO minmax_idx2 VALUES (12, 5, 4.7, 6.5, 'cba', 'b', '2014-06-11'); +INSERT INTO minmax_idx2 VALUES (9, 5, 6.9, 1.57, 'bac', 'c', '2014-07-11'); -SYSTEM SYNC REPLICA test.minmax_idx1; -SYSTEM SYNC REPLICA test.minmax_idx2; +SYSTEM SYNC REPLICA minmax_idx1; +SYSTEM SYNC REPLICA minmax_idx2; -OPTIMIZE TABLE test.minmax_idx1; -OPTIMIZE TABLE test.minmax_idx2; +OPTIMIZE TABLE minmax_idx1; +OPTIMIZE TABLE minmax_idx2; /* simple select */ -SELECT * FROM test.minmax_idx1 WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt; -SELECT * FROM test.minmax_idx2 WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt; +SELECT * FROM minmax_idx1 WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt; +SELECT * FROM minmax_idx2 WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt; /* select with hole made by primary key */ -SELECT * FROM test.minmax_idx1 WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt; -SELECT * FROM test.minmax_idx2 WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt; +SELECT * FROM minmax_idx1 WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt; +SELECT * FROM minmax_idx2 WHERE (u64 < 2 OR u64 > 10) AND e != 'b' ORDER BY dt; -DROP TABLE test.minmax_idx1; -DROP TABLE test.minmax_idx2; \ No newline at end of file +DROP TABLE minmax_idx1; +DROP TABLE minmax_idx2; \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh b/dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh index 1bac2f7ff1c..06a6b8f7341 100755 --- a/dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh +++ b/dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh @@ -5,9 +5,9 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test.table" +$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS table" -seq 1 100 | sed -r -e "s/.+/CREATE TABLE test.table (x UInt8) ENGINE = MergeTree ORDER BY x; DROP TABLE test.table;/" | $CLICKHOUSE_CLIENT -n & -seq 1 100 | sed -r -e "s/.+/SELECT * FROM system.tables WHERE database = 'test' LIMIT 1000000, 1;/" | $CLICKHOUSE_CLIENT -n & +seq 1 100 | sed -r -e "s/.+/CREATE TABLE table (x UInt8) ENGINE = MergeTree ORDER BY x; DROP TABLE table;/" | $CLICKHOUSE_CLIENT -n & +seq 1 100 | sed -r -e "s/.+/SELECT * FROM system.tables WHERE database = '${CLICKHOUSE_DATABASE}' LIMIT 1000000, 1;/" | $CLICKHOUSE_CLIENT -n & wait diff --git a/dbms/tests/queries/0_stateless/00838_unique_index.sh b/dbms/tests/queries/0_stateless/00838_unique_index.sh index c580eb21a9c..9445d6af98a 100755 --- a/dbms/tests/queries/0_stateless/00838_unique_index.sh +++ b/dbms/tests/queries/0_stateless/00838_unique_index.sh @@ -5,11 +5,11 @@ CLICKHOUSE_CLIENT_OPT="--allow_experimental_data_skipping_indices=1" CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.set_idx;" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS set_idx;" $CLICKHOUSE_CLIENT -n --query=" SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.set_idx +CREATE TABLE set_idx ( u64 UInt64, i32 Int32, @@ -25,7 +25,7 @@ CREATE TABLE test.set_idx ORDER BY u64 SETTINGS index_granularity = 2;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.set_idx VALUES +$CLICKHOUSE_CLIENT --query="INSERT INTO set_idx VALUES (0, 5, 4.7, 6.5, 'cba', 'b', '2014-01-04'), (1, 5, 4.7, 6.5, 'cba', 'b', '2014-03-11'), (2, 2, 4.5, 2.5, 'abc', 'a', '2014-01-01'), @@ -40,11 +40,11 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO test.set_idx VALUES (13, 5, 4.7, 6.5, 'cba', 'b', '2015-01-01')" # simple select -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.set_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.set_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM set_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt" +$CLICKHOUSE_CLIENT --query="SELECT * FROM set_idx WHERE i32 = 5 AND i32 + f64 < 12 AND 3 < d AND d < 7 AND (s = 'bac' OR s = 'cba') ORDER BY dt FORMAT JSON" | grep "rows_read" # select with hole made by primary key -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.set_idx WHERE (u64 < 2 OR u64 > 10) AND s != 'cba' ORDER BY dt" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.set_idx WHERE (u64 < 2 OR u64 > 10) AND s != 'cba' ORDER BY dt FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM set_idx WHERE (u64 < 2 OR u64 > 10) AND s != 'cba' ORDER BY dt" +$CLICKHOUSE_CLIENT --query="SELECT * FROM set_idx WHERE (u64 < 2 OR u64 > 10) AND s != 'cba' ORDER BY dt FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.set_idx;" \ No newline at end of file +$CLICKHOUSE_CLIENT --query="DROP TABLE set_idx;" \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh b/dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh index 739ea6ba33c..eefa713cd6c 100755 --- a/dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh +++ b/dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh @@ -5,11 +5,11 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -for i in {1..200}; do echo "drop table if exists test.view" | $CLICKHOUSE_CLIENT; echo "create view test.view as select count(*),database,table from system.columns group by database,table" | $CLICKHOUSE_CLIENT; done & -for i in {1..500}; do echo "select * from test.view order by table" | $CLICKHOUSE_CLIENT >/dev/null 2>&1 || true; done & +for i in {1..200}; do echo "drop table if exists view" | $CLICKHOUSE_CLIENT; echo "create view view as select count(*),database,table from system.columns group by database,table" | $CLICKHOUSE_CLIENT; done & +for i in {1..500}; do echo "select * from view order by table" | $CLICKHOUSE_CLIENT >/dev/null 2>&1 || true; done & wait -echo "drop table test.view" | $CLICKHOUSE_CLIENT +echo "drop table view" | $CLICKHOUSE_CLIENT echo 'did not deadlock' diff --git a/dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql b/dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql index fb70e561d35..b042b40df74 100644 --- a/dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql +++ b/dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql @@ -1,18 +1,18 @@ SET enable_optimize_predicate_expression = 1; -DROP TABLE IF EXISTS test.test1; -DROP TABLE IF EXISTS test.test2; -DROP TABLE IF EXISTS test.view; +DROP TABLE IF EXISTS test1; +DROP TABLE IF EXISTS test2; +DROP TABLE IF EXISTS view; -CREATE TABLE test.test1 (a UInt8) ENGINE = Memory; -INSERT INTO test.test1 VALUES (1); +CREATE TABLE test1 (a UInt8) ENGINE = Memory; +INSERT INTO test1 VALUES (1); -CREATE VIEW test.view AS SELECT * FROM test.test1; -SELECT * FROM test.view; -RENAME TABLE test.test1 TO test.test2; -SELECT * FROM test.view; -- { serverError 60 } -RENAME TABLE test.test2 TO test.test1; -SELECT * FROM test.view; +CREATE VIEW view AS SELECT * FROM test1; +SELECT * FROM view; +RENAME TABLE test1 TO test2; +SELECT * FROM view; -- { serverError 60 } +RENAME TABLE test2 TO test1; +SELECT * FROM view; -DROP TABLE test.test1; -DROP TABLE test.view; +DROP TABLE test1; +DROP TABLE view; diff --git a/dbms/tests/queries/0_stateless/00844_join_lightee2.sql b/dbms/tests/queries/0_stateless/00844_join_lightee2.sql index 4cdb317f1d4..16e8d89ea47 100644 --- a/dbms/tests/queries/0_stateless/00844_join_lightee2.sql +++ b/dbms/tests/queries/0_stateless/00844_join_lightee2.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t2; diff --git a/dbms/tests/queries/0_stateless/00845_join_on_aliases.sql b/dbms/tests/queries/0_stateless/00845_join_on_aliases.sql index 17b6f158a7e..0800d27caa6 100644 --- a/dbms/tests/queries/0_stateless/00845_join_on_aliases.sql +++ b/dbms/tests/queries/0_stateless/00845_join_on_aliases.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS table1; DROP TABLE IF EXISTS table2; diff --git a/dbms/tests/queries/0_stateless/00847_multiple_join_same_column.sql b/dbms/tests/queries/0_stateless/00847_multiple_join_same_column.sql index b4ce61e3ee7..d444655a6ce 100644 --- a/dbms/tests/queries/0_stateless/00847_multiple_join_same_column.sql +++ b/dbms/tests/queries/0_stateless/00847_multiple_join_same_column.sql @@ -1,5 +1,3 @@ -use test; - drop table if exists t; drop table if exists s; drop table if exists y; diff --git a/dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql b/dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql index b38ac854bc7..eb7e6b6d4a9 100644 --- a/dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql +++ b/dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t3; diff --git a/dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql b/dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql index 0e5aa4884a5..e15e29fc043 100644 --- a/dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql +++ b/dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql @@ -1,5 +1,4 @@ SET enable_debug_queries = 1; -USE test; DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t2; diff --git a/dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.sh b/dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.sh index 82cb38ae45f..a78d716985f 100755 --- a/dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.sh +++ b/dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.sh @@ -3,13 +3,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.defaults" -$CLICKHOUSE_CLIENT --query="CREATE TABLE test.defaults (x UInt32, y UInt32, a DEFAULT x + y, b Float32 DEFAULT log(1 + x + y), c UInt32 DEFAULT 42, e MATERIALIZED x + y, f ALIAS x + y) ENGINE = Memory" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS defaults" +$CLICKHOUSE_CLIENT --query="CREATE TABLE defaults (x UInt32, y UInt32, a DEFAULT x + y, b Float32 DEFAULT log(1 + x + y), c UInt32 DEFAULT 42, e MATERIALIZED x + y, f ALIAS x + y) ENGINE = Memory" -echo -ne '{"x":1, "y":1}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT%20INTO%20test.defaults%20FORMAT%20JSONEachRow%20SETTINGS%20input_format_defaults_for_omitted_fields=1" --data-binary @- -echo -ne '{"x":2, "y":2, "c":2}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.defaults+FORMAT+JSONEachRow+SETTINGS+input_format_defaults_for_omitted_fields=1" --data-binary @- -echo -ne '{"x":3, "y":3, "a":3, "b":3, "c":3}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.defaults+FORMAT+JSONEachRow+SETTINGS+input_format_defaults_for_omitted_fields=1" --data-binary @- -echo -ne '{"x":4} {"y":5, "c":5} {"a":6, "b":6, "c":6}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?query=INSERT+INTO+test.defaults+FORMAT+JSONEachRow+SETTINGS+input_format_defaults_for_omitted_fields=1" --data-binary @- +echo -ne '{"x":1, "y":1}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}&query=INSERT%20INTO%20defaults%20FORMAT%20JSONEachRow%20SETTINGS%20input_format_defaults_for_omitted_fields=1" --data-binary @- +echo -ne '{"x":2, "y":2, "c":2}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL_PARAMS}&query=INSERT+INTO+defaults+FORMAT+JSONEachRow+SETTINGS+input_format_defaults_for_omitted_fields=1" --data-binary @- +echo -ne '{"x":3, "y":3, "a":3, "b":3, "c":3}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?database=${CLICKHOUSE_DATABASE}&query=INSERT+INTO+defaults+FORMAT+JSONEachRow+SETTINGS+input_format_defaults_for_omitted_fields=1" --data-binary @- +echo -ne '{"x":4} {"y":5, "c":5} {"a":6, "b":6, "c":6}\n' | ${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}?database=${CLICKHOUSE_DATABASE}&query=INSERT+INTO+defaults+FORMAT+JSONEachRow+SETTINGS+input_format_defaults_for_omitted_fields=1" --data-binary @- -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.defaults ORDER BY x, y FORMAT JSONEachRow" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.defaults" +$CLICKHOUSE_CLIENT --query="SELECT * FROM defaults ORDER BY x, y FORMAT JSONEachRow" +$CLICKHOUSE_CLIENT --query="DROP TABLE defaults" diff --git a/dbms/tests/queries/0_stateless/00852_any_join_nulls.sql b/dbms/tests/queries/0_stateless/00852_any_join_nulls.sql index b3f4b332a46..5f23e148105 100644 --- a/dbms/tests/queries/0_stateless/00852_any_join_nulls.sql +++ b/dbms/tests/queries/0_stateless/00852_any_join_nulls.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS table1; DROP TABLE IF EXISTS table2; CREATE TABLE table1 ( id String ) ENGINE = Log; @@ -15,5 +13,5 @@ SET join_use_nulls = 1; SELECT table2.parent_id = '', isNull(table2.parent_id) FROM table1 ANY LEFT JOIN table2 ON table1.id = table2.parent_id; -DROP TABLE test.table1; -DROP TABLE test.table2; +DROP TABLE table1; +DROP TABLE table2; diff --git a/dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.sql b/dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.sql index 3fe4b5a1f0b..00de5b7d89f 100644 --- a/dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.sql +++ b/dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS table_a; DROP TABLE IF EXISTS table_b; diff --git a/dbms/tests/queries/0_stateless/00856_no_column_issue_4242.sql b/dbms/tests/queries/0_stateless/00856_no_column_issue_4242.sql index 32ae3eddd82..ab76c4db054 100644 --- a/dbms/tests/queries/0_stateless/00856_no_column_issue_4242.sql +++ b/dbms/tests/queries/0_stateless/00856_no_column_issue_4242.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t2; CREATE TABLE t1 (n Int32) ENGINE = Memory; diff --git a/dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.sql b/dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.sql index 38bde7d9bdf..fc355bda462 100644 --- a/dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.sql +++ b/dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.index_memory; -CREATE TABLE test.index_memory (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1; -INSERT INTO test.index_memory SELECT * FROM system.numbers LIMIT 10000000; -SELECT count() FROM test.index_memory; -DETACH TABLE test.index_memory; +DROP TABLE IF EXISTS index_memory; +CREATE TABLE index_memory (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1; +INSERT INTO index_memory SELECT * FROM system.numbers LIMIT 10000000; +SELECT count() FROM index_memory; +DETACH TABLE index_memory; SET max_memory_usage = 79000000; -ATTACH TABLE test.index_memory; -SELECT count() FROM test.index_memory; -DROP TABLE test.index_memory; +ATTACH TABLE index_memory; +SELECT count() FROM index_memory; +DROP TABLE index_memory; diff --git a/dbms/tests/queries/0_stateless/00900_parquet.sh b/dbms/tests/queries/0_stateless/00900_parquet.sh index aa479e7d03c..de3bfdd8e3c 100755 --- a/dbms/tests/queries/0_stateless/00900_parquet.sh +++ b/dbms/tests/queries/0_stateless/00900_parquet.sh @@ -15,122 +15,122 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) #valgrind --tool=massif ${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 1000000 FORMAT Parquet" > ${CLICKHOUSE_TMP}/t1g.pq -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.contributors" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.contributors (name String) ENGINE = Memory" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.contributors ORDER BY name DESC FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.contributors FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS contributors" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE contributors (name String) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.contributors ORDER BY name DESC FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO contributors FORMAT Parquet" # random results -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.contributors LIMIT 10" > /dev/null -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.contributors" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM contributors LIMIT 10" > /dev/null +${CLICKHOUSE_CLIENT} --query="DROP TABLE contributors" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_numbers" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_numbers (number UInt64) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_numbers" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_numbers (number UInt64) ENGINE = Memory" # less than default block size (65k) -${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 10000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_numbers FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_numbers ORDER BY number DESC LIMIT 10" -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.parquet_numbers" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 10000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_numbers FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_numbers ORDER BY number DESC LIMIT 10" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE parquet_numbers" # More than default block size -${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 100000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_numbers FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_numbers ORDER BY number DESC LIMIT 10" -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.parquet_numbers" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 100000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_numbers FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_numbers ORDER BY number DESC LIMIT 10" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE parquet_numbers" -#${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 10000000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_numbers FORMAT Parquet" -#${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_numbers ORDER BY number DESC LIMIT 10" -#${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.parquet_numbers" +#${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.numbers LIMIT 10000000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_numbers FORMAT Parquet" +#${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_numbers ORDER BY number DESC LIMIT 10" +#${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE parquet_numbers" #${CLICKHOUSE_CLIENT} --max_block_size=2 --query="SELECT * FROM system.numbers LIMIT 3 FORMAT Parquet" > ${CLICKHOUSE_TMP}/bs2.pq -${CLICKHOUSE_CLIENT} --max_block_size=2 --query="SELECT * FROM system.numbers LIMIT 3 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_numbers FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_numbers ORDER BY number DESC LIMIT 10" +${CLICKHOUSE_CLIENT} --max_block_size=2 --query="SELECT * FROM system.numbers LIMIT 3 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_numbers FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_numbers ORDER BY number DESC LIMIT 10" -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.parquet_numbers" -${CLICKHOUSE_CLIENT} --max_block_size=1 --query="SELECT * FROM system.numbers LIMIT 1000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_numbers FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_numbers ORDER BY number DESC LIMIT 10" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE parquet_numbers" +${CLICKHOUSE_CLIENT} --max_block_size=1 --query="SELECT * FROM system.numbers LIMIT 1000 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_numbers FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_numbers ORDER BY number DESC LIMIT 10" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_numbers" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_numbers" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_events" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_events (event String, value UInt64, description String) ENGINE = Memory" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.events FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_events FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT event, description FROM test.parquet_events WHERE event IN ('ContextLock', 'Query') ORDER BY event" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_events" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_events" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_events (event String, value UInt64, description String) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM system.events FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_events FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT event, description FROM parquet_events WHERE event IN ('ContextLock', 'Query') ORDER BY event" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_events" -#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types1" -#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types2" -#${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types1 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String ) ENGINE = Memory" -#${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types2 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String ) ENGINE = Memory" -#${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types1 values ( -108, 108, -1016, 1116, -1032, -1064, 1164, -1.032, -1.064, 'string' )" -#${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types2 FORMAT Parquet" +#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types1" +#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types2" +#${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types1 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String ) ENGINE = Memory" +#${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types2 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String ) ENGINE = Memory" +#${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types1 values ( -108, 108, -1016, 1116, -1032, -1064, 1164, -1.032, -1.064, 'string' )" +#${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types2 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types2" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types3" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types4" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types1 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, uint32 UInt32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String, fixedstring FixedString(15), date Date, datetime DateTime) ENGINE = Memory" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types2 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, uint32 UInt32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String, fixedstring FixedString(15), date Date, datetime DateTime) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types3" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types4" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types1 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, uint32 UInt32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String, fixedstring FixedString(15), date Date, datetime DateTime) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types2 (int8 Int8, uint8 UInt8, int16 Int16, uint16 UInt16, int32 Int32, uint32 UInt32, int64 Int64, uint64 UInt64, float32 Float32, float64 Float64, string String, fixedstring FixedString(15), date Date, datetime DateTime) ENGINE = Memory" # convert min type -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types3 (int8 Int8, uint8 Int8, int16 Int8, uint16 Int8, int32 Int8, uint32 Int8, int64 Int8, uint64 Int8, float32 Int8, float64 Int8, string FixedString(15), fixedstring FixedString(15), date Date, datetime Date) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types3 (int8 Int8, uint8 Int8, int16 Int8, uint16 Int8, int32 Int8, uint32 Int8, int64 Int8, uint64 Int8, float32 Int8, float64 Int8, string FixedString(15), fixedstring FixedString(15), date Date, datetime Date) ENGINE = Memory" # convert max type -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types4 (int8 Int64, uint8 Int64, int16 Int64, uint16 Int64, int32 Int64, uint32 Int64, int64 Int64, uint64 Int64, float32 Int64, float64 Int64, string String, fixedstring String, date DateTime, datetime DateTime) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types4 (int8 Int64, uint8 Int64, int16 Int64, uint16 Int64, int32 Int64, uint32 Int64, int64 Int64, uint64 Int64, float32 Int64, float64 Int64, string String, fixedstring String, date DateTime, datetime DateTime) ENGINE = Memory" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types1 values ( -108, 108, -1016, 1116, -1032, 1132, -1064, 1164, -1.032, -1.064, 'string-0', 'fixedstring', '2001-02-03', '2002-02-03 04:05:06')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types1 values ( -108, 108, -1016, 1116, -1032, 1132, -1064, 1164, -1.032, -1.064, 'string-0', 'fixedstring', '2001-02-03', '2002-02-03 04:05:06')" # min -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types1 values ( -128, 0, -32768, 0, -2147483648, 0, -9223372036854775808, 0, -1.032, -1.064, 'string-1', 'fixedstring-1', '2003-04-05', '2003-02-03 04:05:06')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types1 values ( -128, 0, -32768, 0, -2147483648, 0, -9223372036854775808, 0, -1.032, -1.064, 'string-1', 'fixedstring-1', '2003-04-05', '2003-02-03 04:05:06')" # max -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types1 values ( 127, 255, 32767, 65535, 2147483647, 4294967295, 9223372036854775807, 9223372036854775807, -1.032, -1.064, 'string-2', 'fixedstring-2', '2004-06-07', '2004-02-03 04:05:06')" +${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types1 values ( 127, 255, 32767, 65535, 2147483647, 4294967295, 9223372036854775807, 9223372036854775807, -1.032, -1.064, 'string-2', 'fixedstring-2', '2004-06-07', '2004-02-03 04:05:06')" # 'SELECT -127,-128,-129,126,127,128,255,256,257,-32767,-32768,-32769,32766,32767,32768,65535,65536,65537, -2147483647,-2147483648,-2147483649,2147483646,2147483647,2147483648,4294967295,4294967296,4294967297, -9223372036854775807,-9223372036854775808,9223372036854775806,9223372036854775807,9223372036854775808,18446744073709551615'; -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types2 FORMAT Parquet" echo original: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 ORDER BY int8" | tee ${CLICKHOUSE_TMP}/parquet_all_types_1.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 ORDER BY int8" | tee ${CLICKHOUSE_TMP}/parquet_all_types_1.dump echo converted: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types2 ORDER BY int8" | tee ${CLICKHOUSE_TMP}/parquet_all_types_2.dump -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 ORDER BY int8 FORMAT Parquet" > ${CLICKHOUSE_TMP}/parquet_all_types_1.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types2 ORDER BY int8 FORMAT Parquet" > ${CLICKHOUSE_TMP}/parquet_all_types_2.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types2 ORDER BY int8" | tee ${CLICKHOUSE_TMP}/parquet_all_types_2.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 ORDER BY int8 FORMAT Parquet" > ${CLICKHOUSE_TMP}/parquet_all_types_1.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types2 ORDER BY int8 FORMAT Parquet" > ${CLICKHOUSE_TMP}/parquet_all_types_2.parquet echo diff: diff ${CLICKHOUSE_TMP}/parquet_all_types_1.dump ${CLICKHOUSE_TMP}/parquet_all_types_2.dump -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.parquet_types2" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types3 values ( 79, 81, 82, 83, 84, 85, 86, 87, 88, 89, 'str01', 'fstr1', '2003-03-04', '2004-05-06')" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types3 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types2 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types3 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE parquet_types2" +${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types3 values ( 79, 81, 82, 83, 84, 85, 86, 87, 88, 89, 'str01', 'fstr1', '2003-03-04', '2004-05-06')" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types3 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types3 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types4 values ( 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 'str02', 'fstr2', '2005-03-04 05:06:07', '2006-08-09 10:11:12')" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types4 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types2 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types4 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types4 values ( 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 'str02', 'fstr2', '2005-03-04 05:06:07', '2006-08-09 10:11:12')" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types4 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types4 FORMAT Parquet" echo dest: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types2 ORDER BY int8" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types2 ORDER BY int8" echo min: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types3 ORDER BY int8" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types3 ORDER BY int8" echo max: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types4 ORDER BY int8" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types4 ORDER BY int8" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types5" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_types6" -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.parquet_types2" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types5 (int8 Nullable(Int8), uint8 Nullable(UInt8), int16 Nullable(Int16), uint16 Nullable(UInt16), int32 Nullable(Int32), uint32 Nullable(UInt32), int64 Nullable(Int64), uint64 Nullable(UInt64), float32 Nullable(Float32), float64 Nullable(Float64), string Nullable(String), fixedstring Nullable(FixedString(15)), date Nullable(Date), datetime Nullable(DateTime)) ENGINE = Memory" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_types6 (int8 Nullable(Int8), uint8 Nullable(UInt8), int16 Nullable(Int16), uint16 Nullable(UInt16), int32 Nullable(Int32), uint32 Nullable(UInt32), int64 Nullable(Int64), uint64 Nullable(UInt64), float32 Nullable(Float32), float64 Nullable(Float64), string Nullable(String), fixedstring Nullable(FixedString(15)), date Nullable(Date), datetime Nullable(DateTime)) ENGINE = Memory" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types5 values ( NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types5 ORDER BY int8 FORMAT Parquet" > ${CLICKHOUSE_TMP}/parquet_all_types_5.parquet -#${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types5 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types6 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types5 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types6 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types1 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_types6 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types5" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_types6" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE parquet_types2" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types5 (int8 Nullable(Int8), uint8 Nullable(UInt8), int16 Nullable(Int16), uint16 Nullable(UInt16), int32 Nullable(Int32), uint32 Nullable(UInt32), int64 Nullable(Int64), uint64 Nullable(UInt64), float32 Nullable(Float32), float64 Nullable(Float64), string Nullable(String), fixedstring Nullable(FixedString(15)), date Nullable(Date), datetime Nullable(DateTime)) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_types6 (int8 Nullable(Int8), uint8 Nullable(UInt8), int16 Nullable(Int16), uint16 Nullable(UInt16), int32 Nullable(Int32), uint32 Nullable(UInt32), int64 Nullable(Int64), uint64 Nullable(UInt64), float32 Nullable(Float32), float64 Nullable(Float64), string Nullable(String), fixedstring Nullable(FixedString(15)), date Nullable(Date), datetime Nullable(DateTime)) ENGINE = Memory" +${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types5 values ( NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types5 ORDER BY int8 FORMAT Parquet" > ${CLICKHOUSE_TMP}/parquet_all_types_5.parquet +#${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types5 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types6 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types5 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types6 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types1 ORDER BY int8 FORMAT Parquet" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_types6 FORMAT Parquet" echo dest from null: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_types6 ORDER BY int8" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_types6 ORDER BY int8" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_types5" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_types6" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_types5" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_types6" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_types1" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_types2" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_types3" -${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_types4" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_types1" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_types2" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_types3" +${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_types4" diff --git a/dbms/tests/queries/0_stateless/00900_parquet_decimal.sh b/dbms/tests/queries/0_stateless/00900_parquet_decimal.sh index 7fcefa3c3ee..322f0a5be00 100755 --- a/dbms/tests/queries/0_stateless/00900_parquet_decimal.sh +++ b/dbms/tests/queries/0_stateless/00900_parquet_decimal.sh @@ -4,108 +4,108 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CUR_DIR/../shell_config.sh -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal2;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal2;" # Simple small values -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal (a DECIMAL(9,0), b DECIMAL(18,0), c DECIMAL(38,0), d DECIMAL(9, 9), e DECIMAL(18, 18), f DECIMAL(38, 38), g Decimal(9, 5), h decimal(18, 9), i deciMAL(38, 18), j DECIMAL(1,0)) ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal2 AS test.decimal ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0);" -#${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (1, 1, 1, 0.1, 0.1, 1, 1, 1, 1, 1);" -#${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (10, 10, 10, 0.1, 0.1, 0.1, 10, 10, 10, 10);" -#${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-100, -100, -100, -0.1, -0.1, -0.1, -100, -100, -100, -100);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c) VALUES (1, 1, 1);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c) VALUES (10, 10, 10);" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal0_1.dump -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal0.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal2 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal0_2.dump +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal (a DECIMAL(9,0), b DECIMAL(18,0), c DECIMAL(38,0), d DECIMAL(9, 9), e DECIMAL(18, 18), f DECIMAL(38, 38), g Decimal(9, 5), h decimal(18, 9), i deciMAL(38, 18), j DECIMAL(1,0)) ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal2 AS decimal ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0);" +#${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (1, 1, 1, 0.1, 0.1, 1, 1, 1, 1, 1);" +#${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (10, 10, 10, 0.1, 0.1, 0.1, 10, 10, 10, 10);" +#${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-100, -100, -100, -0.1, -0.1, -0.1, -100, -100, -100, -100);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c) VALUES (1, 1, 1);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c) VALUES (10, 10, 10);" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal0_1.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal0.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal0_2.dump echo diff0: diff ${CLICKHOUSE_TMP}/parquet_decimal0_1.dump ${CLICKHOUSE_TMP}/parquet_decimal0_2.dump -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal2;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal2;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal ( a DECIMAL(9,0), b DECIMAL(18,0), c DECIMAL(38,0), d DECIMAL(9, 9), e DECIMAL(18, 18), f DECIMAL(38, 38), g Decimal(9, 5), h decimal(18, 9), i deciMAL(38, 18), j DECIMAL(1,0)) ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal2 AS test.decimal ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, d, g) VALUES (999999999, 999999999999999999, 0.999999999, 9999.99999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, d, g) VALUES (-999999999, -999999999999999999, -0.999999999, -9999.99999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (c) VALUES (99999999999999999999999999999999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (c) VALUES (-99999999999999999999999999999999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (f) VALUES (0.99999999999999999999999999999999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (f) VALUES (-0.99999999999999999999999999999999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (e, h) VALUES (0.999999999999999999, 999999999.999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (e, h) VALUES (-0.999999999999999999, -999999999.999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (i) VALUES (99999999999999999999.999999999999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (i) VALUES (-99999999999999999999.999999999999999999);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, g, j, h) VALUES (1, 1, 1, 0.000000001, 0.00001, 1, 0.000000001);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, g, j, h) VALUES (-1, -1, -1, -0.000000001, -0.00001, -1, -0.000000001);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (e, f) VALUES (0.000000000000000001, 0.00000000000000000000000000000000000001);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (e, f) VALUES (-0.000000000000000001, -0.00000000000000000000000000000000000001);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (i) VALUES (0.000000000000000001);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (i) VALUES (-0.000000000000000001);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0, -0, -0, -0, -0, -0, -0, -0, -0, -0);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, g) VALUES ('42.00000', 42.0000000000000000000000000000000, '0.999990');" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f) VALUES ('0.9e9', '0.9e18', '0.9e38', '9e-9', '9e-18', '9e-38');" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f) VALUES ('-0.9e9', '-0.9e18', '-0.9e38', '-9e-9', '-9e-18', '-9e-38');" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal1_1.dump -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal1.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal2 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal1_2.dump +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal ( a DECIMAL(9,0), b DECIMAL(18,0), c DECIMAL(38,0), d DECIMAL(9, 9), e DECIMAL(18, 18), f DECIMAL(38, 38), g Decimal(9, 5), h decimal(18, 9), i deciMAL(38, 18), j DECIMAL(1,0)) ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal2 AS decimal ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, d, g) VALUES (999999999, 999999999999999999, 0.999999999, 9999.99999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, d, g) VALUES (-999999999, -999999999999999999, -0.999999999, -9999.99999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (c) VALUES (99999999999999999999999999999999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (c) VALUES (-99999999999999999999999999999999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (f) VALUES (0.99999999999999999999999999999999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (f) VALUES (-0.99999999999999999999999999999999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (e, h) VALUES (0.999999999999999999, 999999999.999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (e, h) VALUES (-0.999999999999999999, -999999999.999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (i) VALUES (99999999999999999999.999999999999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (i) VALUES (-99999999999999999999.999999999999999999);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, g, j, h) VALUES (1, 1, 1, 0.000000001, 0.00001, 1, 0.000000001);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, g, j, h) VALUES (-1, -1, -1, -0.000000001, -0.00001, -1, -0.000000001);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (e, f) VALUES (0.000000000000000001, 0.00000000000000000000000000000000000001);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (e, f) VALUES (-0.000000000000000001, -0.00000000000000000000000000000000000001);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (i) VALUES (0.000000000000000001);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (i) VALUES (-0.000000000000000001);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0, 0, 0, 0, 0, 0, 0, 0, 0, 0);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0, -0, -0, -0, -0, -0, -0, -0, -0, -0);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0, -0.0);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, g) VALUES ('42.00000', 42.0000000000000000000000000000000, '0.999990');" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f) VALUES ('0.9e9', '0.9e18', '0.9e38', '9e-9', '9e-18', '9e-38');" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f) VALUES ('-0.9e9', '-0.9e18', '-0.9e38', '-9e-9', '-9e-18', '-9e-38');" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal1_1.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal1.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal1_2.dump echo diff1: diff ${CLICKHOUSE_TMP}/parquet_decimal1_1.dump ${CLICKHOUSE_TMP}/parquet_decimal1_2.dump -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal2;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal2;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal (a DECIMAL(9,0), b DECIMAL(18,0), c DECIMAL(38,0), d DECIMAL(9, 9), e Decimal64(18), f Decimal128(38), g Decimal32(5), h Decimal64(9), i Decimal128(18), j dec(4,2)) ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal2 AS test.decimal ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (42, 42, 42, 0.42, 0.42, 0.42, 42.42, 42.42, 42.42, 42.42);" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-42, -42, -42, -0.42, -0.42, -0.42, -42.42, -42.42, -42.42, -42.42);" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal2_1.dump -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal2.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal2 FORMAT Parquet" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal2_2.dump +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal (a DECIMAL(9,0), b DECIMAL(18,0), c DECIMAL(38,0), d DECIMAL(9, 9), e Decimal64(18), f Decimal128(38), g Decimal32(5), h Decimal64(9), i Decimal128(18), j dec(4,2)) ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal2 AS decimal ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (42, 42, 42, 0.42, 0.42, 0.42, 42.42, 42.42, 42.42, 42.42);" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal (a, b, c, d, e, f, g, h, i, j) VALUES (-42, -42, -42, -0.42, -0.42, -0.42, -42.42, -42.42, -42.42, -42.42);" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal2_1.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal2.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d, e, f, g, h, i, j FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d, e, f, g, h, i, j;" > ${CLICKHOUSE_TMP}/parquet_decimal2_2.dump echo diff2: diff ${CLICKHOUSE_TMP}/parquet_decimal2_1.dump ${CLICKHOUSE_TMP}/parquet_decimal2_2.dump -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal;" -${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal2;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal;" +${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal2;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal (a Nullable(DECIMAL(9,0)), b Nullable(DECIMAL(18,0)), c Nullable(DECIMAL(38,0)), d Nullable(DECIMAL(9,0))) ENGINE = Memory;" -${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS test.decimal2 AS test.decimal ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal (a Nullable(DECIMAL(9,0)), b Nullable(DECIMAL(18,0)), c Nullable(DECIMAL(38,0)), d Nullable(DECIMAL(9,0))) ENGINE = Memory;" +${CLICKHOUSE_CLIENT} --query="CREATE TABLE IF NOT EXISTS decimal2 AS decimal ENGINE = Memory;" # Empty table test # throws No data to insert -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal3_1.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal2 FORMAT Parquet" 2> /dev/null +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal3_1.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal2 FORMAT Parquet" 2> /dev/null echo nothing: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d;" -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.decimal2;" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d;" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE decimal2;" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal VALUES (Null, Null, Null, Null)" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal3_2.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal VALUES (Null, Null, Null, Null)" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal3_2.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal2 FORMAT Parquet" echo nulls: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d;" -${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE test.decimal2;" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d;" +${CLICKHOUSE_CLIENT} --query="TRUNCATE TABLE decimal2;" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal VALUES (1, Null, Null, Null)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal VALUES (Null, 1, Null, Null)" -${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal VALUES (Null, Null, 1, Null)" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal3_3.parquet -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.decimal2 FORMAT Parquet" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal VALUES (1, Null, Null, Null)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal VALUES (Null, 1, Null, Null)" +${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal VALUES (Null, Null, 1, Null)" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d FORMAT Parquet;" > ${CLICKHOUSE_TMP}/parquet_decimal3_3.parquet +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d FORMAT Parquet;" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO decimal2 FORMAT Parquet" echo full orig: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal ORDER BY a, b, c, d;" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal ORDER BY a, b, c, d;" echo full inserted: -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d;" +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d;" -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d;" > ${CLICKHOUSE_TMP}/parquet_decimal3_1.dump -${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.decimal2 ORDER BY a, b, c, d;" > ${CLICKHOUSE_TMP}/parquet_decimal3_2.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d;" > ${CLICKHOUSE_TMP}/parquet_decimal3_1.dump +${CLICKHOUSE_CLIENT} --query="SELECT * FROM decimal2 ORDER BY a, b, c, d;" > ${CLICKHOUSE_TMP}/parquet_decimal3_2.dump echo diff3: diff ${CLICKHOUSE_TMP}/parquet_decimal3_1.dump ${CLICKHOUSE_TMP}/parquet_decimal3_2.dump -#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal;" -#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.decimal2;" +#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal;" +#${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS decimal2;" diff --git a/dbms/tests/queries/0_stateless/00900_parquet_load.sh b/dbms/tests/queries/0_stateless/00900_parquet_load.sh index 66fdd54a512..43db76c1a1f 100755 --- a/dbms/tests/queries/0_stateless/00900_parquet_load.sh +++ b/dbms/tests/queries/0_stateless/00900_parquet_load.sh @@ -47,12 +47,12 @@ for NAME in `ls -1 $DATA_DIR/*.parquet | xargs -n 1 basename | sort`; do #COLUMNS=`$CUR_DIR/00900_parquet_create_table_columns.pl $JSON` 2>&1 || continue COLUMNS=`cat $COLUMNS_FILE` || continue - ${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS test.parquet_load" - ${CLICKHOUSE_CLIENT} --query="CREATE TABLE test.parquet_load ($COLUMNS) ENGINE = Memory" + ${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS parquet_load" + ${CLICKHOUSE_CLIENT} --query="CREATE TABLE parquet_load ($COLUMNS) ENGINE = Memory" # Some files is broken, exception is ok. - cat $DATA_DIR/$NAME | ${CLICKHOUSE_CLIENT} --query="INSERT INTO test.parquet_load FORMAT Parquet" 2>&1 | sed 's/Exception/Ex---tion/' + cat $DATA_DIR/$NAME | ${CLICKHOUSE_CLIENT} --query="INSERT INTO parquet_load FORMAT Parquet" 2>&1 | sed 's/Exception/Ex---tion/' - ${CLICKHOUSE_CLIENT} --query="SELECT * FROM test.parquet_load LIMIT 100" - ${CLICKHOUSE_CLIENT} --query="DROP TABLE test.parquet_load" + ${CLICKHOUSE_CLIENT} --query="SELECT * FROM parquet_load LIMIT 100" + ${CLICKHOUSE_CLIENT} --query="DROP TABLE parquet_load" done diff --git a/dbms/tests/queries/0_stateless/00902_entropy.sql b/dbms/tests/queries/0_stateless/00902_entropy.sql index eef1f9b829c..dfbda33bbbc 100644 --- a/dbms/tests/queries/0_stateless/00902_entropy.sql +++ b/dbms/tests/queries/0_stateless/00902_entropy.sql @@ -1,44 +1,44 @@ -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE IF NOT EXISTS test.defaults +DROP TABLE IF EXISTS defaults; +CREATE TABLE IF NOT EXISTS defaults ( vals String ) ENGINE = Memory; -insert into test.defaults values ('ba'), ('aa'), ('ba'), ('b'), ('ba'), ('aa'); -select val < 1.5 and val > 1.459 from (select entropy(vals) as val from test.defaults); +insert into defaults values ('ba'), ('aa'), ('ba'), ('b'), ('ba'), ('aa'); +select val < 1.5 and val > 1.459 from (select entropy(vals) as val from defaults); -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE IF NOT EXISTS test.defaults +DROP TABLE IF EXISTS defaults; +CREATE TABLE IF NOT EXISTS defaults ( vals UInt64 ) ENGINE = Memory; -insert into test.defaults values (0), (0), (1), (0), (0), (0), (1), (2), (3), (5), (3), (1), (1), (4), (5), (2) -select val < 2.4 and val > 2.3393 from (select entropy(vals) as val from test.defaults); +insert into defaults values (0), (0), (1), (0), (0), (0), (1), (2), (3), (5), (3), (1), (1), (4), (5), (2) +select val < 2.4 and val > 2.3393 from (select entropy(vals) as val from defaults); -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE IF NOT EXISTS test.defaults +DROP TABLE IF EXISTS defaults; +CREATE TABLE IF NOT EXISTS defaults ( vals UInt32 ) ENGINE = Memory; -insert into test.defaults values (0), (0), (1), (0), (0), (0), (1), (2), (3), (5), (3), (1), (1), (4), (5), (2) -select val < 2.4 and val > 2.3393 from (select entropy(vals) as val from test.defaults); +insert into defaults values (0), (0), (1), (0), (0), (0), (1), (2), (3), (5), (3), (1), (1), (4), (5), (2) +select val < 2.4 and val > 2.3393 from (select entropy(vals) as val from defaults); -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE IF NOT EXISTS test.defaults +DROP TABLE IF EXISTS defaults; +CREATE TABLE IF NOT EXISTS defaults ( vals Int32 ) ENGINE = Memory; -insert into test.defaults values (0), (0), (-1), (0), (0), (0), (-1), (2), (3), (5), (3), (-1), (-1), (4), (5), (2) -select val < 2.4 and val > 2.3393 from (select entropy(vals) as val from test.defaults); +insert into defaults values (0), (0), (-1), (0), (0), (0), (-1), (2), (3), (5), (3), (-1), (-1), (4), (5), (2) +select val < 2.4 and val > 2.3393 from (select entropy(vals) as val from defaults); -DROP TABLE IF EXISTS test.defaults; -CREATE TABLE IF NOT EXISTS test.defaults +DROP TABLE IF EXISTS defaults; +CREATE TABLE IF NOT EXISTS defaults ( vals DateTime ) ENGINE = Memory; -insert into test.defaults values (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 24:00:00')), (toDateTime('2016-06-15 24:00:00')), (toDateTime('2016-06-15 24:00:00')), (toDateTime('2017-06-15 24:00:00')), (toDateTime('2017-06-15 24:00:00')), (toDateTime('2018-06-15 24:00:00')), (toDateTime('2018-06-15 24:00:00')), (toDateTime('2019-06-15 24:00:00')); -select val < 2.189 and val > 2.1886 from (select entropy(vals) as val from test.defaults); +insert into defaults values (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 23:00:00')), (toDateTime('2016-06-15 24:00:00')), (toDateTime('2016-06-15 24:00:00')), (toDateTime('2016-06-15 24:00:00')), (toDateTime('2017-06-15 24:00:00')), (toDateTime('2017-06-15 24:00:00')), (toDateTime('2018-06-15 24:00:00')), (toDateTime('2018-06-15 24:00:00')), (toDateTime('2019-06-15 24:00:00')); +select val < 2.189 and val > 2.1886 from (select entropy(vals) as val from defaults); diff --git a/dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql b/dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql index 6917714e091..beff4cd0374 100644 --- a/dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql +++ b/dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql @@ -1,14 +1,14 @@ SET compile_expressions = 1; SET min_count_to_compile_expression = 1; -DROP TABLE IF EXISTS test.foo_c; +DROP TABLE IF EXISTS foo_c; -CREATE TABLE test.foo_c(d DateTime) ENGINE = Memory; +CREATE TABLE foo_c(d DateTime) ENGINE = Memory; -INSERT INTO test.foo_c VALUES ('2019-02-06 01:01:01'),('2019-02-07 01:01:01'),('2019-02-08 01:01:01'),('2021-02-06 01:01:01'),('2093-05-29 01:01:01'),('2100-06-06 01:01:01'),('2100-10-14 01:01:01'),('2100-11-01 01:01:01'),('2100-11-15 01:01:01'),('2100-11-30 01:01:01'),('2100-12-11 01:01:01'),('2100-12-21 01:01:01'); +INSERT INTO foo_c VALUES ('2019-02-06 01:01:01'),('2019-02-07 01:01:01'),('2019-02-08 01:01:01'),('2021-02-06 01:01:01'),('2093-05-29 01:01:01'),('2100-06-06 01:01:01'),('2100-10-14 01:01:01'),('2100-11-01 01:01:01'),('2100-11-15 01:01:01'),('2100-11-30 01:01:01'),('2100-12-11 01:01:01'),('2100-12-21 01:01:01'); -SELECT toDate(d) AS dd FROM test.foo_c WHERE (dd >= '2019-02-06') AND (toDate(d) <= toDate('2019-08-09')) GROUP BY dd ORDER BY dd; +SELECT toDate(d) AS dd FROM foo_c WHERE (dd >= '2019-02-06') AND (toDate(d) <= toDate('2019-08-09')) GROUP BY dd ORDER BY dd; -SELECT toDate(d) FROM test.foo_c WHERE (d > toDate('2019-02-10')) AND (d <= toDate('2022-01-01')) ORDER BY d; +SELECT toDate(d) FROM foo_c WHERE (d > toDate('2019-02-10')) AND (d <= toDate('2022-01-01')) ORDER BY d; -DROP TABLE IF EXISTS test.foo_c; +DROP TABLE IF EXISTS foo_c; diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_cache.sql b/dbms/tests/queries/0_stateless/00906_low_cardinality_cache.sql index ca286e9379f..b8ffce12e23 100644 --- a/dbms/tests/queries/0_stateless/00906_low_cardinality_cache.sql +++ b/dbms/tests/queries/0_stateless/00906_low_cardinality_cache.sql @@ -1,5 +1,5 @@ -drop table if exists test.lc; -create table test.lc (b LowCardinality(String)) engine=MergeTree order by b; -insert into test.lc select '0123456789' from numbers(100000000); -select count(), b from test.lc group by b; -drop table if exists test.lc; +drop table if exists lc; +create table lc (b LowCardinality(String)) engine=MergeTree order by b; +insert into lc select '0123456789' from numbers(100000000); +select count(), b from lc group by b; +drop table if exists lc; diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.sql b/dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.sql index 591a0681357..3b8be7b9ac6 100644 --- a/dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.sql +++ b/dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.sql @@ -1,12 +1,12 @@ -DROP TABLE if exists test.lc; -CREATE TABLE test.lc (a LowCardinality(Nullable(String)), b LowCardinality(Nullable(String))) ENGINE = MergeTree order by tuple(); -INSERT INTO test.lc VALUES ('a', 'b'); -INSERT INTO test.lc VALUES ('c', 'd'); +DROP TABLE if exists lc; +CREATE TABLE lc (a LowCardinality(Nullable(String)), b LowCardinality(Nullable(String))) ENGINE = MergeTree order by tuple(); +INSERT INTO lc VALUES ('a', 'b'); +INSERT INTO lc VALUES ('c', 'd'); -SELECT a, b, count(a) FROM test.lc GROUP BY a, b WITH ROLLUP; -SELECT a, count(a) FROM test.lc GROUP BY a WITH ROLLUP; +SELECT a, b, count(a) FROM lc GROUP BY a, b WITH ROLLUP; +SELECT a, count(a) FROM lc GROUP BY a WITH ROLLUP; -SELECT a, b, count(a) FROM test.lc GROUP BY a, b WITH CUBE; -SELECT a, count(a) FROM test.lc GROUP BY a WITH CUBE; +SELECT a, b, count(a) FROM lc GROUP BY a, b WITH CUBE; +SELECT a, count(a) FROM lc GROUP BY a WITH CUBE; -DROP TABLE if exists test.lc; +DROP TABLE if exists lc; diff --git a/dbms/tests/queries/0_stateless/00907_set_index_max_rows.sh b/dbms/tests/queries/0_stateless/00907_set_index_max_rows.sh index ed2a732c74f..98c0086488d 100755 --- a/dbms/tests/queries/0_stateless/00907_set_index_max_rows.sh +++ b/dbms/tests/queries/0_stateless/00907_set_index_max_rows.sh @@ -3,11 +3,11 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.set_idx;" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS set_idx;" $CLICKHOUSE_CLIENT -n --query=" SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.set_idx +CREATE TABLE set_idx ( u64 UInt64, i32 Int32, @@ -17,11 +17,11 @@ ORDER BY u64 SETTINGS index_granularity = 6;" $CLICKHOUSE_CLIENT --query=" -INSERT INTO test.set_idx +INSERT INTO set_idx SELECT number, number FROM system.numbers LIMIT 100" # simple select -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.set_idx WHERE i32 > 0 FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM set_idx WHERE i32 > 0 FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.set_idx;" \ No newline at end of file +$CLICKHOUSE_CLIENT --query="DROP TABLE set_idx;" \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql b/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql index 363e0e9c0b5..21bbbf1e6e9 100644 --- a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql +++ b/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql @@ -1,69 +1,69 @@ SET allow_experimental_data_skipping_indices=1; -drop table if exists test.nullable_set_index; -create table test.nullable_set_index (a UInt64, b Nullable(String), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; -insert into test.nullable_set_index values (1, 'a'); -insert into test.nullable_set_index values (2, 'b'); -select * from test.nullable_set_index where b = 'a'; +drop table if exists nullable_set_index; +create table nullable_set_index (a UInt64, b Nullable(String), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; +insert into nullable_set_index values (1, 'a'); +insert into nullable_set_index values (2, 'b'); +select * from nullable_set_index where b = 'a'; select '-'; -select * from test.nullable_set_index where b = 'b'; +select * from nullable_set_index where b = 'b'; select '-'; -select * from test.nullable_set_index where b = 'c'; +select * from nullable_set_index where b = 'c'; select '--'; -drop table if exists test.nullable_set_index; -create table test.nullable_set_index (a UInt64, b Nullable(String), INDEX b_index b TYPE set(1) GRANULARITY 8192) engine = MergeTree order by a; -insert into test.nullable_set_index values (1, 'a'); -insert into test.nullable_set_index values (2, 'b'); -select * from test.nullable_set_index where b = 'a'; +drop table if exists nullable_set_index; +create table nullable_set_index (a UInt64, b Nullable(String), INDEX b_index b TYPE set(1) GRANULARITY 8192) engine = MergeTree order by a; +insert into nullable_set_index values (1, 'a'); +insert into nullable_set_index values (2, 'b'); +select * from nullable_set_index where b = 'a'; select '-'; -select * from test.nullable_set_index where b = 'b'; +select * from nullable_set_index where b = 'b'; select '-'; -select * from test.nullable_set_index where b = 'c'; +select * from nullable_set_index where b = 'c'; select '--'; -drop table if exists test.nullable_set_index; -create table test.nullable_set_index (a UInt64, b Nullable(String), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; -insert into test.nullable_set_index values (1, 'a'), (2, 'b'); -select * from test.nullable_set_index where b = 'a'; +drop table if exists nullable_set_index; +create table nullable_set_index (a UInt64, b Nullable(String), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; +insert into nullable_set_index values (1, 'a'), (2, 'b'); +select * from nullable_set_index where b = 'a'; select '-'; -select * from test.nullable_set_index where b = 'b'; +select * from nullable_set_index where b = 'b'; select '-'; -select * from test.nullable_set_index where b = 'c'; +select * from nullable_set_index where b = 'c'; select '----'; -drop table if exists test.nullable_set_index; -create table test.nullable_set_index (a UInt64, b LowCardinality(Nullable(String)), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; -insert into test.nullable_set_index values (1, 'a'); -insert into test.nullable_set_index values (2, 'b'); -select * from test.nullable_set_index where b = 'a'; +drop table if exists nullable_set_index; +create table nullable_set_index (a UInt64, b LowCardinality(Nullable(String)), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; +insert into nullable_set_index values (1, 'a'); +insert into nullable_set_index values (2, 'b'); +select * from nullable_set_index where b = 'a'; select '-'; -select * from test.nullable_set_index where b = 'b'; +select * from nullable_set_index where b = 'b'; select '-'; -select * from test.nullable_set_index where b = 'c'; +select * from nullable_set_index where b = 'c'; select '--'; -drop table if exists test.nullable_set_index; -create table test.nullable_set_index (a UInt64, b LowCardinality(Nullable(String)), INDEX b_index b TYPE set(1) GRANULARITY 8192) engine = MergeTree order by a; -insert into test.nullable_set_index values (1, 'a'); -insert into test.nullable_set_index values (2, 'b'); -select * from test.nullable_set_index where b = 'a'; +drop table if exists nullable_set_index; +create table nullable_set_index (a UInt64, b LowCardinality(Nullable(String)), INDEX b_index b TYPE set(1) GRANULARITY 8192) engine = MergeTree order by a; +insert into nullable_set_index values (1, 'a'); +insert into nullable_set_index values (2, 'b'); +select * from nullable_set_index where b = 'a'; select '-'; -select * from test.nullable_set_index where b = 'b'; +select * from nullable_set_index where b = 'b'; select '-'; -select * from test.nullable_set_index where b = 'c'; +select * from nullable_set_index where b = 'c'; select '--'; -drop table if exists test.nullable_set_index; -create table test.nullable_set_index (a UInt64, b LowCardinality(Nullable(String)), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; -insert into test.nullable_set_index values (1, 'a'), (2, 'b'); -select * from test.nullable_set_index where b = 'a'; +drop table if exists nullable_set_index; +create table nullable_set_index (a UInt64, b LowCardinality(Nullable(String)), INDEX b_index b TYPE set(0) GRANULARITY 8192) engine = MergeTree order by a; +insert into nullable_set_index values (1, 'a'), (2, 'b'); +select * from nullable_set_index where b = 'a'; select '-'; -select * from test.nullable_set_index where b = 'b'; +select * from nullable_set_index where b = 'b'; select '-'; -select * from test.nullable_set_index where b = 'c'; +select * from nullable_set_index where b = 'c'; select '----'; -drop table if exists test.nullable_set_index; +drop table if exists nullable_set_index; diff --git a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql b/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql index 5bec1210a1e..6af826163a3 100644 --- a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql +++ b/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql @@ -1,8 +1,8 @@ SET allow_experimental_data_skipping_indices=1; -drop table if exists test.null_lc_set_index; +drop table if exists null_lc_set_index; -CREATE TABLE test.null_lc_set_index ( +CREATE TABLE null_lc_set_index ( timestamp DateTime, action LowCardinality(Nullable(String)), user LowCardinality(Nullable(String)), @@ -11,10 +11,10 @@ CREATE TABLE test.null_lc_set_index ( PARTITION BY toYYYYMMDD(timestamp) ORDER BY (timestamp, action, cityHash64(user)) SAMPLE BY cityHash64(user); -INSERT INTO test.null_lc_set_index VALUES (1550883010, 'subscribe', 'alice'); -INSERT INTO test.null_lc_set_index VALUES (1550883020, 'follow', 'bob'); +INSERT INTO null_lc_set_index VALUES (1550883010, 'subscribe', 'alice'); +INSERT INTO null_lc_set_index VALUES (1550883020, 'follow', 'bob'); -SELECT action, user FROM test.null_lc_set_index WHERE user = 'alice'; +SELECT action, user FROM null_lc_set_index WHERE user = 'alice'; -drop table if exists test.null_lc_set_index; +drop table if exists null_lc_set_index; diff --git a/dbms/tests/queries/0_stateless/00908_analyze_query.reference b/dbms/tests/queries/0_stateless/00908_analyze_query.reference index b784efbad42..a10c36ca4dd 100644 --- a/dbms/tests/queries/0_stateless/00908_analyze_query.reference +++ b/dbms/tests/queries/0_stateless/00908_analyze_query.reference @@ -1 +1 @@ -SELECT \n a, \n b\nFROM test.a +SELECT \n a, \n b\nFROM a diff --git a/dbms/tests/queries/0_stateless/00908_analyze_query.sql b/dbms/tests/queries/0_stateless/00908_analyze_query.sql index 116b4bdc72d..ca8e834e108 100644 --- a/dbms/tests/queries/0_stateless/00908_analyze_query.sql +++ b/dbms/tests/queries/0_stateless/00908_analyze_query.sql @@ -1,8 +1,8 @@ set enable_debug_queries = 1; -DROP TABLE IF EXISTS test.a; -CREATE TABLE test.a (a UInt8, b UInt8) ENGINE MergeTree ORDER BY a; +DROP TABLE IF EXISTS a; +CREATE TABLE a (a UInt8, b UInt8) ENGINE MergeTree ORDER BY a; -ANALYZE SELECT * FROM test.a; +ANALYZE SELECT * FROM a; -DROP TABLE test.a; +DROP TABLE a; diff --git a/dbms/tests/queries/0_stateless/00908_bloom_filter_index.sh b/dbms/tests/queries/0_stateless/00908_bloom_filter_index.sh index 8eb4bc7bb9a..7d8e20b2aa3 100755 --- a/dbms/tests/queries/0_stateless/00908_bloom_filter_index.sh +++ b/dbms/tests/queries/0_stateless/00908_bloom_filter_index.sh @@ -3,15 +3,15 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.bloom_filter_idx;" -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.bloom_filter_idx2;" -$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.bloom_filter_idx2;" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS bloom_filter_idx;" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS bloom_filter_idx2;" +$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS bloom_filter_idx2;" # NGRAM BF $CLICKHOUSE_CLIENT -n --query=" SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.bloom_filter_idx +CREATE TABLE bloom_filter_idx ( k UInt64, s String, @@ -22,7 +22,7 @@ SETTINGS index_granularity = 2;" $CLICKHOUSE_CLIENT -n --query=" SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.bloom_filter_idx2 +CREATE TABLE bloom_filter_idx2 ( k UInt64, s FixedString(15), @@ -32,7 +32,7 @@ ORDER BY k SETTINGS index_granularity = 2;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.bloom_filter_idx VALUES +$CLICKHOUSE_CLIENT --query="INSERT INTO bloom_filter_idx VALUES (0, 'ClickHouse - столбцовая система управления базами данных (СУБД) для онлайн обработки аналитических запросов (OLAP).'), (1, 'ClickHouse is a column-oriented database management system (DBMS) for online analytical processing of queries (OLAP).'), (2, 'column-oriented database management system'), @@ -47,7 +47,7 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO test.bloom_filter_idx VALUES (12, '
странный html
'), (13, 'abc')" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.bloom_filter_idx2 VALUES +$CLICKHOUSE_CLIENT --query="INSERT INTO bloom_filter_idx2 VALUES (0, 'ClickHouse'), (1, 'column-oriented'), (2, 'column-oriented'), @@ -57,56 +57,56 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO test.bloom_filter_idx2 VALUES (13, 'abc')" # EQUAL -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx2 WHERE lower(s) = 'aбвгдеёж' OR s = 'aбвгдеёж' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx2 WHERE lower(s) = 'aбвгдеёж' OR s = 'aбвгдеёж' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx2 WHERE lower(s) = 'aбвгдеёж' OR s = 'aбвгдеёж' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx2 WHERE lower(s) = 'aбвгдеёж' OR s = 'aбвгдеёж' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s = 'aбвгдеёж' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s = 'aбвгдеёж' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s = 'aбвгдеёж' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s = 'aбвгдеёж' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE lower(s) = 'abc' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE lower(s) = 'abc' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE lower(s) = 'abc' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE lower(s) = 'abc' ORDER BY k FORMAT JSON" | grep "rows_read" # LIKE -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%database%' AND s LIKE '%ClickHouse%' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%database%' AND s LIKE '%ClickHouse%' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%database%' AND s LIKE '%ClickHouse%' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%database%' AND s LIKE '%ClickHouse%' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%database%' AND lower(s) LIKE '%clickhouse%' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%database%' AND lower(s) LIKE '%clickhouse%' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%database%' AND lower(s) LIKE '%clickhouse%' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%database%' AND lower(s) LIKE '%clickhouse%' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%базами данных%' AND s LIKE '%ClickHouse%' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%базами данных%' AND s LIKE '%ClickHouse%' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%базами данных%' AND s LIKE '%ClickHouse%' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%базами данных%' AND s LIKE '%ClickHouse%' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE (s LIKE '%базами данных%' AND s LIKE '%ClickHouse%') OR s LIKE '____строка' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE (s LIKE '%базами данных%' AND s LIKE '%ClickHouse%') OR s LIKE '____строка' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE (s LIKE '%базами данных%' AND s LIKE '%ClickHouse%') OR s LIKE '____строка' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE (s LIKE '%базами данных%' AND s LIKE '%ClickHouse%') OR s LIKE '____строка' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%%
_%_%_
%%' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%%
_%_%_
%%' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%%
_%_%_
%%' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%%
_%_%_
%%' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%2\\\\%2%' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%2\\\\%2%' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%2\\\\%2%' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%2\\\\%2%' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%_\\\\%2\\\\__\\\\' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '%_\\\\%2\\\\__\\\\' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%_\\\\%2\\\\__\\\\' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '%_\\\\%2\\\\__\\\\' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2\\\\' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2\\\\' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2\\\\' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2\\\\' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2_' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2_' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2_' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s LIKE '2\\\\_2\\\\%2_2_' ORDER BY k FORMAT JSON" | grep "rows_read" # IN -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s IN ('aбвгдеёж', 'abc') ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE s IN ('aбвгдеёж', 'abc') ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s IN ('aбвгдеёж', 'abc') ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE s IN ('aбвгдеёж', 'abc') ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE (s, lower(s)) IN (('aбвгдеёж', 'aбвгдеёж'), ('abc', 'cba')) ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx WHERE (s, lower(s)) IN (('aбвгдеёж', 'aбвгдеёж'), ('abc', 'cba')) ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE (s, lower(s)) IN (('aбвгдеёж', 'aбвгдеёж'), ('abc', 'cba')) ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx WHERE (s, lower(s)) IN (('aбвгдеёж', 'aбвгдеёж'), ('abc', 'cba')) ORDER BY k FORMAT JSON" | grep "rows_read" # TOKEN BF $CLICKHOUSE_CLIENT -n --query=" SET allow_experimental_data_skipping_indices = 1; -CREATE TABLE test.bloom_filter_idx3 +CREATE TABLE bloom_filter_idx3 ( k UInt64, s String, @@ -115,7 +115,7 @@ CREATE TABLE test.bloom_filter_idx3 ORDER BY k SETTINGS index_granularity = 2;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test.bloom_filter_idx3 VALUES +$CLICKHOUSE_CLIENT --query="INSERT INTO bloom_filter_idx3 VALUES (0, 'ClickHouse is a column-oriented database management system (DBMS) for online analytical processing of queries (OLAP).'), (1, 'column-oriented'), (2, 'column-oriented'), @@ -125,19 +125,19 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO test.bloom_filter_idx3 VALUES (13, 'abc')" # EQUAL -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE lower(s) = 'column-oriented' OR s = 'column-oriented' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE lower(s) = 'column-oriented' OR s = 'column-oriented' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE lower(s) = 'column-oriented' OR s = 'column-oriented' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE lower(s) = 'column-oriented' OR s = 'column-oriented' ORDER BY k FORMAT JSON" | grep "rows_read" # LIKE -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE lower(s) LIKE '%(dbms)%' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE lower(s) LIKE '%(dbms)%' ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE s LIKE 'column-%' AND s LIKE '%-oriented' ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE s LIKE 'column-%' AND s LIKE '%-oriented' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE lower(s) LIKE '%(dbms)%' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE lower(s) LIKE '%(dbms)%' ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE s LIKE 'column-%' AND s LIKE '%-oriented' ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE s LIKE 'column-%' AND s LIKE '%-oriented' ORDER BY k FORMAT JSON" | grep "rows_read" # IN -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE s IN ('some string', 'abc') ORDER BY k" -$CLICKHOUSE_CLIENT --query="SELECT * FROM test.bloom_filter_idx3 WHERE s IN ('some string', 'abc') ORDER BY k FORMAT JSON" | grep "rows_read" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE s IN ('some string', 'abc') ORDER BY k" +$CLICKHOUSE_CLIENT --query="SELECT * FROM bloom_filter_idx3 WHERE s IN ('some string', 'abc') ORDER BY k FORMAT JSON" | grep "rows_read" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.bloom_filter_idx" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.bloom_filter_idx2" -$CLICKHOUSE_CLIENT --query="DROP TABLE test.bloom_filter_idx3" \ No newline at end of file +$CLICKHOUSE_CLIENT --query="DROP TABLE bloom_filter_idx" +$CLICKHOUSE_CLIENT --query="DROP TABLE bloom_filter_idx2" +$CLICKHOUSE_CLIENT --query="DROP TABLE bloom_filter_idx3" \ No newline at end of file diff --git a/dbms/tests/queries/0_stateless/00908_long_http_insert.sh b/dbms/tests/queries/0_stateless/00908_long_http_insert.sh index 5acc70cfe0d..90ca0f7d7ac 100755 --- a/dbms/tests/queries/0_stateless/00908_long_http_insert.sh +++ b/dbms/tests/queries/0_stateless/00908_long_http_insert.sh @@ -4,8 +4,8 @@ set -e CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh -echo 'DROP TABLE IF EXISTS test.table_for_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'CREATE TABLE test.table_for_insert (a UInt8, b UInt8) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo "INSERT INTO test.table_for_insert VALUES `printf '%*s' "1000000" | sed 's/ /(1, 2)/g'`" | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'SELECT count(*) FROM test.table_for_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- -echo 'DROP TABLE IF EXISTS test.table_for_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'DROP TABLE IF EXISTS table_for_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'CREATE TABLE table_for_insert (a UInt8, b UInt8) ENGINE = Memory' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo "INSERT INTO table_for_insert VALUES `printf '%*s' "1000000" | sed 's/ /(1, 2)/g'`" | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'SELECT count(*) FROM table_for_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- +echo 'DROP TABLE IF EXISTS table_for_insert' | ${CLICKHOUSE_CURL} -sSg ${CLICKHOUSE_URL} -d @- diff --git a/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql b/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql index d622b1acd76..cb872eb8733 100644 --- a/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql +++ b/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql @@ -109,36 +109,36 @@ SELECT arrayEnumerateDenseRanked(1, [[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3], select '---------table'; -DROP TABLE IF EXISTS test.arrays_test; -CREATE TABLE test.arrays_test (a1 Array(UInt16), a2 Array(UInt16), a3 Array(Array(UInt16)), a4 Array(Array(UInt16)) ) ENGINE = Memory; +DROP TABLE IF EXISTS arrays_test; +CREATE TABLE arrays_test (a1 Array(UInt16), a2 Array(UInt16), a3 Array(Array(UInt16)), a4 Array(Array(UInt16)) ) ENGINE = Memory; ---INSERT INTO test.arrays_test VALUES ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([1,2,4], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,5,4],[2,2,1],[3]]), ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]); -INSERT INTO test.arrays_test VALUES ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([21,22,24], [22,22,21], [[21,22,23,24],[22,22,21],[23]], [[21,22,25,24],[22,22,21],[23]]), ([31,32,33], [32,32,31], [[31,32,33,34],[32,32,31],[33]], [[31,32,34,34],[32,32,31],[33]]), ([41,42,43], [42,42,41], [[41,42,43,44],[42,42,41],[43]], [[41,42,44,44],[42,42,41],[43]]); ---INSERT INTO test.arrays_test VALUES ([1,2,3], [1,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([21,22,24], [21,22,21], [[21,22,23,24],[22,22,21],[23]], [[21,22,25,24],[22,22,21],[23]]); -INSERT INTO test.arrays_test VALUES ([1,1,1], [1,1,1], [[1,1,1],[1,1,1],[1]], [[1,1,1],[1,1,1],[1]]); -INSERT INTO test.arrays_test VALUES ([1,2,3], [4,5,6], [[7,8,9],[10,11,12],[13]], [[14,15,16],[17,18,19],[20]]); +--INSERT INTO arrays_test VALUES ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([1,2,4], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,5,4],[2,2,1],[3]]), ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]); +INSERT INTO arrays_test VALUES ([1,2,3], [2,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([21,22,24], [22,22,21], [[21,22,23,24],[22,22,21],[23]], [[21,22,25,24],[22,22,21],[23]]), ([31,32,33], [32,32,31], [[31,32,33,34],[32,32,31],[33]], [[31,32,34,34],[32,32,31],[33]]), ([41,42,43], [42,42,41], [[41,42,43,44],[42,42,41],[43]], [[41,42,44,44],[42,42,41],[43]]); +--INSERT INTO arrays_test VALUES ([1,2,3], [1,2,1], [[1,2,3,4],[2,2,1],[3]], [[1,2,4,4],[2,2,1],[3]]), ([21,22,24], [21,22,21], [[21,22,23,24],[22,22,21],[23]], [[21,22,25,24],[22,22,21],[23]]); +INSERT INTO arrays_test VALUES ([1,1,1], [1,1,1], [[1,1,1],[1,1,1],[1]], [[1,1,1],[1,1,1],[1]]); +INSERT INTO arrays_test VALUES ([1,2,3], [4,5,6], [[7,8,9],[10,11,12],[13]], [[14,15,16],[17,18,19],[20]]); -SELECT * FROM test.arrays_test ORDER BY a1, a2; +SELECT * FROM arrays_test ORDER BY a1, a2; select '---------GO1'; -SELECT '1,a1,1', arrayEnumerateUniqRanked(1,a1,1) FROM test.arrays_test ORDER BY a1, a2; -SELECT '1,a2,1', arrayEnumerateUniqRanked(1,a2,1) FROM test.arrays_test ORDER BY a1, a2; -SELECT '1,a3,1', arrayEnumerateUniqRanked(1,a3,1) FROM test.arrays_test ORDER BY a1, a2; -SELECT '1,a4,1', arrayEnumerateUniqRanked(1,a4,1) FROM test.arrays_test ORDER BY a1, a2; +SELECT '1,a1,1', arrayEnumerateUniqRanked(1,a1,1) FROM arrays_test ORDER BY a1, a2; +SELECT '1,a2,1', arrayEnumerateUniqRanked(1,a2,1) FROM arrays_test ORDER BY a1, a2; +SELECT '1,a3,1', arrayEnumerateUniqRanked(1,a3,1) FROM arrays_test ORDER BY a1, a2; +SELECT '1,a4,1', arrayEnumerateUniqRanked(1,a4,1) FROM arrays_test ORDER BY a1, a2; SELECT 'arrayEnumerateUniqRanked(1,a1,1,a2,1) ='; -SELECT '1,a1,1,a2,1', arrayEnumerateUniqRanked(1,a1,1,a2,1) FROM test.arrays_test ORDER BY a1, a2; +SELECT '1,a1,1,a2,1', arrayEnumerateUniqRanked(1,a1,1,a2,1) FROM arrays_test ORDER BY a1, a2; select 'arrayEnumerateUniq(a1, a2) ='; -SELECT arrayEnumerateUniq(a1, a2) FROM test.arrays_test ORDER BY a1, a2; +SELECT arrayEnumerateUniq(a1, a2) FROM arrays_test ORDER BY a1, a2; select '---------GO2'; -SELECT '1,a3,1,a4,1', arrayEnumerateUniqRanked(1,a3,1,a4,1) FROM test.arrays_test ORDER BY a1, a2; -SELECT '1,a3,2,a4,1', arrayEnumerateUniqRanked(1,a3,2,a4,1) FROM test.arrays_test ORDER BY a1, a2; -SELECT '1,a3,1,a4,2', arrayEnumerateUniqRanked(1,a3,1,a4,2) FROM test.arrays_test ORDER BY a1, a2; -SELECT '1,a3,2,a4,2', arrayEnumerateUniqRanked(1,a3,2,a4,2) FROM test.arrays_test ORDER BY a1, a2; -SELECT '2,a3,2,a4,2', arrayEnumerateUniqRanked(2,a3,2,a4,2) FROM test.arrays_test ORDER BY a1, a2; -SELECT '2,a3,2,a4,1', arrayEnumerateUniqRanked(2,a3,2,a4,1) FROM test.arrays_test ORDER BY a1, a2; -SELECT '2,a3,1,a4,2', arrayEnumerateUniqRanked(2,a3,1,a4,2) FROM test.arrays_test ORDER BY a1, a2; +SELECT '1,a3,1,a4,1', arrayEnumerateUniqRanked(1,a3,1,a4,1) FROM arrays_test ORDER BY a1, a2; +SELECT '1,a3,2,a4,1', arrayEnumerateUniqRanked(1,a3,2,a4,1) FROM arrays_test ORDER BY a1, a2; +SELECT '1,a3,1,a4,2', arrayEnumerateUniqRanked(1,a3,1,a4,2) FROM arrays_test ORDER BY a1, a2; +SELECT '1,a3,2,a4,2', arrayEnumerateUniqRanked(1,a3,2,a4,2) FROM arrays_test ORDER BY a1, a2; +SELECT '2,a3,2,a4,2', arrayEnumerateUniqRanked(2,a3,2,a4,2) FROM arrays_test ORDER BY a1, a2; +SELECT '2,a3,2,a4,1', arrayEnumerateUniqRanked(2,a3,2,a4,1) FROM arrays_test ORDER BY a1, a2; +SELECT '2,a3,1,a4,2', arrayEnumerateUniqRanked(2,a3,1,a4,2) FROM arrays_test ORDER BY a1, a2; select '---------END'; -DROP TABLE test.arrays_test; +DROP TABLE arrays_test; select '---------BAD'; SELECT arrayEnumerateUniqRanked(); -- { serverError 42 } diff --git a/dbms/tests/queries/0_stateless/00909_ngram_distance.sql b/dbms/tests/queries/0_stateless/00909_ngram_distance.sql index 867e69f4fe7..ea7bd252fc7 100644 --- a/dbms/tests/queries/0_stateless/00909_ngram_distance.sql +++ b/dbms/tests/queries/0_stateless/00909_ngram_distance.sql @@ -14,17 +14,17 @@ select round(1000 * ngramDistanceUTF8('абвгдеёжз', 'абвгдеёж')) select round(1000 * ngramDistanceUTF8('абвгдеёжз', 'гдеёзд')); select round(1000 * ngramDistanceUTF8('абвгдеёжз', 'ёёёёёёёё')); -drop table if exists test.test_distance; -create table test.test_distance (Title String) engine = Memory; -insert into test.test_distance values ('привет как дела?... Херсон'), ('привет как дела клип - Яндекс.Видео'), ('привет'), ('пап привет как дела - Яндекс.Видео'), ('привет братан как дела - Яндекс.Видео'), ('http://metric.ru/'), ('http://autometric.ru/'), ('http://metrica.yandex.com/'), ('http://metris.ru/'), ('http://metrika.ru/'), (''); +drop table if exists test_distance; +create table test_distance (Title String) engine = Memory; +insert into test_distance values ('привет как дела?... Херсон'), ('привет как дела клип - Яндекс.Видео'), ('привет'), ('пап привет как дела - Яндекс.Видео'), ('привет братан как дела - Яндекс.Видео'), ('http://metric.ru/'), ('http://autometric.ru/'), ('http://metrica.yandex.com/'), ('http://metris.ru/'), ('http://metrika.ru/'), (''); -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'привет как дела') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'как привет дела') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'metrika') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'metrica') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'metriks') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'metrics') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceUTF8(Title, 'yandex') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'привет как дела') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'как привет дела') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'metrika') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'metrica') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'metriks') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'metrics') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceUTF8(Title, 'yandex') as distance; select round(1000 * ngramDistanceCaseInsensitiveUTF8(materialize(''), '')) from system.numbers limit 5; @@ -43,15 +43,15 @@ select round(1000 * ngramDistanceCaseInsensitiveUTF8('аБВГдеёЖз', 'Аб select round(1000 * ngramDistanceCaseInsensitiveUTF8('абвгдеёжз', 'гдеёЗД')); select round(1000 * ngramDistanceCaseInsensitiveUTF8('АБВГДеёжз', 'ЁЁЁЁЁЁЁЁ')); -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'ПрИвЕт кАК ДЕЛа') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'как ПРИВЕТ дела') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'metrika') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'Metrika') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'mEtrica') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'metriKS') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'metrics') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'YanDEX') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'приВЕТ КАк ДеЛа КлИп - яндеКс.видео') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'ПрИвЕт кАК ДЕЛа') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'как ПРИВЕТ дела') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'metrika') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'Metrika') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'mEtrica') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'metriKS') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'metrics') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'YanDEX') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitiveUTF8(Title, 'приВЕТ КАк ДеЛа КлИп - яндеКс.видео') as distance; select round(1000 * ngramDistance(materialize(''), '')) from system.numbers limit 5; @@ -70,13 +70,13 @@ select round(1000 * ngramDistance('abcdefgh', 'abcdefg')); select round(1000 * ngramDistance('abcdefgh', 'defgh')); select round(1000 * ngramDistance('abcdefgh', 'aaaaaaaa')); -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'привет как дела') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'как привет дела') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'metrika') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'metrica') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'metriks') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'metrics') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistance(Title, 'yandex') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'привет как дела') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'как привет дела') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'metrika') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'metrica') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'metriks') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'metrics') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistance(Title, 'yandex') as distance; select round(1000 * ngramDistanceCaseInsensitive(materialize(''), '')) from system.numbers limit 5; select round(1000 * ngramDistanceCaseInsensitive(materialize('abc'), '')) from system.numbers limit 5; @@ -94,13 +94,13 @@ select round(1000 * ngramDistanceCaseInsensitive('abcdefgh', 'abcdeFG')); select round(1000 * ngramDistanceCaseInsensitive('AAAAbcdefgh', 'defgh')); select round(1000 * ngramDistanceCaseInsensitive('ABCdefgH', 'aaaaaaaa')); -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'ПрИвЕт кАК ДЕЛа') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'как ПРИВЕТ дела') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'metrika') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'Metrika') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'mEtrica') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'metriKS') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'metrics') as distance; -SELECT Title, round(1000 * distance) FROM test.test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'YanDEX') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'ПрИвЕт кАК ДЕЛа') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'как ПРИВЕТ дела') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'metrika') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'Metrika') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'mEtrica') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'metriKS') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'metrics') as distance; +SELECT Title, round(1000 * distance) FROM test_distance ORDER BY ngramDistanceCaseInsensitive(Title, 'YanDEX') as distance; -drop table if exists test.test_distance; +drop table if exists test_distance; diff --git a/dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql b/dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql index f18d6b89594..bec1a23a5da 100644 --- a/dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql +++ b/dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql @@ -1,5 +1,3 @@ -USE test; - select groupArray(s) from (select sum(n) s from (select toDecimal32(1, 2) as n)); select groupArray(s) from (select sum(n) s from (select toDecimal64(1, 5) as n)); select groupArray(s) from (select sum(n) s from (select toDecimal128(1, 10) as n)); diff --git a/dbms/tests/queries/0_stateless/00913_many_threads.sql b/dbms/tests/queries/0_stateless/00913_many_threads.sql index fa567582b21..7714a1ab782 100644 --- a/dbms/tests/queries/0_stateless/00913_many_threads.sql +++ b/dbms/tests/queries/0_stateless/00913_many_threads.sql @@ -1,6 +1,8 @@ -- This test creates many threads to test a case when ThreadPool will remove some threads from pool after job is done. SET max_block_size = 1, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0; +USE test; + CREATE TEMPORARY TABLE t (x UInt64); INSERT INTO t SELECT * FROM system.numbers LIMIT 1500; diff --git a/dbms/tests/queries/0_stateless/00914_join_bgranvea.sql b/dbms/tests/queries/0_stateless/00914_join_bgranvea.sql index 4f7820efbbb..11cd082a660 100644 --- a/dbms/tests/queries/0_stateless/00914_join_bgranvea.sql +++ b/dbms/tests/queries/0_stateless/00914_join_bgranvea.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS table1; DROP TABLE IF EXISTS table2; diff --git a/dbms/tests/queries/0_stateless/00916_add_materialized_column_after.sql b/dbms/tests/queries/0_stateless/00916_add_materialized_column_after.sql index 125872a9510..b52a471b2b7 100644 --- a/dbms/tests/queries/0_stateless/00916_add_materialized_column_after.sql +++ b/dbms/tests/queries/0_stateless/00916_add_materialized_column_after.sql @@ -1,8 +1,8 @@ -DROP TABLE IF EXISTS test.add_materialized_column_after; +DROP TABLE IF EXISTS add_materialized_column_after; -CREATE TABLE test.add_materialized_column_after (x UInt32, z UInt64) ENGINE MergeTree ORDER BY x; -ALTER TABLE test.add_materialized_column_after ADD COLUMN y MATERIALIZED toString(x) AFTER x; +CREATE TABLE add_materialized_column_after (x UInt32, z UInt64) ENGINE MergeTree ORDER BY x; +ALTER TABLE add_materialized_column_after ADD COLUMN y MATERIALIZED toString(x) AFTER x; -DESC TABLE test.add_materialized_column_after; +DESC TABLE add_materialized_column_after; -DROP TABLE test.add_materialized_column_after; +DROP TABLE add_materialized_column_after; diff --git a/dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql b/dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql index cf227ef0e8b..9b59799ad27 100644 --- a/dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql +++ b/dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS ANIMAL; CREATE TABLE ANIMAL ( ANIMAL Nullable(String) ) engine = TinyLog; diff --git a/dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql b/dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql index 6903209c5c4..a79462bf77f 100644 --- a/dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql +++ b/dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql @@ -1,9 +1,9 @@ -DROP TABLE IF EXISTS test.replicated_optimize1; -DROP TABLE IF EXISTS test.replicated_optimize2; -CREATE TABLE test.replicated_optimize1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/optimize', 'r1', d, k, 8192); -CREATE TABLE test.replicated_optimize2 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/optimize', 'r2', d, k, 8192); +DROP TABLE IF EXISTS replicated_optimize1; +DROP TABLE IF EXISTS replicated_optimize2; +CREATE TABLE replicated_optimize1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/optimize', 'r1', d, k, 8192); +CREATE TABLE replicated_optimize2 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/test/optimize', 'r2', d, k, 8192); -OPTIMIZE TABLE test.replicated_optimize1 FINAL; +OPTIMIZE TABLE replicated_optimize1 FINAL; -DROP TABLE test.replicated_optimize1; -DROP TABLE test.replicated_optimize2; +DROP TABLE replicated_optimize1; +DROP TABLE replicated_optimize2; diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.sql b/dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.sql index a813f2fa410..281a81d51c0 100644 --- a/dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.sql +++ b/dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS A; DROP TABLE IF EXISTS B; diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_long.sql b/dbms/tests/queries/0_stateless/00927_asof_join_long.sql index ea9ca430c09..eb6eabfa4b9 100644 --- a/dbms/tests/queries/0_stateless/00927_asof_join_long.sql +++ b/dbms/tests/queries/0_stateless/00927_asof_join_long.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS tvs; CREATE TABLE tvs(k UInt32, t UInt32, tv UInt64) ENGINE = Memory; diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql b/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql index c7934c7c7c0..50644352b64 100644 --- a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql +++ b/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql @@ -1,5 +1,3 @@ -USE test; - DROP TABLE IF EXISTS A; DROP TABLE IF EXISTS B; diff --git a/dbms/tests/queries/0_stateless/00927_asof_joins.sql b/dbms/tests/queries/0_stateless/00927_asof_joins.sql index a2781b70df0..2dd6ca07b15 100644 --- a/dbms/tests/queries/0_stateless/00927_asof_joins.sql +++ b/dbms/tests/queries/0_stateless/00927_asof_joins.sql @@ -1,15 +1,13 @@ -USE test; - DROP TABLE IF EXISTS md; DROP TABLE IF EXISTS tv; CREATE TABLE md(key UInt32, t DateTime, bid Float64, ask Float64) ENGINE = MergeTree() ORDER BY (key, t); -INSERT INTO test.md(key,t,bid,ask) VALUES (1,20,7,8),(1,5,1,2),(1,10,11,12),(1,15,5,6); -INSERT INTO test.md(key,t,bid,ask) VALUES (2,20,17,18),(2,5,11,12),(2,10,21,22),(2,15,5,6); +INSERT INTO md(key,t,bid,ask) VALUES (1,20,7,8),(1,5,1,2),(1,10,11,12),(1,15,5,6); +INSERT INTO md(key,t,bid,ask) VALUES (2,20,17,18),(2,5,11,12),(2,10,21,22),(2,15,5,6); CREATE TABLE tv(key UInt32, t DateTime, tv Float64) ENGINE = MergeTree() ORDER BY (key, t); -INSERT INTO test.tv(key,t,tv) VALUES (1,5,1.5),(1,6,1.51),(1,10,11.5),(1,11,11.51),(1,15,5.5),(1,16,5.6),(1,20,7.5); -INSERT INTO test.tv(key,t,tv) VALUES (2,5,2.5),(2,6,2.51),(2,10,12.5),(2,11,12.51),(2,15,6.5),(2,16,5.6),(2,20,8.5); +INSERT INTO tv(key,t,tv) VALUES (1,5,1.5),(1,6,1.51),(1,10,11.5),(1,11,11.51),(1,15,5.5),(1,16,5.6),(1,20,7.5); +INSERT INTO tv(key,t,tv) VALUES (2,5,2.5),(2,6,2.51),(2,10,12.5),(2,11,12.51),(2,15,6.5),(2,16,5.6),(2,20,8.5); SELECT tv.key, toString(tv.t, 'UTC'), md.bid, tv.tv, md.ask FROM tv ASOF LEFT JOIN md USING(key,t) ORDER BY (tv.key, tv.t); diff --git a/dbms/tests/queries/0_stateless/00927_table_filter.sql b/dbms/tests/queries/0_stateless/00927_table_filter.sql index 0997e343fad..af9cfa11d59 100644 --- a/dbms/tests/queries/0_stateless/00927_table_filter.sql +++ b/dbms/tests/queries/0_stateless/00927_table_filter.sql @@ -3,42 +3,42 @@ DROP TABLE IF EXISTS filtered_table2; DROP TABLE IF EXISTS filtered_table3; -- Filter: a = 1, values: (1, 0), (1, 1) -CREATE TABLE test.filtered_table1 (a UInt8, b UInt8) ENGINE MergeTree ORDER BY a; -INSERT INTO test.filtered_table1 values (0, 0), (0, 1), (1, 0), (1, 1); +CREATE TABLE filtered_table1 (a UInt8, b UInt8) ENGINE MergeTree ORDER BY a; +INSERT INTO filtered_table1 values (0, 0), (0, 1), (1, 0), (1, 1); -- Filter: a + b < 1 or c - d > 5, values: (0, 0, 0, 0), (0, 0, 6, 0) -CREATE TABLE test.filtered_table2 (a UInt8, b UInt8, c UInt8, d UInt8) ENGINE MergeTree ORDER BY a; -INSERT INTO test.filtered_table2 values (0, 0, 0, 0), (1, 2, 3, 4), (4, 3, 2, 1), (0, 0, 6, 0); +CREATE TABLE filtered_table2 (a UInt8, b UInt8, c UInt8, d UInt8) ENGINE MergeTree ORDER BY a; +INSERT INTO filtered_table2 values (0, 0, 0, 0), (1, 2, 3, 4), (4, 3, 2, 1), (0, 0, 6, 0); -- Filter: c = 1, values: (0, 1), (1, 0) -CREATE TABLE test.filtered_table3 (a UInt8, b UInt8, c UInt16 ALIAS a + b) ENGINE MergeTree ORDER BY a; -INSERT INTO test.filtered_table3 values (0, 0), (0, 1), (1, 0), (1, 1); +CREATE TABLE filtered_table3 (a UInt8, b UInt8, c UInt16 ALIAS a + b) ENGINE MergeTree ORDER BY a; +INSERT INTO filtered_table3 values (0, 0), (0, 1), (1, 0), (1, 1); SELECT '-- PREWHERE should fail'; -SELECT * FROM test.filtered_table1 PREWHERE 1; -- { serverError 182 } -SELECT * FROM test.filtered_table2 PREWHERE 1; -- { serverError 182 } -SELECT * FROM test.filtered_table3 PREWHERE 1; -- { serverError 182 } +SELECT * FROM filtered_table1 PREWHERE 1; -- { serverError 182 } +SELECT * FROM filtered_table2 PREWHERE 1; -- { serverError 182 } +SELECT * FROM filtered_table3 PREWHERE 1; -- { serverError 182 } -SELECT * FROM test.filtered_table1; -SELECT * FROM test.filtered_table2; -SELECT * FROM test.filtered_table3; +SELECT * FROM filtered_table1; +SELECT * FROM filtered_table2; +SELECT * FROM filtered_table3; -SELECT a FROM test.filtered_table1; -SELECT b FROM test.filtered_table1; -SELECT a FROM test.filtered_table1 WHERE a = 1; -SELECT a = 1 FROM test.filtered_table1; +SELECT a FROM filtered_table1; +SELECT b FROM filtered_table1; +SELECT a FROM filtered_table1 WHERE a = 1; +SELECT a = 1 FROM filtered_table1; -SELECT a FROM test.filtered_table3; -SELECT b FROM test.filtered_table3; -SELECT c FROM test.filtered_table3; -SELECT a + b FROM test.filtered_table3; -SELECT a FROM test.filtered_table3 WHERE c = 1; -SELECT c = 1 FROM test.filtered_table3; -SELECT a + b = 1 FROM test.filtered_table3; +SELECT a FROM filtered_table3; +SELECT b FROM filtered_table3; +SELECT c FROM filtered_table3; +SELECT a + b FROM filtered_table3; +SELECT a FROM filtered_table3 WHERE c = 1; +SELECT c = 1 FROM filtered_table3; +SELECT a + b = 1 FROM filtered_table3; -SELECT * FROM test.filtered_table1 as t1 ANY LEFT JOIN test.filtered_table1 as t2 ON t1.a = t2.b; -SELECT * FROM test.filtered_table1 as t2 ANY RIGHT JOIN test.filtered_table1 as t1 ON t2.b = t1.a; +SELECT * FROM filtered_table1 as t1 ANY LEFT JOIN filtered_table1 as t2 ON t1.a = t2.b; +SELECT * FROM filtered_table1 as t2 ANY RIGHT JOIN filtered_table1 as t1 ON t2.b = t1.a; -DROP TABLE test.filtered_table1; -DROP TABLE test.filtered_table2; -DROP TABLE test.filtered_table3; +DROP TABLE filtered_table1; +DROP TABLE filtered_table2; +DROP TABLE filtered_table3; diff --git a/dbms/tests/queries/0_stateless/00930_arrayIntersect.sql b/dbms/tests/queries/0_stateless/00930_arrayIntersect.sql index f034c74a62c..e5eee83b337 100644 --- a/dbms/tests/queries/0_stateless/00930_arrayIntersect.sql +++ b/dbms/tests/queries/0_stateless/00930_arrayIntersect.sql @@ -1,27 +1,27 @@ -drop table if exists test.array_intersect; +drop table if exists array_intersect; -create table test.array_intersect (date Date, arr Array(UInt8)) engine=MergeTree partition by date order by date; +create table array_intersect (date Date, arr Array(UInt8)) engine=MergeTree partition by date order by date; -insert into test.array_intersect values ('2019-01-01', [1,2,3]); -insert into test.array_intersect values ('2019-01-01', [1,2]); -insert into test.array_intersect values ('2019-01-01', [1]); -insert into test.array_intersect values ('2019-01-01', []); +insert into array_intersect values ('2019-01-01', [1,2,3]); +insert into array_intersect values ('2019-01-01', [1,2]); +insert into array_intersect values ('2019-01-01', [1]); +insert into array_intersect values ('2019-01-01', []); -select arrayIntersect(arr, [1,2]) from test.array_intersect order by arr; -select arrayIntersect(arr, []) from test.array_intersect order by arr; -select arrayIntersect([], arr) from test.array_intersect order by arr; -select arrayIntersect([1,2], arr) from test.array_intersect order by arr; -select arrayIntersect([1,2], [1,2,3,4]) from test.array_intersect order by arr; -select arrayIntersect([], []) from test.array_intersect order by arr; +select arrayIntersect(arr, [1,2]) from array_intersect order by arr; +select arrayIntersect(arr, []) from array_intersect order by arr; +select arrayIntersect([], arr) from array_intersect order by arr; +select arrayIntersect([1,2], arr) from array_intersect order by arr; +select arrayIntersect([1,2], [1,2,3,4]) from array_intersect order by arr; +select arrayIntersect([], []) from array_intersect order by arr; -optimize table test.array_intersect; +optimize table array_intersect; -select arrayIntersect(arr, [1,2]) from test.array_intersect order by arr; -select arrayIntersect(arr, []) from test.array_intersect order by arr; -select arrayIntersect([], arr) from test.array_intersect order by arr; -select arrayIntersect([1,2], arr) from test.array_intersect order by arr; -select arrayIntersect([1,2], [1,2,3,4]) from test.array_intersect order by arr; -select arrayIntersect([], []) from test.array_intersect order by arr; +select arrayIntersect(arr, [1,2]) from array_intersect order by arr; +select arrayIntersect(arr, []) from array_intersect order by arr; +select arrayIntersect([], arr) from array_intersect order by arr; +select arrayIntersect([1,2], arr) from array_intersect order by arr; +select arrayIntersect([1,2], [1,2,3,4]) from array_intersect order by arr; +select arrayIntersect([], []) from array_intersect order by arr; -drop table if exists test.array_intersect; +drop table if exists array_intersect; diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql b/dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql index 04089aef377..3c4fe033db1 100644 --- a/dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql +++ b/dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql @@ -1,8 +1,8 @@ -drop table if exists test.lc; +drop table if exists lc; -CREATE TABLE test.lc (`date` Date, `name` LowCardinality(Nullable(String)), `clicks` Nullable(Int32)) ENGINE = MergeTree() ORDER BY date SETTINGS index_granularity = 8192; -INSERT INTO test.lc SELECT '2019-01-01', null, 0 FROM numbers(1000000); -SELECT date, argMax(name, clicks) FROM test.lc GROUP BY date; +CREATE TABLE lc (`date` Date, `name` LowCardinality(Nullable(String)), `clicks` Nullable(Int32)) ENGINE = MergeTree() ORDER BY date SETTINGS index_granularity = 8192; +INSERT INTO lc SELECT '2019-01-01', null, 0 FROM numbers(1000000); +SELECT date, argMax(name, clicks) FROM lc GROUP BY date; -drop table if exists test.lc; +drop table if exists lc; diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql b/dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql index 8c9e6070673..039ba0c0b53 100644 --- a/dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql +++ b/dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql @@ -1,7 +1,7 @@ -drop table if exists test.lc; -create table test.lc (key UInt64, value Array(LowCardinality(String))) engine = MergeTree order by key; -insert into test.lc select number, if(number < 10000 or number > 100000, [toString(number)], emptyArrayString()) from system.numbers limit 200000; -select * from test.lc where (key < 100 or key > 50000) and not has(value, toString(key)) and length(value) == 1 limit 10 settings max_block_size = 8192, max_threads = 1; +drop table if exists lc; +create table lc (key UInt64, value Array(LowCardinality(String))) engine = MergeTree order by key; +insert into lc select number, if(number < 10000 or number > 100000, [toString(number)], emptyArrayString()) from system.numbers limit 200000; +select * from lc where (key < 100 or key > 50000) and not has(value, toString(key)) and length(value) == 1 limit 10 settings max_block_size = 8192, max_threads = 1; -drop table if exists test.lc; +drop table if exists lc; diff --git a/dbms/tests/queries/0_stateless/00933_reserved_word.sql b/dbms/tests/queries/0_stateless/00933_reserved_word.sql index 8e463fbffb9..447a618bfc9 100644 --- a/dbms/tests/queries/0_stateless/00933_reserved_word.sql +++ b/dbms/tests/queries/0_stateless/00933_reserved_word.sql @@ -1,7 +1,7 @@ -DROP TABLE IF EXISTS test.reserved_word_table; -CREATE TABLE test.reserved_word_table (`index` UInt8) ENGINE = MergeTree ORDER BY `index`; +DROP TABLE IF EXISTS reserved_word_table; +CREATE TABLE reserved_word_table (`index` UInt8) ENGINE = MergeTree ORDER BY `index`; -DETACH TABLE test.reserved_word_table; -ATTACH TABLE test.reserved_word_table; +DETACH TABLE reserved_word_table; +ATTACH TABLE reserved_word_table; -DROP TABLE test.reserved_word_table; +DROP TABLE reserved_word_table; diff --git a/dbms/tests/queries/shell_config.sh b/dbms/tests/queries/shell_config.sh index fc945b622d8..ec65f148b01 100644 --- a/dbms/tests/queries/shell_config.sh +++ b/dbms/tests/queries/shell_config.sh @@ -36,6 +36,7 @@ export CLICKHOUSE_PORT_HTTPS=${CLICKHOUSE_PORT_HTTPS:="8443"} export CLICKHOUSE_PORT_HTTP_PROTO=${CLICKHOUSE_PORT_HTTP_PROTO:="http"} export CLICKHOUSE_URL=${CLICKHOUSE_URL:="${CLICKHOUSE_PORT_HTTP_PROTO}://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT_HTTP}/"} export CLICKHOUSE_URL_HTTPS=${CLICKHOUSE_URL_HTTPS:="https://${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT_HTTPS}/"} +export CLICKHOUSE_URL_PARAMS=${CLICKHOUSE_URL_PARAMS:="${CLICKHOUSE_URL}?database=${CLICKHOUSE_DATABASE}"} export CLICKHOUSE_CURL_COMMAND=${CLICKHOUSE_CURL_COMMAND:="curl"} export CLICKHOUSE_CURL=${CLICKHOUSE_CURL:="${CLICKHOUSE_CURL_COMMAND} --max-time 10"} export CLICKHOUSE_TMP=${CLICKHOUSE_TMP:="."}