mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 06:50:50 +00:00
16 lines
532 B
Bash
16 lines
532 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
. $CURDIR/../shell_config.sh
|
||
|
|
||
|
for i in {1..200}; do echo "drop table if exists test.view" | $CLICKHOUSE_CLIENT; echo "create view test.view as select count(*),database,table from system.columns group by database,table" | $CLICKHOUSE_CLIENT; done &
|
||
|
for i in {1..500}; do echo "select * from test.view order by table" | $CLICKHOUSE_CLIENT >/dev/null 2>&1 || true; done &
|
||
|
|
||
|
wait
|
||
|
|
||
|
echo "drop table test.view" | $CLICKHOUSE_CLIENT
|
||
|
|
||
|
echo 'did not deadlock'
|