deniskuzZ commented on code in PR #5254:
URL: https://github.com/apache/hive/pull/5254#discussion_r1680630720
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java:
##########
@@ -1264,14 +1267,33 @@ public static void
createMRWorkForMergingFiles(FileSinkOperator fsInput,
FileSinkDesc fsOutputDesc = null;
TableScanOperator tsMerge = null;
if (!isBlockMerge) {
+ TableDesc ts = (TableDesc) fsInputDesc.getTableInfo().clone();
+ String storageHandlerClass = ts.getProperties().getProperty(
+
org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_STORAGE);
+ HiveStorageHandler storageHandler = null;
+ try {
+ storageHandler = HiveUtils.getStorageHandler(conf,
storageHandlerClass);
+ } catch (HiveException e) {
+ throw new SemanticException(e);
+ }
+ boolean isCustomDelete = false;
+ if (Context.Operation.DELETE.equals(fsInputDesc.getWriteOperation()) &&
storageHandler != null && storageHandler.supportsMergeFiles()) {
+ storageHandler.setCustomDeleteProperties(ts);
+ isCustomDelete = true;
+ }
+
ts.getProperties().put(HiveCustomStorageHandlerUtils.WRITE_OPERATION_FOR_MERGE_TASK
+
Review Comment:
should it be MERGE_TASK = TRUE?
--
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]