Skip to content

Do not wrap hoisted subquery in Limit node until AFTER checking if it's a SubqueryAlias#3427

Merged
angelamayxie merged 7 commits intomainfrom
angela/notexists_findsqa
Feb 12, 2026
Merged

Do not wrap hoisted subquery in Limit node until AFTER checking if it's a SubqueryAlias#3427
angelamayxie merged 7 commits intomainfrom
angela/notexists_findsqa

Conversation

@angelamayxie
Copy link
Copy Markdown
Contributor

@angelamayxie angelamayxie commented Feb 12, 2026

Wrapping subquery nodes in a Limit node before checking if it was a SubqueryAlias was causing us to not find SubqueryAlias nodes. This was noticed when investigating dolthub/dolt#10472. We should probably be inspecting the whole node instead of simply checking the node type, but this is a quick fix.

filed dolthub/dolt#10494 to add better test coverage and address TODOs

@angelamayxie angelamayxie changed the title Do no wrap hoisted subquery in Limit node until AFTER checking if it's a SubqueryAlias Do not wrap hoisted subquery in Limit node until AFTER checking if it's a SubqueryAlias Feb 12, 2026
@angelamayxie angelamayxie marked this pull request as ready for review February 12, 2026 21:16
@angelamayxie angelamayxie merged commit 0cb492a into main Feb 12, 2026
8 checks passed
@angelamayxie angelamayxie deleted the angela/notexists_findsqa branch February 12, 2026 21:55
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.

2 participants