kishendas commented on a change in pull request #1095:
URL: https://github.com/apache/hive/pull/1095#discussion_r443065320



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
##########
@@ -3241,6 +3231,19 @@ private static void printDirCacheEntries() {
     }
   }
 
+  /**
+   * Checks whether a given table is enabled for replication.
+   * @param tbl table
+   * @return true, if the table is enabled for replication. False, otherwise.
+   */
+  public static boolean inReplication(Table tbl) {
+    if (tbl.getParameters().get(ReplicationSpec.KEY.CURR_STATE_ID.toString()) 
!= null) {
+      return true;
+    } else {

Review comment:
       Fixed it. 




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

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