2020-09-08 13:06:05 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-09-08 13:06:05 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tsv_custom_null";
|
2020-09-08 13:07:58 +00:00
|
|
|
$CLICKHOUSE_CLIENT --query="CREATE TABLE tsv_custom_null (id Nullable(UInt32)) ENGINE = Memory";
|
2020-09-08 13:06:05 +00:00
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT --query="INSERT INTO tsv_custom_null VALUES (NULL)";
|
|
|
|
|
2021-10-21 16:41:43 +00:00
|
|
|
$CLICKHOUSE_CLIENT --format_tsv_null_representation='MyNull' --query="SELECT * FROM tsv_custom_null FORMAT TSV";
|
2020-09-08 13:06:05 +00:00
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT --query="DROP TABLE tsv_custom_null";
|
|
|
|
|