Search in sources :

Example 1 with TruncateTable

use of io.trino.sql.tree.TruncateTable in project trino by trinodb.

the class TestSqlParser method testTruncateTable.

@Test
public void testTruncateTable() throws Exception {
    assertStatement("TRUNCATE TABLE a", new TruncateTable(QualifiedName.of("a")));
    assertStatement("TRUNCATE TABLE a.b", new TruncateTable(QualifiedName.of("a", "b")));
    assertStatement("TRUNCATE TABLE a.b.c", new TruncateTable(QualifiedName.of("a", "b", "c")));
}
Also used : TruncateTable(io.trino.sql.tree.TruncateTable) Test(org.junit.jupiter.api.Test)

Aggregations

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