Search in sources :

Example 1 with DropView

use of io.prestosql.sql.tree.DropView in project hetu-core by openlookeng.

the class TestSqlParser method testDropView.

@Test
public void testDropView() {
    assertStatement("DROP VIEW a", new DropView(QualifiedName.of("a"), false));
    assertStatement("DROP VIEW a.b", new DropView(QualifiedName.of("a", "b"), false));
    assertStatement("DROP VIEW a.b.c", new DropView(QualifiedName.of("a", "b", "c"), false));
    assertStatement("DROP VIEW IF EXISTS a", new DropView(QualifiedName.of("a"), true));
    assertStatement("DROP VIEW IF EXISTS a.b", new DropView(QualifiedName.of("a", "b"), true));
    assertStatement("DROP VIEW IF EXISTS a.b.c", new DropView(QualifiedName.of("a", "b", "c"), true));
}
Also used : DropView(io.prestosql.sql.tree.DropView) Test(org.testng.annotations.Test)

Aggregations

DropView (io.prestosql.sql.tree.DropView)1 Test (org.testng.annotations.Test)1