apache / apache/datafusion-sqlparser-rs
Carry exact expected statement type in `ParserError`
未關閉
- 主要語言
- Rust
- 星號
- 3.5k
- 分支
- 772
- 平均合併
- 4 天 9 小時
- 30 天內合併 PR
- 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
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100