mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Test added
This commit is contained in:
parent
0d91aff981
commit
a8c9385346
@ -2,3 +2,7 @@
|
|||||||
2,"world"
|
2,"world"
|
||||||
1,"hello"
|
1,"hello"
|
||||||
2,"world"
|
2,"world"
|
||||||
|
1 hello
|
||||||
|
2 world
|
||||||
|
1 hello
|
||||||
|
2 world
|
8
dbms/tests/queries/0_stateless/01073_crlf_end_of_line.sql
Executable file
8
dbms/tests/queries/0_stateless/01073_crlf_end_of_line.sql
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
DROP TABLE IF EXISTS test_01073_crlf_end_of_line;
|
||||||
|
CREATE TABLE test_01073_crlf_end_of_line (value UInt8, word String) ENGINE = MergeTree() ORDER BY value;
|
||||||
|
INSERT INTO test_01073_crlf_end_of_line VALUES (1, 'hello'), (2, 'world');
|
||||||
|
SELECT * FROM test_01073_crlf_end_of_line FORMAT CSV SETTINGS output_format_csv_crlf_end_of_line = 1;
|
||||||
|
SELECT * FROM test_01073_crlf_end_of_line FORMAT CSV SETTINGS output_format_csv_crlf_end_of_line = 0;
|
||||||
|
SELECT * FROM test_01073_crlf_end_of_line FORMAT TSV SETTINGS output_format_tsv_crlf_end_of_line = 1;
|
||||||
|
SELECT * FROM test_01073_crlf_end_of_line FORMAT TSV SETTINGS output_format_tsv_crlf_end_of_line = 0;
|
||||||
|
DROP TABLE IF EXISTS test_01073_crlf_end_of_line;
|
@ -1,8 +0,0 @@
|
|||||||
DROP TABLE IF EXISTS test_01073_crlf_in_output_csv_format;
|
|
||||||
CREATE TABLE test_01073_crlf_in_output_csv_format (value UInt8, word String) ENGINE = MergeTree() ORDER BY value;
|
|
||||||
INSERT INTO test_01073_crlf_in_output_csv_format VALUES (1, 'hello'), (2, 'world');
|
|
||||||
SET output_format_csv_crlf_end_of_line = 1;
|
|
||||||
SELECT * FROM test_01073_crlf_in_output_csv_format FORMAT CSV;
|
|
||||||
SET output_format_csv_crlf_end_of_line = 0;
|
|
||||||
SELECT * FROM test_01073_crlf_in_output_csv_format FORMAT CSV;
|
|
||||||
DROP TABLE IF EXISTS test_01073_crlf_in_output_csv_format;
|
|
Loading…
Reference in New Issue
Block a user