hadoop - 如何在 impala 或 hive 上读取复杂类型数组 <string>?

标签 hadoop hive parquet impala

我尝试读取 hive 上的复杂类型

dog.owners (array<string>)

使用以下查询

select dog_id, concat_ws(',',collect_set(owners)) as owners 
from dog 
group by dog_id

但我收到以下错误

Argument 2 of function CONCAT_WS must be "string or array<string>", but "array<array<string>>" was found.

看起来数据类型不匹配。我试图将列所有者创建为 array<array<string>>但我仍然遇到同样的错误。 有没有办法阅读关于 hive 或黑斑羚的专栏?

最佳答案

select dog_id, do.* from dog, dog.owners as do

关于hadoop - 如何在 impala 或 hive 上读取复杂类型数组 <string>?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48948709/

相关文章:

mapreduce - Parquet:将特定列读入内存

Apache Kylin - 立方体构建第一步的错误输出

python - 在Hive数据库中匹配两个字段的最有效方法

hadoop - "dfs.replication"和 "dfs.datanode.data.dir"配置如何在集群中工作?

hadoop - u0001 分隔符的直线问题

hadoop - 将日期字符串转换为 “MM/DD/YY” 格式

python - 读取/写入 Parquet 文件而不读入内存(使用 Python)

scala - 在 Spark 中,如何读取用 bucketBy 写入的 parquet 文件,并保存分桶数据?

hadoop - 在 Google Cloud Dataproc 中按顺序运行提交的作业

hadoop - org.apache.kylin.job.exception.ExecuteException : java. lang.NoClassDefFoundError: org/apache/hadoop/hive/serde2/typeinfo/TypeInfo 问题