ClickHouse/tests/queries/0_stateless/02405_avro_read_nested.sql
Kruglov Pavel 4054183fc4
Fix test
2022-08-23 16:23:31 +02:00

10 lines
723 B
SQL

-- Tags: no-fasttest, no-parallel
set flatten_nested = 1;
insert into function file(02405_data.avro) select [(1, 'aa'), (2, 'bb')]::Nested(x UInt32, y String) as nested settings engine_file_truncate_on_insert=1;
select * from file(02405_data.avro, auto, 'nested Nested(x UInt32, y String)');
insert into function file(02405_data.avro) select [(1, (2, ['aa', 'bb']), [(3, 'cc'), (4, 'dd')]), (5, (6, ['ee', 'ff']), [(7, 'gg'), (8, 'hh')])]::Nested(x UInt32, y Tuple(y1 UInt32, y2 Array(String)), z Nested(z1 UInt32, z2 String)) as nested settings engine_file_truncate_on_insert=1;
select * from file(02405_data.avro, auto, 'nested Nested(x UInt32, y Tuple(y1 UInt32, y2 Array(String)), z Nested(z1 UInt32, z2 String))');