开发者社区> 问答> 正文

hive当中使用explode将hive中的数据拆开怎么做?

hive当中使用explode将hive中的数据拆开怎么做?

展开
收起
游客ahv54x37wvm7u 2021-12-08 20:07:21 390 0
1 条回答
写回答
取消 提交回答
  • 将array当中的数据拆分开
    hive (hive_explode)> SELECT explode(children) AS myChild FROM t3;
    
    将map当中的数据拆分开
    
    hive (hive_explode)> SELECT explode(address) AS (myMapKey, myMapValue) FROM t3;
    
    
    2021-12-08 20:07:37
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Comparison of Spark SQL with Hive 立即下载
Hive Bucketing in Apache Spark 立即下载
2019大数据技术公开课第五季—Hive迁移到MaxCompute最佳实践 立即下载

相关实验场景

更多