rewrite_table_path fails for JDBC tables created with a file:/// warehouse

オープン
#18,872 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@adiranjan25 がすでに取り組んでいます。

2026年11月10日 から。

  • #18876 @adiranjan25 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java
領域
databases

調査の方向性

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 の本文から書いたものです。

説明

bug
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.

repro_file_uri.py

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。