hive Unexpected column vector type LIST
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相关推荐
- Hive alter column
Hive alter column 列名命名规则 在 Hive 0.12.0 及更早版本中,列名只能包含字母.数字和下划线. 在 Hive 版本 0.13.0 及更高版本中,默认情况下可以在反引号 ( ...
- 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 ...
- 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 ...
- hive_Decimal64ColumnVector cannot be cast to org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVect
快速解决: set hive.vectorized.execution.enabled = false
- 建表错误: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 ...
- 【Hive】修改 table、column
目录 一.表 二.列 三.分区 一.表 1.重命名表重命名表的语句如下: ALTER TABLE table_name RENAME TO new_table_name 2.修改表属性: ALTER ...
- hive操作create,alter等
Hive 的官方文档中对查询语言有了很详细的描述,请参考:http://wiki.apache.org/hadoop/Hive/LanguageManual ,本文的内容大部分翻译自该页面,期间加入了 ...
- 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 ...
- 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 ...
- 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 ...
最新文章
- 从技术输出到产业赋能,网易云信走过的四年
- 一张图看懂微软Power BI系列组件
- java 导出bcp文件格式_使用BCP导出导入数据
- 【分享】哪些句子一眼就会让你爱上
- 基于jquery,bootstrap数据验证插件bootstrapValidator 教程
- var a=function和function b有什么区别
- 公有IP和私有IP及最新国内各运营商(ISP)IP段表
- Vue中解决数据量过大导致页面崩溃;解决方案
- 电脑只有浏览器不能上网
- Python strip() 函数 去空格 \n \r \t 函数的用法
- 详细设计-程序结构图
- 并发编程系列之AQS实现原理
- Typora导出Word
- CGI实现文件的上传和下载
- 基于SpringCloud分布式微服务+微信小程序实现短视频社交app设计
- 双评价技术指南2020_“双评价”技术指南(11月份版)解读
- 多个时间序列之间的DTW
- DSS:(Decision-making Support System)决策支持系统
- vscode通过插件一键运行 c++单元测试
- flutter-架构项目-getx-快速案例分分钟实现MVC架构-新闻案例