Fix EXISTS over ungrouped aggregate subqueries - #3780
Open
fulghum wants to merge 1 commit into
Open
Conversation
fulghum
force-pushed
the
fulghum/dolt-11489
branch
from
September 3, 2026 18:28
695f2ed to
f42bf23
Compare
fulghum
force-pushed
the
fulghum/dolt-11489
branch
from
September 3, 2026 23:53
f42bf23 to
eb050ac
Compare
|
SummaryCoverage spans core data operations for creating and copying tables, preserving columns, values, filters, limits, and source-to-destination alignment. It also exercises edge cases around empty aggregates, correlated checks, row-removing conditions, invalid plan layouts, error handling, and resource cleanup, with results indicating healthy behavior across these paths. Safe to merge — the exercised application behaviors all passed, with no regressions, new failures, or previously flagged failures attributable to this PR. No merge-blocking risk was identified. Tests run by Ito
Tip Reply with @itoqa to send us feedback on this test run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Ungrouped aggregates produce one row even when their input is empty. Preserve that cardinality when simplifying EXISTS subqueries, and fold provably nonempty aggregate EXISTS predicates directly so correlated forms do not regress to per-row subquery execution.
Teach TableCopier to expose its independently analyzed create and source trees, accept narrow integrator-owned create destinations, and close the create iterator before copying rows. Adds coverage for SELECT and write statements, including CTAS, plus HAVING / LIMIT / OFFSET boundaries.
Fixes dolthub/dolt#11489
Fixes dolthub/dolt#11477
Fixes dolthub/dolt#11508