use of org.apache.hadoop.hive.metastore.api.ClientCapabilities in project hetu-core by openlookeng.
the class ThriftHiveMetastoreClient method getTableWithCapabilities.
@Override
public Table getTableWithCapabilities(String databaseName, String tableName) throws TException {
GetTableRequest request = new GetTableRequest();
request.setDbName(databaseName);
request.setTblName(tableName);
request.setCapabilities(new ClientCapabilities(ImmutableList.of(ClientCapability.INSERT_ONLY_TABLES)));
return client.get_table_req(request).getTable();
}
use of org.apache.hadoop.hive.metastore.api.ClientCapabilities in project trino by trinodb.
the class ThriftHiveMetastoreClient method getTableWithCapabilities.
@Override
public Table getTableWithCapabilities(String databaseName, String tableName) throws TException {
GetTableRequest request = new GetTableRequest();
request.setDbName(databaseName);
request.setTblName(tableName);
request.setCapabilities(new ClientCapabilities(ImmutableList.of(ClientCapability.INSERT_ONLY_TABLES)));
return client.get_table_req(request).getTable();
}
Aggregations