Search in sources :

Example 1 with DrillSqlParseException

use of org.apache.drill.exec.planner.sql.parser.impl.DrillSqlParseException in project drill by apache.

the class TestDrillSQLWorker method validateFormattedIs.

private void validateFormattedIs(String sql, SqlParserPos pos, String expected) {
    DrillSqlParseException ex = new DrillSqlParseException(sql, pos);
    String formatted = ex.getSqlWithErrorPointer();
    assertEquals(expected, formatted);
}
Also used : DrillSqlParseException(org.apache.drill.exec.planner.sql.parser.impl.DrillSqlParseException)

Aggregations

DrillSqlParseException (org.apache.drill.exec.planner.sql.parser.impl.DrillSqlParseException)1