apache / apache/datafusion-sqlparser-rs
Comment handling
- 主要言語
- Rust
- スター
- 3.5k
- フォーク
- 772
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 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 におけるコメント表現をオプトインで有効にするための設計が確定し、リンク先の SQL formatter に適した動作になることです。この issue ではファイルやテストは指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust, sql
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100