hive Unexpected column vector type LIST

现象描述:
表A

字段名 数据类型
id bigint
path array

表B

字段名 数据类型
id bigint
name string
a_id bigint

表C

字段名 数据类型
id bigint
b_id bigint

异常SQL:

报表:Unexpected column vector type LIST
select
A.id , A.path , B.id, C.id
from A
join C in array_contains(A.path ,C.id)
join B on B.a_id = A.id ;报表:Unexpected column vector type LIST
select A.id , A.path , B.id
from A
join B on B.a_id = A.id ;以上两条sql join 逻辑一样

正确sql : (调整sql 逻辑解决)

select
ac.id , ac.path , B.id as b_id, C.c_id
from (select  A.id , A.path  , C.id as c_idfrom A join C in array_contains(A.path ,C.id)
) ac
join B on B.a_id = ac.id ;

如非必要,建议array 转换为string ,避免出现以上报错

原因未知,有大佬知道的,可以在下方评论回复,感谢!

hive Unexpected column vector type LIST相关推荐

  1. Hive alter column

    Hive alter column 列名命名规则 在 Hive 0.12.0 及更早版本中,列名只能包含字母.数字和下划线. 在 Hive 版本 0.13.0 及更高版本中,默认情况下可以在反引号 ( ...

  2. postgresql 修改表结构 alter table xxx alter column yyy type varchar(19)

    postgresql 修改表结构:修改t_cash表list_id 字段类型为varchar(19) alter table t_cash alter column list_Id type varc ...

  3. cannot use column (type Column) as type gorm.ColumnType in append:

    go报错信息 # gorm.io/driver/mysql ..\..\pkg\mod\gorm.io\driver\mysql@v1.0.4\migrator.go:220:24: cannot u ...

  4. hive_Decimal64ColumnVector cannot be cast to org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVect

    快速解决: set hive.vectorized.execution.enabled = false

  5. 建表错误:ParseException line 1:55 cannot recognize input near ‘)‘ ‘rowformat‘ ‘delimited‘ in column type

    报错信息如下图: 输入语句: create table cga_info1(name string,gender string,timeint)rowformat delimited fields t ...

  6. 【Hive】修改 table、column

    目录 一.表 二.列 三.分区 一.表 1.重命名表重命名表的语句如下: ALTER TABLE table_name RENAME TO new_table_name 2.修改表属性: ALTER ...

  7. hive操作create,alter等

    Hive 的官方文档中对查询语言有了很详细的描述,请参考:http://wiki.apache.org/hadoop/Hive/LanguageManual ,本文的内容大部分翻译自该页面,期间加入了 ...

  8. sqoop 1.4.5 增量导入hive 0.12.0

    1:导入命令 1) bin/sqoop import --connect jdbc:mysql://10.x.x.x:3306/lir --username dss --password xxx123 ...

  9. sqoop1.4.5 导入 hive IOException running import job: java.io.IOException: Hive exited with status 1

    sqoop 导入 hive hive.HiveImport: Exception in thread "main" java.lang.NoSuchMethodError: org ...

  10. 4、Hive数据操作,DDL操作,CRUD database,CRUD table,partition,view,index,show命令等

    4.1DDL操作 4.1.1Create/Drop/Alter/Use Database 4.1.1.1Create Database 4.1.1.2Drop Database 4.1.1.3Alte ...

最新文章

  1. 从技术输出到产业赋能,网易云信走过的四年
  2. 一张图看懂微软Power BI系列组件
  3. java 导出bcp文件格式_使用BCP导出导入数据
  4. 【分享】哪些句子一眼就会让你爱上
  5. 基于jquery,bootstrap数据验证插件bootstrapValidator 教程
  6. var a=function和function b有什么区别
  7. 公有IP和私有IP及最新国内各运营商(ISP)IP段表
  8. Vue中解决数据量过大导致页面崩溃;解决方案
  9. 电脑只有浏览器不能上网
  10. Python strip() 函数 去空格 \n \r \t 函数的用法
  11. 详细设计-程序结构图
  12. 并发编程系列之AQS实现原理
  13. Typora导出Word
  14. CGI实现文件的上传和下载
  15. 基于SpringCloud分布式微服务+微信小程序实现短视频社交app设计
  16. 双评价技术指南2020_“双评价”技术指南(11月份版)解读
  17. 多个时间序列之间的DTW
  18. DSS:(Decision-making Support System)决策支持系统
  19. vscode通过插件一键运行 c++单元测试
  20. flutter-架构项目-getx-快速案例分分钟实现MVC架构-新闻案例

热门文章

  1. Pairwise 找到你的另一半
  2. Win7和Win10共享出现没有权限使用网络资源的解决步骤
  3. 接入Internet的技术有哪几种?各有什么特点?
  4. 免费可商用图片素材网站,建议收藏
  5. 安卓:股票筛选及分析系统
  6. 用excel制作双层饼图_Excel中怎么绘制双层饼图?
  7. 用Java编写程序实现找出100以内的质数
  8. 查找网络计算机步骤,如何查找到局域网中指定IP地址的是哪一台电脑
  9. 找回foxmail下的邮箱密码
  10. 西电计算机好考吗,西电计算机考研难吗 西电计算机专业考研难度有多大?