Fix tests

This commit is contained in:
Alexey Milovidov 2024-03-16 13:57:40 +01:00
parent fdbdbe8269
commit 3c2c2c1404
4 changed files with 5 additions and 2 deletions

View File

@ -17,6 +17,8 @@ select
from system.numbers
limit 10000000;
OPTIMIZE TABLE set_array FINAL;
SET max_rows_to_read = 8192;
select count() from set_array where has(index_array, 333);

View File

@ -1,4 +1,5 @@
-- Tags: no-debug, no-parallel, long, no-s3-storage, no-random-merge-tree-settings
SET optimize_trivial_insert_select = 1;
DROP TABLE IF EXISTS table_with_single_pk;

View File

@ -28,6 +28,7 @@ create materialized view mv_02231 to buffer_02231 as select
from in_02231
group by key;
set optimize_trivial_insert_select = 1;
insert into in_02231 select * from numbers(10e6) settings max_memory_usage='310Mi', max_threads=1;
drop table buffer_02231;

View File

@ -8,7 +8,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT -q "create table t(ts DateTime64) engine=MergeTree order by ts as select * from numbers_mt(1e6);"
$CLICKHOUSE_CLIENT --optimize_trivial_insert_select 1 -q "create table t(ts DateTime64) engine=MergeTree order by ts as select * from numbers_mt(1e6);"
max_block_size=8192
@ -17,4 +17,3 @@ $CLICKHOUSE_CLIENT --query_id="$query_id" -q "select ts from t order by toUnixTi
$CLICKHOUSE_CLIENT -q "system flush logs;"
$CLICKHOUSE_CLIENT --param_query_id="$query_id" -q "select read_rows <= $max_block_size from system.query_log where event_date >= yesterday() and current_database = '$CLICKHOUSE_DATABASE' and query_id = {query_id:String} and type = 'QueryFinish';"