shuvamk opened a new pull request, #2423:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2423
```sql
SELECT * FROM employees PARTITION (p0, p2)
```
round-trips to `SELECT * FROM employeesPARTITION (p0, p2)`, which re-parses
as a table *function* named `employeesPARTITION` taking arguments `p0` and `p2`
— a different AST, not just different whitespace.
`Display for TableFactor::Table` writes `PARTITION (...)` with no leading
space, unlike the sibling clauses in the same arm (` WITH ORDINALITY`, `
{alias}`, ` WITH (...)`). The fix adds the space.
Test is `parse_table_partition_selection` in `tests/sqlparser_mysql.rs`,
covering `SELECT`/`UPDATE`/`DELETE`, an alias, a join and the
missing-parenthesis error path; it fails without the change. Table-level
`PARTITION` selection had no test coverage before.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]