pvary commented on a change in pull request #3061:
URL: https://github.com/apache/hive/pull/3061#discussion_r817467883



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
##########
@@ -3939,8 +3939,8 @@ protected boolean getPartitionsByExprInternal(String 
catName, String dbName, Str
       boolean allowSql, boolean allowJdo) throws TException {
     assert result != null;
 
-    final ExpressionTree exprTree = 
PartFilterExprUtil.makeExpressionTree(expressionProxy, expr,
-                                                    
getDefaultPartitionName(defaultPartitionName), conf);
+    final ExpressionTree exprTree = expr.length != 0 ? 
PartFilterExprUtil.makeExpressionTree(

Review comment:
       The zero length expression signifies that no filtering is needed.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to