org.apache.hadoop.hive.ql.optimizer.correlation
Class ReduceSinkDeDuplication
java.lang.Object
org.apache.hadoop.hive.ql.optimizer.correlation.ReduceSinkDeDuplication
- All Implemented Interfaces:
- Transform
public class ReduceSinkDeDuplication
- extends Object
- implements Transform
If two reducer sink operators share the same partition/sort columns and order,
they can be merged. This should happen after map join optimization because map
join optimization will remove reduce sink operators.
This optimizer removes/replaces child-RS (not parent) which is safer way for DefaultGraphWalker.
ReduceSinkDeDuplication
public ReduceSinkDeDuplication()
transform
public ParseContext transform(ParseContext pctx)
throws SemanticException
- Description copied from interface:
Transform
- All transformation steps implement this interface.
- Specified by:
transform
in interface Transform
- Parameters:
pctx
- input parse context
- Returns:
- ParseContext
- Throws:
SemanticException
Copyright © 2014 The Apache Software Foundation. All rights reserved.