use of io.crate.planner.node.ddl.DropTablePlan in project crate by crate.
the class DropTablePlannerTest method testDropPartitionedTable.
@Test
public void testDropPartitionedTable() throws Exception {
DropTablePlan plan = e.plan("drop table parted");
assertThat(plan.tableInfo().ident().name(), is("parted"));
}
use of io.crate.planner.node.ddl.DropTablePlan in project crate by crate.
the class DropTablePlannerTest method testDropTableIfExistsNonExistentTableCreatesPlanWithoutTableInfo.
@Test
public void testDropTableIfExistsNonExistentTableCreatesPlanWithoutTableInfo() throws Exception {
DropTablePlan plan = e.plan("drop table if exists groups");
assertThat(plan.tableInfo(), Matchers.nullValue());
assertThat(plan.dropTable().maybeCorrupt(), is(false));
}
use of io.crate.planner.node.ddl.DropTablePlan in project crate by crate.
the class DropTablePlannerTest method testDropTableIfExists.
@Test
public void testDropTableIfExists() throws Exception {
DropTablePlan plan = e.plan("drop table if exists users");
assertThat(plan.tableInfo().ident().name(), is("users"));
}
use of io.crate.planner.node.ddl.DropTablePlan in project crate by crate.
the class DropTablePlannerTest method testDropNonExistentBlobTableCreatesPlanWithoutTableInfo.
@Test
public void testDropNonExistentBlobTableCreatesPlanWithoutTableInfo() throws Exception {
DropTablePlan plan = e.plan("drop blob table if exists unknown");
assertThat(plan.tableInfo(), Matchers.nullValue());
assertThat(plan.dropTable().maybeCorrupt(), is(false));
}
use of io.crate.planner.node.ddl.DropTablePlan in project crate by crate.
the class DropTablePlannerTest method testDropTableIfExistsWithUnknownSchema.
@Test
public void testDropTableIfExistsWithUnknownSchema() throws Exception {
DropTablePlan plan = e.plan("drop table if exists unknown_schema.unknwon_table");
assertThat(plan.tableInfo(), Matchers.nullValue());
assertThat(plan.dropTable().maybeCorrupt(), is(false));
}
Aggregations