【发布时间】:2018-02-26 14:18:17
【问题描述】:
我正在尝试将一个大整数数组转换为 hive SQL 中的字符串数组
我尝试过使用
concat_ws
但这给了我一个错误
Argument 2 of function CONCAT_WS must be "string or array<string>", but "array<bigint>" was found.
我尝试过使用
transform(mycolumn) using '/bin/cat' as mycolumn_as_string
它给出了一个错误
cannot recognize input near 'transform' '(' 'mycolumn' in selection target
如何将这个 bigint 数组转换为数组字符串?
【问题讨论】:
-
你在哪里使用
concat_ws这里? -
我之前尝试过使用它,但你不能将 concat_ws 与 bigint 一起使用,它会报错
-
请向我们展示 1) 表架构和 2) 出错的配置单元查询。