apache / apache/datafusion-sqlparser-rs
The syntax of mysql RENAME TABLE tb1 TO tb2 is not supported.
- Vorherrschende Sprache
- Rust
- Sterne
- 3.5k
- Forks
- 772
- Ø Merge
- 4 T. 9 Std.
- Gemergte PRs (30 T.)
- 17
Beschreibung
```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")
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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`.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- mysql, rust
- Bereich
- databases
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100