private String makeQueryFilterString(String catName, String dbName, MTable mtable, String filter,
      Map<String, Object> params) throws MetaException {
    ExpressionTree tree = (filter != null && !filter.isEmpty())
        ? PartFilterExprUtil.parseFilterTree(filter) : ExpressionTree.EMPTY_TREE;
    return makeQueryFilterString(catName, dbName, convertToTable(mtable), tree, params, true);
  }
Makes a JDO query filter string.
Makes a JDO query filter string for tables or partitions.
@param dbName Database name.
@param mtable Table. If null, the query returned is over tables in a database.
  If not null, the query returned is over partitions in a table.
@param filter The filter from which JDOQL filter will be made.
@param params Parameters for the filter. Some parameters may be added here.
@return Resulting filter.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java