use of io.prestosql.sql.tree.DropCube in project hetu-core by openlookeng.
the class TestSqlParser method testDropCube.
@Test
public void testDropCube() {
assertStatement("DROP CUBE a", new DropCube(QualifiedName.of("a"), false));
assertStatement("DROP CUBE a.b", new DropCube(QualifiedName.of("a", "b"), false));
assertStatement("DROP CUBE a.b.c", new DropCube(QualifiedName.of("a", "b", "c"), false));
assertStatement("DROP CUBE IF EXISTS a", new DropCube(QualifiedName.of("a"), true));
assertStatement("DROP CUBE IF EXISTS a.b", new DropCube(QualifiedName.of("a", "b"), true));
assertStatement("DROP CUBE IF EXISTS a.b.c", new DropCube(QualifiedName.of("a", "b", "c"), true));
}