Operator<? extends OperatorDesc> nextRS = findSourceRS(nextOp, backtrackedExprs); if (nextRS != null) { currRS = nextRS;
private long getParentNumRows(GroupByOperator op, List<ExprNodeDesc> gbyKeys, HiveConf conf) { if(gbyKeys == null || gbyKeys.isEmpty()) { return op.getParentOperators().get(0).getStatistics().getNumRows(); } Operator<? extends OperatorDesc> parent = OperatorUtils.findSourceRS(op, gbyKeys); if(parent != null) { return parent.getStatistics().getNumRows(); } return op.getParentOperators().get(0).getStatistics().getNumRows(); }