@Override
  public void prepareToReCompile() {
    HiveConf conf = driver.getConf();
    conf.setBoolVar(HiveConf.ConfVars.HIVE_CBO_ENABLED, false);
    driver.getContext().setCboInfo(cboMsg);
  }
Re-compiles the query without CBO
ql/src/java/org/apache/hadoop/hive/ql/reexec/ReCompileWithoutCBOPlugin.java