This commit is contained in:
Alexander Kuzmenkov 2020-11-17 22:51:45 +03:00
parent 8cde88440b
commit 51f9d54d10
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[
{"a":"0","b":"0"},
{"a":"1","b":"2"},
{"a":"2","b":"4"}
]
[
{"number":"0"}
]
[
]

View File

@ -0,0 +1,4 @@
set output_format_json_array_of_rows = 1;
select number a, number * 2 b from numbers(3) format JSONEachRow;
select * from numbers(1) format JSONEachRow;
select * from numbers(1) where null format JSONEachRow;