command.update(); plan = command.getPlanSQL(); Map<String, Integer> statistics = null; if (store != null) { plan = command.getPlanSQL();
/** * @param qry Query. */ private void checkQuery(String qry) throws Exception { Prepared prepared = parse(qry); GridSqlStatement gQry = new GridSqlQueryParser(false).parse(prepared); String res = gQry.getSQL(); System.out.println(normalizeSql(res)); assertSqlEquals(U.firstNotNull(prepared.getPlanSQL(), prepared.getSQL()), res); }
command.update(); plan = command.getPlanSQL(); Map<String, Integer> statistics = null; if (store != null) { plan = command.getPlanSQL();
command.update(); plan = command.getPlanSQL(); Map<String, Integer> statistics = null; if (store != null) { plan = command.getPlanSQL();
public LocalResult query(int maxrows) throws SQLException { // TODO rights: are rights required for explain? ObjectArray expressions = new ObjectArray(); Column column = new Column("PLAN", Value.STRING); ExpressionColumn expr = new ExpressionColumn(session.getDatabase(), column); expressions.add(expr); result = new LocalResult(session, expressions, 1); if (maxrows >= 0) { String plan = command.getPlanSQL(); add(plan); } result.done(); return result; }