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


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/HiveIcebergDeleteWriter.java:
##########
@@ -61,10 +61,11 @@ public void write(Writable row) throws IOException {
     PositionDelete<Record> positionDelete = 
IcebergAcidUtil.getPositionDelete(rec, rowDataTemplate, isMergeTask);
     int specId = IcebergAcidUtil.parseSpecId(rec);
     PartitionKey partitionKey = isMergeTask ? 
IcebergAcidUtil.parsePartitionKey(rec) :
-        partition(positionDelete.row(), specId);
+        partition(positionDelete.get(2, Record.class), specId);
     if (skipRowData) {
       // Set null as the row data as we intend to avoid writing the actual row 
data in the delete file.
-      positionDelete.set(positionDelete.path(), positionDelete.pos(), null);
+      positionDelete.set(positionDelete.path(), positionDelete.pos());
+      positionDelete.set(2, null);

Review Comment:
   same :) what is this 2?



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