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

Expose SessionContext.add_analyzer_rule for Python-defined analyzer rules

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

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
python, rust

研究方向

首先檢視 SessionContext::add_analyzer_rule、issue #1574,以及用於實作 FFI_AnalyzerRule bridge 的上游工作。當 Python bindings 能夠公開可對邏輯計畫進行有意義轉換的分析規則,並包含所需的 LogicalPlan 支援時,此任務即可完成。

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

描述

Background

SessionContext::add_analyzer_rule registers an Arc<dyn AnalyzerRule> that runs during plan analysis (the pre-optimization pass that resolves names, applies type coercion, etc.). The Python bindings do not expose this method.

Upstream signature

pub fn add_analyzer_rule(&self, analyzer_rule: Arc<dyn AnalyzerRule + Send + Sync>)

User value

Lets users intercept and transform a logical plan immediately after analysis, before the main optimizer runs. Useful for custom semantic validation, injecting domain-specific defaults, or rewriting unresolved references against an external catalog.

Why deferred

Blocked upstream, same root cause as #1574 (add_optimizer_rule): no FFI bridge exists for the logical AnalyzerRule trait, and a Python-only adapter can observe but not meaningfully transform LogicalPlan nodes because there are no Python constructors for the variants. Tracked here; revisit when upstream lands an FFI_AnalyzerRule.

主要語言
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 摘要。