apache / apache/datafusion-sqlparser-rs
The syntax of mysql RENAME TABLE tb1 TO tb2 is not supported.
- 主要言語
- Rust
- スター
- 3.5k
- フォーク
- 772
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 17
説明
```rust
let sql = "RENAME TABLE `test`.`test` TO `test`.`test2`";
let dialect = MySqlDialect {};
let ast = Parser::parse_sql(&dialect, sql).unwrap();
println!("AST: {:#?}", ast);
```
output error:
```
called `Result::unwrap()` on an `Err` value: ParserError("Expected: an SQL statement, found: RENAME at Line: 1, Column: 1")
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the Parser::parse_sql call using MySqlDialect and the failing RENAME TABLE example in the issue. Trace how MySQL statements are recognized and represented, then verify that the example parses successfully and produces an AST for renaming `test`.`test` to `test`.`test2`.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- mysql, rust
- 領域
- databases
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100