Search in sources :

Example 1 with DropCube

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));
}
Also used : DropCube(io.prestosql.sql.tree.DropCube) Test(org.testng.annotations.Test)

Aggregations

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