ClickHouse/tests/queries/0_stateless/01801_nullable_low_cardinality_tsv.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
705 B
Bash
Raw Normal View History

2021-04-08 19:56:31 +00:00
#!/usr/bin/env bash
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS nullable_low_cardinality_tsv_test;";
$CLICKHOUSE_CLIENT --multiquery --query="CREATE TABLE nullable_low_cardinality_tsv_test
(
A Date,
S LowCardinality(Nullable(String)),
X Int32,
S1 LowCardinality(Nullable(String)),
S2 Array(String)
) ENGINE=TinyLog";
printf '2020-01-01\t\N\t32\t\N\n' | $CLICKHOUSE_CLIENT -q 'insert into nullable_low_cardinality_tsv_test format TSV' 2>&1 \
2021-04-08 21:09:53 +00:00
| grep -q "Code: 27"
2021-04-08 19:56:31 +00:00
echo $?;
$CLICKHOUSE_CLIENT --query="DROP TABLE nullable_low_cardinality_tsv_test";