mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Fix tests
This commit is contained in:
parent
8aad00818a
commit
a0aa30a4e9
@ -33,7 +33,7 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE csv (t Nullable(DateTime('Europe/Moscow
|
||||
|
||||
echo 'NULL, NULL
|
||||
"2016-01-01 01:02:03",NUL
|
||||
"2016-01-02 01:02:03",Nhello' | $CLICKHOUSE_CLIENT --input_format_csv_unquoted_null_literal_as_null=1 --query="INSERT INTO csv FORMAT CSV";
|
||||
"2016-01-02 01:02:03",Nhello' | $CLICKHOUSE_CLIENT --format_csv_null_representation='NULL' --query="INSERT INTO csv FORMAT CSV";
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SELECT * FROM csv ORDER BY s NULLS LAST";
|
||||
$CLICKHOUSE_CLIENT --query="DROP TABLE csv";
|
||||
|
@ -9,7 +9,7 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE tsv_custom_null (id Nullable(UInt32)) E
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="INSERT INTO tsv_custom_null VALUES (NULL)";
|
||||
|
||||
$CLICKHOUSE_CLIENT --output_format_tsv_null_representation='MyNull' --query="SELECT * FROM tsv_custom_null FORMAT TSV";
|
||||
$CLICKHOUSE_CLIENT --format_tsv_null_representation='MyNull' --query="SELECT * FROM tsv_custom_null FORMAT TSV";
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="DROP TABLE tsv_custom_null";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# output_format_csv_null_representation should initially be \\N
|
||||
# format_csv_null_representation should initially be \\N
|
||||
"val1",\N,"val3"
|
||||
# Changing output_format_csv_null_representation
|
||||
# Changing format_csv_null_representation
|
||||
"val1",∅,"val3"
|
||||
|
@ -7,10 +7,10 @@ CREATE TABLE test_data (
|
||||
|
||||
INSERT INTO test_data VALUES ('val1', NULL, 'val3');
|
||||
|
||||
SELECT '# output_format_csv_null_representation should initially be \\N';
|
||||
SELECT '# format_csv_null_representation should initially be \\N';
|
||||
SELECT * FROM test_data FORMAT CSV;
|
||||
|
||||
SELECT '# Changing output_format_csv_null_representation';
|
||||
SET output_format_csv_null_representation = '∅';
|
||||
SELECT '# Changing format_csv_null_representation';
|
||||
SET format_csv_null_representation = '∅';
|
||||
SELECT * FROM test_data FORMAT CSV;
|
||||
SET output_format_csv_null_representation = '\\N';
|
||||
SET format_csv_null_representation = '\\N';
|
||||
|
Loading…
Reference in New Issue
Block a user