ClickHouse/tests/queries/0_stateless/02029_output_csv_null_representation.sql
2021-10-21 19:42:03 +03:00

17 lines
491 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 '# format_csv_null_representation should initially be \\N';
SELECT * FROM test_data FORMAT CSV;
SELECT '# Changing format_csv_null_representation';
SET format_csv_null_representation = '';
SELECT * FROM test_data FORMAT CSV;
SET format_csv_null_representation = '\\N';