2021-09-17 02:18:01 +00:00
|
|
|
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');
|
|
|
|
|
2021-10-21 16:41:43 +00:00
|
|
|
SELECT '# format_csv_null_representation should initially be \\N';
|
2021-09-17 02:18:01 +00:00
|
|
|
SELECT * FROM test_data FORMAT CSV;
|
|
|
|
|
2021-10-21 16:41:43 +00:00
|
|
|
SELECT '# Changing format_csv_null_representation';
|
|
|
|
SET format_csv_null_representation = '∅';
|
2021-09-17 02:18:01 +00:00
|
|
|
SELECT * FROM test_data FORMAT CSV;
|
2021-10-21 16:41:43 +00:00
|
|
|
SET format_csv_null_representation = '\\N';
|