Add tests

This commit is contained in:
Avogar 2020-09-08 16:06:05 +03:00
parent 902ac5c33f
commit 5d303573c7
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
MyNull

View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS tsv_custom_null";
$CLICKHOUSE_CLIENT --query="CREATE TABLE regexp (id Nullable(UInt32)) ENGINE = Memory";
$CLICKHOUSE_CLIENT --query="INSERT INTO tsv_custom_null VALUES (NULL)";
$CLICHHOUSE_CLIENT --output_format_tsv_null_representation='MyNull' --query="SELECT * FROM tsv_custom_null FORMAT TSV";
$CLICKHOUSE_CLIENT --query="DROP TABLE tsv_custom_null";