You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/09/01 08:48:33 UTC
[GitHub] [hive] deniskuzZ commented on a diff in pull request #3568: HIVE-26510: Minor compaction creates empty delta files when no prior …
deniskuzZ commented on code in PR #3568:
URL: https://github.com/apache/hive/pull/3568#discussion_r960387642
##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java:
##########
@@ -817,6 +816,7 @@ public void map(WritableComparable key, CompactorInputSplit split,
deleteEventWriter.write(value);
reporter.progress();
} else {
+ getWriter(reporter, reader.getObjectInspector(), split.getBucket());
Review Comment:
could we refactor to:
````
if (sawDeleteRecord && acidOperationalProperties.isSplitUpdate()) {
getDeleteEventWriter(reporter, reader.getObjectInspector(), split.getBucket())
.write(value);
reporter.progress();
} else {
getWriter(reporter, reader.getObjectInspector(), split.getBucket())
.write(value);
reporter.progress();
}
````
--
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-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org