Repository navigation
Description
Background
Iceberg 1.12 can create format v4 tables with Parquet manifests. Doris uses separate Java runtime closures for FE scan planning and BE metadata scans, and both need to read those manifests.
Current behavior
A format v4 manifest operation fails with Cannot write using unregistered internal data format: PARQUET on the current dependency closure. Historical partition recovery also assumes an Avro manifest header. Table-relative paths need a table location before native file opens, while position-delete matching must retain its original file identity.
Expected behavior
Read plaintext format v4 tables produced by the released SDK through existing catalogs, including data queries, metadata tables, deletion vectors and retained deletes from older table versions.
Proposed design
Include the released SDK's Parquet implementation in both runtime closures. Read historical partition metadata from the manifest's actual container. Use a borrowed, serializable FileIO view that binds relative metadata reads to the same table metadata generation. Resolve native data/delete paths separately from their logical identities, and include resolved manifest locations in cache identity. A dependency-only change leaves native relative-path opens and Avro-only historical partition recovery unresolved. Keeping path resolution in a read view avoids changing writable catalog operations.
The compatibility target is the released Iceberg 1.12 SDK. The evolving root-manifest APIs require separate work.
Impact
Users querying newly created v4 tables or tables upgraded from v2/v3 gain read compatibility. FE planning and the isolated metadata JNI plugin change; existing data readers and catalog privilege checks remain in use.
Reproduction or evidence
An SDK-backed unit test reproduces the baseline missing-format error. Additional tests exercise real Parquet manifests, expired partition schemas, relative metadata and data paths, cache isolation, serialized metadata tasks, and inherited delete association. SQL regression uses real data and delete payloads.
Scope and non-goals
Released-SDK plaintext table reads, supported data-file formats, metadata queries and existing delete semantics. Encrypted v4 tables, write-side changes and unreleased root/leaf metadata trees are outside this change.
Acceptance criteria
- Query fresh and upgraded tables with correct row sets and counts.
- Read files metadata through the isolated JNI plugin.
- Resolve relative physical paths while preserving delete identities.
- Keep distinct tables' relative manifests isolated in the cache.
- Reject relative paths without a table location and preserve absolute-path reads.
- Cover these behaviors with unit tests and SQL regression.
Risks and compatibility
There is no new SQL syntax, catalog option, Doris persistence field or wire field. Update both FE and BE Java packages before querying v4 metadata tables: older metadata plugins cannot deserialize the new read adapter. Existing v1-v3 reads retain their previous path handling. Existing catalog and storage authorization continues through the original FileIO delegate.
Related
None.
Activity
[fix](iceberg) Preserve absolute metadata paths after v4 upgrades
[fix](iceberg) Preserve V4 authentication and metadata delete fallback
[fix](iceberg) Preserve V4 metadata path and cache provenance
[fix](iceberg) Bind compact V4 metadata tasks before transport
[feature](iceberg) Support format v4 reads with Iceberg 1.12
[fix](iceberg) Preserve absolute metadata paths after v4 upgrades
[fix](iceberg) Preserve V4 authentication and metadata delete fallback
[fix](iceberg) Preserve V4 metadata path and cache provenance
[fix](iceberg) Bind compact V4 metadata tasks before transport
[fix](iceberg) Share V4 path provenance across statement scans
[fix](iceberg) Preserve V4 metadata identity and refuse unsafe writes
[fix](iceberg) Fence V4 delete and manifest identities
[feature](iceberg) Support format v4 reads with Iceberg 1.12
[fix](iceberg) Preserve absolute metadata paths after v4 upgrades
[fix](iceberg) Preserve V4 authentication and metadata delete fallback
[fix](iceberg) Preserve V4 metadata path and cache provenance
[fix](iceberg) Bind compact V4 metadata tasks before transport
[fix](iceberg) Share V4 path provenance across statement scans
[fix](iceberg) Preserve V4 metadata identity and refuse unsafe writes
[fix](iceberg) Fence V4 delete and manifest identities
[fix](iceberg) Preserve aliases and fence concurrent format upgrades
[fix](iceberg) Preserve valid legacy manifest lists during probing