Skip to content

feat: MERGE statements: add RETURNING and OUTPUT without INTO#2011

Merged
iffyio merged 1 commit intoapache:mainfrom
lovasoa:main
Aug 22, 2025
Merged

feat: MERGE statements: add RETURNING and OUTPUT without INTO#2011
iffyio merged 1 commit intoapache:mainfrom
lovasoa:main

Conversation

@lovasoa
Copy link
Copy Markdown
Contributor

@lovasoa lovasoa commented Aug 22, 2025

adds better support for parsing MERGE statements with OUTPUT/RETURNING.

  • adds support for the RETURNING clause
  • adds support for the OUTPUT clause without INTO
  • adds support for MERGE inside CTEs

fixes #2010

adds better support for parsing MERGE statements including
OUTPUT/RETURNING.

fixes apache#2010
Copy link
Copy Markdown
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @lovasoa!
cc @alamb

@iffyio iffyio merged commit 376f47e into apache:main Aug 22, 2025
10 checks passed
@lovasoa
Copy link
Copy Markdown
Contributor Author

lovasoa commented Aug 22, 2025

Thanks for the merge @iffyio !

ayman-sigma pushed a commit to sigmacomputing/sqlparser-rs that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MERGE statements inside CTEs

2 participants