apache / apache/datafusion-sqlparser-rs
Carry exact expected statement type in `ParserError`
オープン
- 主要言語
- Rust
- スター
- 3.5k
- フォーク
- 772
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 17
説明
Currently `sqlparser-rs` return a `&str` to tell which type of token parser is expecting:
``` rust
fn expected(&self, expected: &str, found: Token) -> Result
```
When a SQL string is not completed.
Return an exact `ExpectType` will be better, this can deliver help for developing tools like SQL complete tools etc.
``` rust
fn expected(&self, expected: Vec, found: Token) -> Result
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず ParserError の実装と issue に記載された想定される関数を見つけ、次に不完全な SQL がどのようにパースされるかを調べます。ExpectType の値が何を表す必要があるかを定義し、SQL 補完ツール向けに期待値が正確に保持されることを、不完全な文のカバレッジも含めて検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100