Skip to content

feat: add position_deletes metadata table - #920

Draft
wirybeaver wants to merge 3 commits into
apache:mainfrom
wirybeaver:feature/position-deletes-metadata-table
Draft

wirybeaver wants to merge 3 commits into
apache:mainfrom
wirybeaver:feature/position-deletes-metadata-table

Conversation

@wirybeaver

@wirybeaver wirybeaver commented Sep 5, 2026 •

Copy link
Copy Markdown

Motivation

DV-PR-3 in #916 exposes deleted positions through the position_deletes metadata table. A table upgraded from v2 can contain both Parquet position deletes and v3 Puffin deletion vectors.

Modification

live delete manifest entries -> Parquet: read file path, position and optional row
                             -> Puffin: expand the referenced bitmap
                             -> attach partition metadata -> project Arrow batches

Resolve partition fields by ID across specs and decode fixed-width manifest values using the field's Iceberg type, including UUID. Missing fields in a partially stored row remain null. The inspector supports complete top-level projections and materializes results before returning the stream.

Test

An in-library scan of an upgraded table returns positions from both Parquet and Puffin. Partition values written to a manifest and read through the metadata table retain their decimal, date, fixed, and UUID values.

@wirybeaver
wirybeaver force-pushed the feature/position-deletes-metadata-table branch 3 times, most recently from 74edbb6 to 7965dcd Compare September 5, 2026 23:34
@wirybeaver
wirybeaver force-pushed the feature/position-deletes-metadata-table branch 2 times, most recently from 0a41688 to 2e7240e Compare October 1, 2026 21:45
wirybeaver and others added 3 commits November 19, 2026 23:27
Reuse one reader and projection context per scan. Append and decode decimal partitions as Decimal128, and encode Avro fixed decimals using their schema width rather than all 16 Arrow bytes. Preserve logical date storage values and cover the complete partition write/read path.
@wirybeaver
wirybeaver force-pushed the feature/position-deletes-metadata-table branch from cd5823b to 9e63694 Compare November 20, 2026 07:32

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant