zratkai commented on code in PR #5483:
URL: https://github.com/apache/hive/pull/5483#discussion_r1804861596


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java:
##########
@@ -139,6 +140,20 @@ public static boolean onlyContainsPartnCols(Table tab, 
ExprNodeDesc expr) {
     return true;
   }
 
+  public static boolean isPartitioned(Table table){

Review Comment:
   Fixed.



##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java:
##########
@@ -139,6 +140,20 @@ public static boolean onlyContainsPartnCols(Table tab, 
ExprNodeDesc expr) {
     return true;
   }
 
+  public static boolean isPartitioned(Table table){
+    if (table.getStorageHandler() != null && 
table.getStorageHandler().alwaysUnpartitioned()) {
+      return table.getStorageHandler().isPartitioned(table);
+    } else {
+      return table.isPartitioned();
+    }
+  }
+  
+  public static boolean isPartitionKey(Table table, String columnName){

Review Comment:
   Fixed.



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