ClickHouse/tests/queries/0_stateless/01946_tskv.sh

16 lines
508 B
Bash
Raw Normal View History

2021-07-14 20:05:57 +00:00
#!/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";