Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive, mail # dev - Re: Review Request: HIVE-2206: add a new optimizer for query correlation discovery and optimization


+
Yin Huai 2013-01-16, 03:19
Copy link to this message
-
Re: Review Request: HIVE-2206: add a new optimizer for query correlation discovery and optimization
Ashutosh Chauhan 2013-01-13, 01:00


> On Jan. 10, 2013, 2:24 a.m., Ashutosh Chauhan wrote:
> > ql/src/java/org/apache/hadoop/hive/ql/exec/CorrelationLocalSimulativeReduceSinkOperator.java, line 275
> > <https://reviews.apache.org/r/7126/diff/11/?file=221827#file221827line275>
> >
> >     Does this imply CLSRSOperator cannot have more than one child operator in any case. If so, can you please add comments stating that along with small description why is that?
>
> Yin Huai wrote:
>     I thought that, in the original plan, a ReduceSinkOperator can only have 1 child. Because a CLSRSOperator replaces a ReduceSinkOperator, it also has a single child. Is my understanding correct?

I think you are correct. Since its a terminal operator, RSOperator can only have 1 child. It will be good to add this as comment there.
- Ashutosh
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7126/#review15124
-----------------------------------------------------------
On Nov. 19, 2012, 7:51 p.m., Yin Huai wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7126/
> -----------------------------------------------------------
>
> (Updated Nov. 19, 2012, 7:51 p.m.)
>
>
> Review request for hive.
>
>
> Description
> -------
>
> This optimizer exploits intra-query correlations and merges multiple correlated MapReduce jobs into one jobs. Open a new request since I have been working on hive-git.
>
>
> This addresses bug HIVE-2206.
>     https://issues.apache.org/jira/browse/HIVE-2206
>
>
> Diffs
> -----
>
>   common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 9fa9525
>   conf/hive-default.xml.template f332f3a
>   ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java 7c4c413
>   ql/src/java/org/apache/hadoop/hive/ql/exec/BaseReduceSinkOperator.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/exec/CorrelationCompositeOperator.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/exec/CorrelationLocalSimulativeReduceSinkOperator.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/exec/CorrelationReducerDispatchOperator.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/exec/ExecReducer.java 18a9bd2
>   ql/src/java/org/apache/hadoop/hive/ql/exec/GroupByOperator.java 46daeb2
>   ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java 68302f8
>   ql/src/java/org/apache/hadoop/hive/ql/exec/OperatorFactory.java 0c22141
>   ql/src/java/org/apache/hadoop/hive/ql/exec/ReduceSinkOperator.java 919a140
>   ql/src/java/org/apache/hadoop/hive/ql/exec/TableScanOperator.java 1469325
>   ql/src/java/org/apache/hadoop/hive/ql/optimizer/CorrelationOptimizer.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/optimizer/CorrelationOptimizerUtils.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java edde378
>   ql/src/java/org/apache/hadoop/hive/ql/optimizer/Optimizer.java d1555e2
>   ql/src/java/org/apache/hadoop/hive/ql/parse/ParseContext.java 2bf284d
>   ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 330aa52
>   ql/src/java/org/apache/hadoop/hive/ql/plan/BaseReduceSinkDesc.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/plan/CorrelationCompositeDesc.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/plan/CorrelationLocalSimulativeReduceSinkDesc.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/plan/CorrelationReducerDispatchDesc.java PRE-CREATION
>   ql/src/java/org/apache/hadoop/hive/ql/plan/MapredWork.java 5a9f064
>   ql/src/java/org/apache/hadoop/hive/ql/plan/ReduceSinkDesc.java b33d616
>   ql/src/java/org/apache/hadoop/hive/ql/plan/TableScanDesc.java 9a95efd
>   ql/src/test/org/apache/hadoop/hive/ql/exec/TestExecDriver.java 6f8bc47
>   ql/src/test/queries/clientpositive/correlationoptimizer1.q PRE-CREATION
+
Yin Huai 2013-01-16, 19:00