public MapWork createMapWork(GenTezProcContext context, Operator<?> root, TezWork tezWork, PrunedPartitionList partitions) throws SemanticException { assert root.getParentOperators().isEmpty(); MapWork mapWork = new MapWork(Utilities.MAPNAME + context.nextSequenceNumber()); LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root); // map work starts with table scan operators assert root instanceof TableScanOperator; TableScanOperator ts = (TableScanOperator) root; String alias = ts.getConf().getAlias(); setupMapWork(mapWork, context, partitions, ts, alias); if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) { mapWork.setDummyTableScan(true); } if (ts.getConf().getNumBuckets() > 0) { mapWork.setIncludedBuckets(ts.getConf().getIncludedBuckets()); } // add new item to the tez work tezWork.add(mapWork); return mapWork; }
public MapWork createMapWork(GenTezProcContext context, Operator<?> root, TezWork tezWork, PrunedPartitionList partitions) throws SemanticException { assert root.getParentOperators().isEmpty(); MapWork mapWork = new MapWork(Utilities.MAPNAME + context.nextSequenceNumber()); LOG.debug("Adding map work (" + mapWork.getName() + ") for " + root); // map work starts with table scan operators assert root instanceof TableScanOperator; TableScanOperator ts = (TableScanOperator) root; String alias = ts.getConf().getAlias(); setupMapWork(mapWork, context, partitions, ts, alias); if (ts.getConf().getTableMetadata() != null && ts.getConf().getTableMetadata().isDummyTable()) { mapWork.setDummyTableScan(true); } if (ts.getConf().getNumBuckets() > 0) { mapWork.setIncludedBuckets(ts.getConf().getIncludedBuckets()); } // add new item to the tez work tezWork.add(mapWork); return mapWork; }