making test fail in case of regression

This commit is contained in:
priera 2023-09-05 17:19:20 +02:00
parent 2e7edf4413
commit f155d89ffa
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
REPLACE empty partition with duplicated parts REPLACE empty partition with duplicated parts
0
4 8 4 8
4 8 4 8

View File

@ -27,7 +27,8 @@ $CLICKHOUSE_CLIENT --query="INSERT INTO src VALUES (1, '0', 1), (1, '0', 3);"
$CLICKHOUSE_CLIENT --query="INSERT INTO src VALUES (1, '0', 1), (1, '0', 3);" $CLICKHOUSE_CLIENT --query="INSERT INTO src VALUES (1, '0', 1), (1, '0', 3);"
$CLICKHOUSE_CLIENT --query="SELECT 'REPLACE empty partition with duplicated parts';" $CLICKHOUSE_CLIENT --query="SELECT 'REPLACE empty partition with duplicated parts';"
query_with_retry "ALTER TABLE dst_r1 REPLACE PARTITION 1 FROM src;" $CLICKHOUSE_CLIENT --query="ALTER TABLE dst_r1 REPLACE PARTITION 1 FROM src;"
echo $?
$CLICKHOUSE_CLIENT --query="SYSTEM SYNC REPLICA dst_r2;" $CLICKHOUSE_CLIENT --query="SYSTEM SYNC REPLICA dst_r2;"
$CLICKHOUSE_CLIENT --query="SELECT count(), sum(d) FROM dst_r1;" $CLICKHOUSE_CLIENT --query="SELECT count(), sum(d) FROM dst_r1;"