use of io.trino.sql.tree.RenameTable in project trino by trinodb.
the class TestSqlParser method testRenameTable.
@Test
public void testRenameTable() {
assertStatement("ALTER TABLE a RENAME TO b", new RenameTable(QualifiedName.of("a"), QualifiedName.of("b"), false));
assertStatement("ALTER TABLE IF EXISTS a RENAME TO b", new RenameTable(QualifiedName.of("a"), QualifiedName.of("b"), true));
}
Aggregations