return VERSION;
}
@Override
public QueryPlan getQueryPlan() throws HiveServerException, TException {
QueryPlan qp = new QueryPlan();
if (!isHiveQuery) {
return qp;
}
assert driver != null: "getQueryPlan() is called on a Hive query and driver is NULL.";
// TODO for now only return one query at a time
// going forward, all queries associated with a single statement
// will be returned in a single QueryPlan
try {
qp.addToQueries(driver.getQueryPlan());
} catch (Exception e) {
HiveServerException ex = new HiveServerException();
ex.setMessage(e.toString());
throw ex;
}