Skip to content

feat(table): warn when writing Parquet position-deletes on v3 #1007

@laskoviymishka

Description

@laskoviymishka

Parent: #589

v3 prefers deletion vectors over Parquet position-delete files. Java logs a warning when the older format is used (Java precedent: apache/iceberg#12048); iceberg-go silently writes the deprecated path.

Emit a single slog.Warn per writer with a stable, deduped message naming the table and pointing users at deletion vectors. The dedup matters because a partitioned-fanout writer would otherwise log once per partition. Mirror the existing slog-based warnings (the silent-data-affecting-behavior ones added in #811 are a good template).

Test: wire a custom slog.Handler into the writer, run a v3 + position-delete write, assert exactly one warning record with the stable message; assert zero warnings on v2.

Becomes obsolete once a DV writer (#997) makes DV the v3 default — but useful in the meantime to guide users away from the deprecated path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions