mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
1b4adc963f
02015_shard_crash_clang_12_build OK 30.39 01014_lazy_database_concurrent_recreate_reattach_and_show_tables OK 31.27 01034_move_partition_from_table_zookeeper OK 32.34 01035_concurrent_move_partition_from_table_zookeeper OK 35.35 00183_skip_unavailable_shards OK 36.69 01593_concurrent_alter_mutations_kill OK 38.36 02122_parallel_formatting OK 39.27 02100_multiple_hosts_command_line_set OK 44.04 01114_database_atomic OK 45.67 01287_max_execution_speed OK 90.98 01599_multiline_input_and_singleline_comments OK 180.09
47 lines
1.5 KiB
SQL
47 lines
1.5 KiB
SQL
-- Tags: no-fasttest
|
|
|
|
SET min_execution_speed = 100000000000, timeout_before_checking_execution_speed = 0.1;
|
|
SELECT count() FROM system.numbers; -- { serverError 160 }
|
|
SELECT 'Ok (1)';
|
|
SET min_execution_speed = 0;
|
|
|
|
SET min_execution_speed_bytes = 800000000000, timeout_before_checking_execution_speed = 0.1;
|
|
SELECT count() FROM system.numbers; -- { serverError 160 }
|
|
SELECT 'Ok (2)';
|
|
SET min_execution_speed_bytes = 0;
|
|
|
|
SET max_execution_speed = 1000000;
|
|
SET max_block_size = 100;
|
|
|
|
CREATE TEMPORARY TABLE times (t DateTime);
|
|
|
|
INSERT INTO times SELECT now();
|
|
SELECT count() FROM numbers(2000000);
|
|
INSERT INTO times SELECT now();
|
|
|
|
SELECT max(t) - min(t) >= 1 FROM times;
|
|
SELECT 'Ok (3)';
|
|
SET max_execution_speed = 0;
|
|
|
|
SET max_execution_speed_bytes = 8000000;
|
|
TRUNCATE TABLE times;
|
|
|
|
INSERT INTO times SELECT now();
|
|
SELECT count() FROM numbers(2000000);
|
|
INSERT INTO times SELECT now();
|
|
|
|
SELECT max(t) - min(t) >= 1 FROM times;
|
|
SELECT 'Ok (4)';
|
|
SET max_execution_speed_bytes = 0;
|
|
|
|
-- Note that 'min_execution_speed' does not count sleeping due to throttling
|
|
-- with 'max_execution_speed' and similar limits like 'priority' and 'max_network_bandwidth'
|
|
|
|
-- Note: I have to disable this part of the test because it actually can work slower under sanitizers,
|
|
-- with debug builds and in presense of random system hickups in our CI environment.
|
|
|
|
--SET max_execution_speed = 1000000, min_execution_speed = 2000000;
|
|
-- And this query will work despite the fact that the above settings look contradictory.
|
|
--SELECT count() FROM numbers(1000000);
|
|
--SELECT 'Ok (5)';
|