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


##########
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/HiveCustomStorageHandlerUtils.java:
##########
@@ -90,4 +92,21 @@ public static boolean 
getWriteOperationIsSorted(Configuration conf, String table
         String isSortedString = conf.get(WRITE_OPERATION_IS_SORTED + 
tableName);
         return Boolean.parseBoolean(isSortedString);
     }
+
+    public static void setWriteOperationIsMerge(Configuration conf, String 
tableName, boolean isMerge) {
+        if (conf == null || tableName == null) {
+            return;
+        }
+
+        conf.set(WRITE_OPERATION_FOR_MERGE_TASK + tableName, 
Boolean.toString(isMerge));
+    }
+
+    public static boolean getWriteOperationIsMerge(Configuration conf, String 
tableName) {

Review Comment:
   why not call it 'isMergeTask' for clarity?



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