deniskuzZ commented on code in PR #5591:
URL: https://github.com/apache/hive/pull/5591#discussion_r2082280621


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java:
##########
@@ -141,6 +148,16 @@ public static 
org.apache.hadoop.hive.metastore.api.Partition createMetaPartition
 
     if (!tbl.isView()) {
       tpart.setSd(tbl.getSd().deepCopy());
+      if (location == null && customPattern != null) { //should only happen 
for msck repair table with custom pattern
+        Pattern p = Pattern.compile("(\\$\\{)([^\\s/\\{\\}\\\\]+)(\\})");

Review Comment:
   can be moved to constants



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