Zoltan Borok-Nagy has uploaded this change for review. ( https://gerrit.cloudera.org/25426
Change subject: IMPALA-15797: Follow the Puffin spec for deletion vectors ...................................................................... IMPALA-15797: Follow the Puffin spec for deletion vectors The Puffin footer of the deletion vectors that Impala writes didn't follow the Puffin spec. Blobs had "compression-codec": "none", which is not a codec name, no cardinality property, 0 instead of -1 as snapshot id and sequence number, and an empty list of fields. Iceberg's PuffinReader.readAll() failed on these files with "Unknown codec name: none", e.g. in the rewrite_table_path procedure. Scans were not affected, because they read deletion vectors at the offsets in the manifest entries. PuffinWriter now omits the codec of uncompressed blobs, and writes deletion vectors like Iceberg's BaseDVFileWriter: for the field id of the row position, with -1 as snapshot id and sequence number, and with the referenced-data-file and cardinality properties. It also sets the created-by file property, which the spec recommends. Testing: - Extended test_v3_delete_puffin_file_size to check the footer, also after merging deletion vectors. - Read the Puffin files with Iceberg's PuffinReader. Change-Id: I928cf457bf1ca68780b4826e1fad2de31afa51ae Assisted-by: Claude Opus 5.5 (Claude Code) --- M be/src/exec/puffin/puffin-writer.cc M be/src/exec/puffin/puffin-writer.h M tests/query_test/test_iceberg.py 3 files changed, 62 insertions(+), 20 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/26/25426/1 -- To view, visit https://gerrit.cloudera.org/25426 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I928cf457bf1ca68780b4826e1fad2de31afa51ae Gerrit-Change-Number: 25426 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
