View does not expose metadata_location: RestCatalog.load_view discards it from the server's response
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
調査の方向性
pyiceberg/catalog/rest/init.py の _response_to_view から始め、_response_to_table および ViewResponse モデルと比較してください。load_view と create_view が REST の metadata-location の値を保持し、結果として得られる View が issue に記載された register_view のユースケース向けにそれを公開していることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Apache Iceberg version
0.12.0 (latest release)
Please describe the bug 🐞
RestCatalog.load_view (and create_view) parse the server's metadata-location but drop it when building the View, so callers cannot learn where a view's current metadata file is. Tables keep it as Table.metadata_location; views have no equivalent. The behaviour is unchanged on main.
The spec (open-api/rest-catalog-open-api.yaml) requires the field in every view load result:
LoadViewResult:
required:
- metadata-location
- metadata
with the description: "The corresponding file location of view metadata is returned in the metadata-location field. Clients can check whether metadata has changed by comparing metadata locations after the view has been created."
pyiceberg parses it, then discards it (pyiceberg/catalog/rest/__init__.py on main):
class ViewResponse(IcebergBaseModel):
metadata_location: str | None = Field(alias="metadata-location", default=None)
metadata: ViewMetadata
config: Properties = Field(default_factory=dict)
def _response_to_view(self, identifier_tuple, view_response: ViewResponse) -> View:
return View(
identifier=identifier_tuple,
metadata=view_response.metadata,
config=view_response.config,
) # view_response.metadata_location is never passed on
_response_to_table, by contrast, passes metadata_location=table_response.metadata_location to Table.
Why it matters: without it, a client cannot detect changes to a view the way the spec suggests (comparing metadata locations), record where a view's metadata lives, or re-register a view from that file later with register_view.
Expected: View exposes metadata_location, set from the REST response, like Table.metadata_location.
PR #3390 ("REST: Add metadata_location to View, and register_view integration test") addressed this but was closed unmerged. Related umbrella issue: #818.
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
- 主要言語
- Python
- スター
- 1.1k
- フォーク
- 606
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 87
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iceberg-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
apache/iceberg-python#4010 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
to_bytes silently rescales a Decimal with a negative scale対応中かも @Rodrigo-Palma が 16 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg-python#3996 ·
メンテナーはふだん 1 日以内に返信
-
Deletion vector bitmap count is read from the blob and used as a loop bound without validation対応中かも @ghoshp83 が 16 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/iceberg-python#3979 ·
メンテナーはふだん 1 日以内に返信
-
FsspecFileIO: `_adls` mutates shared properties, so a second storage account gets the first account's filesystem対応中かも @krishnakaanchan-png が 33 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg-python#3885 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] REST catalog drop_table serializes purgeRequested as "True" instead of "true"再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/iceberg-python#3836 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
apache/iceberg-python の issue をすべて見る
似ている issue
-
camlight produces degenerate target camera and light frames対応中かも @kavyabhand が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google-deepmind/mujoco_warp#1743 ·
メンテナーはふだん 1 日以内に返信
-
Package: Update Request
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
getsolus/packages#10933 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[work-item] adam-adae-serious-events: pin missing-AESER filter semantics対応中かも @muse-yamaa-bot が今日担当しました。 オープンwork-item
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Non-vision image fallback calls vision_analyze with an empty source for oversized inline images and tells the model the image is corrupt対応中かも @liuhao1024 が今日担当しました。 オープンcomp/agent P2 tool/vision type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#132605 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pymc-labs/pymc-marketing#3102 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信