Skip to content

Avoid generating WITH clauses for 0 CTEs#761

Open
isaac-uptrust wants to merge 2 commits into
haskell-beam:masterfrom
isaac-uptrust:ie/760
Open

Avoid generating WITH clauses for 0 CTEs#761
isaac-uptrust wants to merge 2 commits into
haskell-beam:masterfrom
isaac-uptrust:ie/760

Conversation

@isaac-uptrust
Copy link
Copy Markdown

Closes #760

I've included the direct fix, as well as a correct-by-construction API change.
The API change isn't backwards compatible, so I understand if you want to leave it out or go through a separate process for it.

Are there any tests you'd like me to write?

@LaurentRDC
Copy link
Copy Markdown
Member

LaurentRDC commented May 12, 2025

This is great, thanks @isaac-uptrust !

Ideally, in this PR, we could have:

  • The direct fix;
  • A very simple test case that would fail on master right now, but that is fixed with your patch.

I can release this very quickly. Then, could you factor out the correct-by-construction patch into another PR? We're hoping to make a release with breaking changes relatively soon.

@LaurentRDC LaurentRDC added the breaking change Change will require a major version bump label Oct 19, 2025
@LaurentRDC LaurentRDC added this to the beam-core 0.12.0.0 milestone May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Change will require a major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

selectWith . pure generates invalid SQL

2 participants