Zoltan Borok-Nagy has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24143 )

Change subject: IMPALA-14755: (part 2) Implement Iceberg deletion vector 
reading/writing
......................................................................


Patch Set 9:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/24143/9/be/src/exec/puffin/puffin-writer.cc
File be/src/exec/puffin/puffin-writer.cc:

http://gerrit.cloudera.org:8080/#/c/24143/9/be/src/exec/puffin/puffin-writer.cc@243
PS9, Line 243: <
size_t is unsigned, it cannot be negative


http://gerrit.cloudera.org:8080/#/c/24143/9/be/src/exec/puffin/puffin-writer.cc@259
PS9, Line 259: DCHECK
nit: DCHECK_GT is preferable


http://gerrit.cloudera.org:8080/#/c/24143/9/be/src/exec/puffin/puffin-writer.cc@320
PS9, Line 320: RETURN_IF_ERROR(Write(magic_be));
This is not accounted in current_offset_ which makes 'file_size_in_bytes' off 
by 4 in the manifest entry.

Would be nice to have tests that verify that file size is the same on disk and 
in the 'files' metadata table.


http://gerrit.cloudera.org:8080/#/c/24143/9/fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java
File fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java:

http://gerrit.cloudera.org:8080/#/c/24143/9/fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java@860
PS9, Line 860: positionDeletesRecordCount_ += dv.getRecord_count();
I think this needs to be deleted to avoid double-counting the record counts of 
DVs when there are position delete files as well.


http://gerrit.cloudera.org:8080/#/c/24143/9/testdata/workloads/functional-query/queries/QueryTest/iceberg-v3-delete-existing-dv.test
File 
testdata/workloads/functional-query/queries/QueryTest/iceberg-v3-delete-existing-dv.test:

http://gerrit.cloudera.org:8080/#/c/24143/9/testdata/workloads/functional-query/queries/QueryTest/iceberg-v3-delete-existing-dv.test@21
PS9, Line 21: ---- QUERY
Please extend a few tests with

 ---- RUNTIME_PROFILE
 NumDeletedRows: N

to verify that the deleted rows are still accounted correctly.

Please also do it for a few DELETEs in other .test files.



--
To view, visit http://gerrit.cloudera.org:8080/24143
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5613c31a7aa46b94b7c70386c939c08cc68632cd
Gerrit-Change-Number: 24143
Gerrit-PatchSet: 9
Gerrit-Owner: Peter Rozsa <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Peter Rozsa <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Tue, 21 Apr 2026 11:08:48 +0000
Gerrit-HasComments: Yes

Reply via email to