mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Update 01162_strange_mutations.sh
This commit is contained in:
parent
ad6b3693e1
commit
17e803ea37
@ -11,7 +11,7 @@ $CLICKHOUSE_CLIENT -q "CREATE OR REPLACE VIEW t1 AS SELECT number * 10 AS id, nu
|
|||||||
for engine in "${engines[@]}"
|
for engine in "${engines[@]}"
|
||||||
do
|
do
|
||||||
$CLICKHOUSE_CLIENT -q "drop table if exists t"
|
$CLICKHOUSE_CLIENT -q "drop table if exists t"
|
||||||
$CLICKHOUSE_CLIENT -q "create table t (n int) engine=$engine"
|
$CLICKHOUSE_CLIENT -q "create table t (n int) engine=$engine" 2>&1| grep -Ev "Removing leftovers from table|removed by another replica"
|
||||||
$CLICKHOUSE_CLIENT -q "select engine from system.tables where database=currentDatabase() and name='t'"
|
$CLICKHOUSE_CLIENT -q "select engine from system.tables where database=currentDatabase() and name='t'"
|
||||||
$CLICKHOUSE_CLIENT -q "insert into t values (1)"
|
$CLICKHOUSE_CLIENT -q "insert into t values (1)"
|
||||||
$CLICKHOUSE_CLIENT -q "insert into t values (2)"
|
$CLICKHOUSE_CLIENT -q "insert into t values (2)"
|
||||||
@ -25,7 +25,7 @@ do
|
|||||||
$CLICKHOUSE_CLIENT -q "drop table t"
|
$CLICKHOUSE_CLIENT -q "drop table t"
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "drop table if exists test"
|
$CLICKHOUSE_CLIENT -q "drop table if exists test"
|
||||||
$CLICKHOUSE_CLIENT -q "CREATE TABLE test ENGINE=$engine AS SELECT number + 100 AS n, 0 AS test FROM numbers(50)"
|
$CLICKHOUSE_CLIENT -q "CREATE TABLE test ENGINE=$engine AS SELECT number + 100 AS n, 0 AS test FROM numbers(50)" 2>&1| grep -Ev "Removing leftovers from table|removed by another replica"
|
||||||
$CLICKHOUSE_CLIENT -q "select count(), sum(n), sum(test) from test"
|
$CLICKHOUSE_CLIENT -q "select count(), sum(n), sum(test) from test"
|
||||||
if [[ $engine == *"ReplicatedMergeTree"* ]]; then
|
if [[ $engine == *"ReplicatedMergeTree"* ]]; then
|
||||||
$CLICKHOUSE_CLIENT -q "ALTER TABLE test
|
$CLICKHOUSE_CLIENT -q "ALTER TABLE test
|
||||||
|
Loading…
Reference in New Issue
Block a user