Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Attach runtime before calling scan for foreign table provider

未關閉
#1,146 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
databases

研究方向

從表格提供者的非同步 scan 進入點以及 issue 中描述的 spawn_blocking 路徑開始。重現一次 Lance 中繼資料快取未命中,追蹤 runtime 相對於 scan 的附加時機,並確認快取未命中路徑能在不發生 runtime 錯誤的情況下完成。

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

描述

enhancement

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 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

apache/datafusion-python 的其他 Issue

查看 apache/datafusion-python 的全部 Issue

相似的 Issue

更多 Python Issue

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

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