Fix stateless tests

This commit is contained in:
Antonio Andelic 2023-01-20 16:35:14 +00:00
parent ec149c4585
commit 7bfaf88666
7 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
-- Tags: replica, distributed
SET max_parallel_replicas = 2;
SET parallel_replicas_mode = 'sample_key';
DROP TABLE IF EXISTS report;
set allow_deprecated_syntax_for_merge_tree=1;

View File

@ -9,6 +9,9 @@ CREATE TABLE test_max_parallel_replicas_lr (timestamp UInt64) ENGINE = MergeTree
INSERT INTO test_max_parallel_replicas_lr select number as timestamp from system.numbers limit 100;
SET max_parallel_replicas = 2;
SET parallel_replicas_mode = 'sample_key';
SET allow_experimental_parallel_reading_from_replicas = 0;
select count() FROM remote('127.0.0.{2|3}', currentDatabase(), test_max_parallel_replicas_lr) PREWHERE timestamp > 0;
drop table test_max_parallel_replicas_lr;

View File

@ -13,7 +13,10 @@ select count() from sample_final sample 1/2;
select 'count sample final';
select count() from sample_final final sample 1/2;
select 'count final max_parallel_replicas';
set allow_experimental_parallel_reading_from_replicas = 0;
set max_parallel_replicas=2;
set parallel_replicas_mode='sample_key';
select count() from remote('127.0.0.{2|3}', currentDatabase(), sample_final) final;
drop table if exists sample_final;

View File

@ -2,6 +2,7 @@
-- set insert_distributed_sync = 1; -- see https://github.com/ClickHouse/ClickHouse/issues/18971
SET allow_experimental_parallel_reading_from_replicas = 0; -- see https://github.com/ClickHouse/ClickHouse/issues/34525
SET prefer_localhost_replica = 1;
DROP TABLE IF EXISTS local_01099_a;

View File

@ -1,5 +1,7 @@
-- Tags: distributed
SET allow_experimental_parallel_reading_from_replicas = 0;
DROP TABLE IF EXISTS test5346;
CREATE TABLE test5346 (`Id` String, `Timestamp` DateTime, `updated` DateTime)

View File

@ -4,6 +4,7 @@ DROP TABLE IF EXISTS t;
CREATE TABLE t (x String) ENGINE = MergeTree ORDER BY x;
INSERT INTO t VALUES ('Hello');
SET parallel_replicas_mode = 'sample_key';
SET max_parallel_replicas = 3;
SELECT * FROM remote('127.0.0.{2|3|4}', currentDatabase(), t);

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# Tags: no-parallel, long
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh