apache / apache/datafusion-sqlparser-rs

`SHOW FUNCTIONS` allowed syntax does not match source/intent

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

描述

SHOW FUNCTIONS
https://github.com/sqlparser-rs/sqlparser-rs/blob/7282ce22f9f031a2c9fd5831427f01f2f0dbb978/src/ast/mod.rs#L2450-L2453

it allow syntax
```
SHOW FUNCTIONS
SHOW FUNCTIONS LIKE 'pattern'
SHOW FUNCTIONS ILIKE 'pattern'
SHOW FUNCTIONS WHERE
```

however, it's also **documented** to match Presto's SHOW FUNCTIONS
which doesn't allow ILIKE nor WHERE (and wouldn't know how the WHERE should be applied)
https://prestodb.io/docs/current/sql/show-functions.html

worth noting that Trino's SHOW FUNCTIONS is similar, but allows additional schema filter
https://trino.io/docs/current/sql/show-functions.html

貢獻指南

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

研究方向

從 src/ast/mod.rs 的第 2450-2453 行開始,將文件中記載的 SHOW FUNCTIONS 文法與連結的 Presto 和 Trino 參考進行比較。確定此 parser 預計支援哪種方言行為,然後調整接受的語法及其文件,使支援的形式保持一致。

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

評估

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

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

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