Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
If an EXISTS/NOT EXISTS subquery contains an aggregate (with no group by or windowing) it is guaranteed to produce at least one row. Since such subquery in WHERE clause tests for existence of row it could be replaced by true during compile time.
Attachments
Issue Links
- Is contained by
-
HIVE-15757 Allow EXISTS/NOT EXISTS correlated subquery with aggregates
- Closed