ClickHouse/tests/queries/0_stateless/01946_tskv.sh
Evgeniy Gatov 5a884da13c METR-41529
2021-07-15 00:57:18 +03:00

16 lines
508 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tskv";
$CLICKHOUSE_CLIENT --query="CREATE TABLE tskv (text String) ENGINE = Memory";
# shellcheck disable=SC2028
echo -n 'tskv text=can contain \= symbol
' | $CLICKHOUSE_CLIENT --query="INSERT INTO tskv FORMAT TSKV";
$CLICKHOUSE_CLIENT --query="SELECT * FROM tskv";
$CLICKHOUSE_CLIENT --query="DROP TABLE tskv";