【发布时间】:2018-08-09 12:33:11
【问题描述】:
select * from students1;
students1.name students1.age students1.gpa
fred 35 1.28
barney 32 2.32
shyam 32 2.32
select * from students2;
students1.name students1.age
fred 35
barney 32
当我运行这个查询时
select
name,age from students1
where not exists
(select name,age from students2);
我收到了以下错误
编译语句时出错:FAILED: SemanticException line 39:22 子查询 sq_1 [ 的定义中的子查询表达式“年龄”无效 exists (select name,age from students2) ] 在第 3:10 行用作 sq_1: 对于 Exists/Not Exists 运算符,子查询必须是相关的。
【问题讨论】:
标签: hadoop hive bigdata exists