use of org.apache.hadoop.hive.metastore.api.GetProjectionsSpec in project hive by apache.
the class TestGetPartitionsUsingProjectionAndFilterSpecs method runWithInvalidFilterByNames.
private void runWithInvalidFilterByNames() throws TException {
GetPartitionsRequest request = getGetPartitionsRequest();
GetProjectionsSpec projectSpec = request.getProjectionSpec();
projectSpec.setFieldList(Arrays.asList("sd.location"));
request.getFilterSpec().setFilterMode(PartitionFilterMode.BY_NAMES);
// filter mode is set but not filters are provided
client.getPartitionsWithSpecs(request);
}
Aggregations