String name = catalogStmt.getParent().getTypeName() + "-" + catalogStmt.getTypeName();
String sql = catalogStmt.getSqltext();
String stmtName = catalogStmt.getTypeName();
String procName = catalogStmt.getParent().getTypeName();
TrivialCostModel costModel = new TrivialCostModel();
CompiledPlan plan = null;
QueryPlanner planner = new QueryPlanner(
sql, stmtName, procName, catalog.getClusters().get("cluster"), db,
partitioning, hsql, estimates, false, DEFAULT_MAX_JOIN_TABLES,