用struct在struct中定义表,如下所示
CREATE TABLE IF NOT EXISTS test12(
source_row_nbr int,
claim_record STRUCT < claim_sub_record1: STRUCT<claim_nbr:INT,claim_txt:CHAR(10)>,
claim_sub_record2: STRUCT<claim_nbr:INT,claim_addr:CHAR(20)>>
) stored as ORC
TBLPROPERTIES('orc.compress'='SNAPPY','transactional'='false');
如何使用插入记录 NAMED_STRUCT
关键字
1条答案
按热度按时间svujldwt1#