Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.12.0
-
None
-
None
-
ColumnPruner
Description
For a RS of a join operator, if the join key corresponding to this RS does not appear in the SELECT clause, ColumnPruner will drop the entry of this column in colExprMap.
Example:
SELECT x.key FROM src1 x JOIN src y ON (x.key = y.key);
Before CP,
colExprMap of RS corresponding to x: {VALUE._col3=Column[INPUT__FILE__NAME], VALUE._col2=Column[BLOCK__OFFSET__INSIDE__FILE], VALUE._col1=Column[value], VALUE._col0=Column[key]}; colExprMap of RS corresponding to y: {VALUE._col3=Column[INPUT__FILE__NAME], VALUE._col2=Column[BLOCK__OFFSET__INSIDE__FILE], VALUE._col1=Column[value], VALUE._col0=Column[key]}.
After CP,
colExprMap of RS corresponding to x: {VALUE._col0=Column[key]}; colExprMap of RS corresponding to y: {}.
Attachments
Attachments
Issue Links
- blocks
-
HIVE-2206 add a new optimizer for query correlation discovery and optimization
- Closed