ramitg254 commented on code in PR #6259:
URL: https://github.com/apache/hive/pull/6259#discussion_r2719790322


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/DescTableOperation.java:
##########
@@ -127,7 +127,7 @@ private Table getTable() throws HiveException {
   private Partition getPartition(Table table) throws HiveException {
     Partition part = null;
     if (desc.getPartitionSpec() != null) {
-      part = context.getDb().getPartition(table, desc.getPartitionSpec(), 
false);
+      part = context.getDb().getPartition(table, desc.getPartitionSpec());

Review Comment:
   > yes for its expense reason only my first approach was to use the partition 
available boolean check in analyzer and keeping the getPartition older 
behaviour used in operation which ran the check only once
   
   just for clarification: I meant do the existantial check in analyzer and 
directly use the partititon in operation which lets the expensive operation run 
once only



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