apache / apache/datafusion-sqlparser-rs
`SHOW FUNCTIONS` allowed syntax does not match source/intent
- 主要言語
- Rust
- スター
- 3.5k
- フォーク
- 772
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 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