apache / apache/datafusion-sqlparser-rs

feat: Support IGNORE NULLS only for allowed builtin window functions

未關閉
#1,207 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
3.5k
分支
774
平均合併
4 天 9 小時
30 天內合併 PR
17

描述

Currently parser allows to parse queries which IMHO should be failing by unsupported syntax.
Like
SELECT COUNT(*) IGNORE NULLS OVER() FROM (values (1), (null), (2));

The allowed list for IGNORE NULLS can be found https://github.com/ronsavage/SQL/blob/master/sql-2016.ebnf

貢獻指南

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

研究方向

先追蹤 parser 如何處理 IGNORE NULLS 語法,然後將其接受的函式與連結的 SQL-2016 文法中的允許清單進行比較。當 COUNT(*) IGNORE NULLS 等不受支援的形式遭到拒絕,同時允許的 builtin 視窗函式仍可繼續解析時,這項修改就完成了。

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

評估

技術堆疊
rust, sql
領域
compilers, databases
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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