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


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/HiveIcebergCopyOnWriteRecordWriter.java:
##########
@@ -55,7 +55,7 @@ class HiveIcebergCopyOnWriteRecordWriter extends 
HiveIcebergDefaultWriter {
   public void write(Writable row) throws IOException {
     Record record = ((Container<Record>) row).get();
     PositionDelete<Record> positionDelete = 
IcebergAcidUtil.getPositionDelete(record, rowDataTemplate, false);
-    Record rowData = positionDelete.row();
+    Record rowData = rowDataTemplate;

Review Comment:
   ok, make sense. i didn't know that `rowDataTemplate` is modified in-place.



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