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));
}