Add test for data in square brackets in JSONEachRow.

This commit is contained in:
Avogar 2020-01-30 17:03:07 +03:00
parent c5b0b6ba29
commit 75fe61251b
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1 name1
2 name2

View File

@ -0,0 +1,6 @@
DROP TABLE IF EXISTS json_square_brackets;
CREATE TABLE json_square_brackets (id UInt32, name String) ENGINE = Memory;
INSERT INTO json_square_brackets FORMAT JSONEachRow [{"id": 1, "name": "name1"}, {"id": 2, "name": "name2"}]
SELECT * FROM json_square_brackets ORDER BY id;
DROP TABLE IF EXISTS json_square_brackets;