Search in sources :

Example 1 with RefreshMetadataCache

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

the class TestSqlParser method testRefreshMetastoreCache.

@Test
public void testRefreshMetastoreCache() {
    assertStatement("REFRESH META CACHE", new RefreshMetadataCache(Optional.empty(), Optional.empty()));
    assertStatement("REFRESH META CACHE FOR foo", new RefreshMetadataCache(Optional.empty(), Optional.of(new Identifier("foo"))));
}
Also used : Identifier(io.prestosql.sql.tree.Identifier) QueryUtil.quotedIdentifier(io.prestosql.sql.QueryUtil.quotedIdentifier) RefreshMetadataCache(io.prestosql.sql.tree.RefreshMetadataCache) Test(org.testng.annotations.Test)

Aggregations

QueryUtil.quotedIdentifier (io.prestosql.sql.QueryUtil.quotedIdentifier)1 Identifier (io.prestosql.sql.tree.Identifier)1 RefreshMetadataCache (io.prestosql.sql.tree.RefreshMetadataCache)1 Test (org.testng.annotations.Test)1