ClickHouse/tests/queries/0_stateless/02029_output_csv_null_representation.sql
PHO 3c4b1ea9c5 New setting: output_format_csv_null_representation
This is the same as output_format_tsv_null_representation but is for CSV output.
2021-09-17 17:58:23 +09:00

17 lines
519 B
SQL

DROP TABLE IF EXISTS test_data;
CREATE TABLE test_data (
col1 Nullable(String),
col2 Nullable(String),
col3 Nullable(String)
) ENGINE = Memory;
INSERT INTO test_data VALUES ('val1', NULL, 'val3');
SELECT '# output_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 * FROM test_data FORMAT CSV;
SET output_format_csv_null_representation = '\\N';