You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/02/26 21:20:30 UTC

[GitHub] [hive] jcamachor commented on a change in pull request #916: HIVE-22900 : Predicate Push Down Of Like Filter While Fetching Partition Data From MetaStore

jcamachor commented on a change in pull request #916: HIVE-22900 : Predicate Push Down Of Like Filter While Fetching Partition Data From MetaStore
URL: https://github.com/apache/hive/pull/916#discussion_r384772777
 
 

 ##########
 File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
 ##########
 @@ -1222,6 +1217,10 @@ public void visit(LeafNode node) throws MetaException {
         params.add(nodeValue);
       }
 
+      if (node.operator == Operator.LIKE) {
+        nodeValue0 = nodeValue0 + " ESCAPE '\\' ";
 
 Review comment:
   Can you add a comment about this line?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org