difin commented on code in PR #5123:
URL: https://github.com/apache/hive/pull/5123#discussion_r1575083584


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/PartitionUtils.java:
##########
@@ -94,10 +98,20 @@ public static ExprNodeGenericFuncDesc 
makeUnaryPredicate(String fn, ExprNodeDesc
   public static Partition getPartition(Hive db, Table table, Map<String, 
String> partitionSpec, boolean throwException)
       throws SemanticException {
     Partition partition;
-    try {
-      partition = db.getPartition(table, partitionSpec, false);
-    } catch (Exception e) {
-      throw new SemanticException(toMessage(ErrorMsg.INVALID_PARTITION, 
partitionSpec), e);
+    if (table.getStorageHandler() != null && 
table.getStorageHandler().alwaysUnpartitioned()) {

Review Comment:
   Done. This is not used in this PR.



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