2018-09-07 01:39:48 +00:00
#!/usr/bin/env bash
2022-09-07 15:57:29 +00:00
# Tags: no-fasttest
2018-09-07 01:39:48 +00:00
CURDIR = $( cd " $( dirname " ${ BASH_SOURCE [0] } " ) " && pwd )
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
2020-08-01 00:51:12 +00:00
. " $CURDIR " /../shell_config.sh
2018-09-07 01:39:48 +00:00
2022-10-20 07:33:48 +00:00
yes 'CREATE TABLE IF NOT EXISTS table (x UInt8) ENGINE = MergeTree ORDER BY tuple();' | head -n 1000 | $CLICKHOUSE_CLIENT --ignore-error -nm 2>/dev/null &
yes 'DROP TABLE table;' | head -n 1000 | $CLICKHOUSE_CLIENT --ignore-error -nm 2>/dev/null &
2018-09-07 01:39:48 +00:00
wait
2022-10-20 07:33:48 +00:00
${ CLICKHOUSE_CLIENT } --query "DROP TABLE IF EXISTS table"