Support Canonical URI Resolution in Iceberg FileIO for Multi-Protocol Storage Access
Maintainer thường phản hồi trong vòng 1 ngày
@adiranjan25 đang làm issue này rồi.
Từ ngày 15/11/2026.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
Hướng nghiên cứu
The request centres on a new CanonicalUriFileIO that wraps an underlying FileIO and maps canonical storage:// URIs to protocol-specific ones; the payload names no existing class or file to start from. Reading the FileIO interface and the existing location-handling code in the Iceberg core module would be the first step. Done would mean a configurable mapping delegating reads, writes and deletes, with no change when it is not configured, and the design needs maintainer agreement first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Request / Improvement
Background
Apache Iceberg supports different storage systems through its FileIO abstraction. These storage systems may expose the same underlying data through multiple access protocols or filesystem interfaces.
For example, an object storage system may provide access through native filesystem APIs, S3-compatible APIs, or other storage-specific protocols. Different compute engines may prefer different access mechanisms depending on their runtime environment, performance requirements, and available integrations.
Currently, Iceberg file locations are persisted in table metadata and are used by compute engines to access metadata files, manifest lists, manifests, data files, and delete files.
When multiple engines access the same Iceberg table through different storage protocols, differences in URI schemes and filesystem implementations can create interoperability challenges.
One catalog supplies one base location (one scheme). Relative paths resolve against the catalog-provided base; if that base is storage://…, an engine wanting a different physical protocol still needs runtime, engine-side translation.
Existing v1–v3 tables (and absolute paths in v4) keep fully-qualified URIs. Relative paths only help new writes; this FileIO serves the installed base with no metadata rewrite.
Problem Statement
There is a need to decouple the storage location represented in Iceberg metadata from the protocol or filesystem implementation used by a compute engine to access the underlying data.
A consistent, canonical URI representation would allow multiple compute engines to access the same Iceberg table through their preferred storage protocols without requiring protocol-specific locations to be persisted in table metadata.
Without such a mechanism, tables created through one storage access protocol may not be directly accessible to engines configured to use another protocol, even when both protocols address the same underlying storage.
Additionally, Iceberg Format V4 introduces support for relative file paths, where file locations can be stored relative to the table location. This requires URI resolution mechanisms to account for both relative and absolute paths while maintaining consistent storage access across different protocols.
Proposed Solution
Introduce a CanonicalUriFileIO implementation that separates the canonical URI representation persisted in Iceberg metadata from the physical URI used for storage operations.
The implementation should provide a configurable mechanism to resolve canonical URIs into protocol-specific URIs at runtime, based on the storage access configuration of the compute engine.
The proposed implementation should:
- Maintain a consistent canonical URI representation in Iceberg table metadata, independent of the underlying storage access protocol.
- Resolve canonical URIs to the appropriate physical storage URI at runtime.
- Delegate filesystem operations to the configured underlying FileIO implementation.
- Apply URI resolution consistently to all file operations performed through this FileIO — manifest lists, manifests, data files, delete files, and metadata files when written/read via this FileIO.
- Ensure that newly written file locations preserve the appropriate logical representation (canonical absolute URI or relative path) according to the Iceberg table format version.
- Support configurable URI mappings without introducing dependencies on any specific storage system or filesystem implementation.
Example
Consider a storage system that exposes the same underlying data through multiple protocols:
Compute engine Canonical URI in Iceberg metadata Physical access URI
Engine A storage://warehouse/db/table/... protocol-a://warehouse/db/table/...
Engine B storage://warehouse/db/table/... protocol-b://warehouse/db/table/...
Engine C storage://warehouse/db/table/... protocol-c://warehouse/db/table/...
All engines operate on the same Iceberg table and share the same canonical metadata locations, while each engine resolves those locations to its configured storage access protocol.
The URI mapping and underlying FileIO implementation should be configurable and extensible.
Expected Benefits
- Cross-engine interoperability: Allow different compute engines to access the same Iceberg tables using different storage protocols.
- Protocol independence: Avoid coupling Iceberg metadata locations to a particular filesystem or storage access implementation.
- Storage flexibility: Support storage systems exposing multiple access protocols or filesystem interfaces.
- Consistent metadata: Maintain stable and consistent file locations across different compute engines.
- Extensibility: Provide a reusable mechanism that can be adopted by different storage providers and integrations.
- Reduced migration overhead: Avoid rewriting table metadata solely to accommodate a different storage access protocol, where the underlying locations can be resolved consistently.
Scope
- Introduce canonical URI resolution through the FileIO abstraction.
- Support configurable URI scheme mappings.
- Support delegation to different underlying FileIO implementations.
- Ensure consistent URI resolution for read, write, delete, and other supported file operations.
Compatibility
The implementation should remain compatible with existing Iceberg table formats and catalog interfaces.
No changes to the Iceberg table format specification should be required. Existing FileIO implementations and tables should continue to work without behavioral changes when canonical URI resolution is not configured.
Query engine
Spark
Willingness to contribute
- I can contribute this improvement/feature independently
- I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- I cannot contribute this improvement/feature at this time
- Ngôn ngữ chính
- Java
- Star
- 9.4k
- Fork
- 3.7k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 169
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/iceberg
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsCó thể đã có người làm @shivadarshan-devadiga đã nhận 7 ngày trước. Đang mởimprovement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanCó thể đã có người làm @Ankitkj1999 đã nhận 9 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Flink: JdbcLockFactory concurrent lock-table creation can fail with "table already exists" and restart the jobCó thể đã có người làm @adiranjan25 đã nhận 16 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/iceberg#18797 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesCó thể đã có người làm @yusufyildiz34 đã nhận 29 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/iceberg#18632 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListCó thể đã có người làm @mohamed-elbrik đã nhận 34 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/iceberg
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
erkamyaman/rust-anything#371 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
open-telemetry/opentelemetry-java-instrumentation#21429 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement lane:backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Sanne/incus-spawn#2544 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
speakeasy-api/speakeasy#2159 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/flink-agents#1440 ·
Maintainer thường phản hồi trong vòng 2 ngày