This is an automated email from the ASF dual-hosted git repository.

gsaihemanth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f22b1c36cf HIVE-26629: Misleading error message with 
hive.metastore.limit.partition.request (#3693) (Zhihua Deng reviewed by Sai 
Hemanth)
1f22b1c36cf is described below

commit 1f22b1c36cf03ff7b2a070edc79f8f2dd6c6b3aa
Author: dengzh <[email protected]>
AuthorDate: Wed Oct 26 09:57:36 2022 +0800

    HIVE-26629: Misleading error message with 
hive.metastore.limit.partition.request (#3693) (Zhihua Deng reviewed by Sai 
Hemanth)
---
 .../ql/ddl/table/partition/drop/AbstractDropPartitionAnalyzer.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/drop/AbstractDropPartitionAnalyzer.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/drop/AbstractDropPartitionAnalyzer.java
index 692732f2ba1..9ba94962dfb 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/drop/AbstractDropPartitionAnalyzer.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/drop/AbstractDropPartitionAnalyzer.java
@@ -140,7 +140,8 @@ abstract class AbstractDropPartitionAnalyzer extends 
AbstractAlterTableAnalyzer
         try {
           hasUnknown = db.getPartitionsByExpr(table, partitionSpec, conf, 
parts);
         } catch (Exception e) {
-          throw new 
SemanticException(ErrorMsg.INVALID_PARTITION.getMsg(partitionSpec.getExprString()),
 e);
+          throw new SemanticException("Error fetching partitions for " + 
partitionSpec.getExprString() +
+             ", message: " + e.getMessage(), e);
         }
         if (hasUnknown) {
           throw new SemanticException("Unexpected unknown partitions for " + 
partitionSpec.getExprString());

Reply via email to