Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Currently HIVE doesn't allow correlated EXISTS/NOT EXISTS subqueries which has aggregate without group by e.g.
select *
from src b
where exists
(select count(*)
from src a
where b.value = a.value and a.key = b.key and a.value > 'val_9'
) ;
Such queries could be rewritten to replace EXISTS/NOT EXISTS predicate with true or false based on aggregate.
Attachments
Issue Links
- contains
-
HIVE-16432 Improve plan for subquery with EXISTS
- Resolved
- relates to
-
HIVE-24935 Remove outdated check for correlated exists subqueries with full aggregate
- Resolved
- links to