ClickHouse/tests/queries/0_stateless/00861_decimal_quoted_csv.sql

18 lines
498 B
MySQL
Raw Normal View History

2019-06-03 17:36:27 +00:00
DROP TABLE IF EXISTS test_00861;
CREATE TABLE test_00861 (key UInt64, d32 Decimal32(2), d64 Decimal64(2), d128 Decimal128(2)) ENGINE = Memory;
2019-05-15 13:51:17 +00:00
2019-06-03 17:36:27 +00:00
INSERT INTO test_00861 FORMAT CSV "1","1","1","1"
2019-05-15 13:51:17 +00:00
;
2019-06-03 17:36:27 +00:00
INSERT INTO test_00861 FORMAT CSV "2","-1","-1","-1"
2019-05-15 13:51:17 +00:00
;
2019-06-03 17:36:27 +00:00
INSERT INTO test_00861 FORMAT CSV "3","1.0","1.0","1.0"
2019-05-15 13:51:17 +00:00
;
2019-06-03 17:36:27 +00:00
INSERT INTO test_00861 FORMAT CSV "4","-0.1","-0.1","-0.1"
2019-05-15 13:51:17 +00:00
;
2019-06-03 17:36:27 +00:00
INSERT INTO test_00861 FORMAT CSV "5","0.010","0.010","0.010"
2019-05-15 13:51:17 +00:00
;
2019-06-03 17:36:27 +00:00
SELECT * FROM test_00861 ORDER BY key;
2019-05-15 13:51:17 +00:00
2019-06-03 17:36:27 +00:00
DROP TABLE test_00861;