ClickHouse/tests/queries/0_stateless/01146_clickhouse_local_data.sh

16 lines
369 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
${CLICKHOUSE_LOCAL} --query "create table test engine Log as select 1 a"
# Should not see the table created by the previous instance
if ${CLICKHOUSE_LOCAL} --query "select * from test" 2>/dev/null
then
exit 1
fi