apache / apache/datafusion-sqlparser-rs
Comment handling
未關閉
- 主要語言
- Rust
- 星號
- 3.5k
- 分支
- 772
- 平均合併
- 4 天 9 小時
- 30 天內合併 PR
- 17
描述
I've been working on [a SQL formatter](https://github.com/maxcountryman/forma) that leverages this library extensively. One problem with using `sqlparser-rs` right now is that comments are treated like whitespace and removed from the AST. I'm curious if there would be any interest in bringing comments into the AST? Perhaps this could be optional, since I imagine it's not terribly useful for most cases.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先檢查 sqlparser-rs 的 lexer、parser 和 AST 處理,以確定目前如何丟棄註解,以及如何適配可選的註解保留。完成標準是確定在 AST 中以 opt-in 方式表示註解的設計,且其行為適用於連結的 SQL formatter;該 issue 未指明檔案或測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust, sql
- 領域
- compilers
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100