rewrite_table_path fails for JDBC tables created with a file:/// warehouse
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
The issue identifies rewrite_table_path as the failing entry point and provides repro_file_uri.py. Read the path rewriting implementation and its tests, then run the reproduction with uv and Java. Done means a table created with a file:/// warehouse is relocated successfully despite equivalent file:/ and file:/// spellings; an open linked pull request indicates work is already underway.
索引モデルが issue の本文から書いたものです。
説明
Apache Iceberg version
1.12.0 (latest release)
Query engine
Spark 4.1
Problem
Creating a table with a file:///... JDBC catalog warehouse produces mixed URI spellings: the metadata JSON's location uses file:///..., while metadata file paths use file:/....
Both forms are valid local file URIs (RFC 8089), but rewrite_table_path compares prefixes textually. A file:/... source prefix matches file paths but not location; a file:///... prefix has the opposite problem.
Reproduction
Run the attached script with uv and Java installed:
uv run --script repro_file_uri.py
It downloads dependencies, creates a temporary SQLite JDBC catalog with a local file:///... warehouse, creates a table, inserts one row, and calls rewrite_table_path. No metadata is manually modified.
The script exits with:
IllegalArgumentException: Path file:///tmp/iceberg-file-uri-.../warehouse/db/t/
does not start with file:/tmp/iceberg-file-uri-.../warehouse/
Expected behavior
rewrite_table_path should handle equivalent local file URI spellings consistently and relocate a normally created table without manual metadata changes.
Willingness to contribute
- I can contribute a fix for this bug independently
- I would be willing to contribute a fix for this bug with guidance from the Iceberg community
- I cannot contribute a fix for this bug at this time
- 主要言語
- Java
- スター
- 9.4k
- フォーク
- 3.7k
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 169
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iceberg のほかの issue
-
Spark: Test INSERT targets with computed IDENTIFIER expressions対応中かも @shivadarshan-devadiga が 8 日前に担当しました。 オープンimprovement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scan対応中かも @Ankitkj1999 が 10 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Flink: JdbcLockFactory concurrent lock-table creation can fail with "table already exists" and restart the job対応中かも @adiranjan25 が 17 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/iceberg#18797 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tables対応中かも @yusufyildiz34 が 29 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg#18632 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToList対応中かも @mohamed-elbrik が 34 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
bug module: hybrid priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bancolombia/bin-stash#92 ·
-
bug module:pubsub priority:P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
flink-gcp/flink-connector-gcp#2325 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-dirigible/dirigible#8877 ·
メンテナーはふだん 1 日以内に返信