Hive select data into an array of structs

后端 未结 3 707
暖寄归人
暖寄归人 2020-12-17 04:19

I am trying to figure out a way in Hive to select data from a flat source and output into an array of named struct(s). Here is a example of what I am looking for...

3条回答
  •  -上瘾入骨i
    2020-12-17 05:05

    You can try it using pyspark or scalaspark.. Spark sql allows both primitive and non primitive datatypes. ie., You can do collect_set( named_struct)

提交回复
热议问题