Author: jcamacho Date: Fri Apr 3 08:03:28 2015 New Revision: 1671011 URL: http://svn.apache.org/r1671011 Log: HIVE-10195 : CBO (Calcite Return Path): More details for Join operator in CBO cost based algorithm selection [CBO branch] (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)
Modified: hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveJoin.java Modified: hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveJoin.java URL: http://svn.apache.org/viewvc/hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveJoin.java?rev=1671011&r1=1671010&r2=1671011&view=diff ============================================================================== --- hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveJoin.java (original) +++ hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveJoin.java Fri Apr 3 08:03:28 2015 @@ -26,6 +26,7 @@ import java.util.Set; import org.apache.calcite.plan.RelOptCluster; import org.apache.calcite.plan.RelOptCost; import org.apache.calcite.plan.RelOptPlanner; +import org.apache.calcite.plan.RelOptUtil; import org.apache.calcite.plan.RelTraitSet; import org.apache.calcite.rel.InvalidRelException; import org.apache.calcite.rel.RelCollations; @@ -156,7 +157,7 @@ public class HiveJoin extends Join imple // 4. For each possible algorithm, calculate cost, and select best RelOptCost selfCost = null; if (LOG.isDebugEnabled()) { - LOG.debug("Join algorithm selection for: " + this); + LOG.debug("Join algorithm selection for:\n" + RelOptUtil.toString(this)); } for (JoinAlgorithm possibleAlgorithm : possibleAlgorithms) { switch (possibleAlgorithm) {