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


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java:
##########
@@ -1690,7 +1690,12 @@ public static Map<String, String> getPartSpec(ASTNode 
node)
   public static void validatePartSpec(Table tbl, Map<String, String> partSpec,
       ASTNode astNode, HiveConf conf, boolean shouldBeFull) throws 
SemanticException {
     if (tbl.getStorageHandler() != null && 
tbl.getStorageHandler().alwaysUnpartitioned()) {
-      tbl.getStorageHandler().validatePartSpec(tbl, partSpec);
+      if 
(Context.RewritePolicy.fromString(conf.get(HiveConf.ConfVars.REWRITE_POLICY.varname,
 
+          Context.RewritePolicy.DEFAULT.name())) == 
Context.RewritePolicy.PARTITION) {

Review Comment:
   why do you need to specify default?



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