ClickHouse/dbms/tests/queries/0_stateless/00707_float_csv_delimiter.sql

16 lines
500 B
MySQL
Raw Normal View History

2019-06-03 17:36:27 +00:00
DROP TEMPORARY TABLE IF EXISTS test_00707;
CREATE TEMPORARY TABLE test_00707 (x Float32, y Float64, z UInt64, s String);
2018-09-17 18:22:56 +00:00
2019-06-03 17:36:27 +00:00
INSERT INTO test_00707 FORMAT CSV 123.456,789.012,345678,Hello
2018-09-17 18:22:56 +00:00
SET format_csv_delimiter = ';';
2019-06-03 17:36:27 +00:00
INSERT INTO test_00707 FORMAT CSV 123.456;789.012;345678;Hello
2018-09-17 18:22:56 +00:00
SET format_csv_delimiter = ':';
2019-06-03 17:36:27 +00:00
INSERT INTO test_00707 FORMAT CSV 123.456:789.012:345678:Hello
2018-09-17 18:22:56 +00:00
SET format_csv_delimiter = '|';
2019-06-03 17:36:27 +00:00
INSERT INTO test_00707 FORMAT CSV 123.456|789.012|345678|Hello
2018-09-17 18:22:56 +00:00
2019-06-03 17:36:27 +00:00
SELECT * FROM test_00707;