Explode the Array of Struct in Hive

前端 未结 2 1188
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 10:04

This is the below Hive Table

CREATE EXTERNAL TABLE IF NOT EXISTS SampleTable
(
USER_ID BIGINT,
NEW_ITEM ARRAY

        
2条回答
  •  鱼传尺愫
    2020-12-02 10:36

    If you are on Hive 0.10 or later, you could also use inline(ARRAY). It explodes an array of structs into a table.

提交回复
热议问题