apache / apache/datafusion-python

Deprecate Expr for functions that take only specific literals

未關閉
#1,496 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
604
分支
174
平均合併
1 天 7 小時
30 天內合併 PR
4

描述

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**

This is the original comment that leads to this issue: https://github.com/apache/datafusion-python/pull/1484#discussion_r3079835791

**Describe the solution you'd like**

Add deprecation warnings, then remove`Expr` type hint in a later release

**Describe alternatives you've considered**

Leave as is

**Additional context**

We only allow specific values, so we can check them at the function invocation.

貢獻指南

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

研究方向

從 PR #1484 連結的討論開始,確認哪些函式只接受特定的字面值。追蹤這些函式的定義及其 type hints,然後檢查其他地方如何處理棄用警告。當受影響的 type hints 發出棄用警告,且預期的後續移除已記錄在文件中或由測試涵蓋時,即視為完成。

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

評估

技術堆疊
python
領域
api
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
需要釐清
新手友好度
45/100

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

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