Search in sources :

Example 1 with RenameTable

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));
}
Also used : RenameTable(io.trino.sql.tree.RenameTable) Test(org.junit.jupiter.api.Test)

Aggregations

RenameTable (io.trino.sql.tree.RenameTable)1 Test (org.junit.jupiter.api.Test)1