This commit is contained in:
CurtizJ 2018-09-19 15:07:55 +03:00
parent 8f7daa75d1
commit fe0bdbe42c

View File

@ -4,13 +4,13 @@ set -e
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS parallel_ddl"
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.parallel_ddl"
function query()
{
for i in {1..100}; do
${CLICKHOUSE_CLIENT} --query "CREATE TABLE IF NOT EXISTS parallel_ddl(a Int) ENGINE = Memory"
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS parallel_ddl"
${CLICKHOUSE_CLIENT} --query "CREATE TABLE IF NOT EXISTS test.parallel_ddl(a Int) ENGINE = Memory"
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.parallel_ddl"
done
}
@ -20,4 +20,4 @@ done
wait
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS parallel_ddl"
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test.parallel_ddl"