Examples of HiveJoinRel


Examples of org.apache.hadoop.hive.ql.optimizer.optiq.reloperators.HiveJoinRel

  @Override
  public Double getDistinctRowCount(JoinRelBase rel, BitSet groupKey,
      RexNode predicate) {
    if (rel instanceof HiveJoinRel) {
      HiveJoinRel hjRel = (HiveJoinRel) rel;
      //TODO: Improve this
      if (hjRel.isLeftSemiJoin()) {
        return RelMetadataQuery.getDistinctRowCount(hjRel.getLeft(), groupKey,
            rel.getCluster().getRexBuilder().makeLiteral(true));
      } else {
        return RelMdUtil.getJoinDistinctRowCount(rel, rel.getJoinType(),
            groupKey, predicate, true);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.