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


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -3663,7 +3664,12 @@ public 
List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByNames
 
   public Partition getPartition(Table tbl, Map<String, String> partSpec) 
throws HiveException {
     if (tbl.getStorageHandler() != null && 
tbl.getStorageHandler().alwaysUnpartitioned()) {
-      return tbl.getStorageHandler().getPartition(tbl, partSpec);
+      if 
(Context.RewritePolicy.fromString(conf.get(ConfVars.REWRITE_POLICY.varname, 
+          Context.RewritePolicy.DEFAULT.name())) == 
Context.RewritePolicy.PARTITION) {

Review Comment:
   Removed the 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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to