Details
-
Improvement
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Consider a query like:
select * from
(
select key, 1 as value, count(1) from src group by key
union all
select 1 as key, value, count(1) from src group by value
union all
select key, value, count(1) from src group by key, value
) s;
src is scanned multiple times currently (one per sub-query).
This should be treated like a multi-table insert by the optimizer.
Attachments
Issue Links
- is related to
-
HIVE-2206 add a new optimizer for query correlation discovery and optimization
- Closed