BenSatori opened a new pull request, #2492:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2492

   Support PostgreSQL's optional alias on JOIN USING columns, e.g. `JOIN t2 
USING (id) AS joined_cols`.
   
   PostgreSQL documents this as `USING ( join_column [, ...] ) [ AS 
join_using_alias ]`: https://www.postgresql.org/docs/current/sql-select.html
   
   Implementation notes:
   - Preserve the existing `JoinConstraint::Using(Vec<ObjectName>)` variant for 
joins without aliases.
   - Add `JoinConstraint::UsingAlias(Vec<ObjectName>, Ident)` for the alias 
form.
   - Add a minimal PostgreSQL regression test.
   
   AI assistance was used to prepare this change.
   


-- 
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]

Reply via email to