use of io.crate.sql.tree.KillStatement in project crate by crate.
the class TestStatementBuilder method testKillAll.
@Test
public void testKillAll() {
Statement stmt = SqlParser.createStatement("KILL ALL");
assertThat(stmt, is(new KillStatement(null)));
}
use of io.crate.sql.tree.KillStatement in project crate by crate.
the class TestStatementBuilder method testKillJob.
@Test
public void testKillJob() {
KillStatement stmt = (KillStatement) SqlParser.createStatement("KILL $1");
assertThat(stmt.jobId(), is(notNullValue()));
}
Aggregations