Search in sources :

Example 1 with ShowCache

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

the class TestSqlParser method testShowCache.

@Test
public void testShowCache() {
    assertStatement("SHOW CACHE", new ShowCache(Optional.empty(), Optional.empty()));
    assertStatement("SHOW CACHE a", new ShowCache(new NodeLocation(0, 0), QualifiedName.of("a")));
}
Also used : NodeLocation(io.prestosql.sql.tree.NodeLocation) ShowCache(io.prestosql.sql.tree.ShowCache) Test(org.testng.annotations.Test)

Aggregations

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