ClickHouse/tests/queries/0_stateless/01499_json_named_tuples.sql

11 lines
358 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-fasttest
create table named_tuples engine File(JSONEachRow)
settings output_format_json_named_tuples_as_objects = 1
as select cast(tuple(number, number * 2), 'Tuple(a int, b int)') c
from numbers(3);
select * from named_tuples format JSONEachRow settings output_format_json_named_tuples_as_objects = 1;
drop table named_tuples