Attach runtime before calling scan for foreign table provider
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從表格提供者的非同步 scan 進入點以及 issue 中描述的 spawn_blocking 路徑開始。重現一次 Lance 中繼資料快取未命中,追蹤 runtime 相對於 scan 的附加時機,並確認快取未命中路徑能在不發生 runtime 錯誤的情況下完成。
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
In the table provider for lance in the scan method I sometimes have to do a small amount of I/O to load dataset metadata if the metadata is not already in the cache. The scan method is async so I assume this is ok. However, I use spawn_blocking to trigger this I/O and it fails because the runtime is not active.
Describe the solution you'd like
The runtime should be attached before calling scan.
Describe alternatives you've considered
Currently I work around this by forcing the metadata to be cached before creating the table provider but this is inconvenient.
Additional context
Can provide additional details (stack traces, lance reproducers, etc.) on request.
- 主要語言
- Python
- 星號
- 606
- 分支
- 176
- 平均合併
- 1 天 7 小時
- 30 天內合併 PR
- 14
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/datafusion-python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
apache/datafusion-python#1765 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
apache/datafusion-python#1760 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 70/100
apache/datafusion-python#1757 ·
維護者通常 1 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 72/100
apache/datafusion-python#1726 ·
維護者通常 1 天內回覆
-
難度 2/5 半天 新手友好度 88/100
apache/datafusion-python#1691 ·
維護者通常 1 天內回覆
查看 apache/datafusion-python 的全部 Issue
相似的 Issue
-
New Internship未關閉new_internship
難度 1/5 1 小時以內 新手友好度 70/100
-
[BUG] Reports tab: "Unban" button tooltip shows raw `{{ip}}` placeholder instead of the IP address未關閉bug javascript ui
難度 2/5 1-3 小時 新手友好度 68/100
bunkerity/bunkerweb#4001 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 1/5 1 小時以內 新手友好度 92/100
PedestrianDynamics/pyFDS-Evac#476 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
google/differential-privacy#516 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
adobe-fonts/source-serif#153 ·