mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Better tests for parallel run
This commit is contained in:
parent
46991b8c66
commit
ba05bb1b39
@ -90,7 +90,7 @@ do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
TESTS_TO_SKIP="parquet avro h3 odbc mysql sha256 _orc_ arrow 01098_temporary_and_external_tables 01083_expressions_in_engine_arguments hdfs 00911_tautological_compare protobuf capnproto java_hash hashing secure 00490_special_line_separators_and_characters_outside_of_bmp 00436_convert_charset 00105_shard_collations 01354_order_by_tuple_collate_const 01292_create_user 01098_msgpack_format 00929_multi_match_edit_distance 00926_multimatch 00834_cancel_http_readonly_queries_on_client_close brotli parallel_alter"
|
||||
TESTS_TO_SKIP="parquet avro h3 odbc mysql sha256 _orc_ arrow 01098_temporary_and_external_tables 01083_expressions_in_engine_arguments hdfs 00911_tautological_compare protobuf capnproto java_hash hashing secure 00490_special_line_separators_and_characters_outside_of_bmp 00436_convert_charset 00105_shard_collations 01354_order_by_tuple_collate_const 01292_create_user 01098_msgpack_format 00929_multi_match_edit_distance 00926_multimatch 00834_cancel_http_readonly_queries_on_client_close brotli parallel_alter 00302_http_compression 00417_kill_query 01294_lazy_database_concurrent"
|
||||
|
||||
clickhouse-test -j 4 --no-long --testname --shard --zookeeper --skip $TESTS_TO_SKIP 2>&1 | ts '%Y-%m-%d %H:%M:%S' | tee /test_output/test_log.txt
|
||||
|
||||
|
@ -62,7 +62,7 @@ SELECT count(), sum(d) FROM dst;
|
||||
|
||||
SELECT 'OPTIMIZE';
|
||||
SELECT count(), sum(d), uniqExact(_part) FROM dst;
|
||||
SYSTEM START MERGES;
|
||||
SYSTEM START MERGES dst;
|
||||
SET optimize_throw_if_noop=1;
|
||||
OPTIMIZE TABLE dst;
|
||||
SELECT count(), sum(d), uniqExact(_part) FROM dst;
|
||||
|
@ -25,9 +25,15 @@ ${CLICKHOUSE_CLIENT} --query="CREATE TABLE fixed_string_test_table (val FixedStr
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE signed_integer_test_table (val Int32) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1, index_granularity_bytes = 0;"
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE unsigned_integer_test_table (val UInt32) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1, index_granularity_bytes = 0;"
|
||||
${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, index_granularity_bytes = 0;"
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE date_test_table (val Date) ENGINE = MergeTree ORDER BY val SETTINGS index_granularity = 1, index_granularity_bytes = 0;"
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES;"
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES string_test_table;"
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES fixed_string_test_table;"
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES signed_integer_test_table;"
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES unsigned_integer_test_table;"
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES enum_test_table;"
|
||||
${CLICKHOUSE_CLIENT} --query="SYSTEM STOP MERGES date_test_table;"
|
||||
|
||||
${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');"
|
||||
@ -80,5 +86,3 @@ ${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;"
|
||||
|
@ -1,13 +1,13 @@
|
||||
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;
|
||||
SYSTEM STOP MERGES sites;
|
||||
|
||||
INSERT INTO sites VALUES (1,[1],[[]]);
|
||||
INSERT INTO sites VALUES (2,[1],[['2018-06-22']]);
|
||||
|
||||
SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM sites;
|
||||
SYSTEM START MERGES;
|
||||
SYSTEM START MERGES sites;
|
||||
OPTIMIZE TABLE sites FINAL;
|
||||
SELECT count(), countArray(Users.Dates), countArrayArray(Users.Dates) FROM sites;
|
||||
|
||||
|
@ -2,7 +2,7 @@ DROP TABLE IF EXISTS mt;
|
||||
|
||||
CREATE TABLE mt (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS max_part_removal_threads = 16, cleanup_delay_period = 1, cleanup_delay_period_random_add = 0, old_parts_lifetime = 1, parts_to_delay_insert = 100000, parts_to_throw_insert = 100000;
|
||||
|
||||
SYSTEM STOP MERGES;
|
||||
SYSTEM STOP MERGES mt;
|
||||
|
||||
SET max_block_size = 1, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
|
||||
INSERT INTO mt SELECT * FROM numbers(1000);
|
||||
@ -10,7 +10,7 @@ SET max_block_size = 65536;
|
||||
|
||||
SELECT count(), sum(x) FROM mt;
|
||||
|
||||
SYSTEM START MERGES;
|
||||
SYSTEM START MERGES mt;
|
||||
OPTIMIZE TABLE mt FINAL;
|
||||
|
||||
SELECT count(), sum(x) FROM mt;
|
||||
|
@ -2,7 +2,7 @@ DROP TABLE IF EXISTS mt;
|
||||
|
||||
CREATE TABLE mt (x UInt64) ENGINE = MergeTree ORDER BY x SETTINGS max_part_loading_threads = 16, parts_to_delay_insert = 100000, parts_to_throw_insert = 100000;
|
||||
|
||||
SYSTEM STOP MERGES;
|
||||
SYSTEM STOP MERGES mt;
|
||||
|
||||
SET max_block_size = 1, min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
|
||||
INSERT INTO mt SELECT * FROM numbers(1000);
|
||||
@ -15,5 +15,5 @@ ATTACH TABLE mt;
|
||||
|
||||
SELECT count(), sum(x) FROM mt;
|
||||
|
||||
SYSTEM START MERGES;
|
||||
SYSTEM START MERGES mt;
|
||||
DROP TABLE mt;
|
||||
|
@ -76,7 +76,9 @@ AS
|
||||
GROUP BY id;
|
||||
|
||||
-- This query has effect only for existing tables, so it must be located after CREATE.
|
||||
SYSTEM STOP MERGES;
|
||||
SYSTEM STOP MERGES target_table;
|
||||
SYSTEM STOP MERGES checkouts;
|
||||
SYSTEM STOP MERGES logins;
|
||||
|
||||
-- feed with some initial values
|
||||
INSERT INTO logins SELECT number as id, '2000-01-01 08:00:00' from numbers(50000);
|
||||
@ -126,5 +128,3 @@ DROP TABLE IF EXISTS mv_logins2target;
|
||||
DROP TABLE IF EXISTS checkouts;
|
||||
DROP TABLE IF EXISTS mv_checkouts2target;
|
||||
DROP TABLE target_table;
|
||||
|
||||
SYSTEM START MERGES;
|
||||
|
@ -24,7 +24,7 @@ $CLICKHOUSE_CLIENT --query "INSERT INTO table_for_rename_replicated SELECT toDat
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SELECT value1 FROM table_for_rename_replicated WHERE key = 1;"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SYSTEM STOP MERGES;"
|
||||
$CLICKHOUSE_CLIENT --query "SYSTEM STOP MERGES table_for_rename_replicated;"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SHOW CREATE TABLE table_for_rename_replicated;"
|
||||
|
||||
@ -49,7 +49,7 @@ $CLICKHOUSE_CLIENT --query "SELECT renamed_value1 FROM table_for_rename_replicat
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SELECT * FROM table_for_rename_replicated WHERE key = 1 FORMAT TSVWithNames;"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SYSTEM START MERGES;"
|
||||
$CLICKHOUSE_CLIENT --query "SYSTEM START MERGES table_for_rename_replicated;"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SYSTEM SYNC REPLICA table_for_rename_replicated;"
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
DROP TABLE IF EXISTS ttl;
|
||||
CREATE TABLE ttl (d DateTime) ENGINE = MergeTree ORDER BY tuple() TTL d + INTERVAL 10 DAY;
|
||||
SYSTEM STOP MERGES;
|
||||
SYSTEM STOP MERGES ttl;
|
||||
INSERT INTO ttl VALUES ('2000-01-01 01:02:03'), ('2000-02-03 04:05:06');
|
||||
SELECT rows, delete_ttl_info_min, delete_ttl_info_max, move_ttl_info.expression, move_ttl_info.min, move_ttl_info.max FROM system.parts WHERE database = currentDatabase() AND table = 'ttl';
|
||||
SYSTEM START MERGES;
|
||||
SYSTEM START MERGES ttl;
|
||||
OPTIMIZE TABLE ttl FINAL;
|
||||
SELECT rows, delete_ttl_info_min, delete_ttl_info_max, move_ttl_info.expression, move_ttl_info.min, move_ttl_info.max FROM system.parts WHERE database = currentDatabase() AND table = 'ttl' AND active;
|
||||
DROP TABLE ttl;
|
||||
|
@ -4,7 +4,7 @@ CREATE TABLE tt_01373
|
||||
(a Int64, d Int64, val Int64)
|
||||
ENGINE = SummingMergeTree PARTITION BY (a) ORDER BY (d);
|
||||
|
||||
SYSTEM STOP MERGES;
|
||||
SYSTEM STOP MERGES tt_01373;
|
||||
|
||||
INSERT INTO tt_01373 SELECT number%13, number%17, 1 from numbers(1000000);
|
||||
|
||||
@ -17,7 +17,7 @@ SELECT count(*) FROM tt_01373 FINAL;
|
||||
SELECT '---';
|
||||
SELECT a, count() FROM tt_01373 FINAL GROUP BY a ORDER BY a;
|
||||
|
||||
SYSTEM START MERGES;
|
||||
SYSTEM START MERGES tt_01373;
|
||||
|
||||
OPTIMIZE TABLE tt_01373 FINAL;
|
||||
SELECT '---';
|
||||
|
Loading…
Reference in New Issue
Block a user