ramitg254 commented on code in PR #6259:
URL: https://github.com/apache/hive/pull/6259#discussion_r2719798426
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/DescTableAnalyzer.java:
##########
@@ -77,9 +77,10 @@ public void analyzeInternal(ASTNode root) throws
SemanticException {
// process the second child, if exists, node to get partition spec(s)
Map<String, String> partitionSpec = getPartitionSpec(db, tableTypeExpr,
tableName);
+ Partition partition = null;
if (partitionSpec != null) {
// validate that partition exists
- PartitionUtils.getPartition(db, table, partitionSpec, true);
+ partition = PartitionUtils.getPartition(db, table, partitionSpec, true);
Review Comment:
it is already taking care of the entire getPartition so we don't need to
check in getPartitionSpec
--
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]