我想运行多个子查询到where子句中,并且我得到下面的错误。是否意味着Hive不支持它?如果没有,有没有不同的方式来写下面的查询?Hive与多个子查询
执行配置单元查询时发生错误:OK FAILED:SemanticException [Error 10249]:第14行不支持的子查询表达式'adh':只支持1个子查询表达式。
select
first_name,
last_name,
salary,
title,
department
from
employee_t1 emp
where
emp.salary <= 100000
and (
(emp.code in (select comp from history_t2 where code_hist <> 10))
or
(emp.adh in (select comp from sector_t3 where code_hist <> 50))
)
and department = 'Pediatrics';
[文件说,他们支持(https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SubQueries#LanguageManualSubQueries-SubqueriesintheWHEREClause) 。虽然不确定多个。 –