在hive和impala中收集列表功能

问题描述 投票:0回答:1

我在用

concat_ws(' ',  collect_list(field1)) as field1, 

但查询未在impala中运行。 impala不支持此功能吗?如果没有,那么在黑斑羚中进行类似操作的替代方案是什么?

hive impala
1个回答
2
投票

你可以在impala中使用group_concat()函数,Plase参考https://www.cloudera.com/documentation/enterprise/5-5-x/topics/impala_group_concat.html

© www.soinside.com 2019 - 2024. All rights reserved.