apache / apache/datafusion-sqlparser-rs
The syntax of mysql RENAME TABLE tb1 TO tb2 is not supported.
未关闭
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 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