use of com.facebook.presto.spi.Constraint in project presto by prestodb.
the class AbstractTestHiveClient method testGetPartitionsException.
@Test(expectedExceptions = TableNotFoundException.class)
public void testGetPartitionsException() throws Exception {
try (Transaction transaction = newTransaction()) {
ConnectorMetadata metadata = transaction.getMetadata();
metadata.getTableLayouts(newSession(), invalidTableHandle, new Constraint<>(TupleDomain.all(), bindings -> true), Optional.empty());
}
}
Aggregations