apache / apache/datafusion-sqlparser-rs

Implement SQL writer

未關閉
#18 10 則留言 9 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
3.5k
分支
772
平均合併
4 天 9 小時
30 天內合併 PR
17

描述

It is often useful to be able to generate SQL from the AST. This opens up possibilities for SQL manipulation or translation. The write should recursively walk the AST and write SQL to a writer / output stream.

A secondary benefit of having a writer is that it often simplifies writing unit tests for the parser, since a SQL statement can be parsed and re-written and then the output can be compared with the input (ignoring whitespace differences)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

未指定檔案路徑或測試路徑。先定位 AST 定義和 parser 入口點,然後檢查現有的 parser 單元測試。完成的標準是:透過 writer 或輸出串流將解析後的 AST 遞迴寫成 SQL,並撰寫 round-trip 測試,在忽略空白差異的情況下比較解析後的陳述式和重寫後的陳述式。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust, sql
領域
compilers, databases
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。