@Override
    protected void visit(LeafNode node) throws MetaException {
      beforeParsing();
      keyName = node.keyName;
      operator = node.operator;
      value = node.value;
      isReverseOrder = node.isReverseOrder;
      if (node.keyName.startsWith(hive_metastoreConstants.HIVE_FILTER_FIELD_PARAMS)
          && DatabaseProduct.isDerbyOracle() && node.operator == Operator.EQUALS) {
        // Rewrite the EQUALS operator to LIKE
        operator = Operator.LIKE;
      }
      if (partitionKeys != null) {
        generateJDOFilterOverPartitions(conf, params, filterBuilder, partitionKeys);
      } else {
        generateJDOFilterOverTables(params, filterBuilder);
      }
    }
Generate the JDOQL filter for the given expression tree
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/parser/ExpressionTree.java