CREATE TABLE STRUCT_1 (x STRUCT<course: STRING,id: int>)
comment 'demonstrating how to work-around to insert complex
datatype unnested structs into a complex table '
Stored as parquet
location '/user/me/mestruct'
tblproperties ('created date: '=' 2019/01','done by: '='me');
Теперь давайте сделаем вставку.
insert into table STRUCT_1 select named_struct("course","B.A","id",12) from (select 't') s;