use of org.apache.hadoop.hive.metastore.parser.ExpressionTree in project hive by apache.
the class HBaseStore method getPartitionsByFilter.
@Override
public List<Partition> getPartitionsByFilter(String dbName, String tblName, String filter, short maxParts) throws MetaException, NoSuchObjectException {
final ExpressionTree exprTree = (filter != null && !filter.isEmpty()) ? PartFilterExprUtil.getFilterParser(filter).tree : ExpressionTree.EMPTY_TREE;
List<Partition> result = new ArrayList<Partition>();
boolean commit = false;
openTransaction();
try {
getPartitionsByExprInternal(HiveStringUtils.normalizeIdentifier(dbName), HiveStringUtils.normalizeIdentifier(tblName), exprTree, maxParts, result);
return result;
} finally {
commitOrRoleBack(commit);
}
}
Aggregations