Package org.apache.hadoop.hive.ql.optimizer.optiq.reloperators

Examples of org.apache.hadoop.hive.ql.optimizer.optiq.reloperators.HiveRel$Implementor


        String fName = iType.getFieldNames().get(i);
        optiqColLst.add(cluster.getRexBuilder().makeInputRef(fType.getType(), i));
        oFieldNames.add(fName);
      }

      HiveRel selRel = HiveProjectRel.create(srcRel, optiqColLst, oFieldNames);

      this.relToHiveColNameOptiqPosMap.put(selRel, buildHiveToOptiqColumnMap(oRR, selRel));
      this.relToHiveRR.put(selRel, oRR);
      return selRel;
    }
View Full Code Here


        // first element from srcRel
        gbChildProjLst.add(this.cluster.getRexBuilder().makeInputRef(srcRel, 0));
      }
      RelNode gbInputRel = HiveProjectRel.create(srcRel, gbChildProjLst, null);

      HiveRel aggregateRel = null;
      try {
        aggregateRel = new HiveAggregateRel(cluster, cluster.traitSetOf(HiveRel.CONVENTION),
            gbInputRel, groupSet, aggregateCalls);
      } catch (InvalidRelException e) {
        throw new SemanticException(e);
View Full Code Here

      return (new Pair(sortRel, originalOBChild));
    }

    private RelNode genLimitLogicalPlan(QB qb, RelNode srcRel) throws SemanticException {
      HiveRel sortRel = null;
      QBParseInfo qbp = getQBParseInfo(qb);
      Integer limit = qbp.getDestToLimit().get(qbp.getClauseNames().iterator().next());

      if (limit != null) {
        RexNode fetch = cluster.getRexBuilder().makeExactLiteral(BigDecimal.valueOf(limit));
View Full Code Here

        columnNames.add(tmpColAlias);
      }

      // 3 Build Optiq Rel Node for project using converted projections & col
      // names
      HiveRel selRel = HiveProjectRel.create(srcRel, optiqColLst, columnNames);

      // 4. Keep track of colname-to-posmap && RR for new select
      this.relToHiveColNameOptiqPosMap.put(selRel, buildHiveToOptiqColumnMap(out_rwsch, selRel));
      this.relToHiveRR.put(selRel, out_rwsch);
View Full Code Here

        }
      });

      // 3 Build Optiq Rel Node for project using converted projections & col
      // names
      HiveRel selRel = HiveProjectRel.create(srcRel, optiqColLst, oFieldNames);

      // 4. Keep track of colname-to-posmap && RR for new select
      this.relToHiveColNameOptiqPosMap.put(selRel, buildHiveToOptiqColumnMap(out_rwsch, selRel));
      this.relToHiveRR.put(selRel, out_rwsch);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.optimizer.optiq.reloperators.HiveRel$Implementor

Copyright © 2018 www.massapicom. 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.