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")));
}
Aggregations