Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,25 @@ public void testDropNotExistingTable()
}

@Test
public void testDropNotExistingTableIfExists()
public void testDropTableIfExistsWithoutExistingCatalog()
{
QualifiedName tableName = QualifiedName.of("non_existing_catalog", "non_existing_schema", "not_existing_table");

getFutureValue(executeDropTable(tableName, true));
// no exception
}

@Test
public void testDropTableIfExistsWithoutExistingSchema()
{
QualifiedName tableName = QualifiedName.of(TEST_CATALOG_NAME, "non_existing_schema", "not_existing_table");

getFutureValue(executeDropTable(tableName, true));
// no exception
}

@Test
public void testDropTableIfExistsWithoutExistingTable()
{
QualifiedName tableName = qualifiedName("not_existing_table");

Expand All @@ -75,7 +93,7 @@ public void testDropTableOnView()
}

@Test
public void testDropTableOnViewIfExists()
public void testDropTableIfExistsOnView()
{
QualifiedName viewName = qualifiedName("existing_view");
metadata.createView(testSession, asQualifiedObjectName(viewName), someView(), false);
Expand All @@ -97,7 +115,7 @@ public void testDropTableOnMaterializedView()
}

@Test
public void testDropTableOnMaterializedViewIfExists()
public void testDropTableIfExistsOnMaterializedView()
{
QualifiedName viewName = qualifiedName("existing_materialized_view");
metadata.createMaterializedView(testSession, asQualifiedObjectName(viewName), someMaterializedView(), false, false);
Expand Down