Search in sources :

Example 1 with DropColumn

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

the class TestSqlParser method testDropColumn.

@Test
public void testDropColumn() {
    assertStatement("ALTER TABLE foo.t DROP COLUMN c", new DropColumn(QualifiedName.of("foo", "t"), identifier("c")));
    assertStatement("ALTER TABLE \"t x\" DROP COLUMN \"c d\"", new DropColumn(QualifiedName.of("t x"), quotedIdentifier("c d")));
}
Also used : DropColumn(io.prestosql.sql.tree.DropColumn) Test(org.testng.annotations.Test)

Aggregations

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