apache / apache/datafusion-sqlparser-rs

Enable SQL features selectively

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

描述

Hello,
given the breadth of the parser, it would be nice if it would be possible to selectively enable features on an opt-in basis.

Let's imagine an application where only a subset of SQL is supported. In this case, the application would need to check for every possible unsupported feature manually (e.g. if I don't support windowing in queries, I would need to check if the `named_window` field in the `Select` gets populated and abort).

It would be interesting, instead, to decide beforehand which feature set is to be supported, so that only "valid" SQL gets parsed and arrives to the application.

Thanks.

貢獻指南

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

研究方向

此 issue 未指出檔案、測試或進入點。先找出 parser 的 feature 處理進入點與現有的 parser 測試,接著定義如何選取受支援的 feature 集合,以及如何在不支援的 SQL 到達應用程式之前拒絕它。

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

評估

技術堆疊
rust, sql
領域
compilers
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

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

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