相关疑难解决方法(0)

如何在hive sql中将数组转换为字符串?

我想在hive中将数组转换为字符串.我想collect_set数组值转换为字符串而不用[[""]].

select actor, collect_set(date) as grpdate from actor_table group by actor;
Run Code Online (Sandbox Code Playgroud)

[["2016-07-01", "2016-07-02"]]将成为2016-07-01, 2016-07-02

arrays string hive hiveql

21
推荐指数
1
解决办法
4万
查看次数

标签 统计

arrays ×1

hive ×1

hiveql ×1

string ×1