icefery opened a new pull request, #3085: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3085
Dialects: PostgreSQL, Generic `INSERT INTO t SELECT a, b FROM src ON CONFLICT (a, COALESCE(b, '')) DO NOTHING` fails because the target parser only accepts identifiers. Use `IndexColumn` and the existing index column parser so the target can contain expressions, collations, and operator class names. The target's `WHERE` predicate remains separate from the `DO UPDATE` condition. Other dialects keep their current parsing behavior. [PostgreSQL INSERT syntax](https://www.postgresql.org/docs/18/sql-insert.html) ยท [Index inference grammar](https://github.com/postgres/postgres/blob/REL_18_STABLE/src/backend/parser/gram.y#L12267-L12310) 27 focused tests passed with all features, including SQLite regressions. Rustfmt and Clippy on the library and affected test targets passed. The round-trip fuzzer completed 512 instrumented runs. AI assistance was used for the implementation, tests, and draft. -- 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]
