Gabriel39 opened a new issue, #70868: URL: https://github.com/apache/doris/issues/70868
### 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
