use of org.apache.hadoop.hive.ql.optimizer.physical.LlapDecider.LlapMode in project hive by apache.
the class LlapPreVectorizationPass method resolve.
@Override
public PhysicalContext resolve(PhysicalContext pctx) throws SemanticException {
HiveConf conf = pctx.getConf();
LlapMode mode = LlapMode.valueOf(HiveConf.getVar(conf, HiveConf.ConfVars.LLAP_EXECUTION_MODE));
if (mode == none) {
LOG.info("LLAP disabled.");
return pctx;
}
Dispatcher disp = new LlapPreVectorizationPassDispatcher(pctx);
GraphWalker ogw = new DefaultGraphWalker(disp);
ArrayList<Node> topNodes = new ArrayList<Node>();
topNodes.addAll(pctx.getRootTasks());
ogw.startWalking(topNodes, null);
return pctx;
}
Aggregations