apache / apache/iceberg-python

Table properties override catalog configuration when constructing FileIO

未關閉
#3,931 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
1.1k
分支
581
平均合併
1 天 13 小時
30 天內合併 PR
76

描述

When a table is loaded, its metadata properties are merged into the property map used to construct the table's `FileIO`, and they take precedence over the operator's catalog configuration.

`Catalog._load_file_io` computes:

```python
load_file_io({**self.properties, **properties}, location)
```

where `properties` is `metadata.properties`. Because table properties come last, a value stored in a table overrides the same key configured on the catalog. The REST path does the same at `_response_to_table` / `_response_to_staged_table`, and Glue, Hive, SQL, DynamoDB, BigQuery and `StaticTable.from_metadata` all funnel table metadata into `FileIO` construction the same way — 12 call sites in total.

The keys this reaches include implementation selection (`py-io-impl`, `s3.retry-strategy-impl`) and transport configuration (`s3.endpoint`, `s3.proxy-uri`, `s3.signer` / `s3.signer.uri`, `gcs.service.host`, `hf.endpoint`, the ADLS storage authorities). These are deployment concerns — an operator sets them on the catalog — but any principal who can commit to a table can currently override them for everyone who reads it.

Issue investigation generated via claude, reviewed by Sung, Kevin, Fokko.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從 Catalog._load_file_io 開始,追蹤 REST 的 _response_to_table 和 _response_to_staged_table 路徑,然後檢查 Glue、Hive、SQL、DynamoDB、BigQuery 和 StaticTable.from_metadata 對應的呼叫點。驗證中繼資料屬性如何合併到 FileIO 建構中,並新增覆蓋測試,證明在所有受影響的路徑上,catalog 設定對 deployment 設定仍具權威性。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
backend, security
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。