Skip to content

Conversation

@BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
# Merged PRs

dolt

  • 9813: /go/cmd/dolt/commands/sqlserver/sqlserver.go: remove incorrect help text line from --mcp-password option.

go-mysql-server

  • 3206: fix equality check in buildSingleLookupPlan()
    A join optimization to generate look up plans was incorrectly being applied to filters that were not simple equalities.
    This resulted in filters getting dropped and incorrect results.
    fixes: JOIN returns incorrect results when NULL compared against outer table expression dolthub/dolt#9803
  • 3205: Relax restriction that was preventing us from caching the result of subqueries.
    Subquery caching rules onceAfterAll dolthub/go-mysql-server#1470 was supposed to, among other things, add restrictions to when we generate CachedResults nodes to cache subquery results. However, the added check is overly broad, and as a result it became impossible to actually cache subquery results. Currently, there is not a single plan test that contains a CachedResults node in the output plan.
    The cacheSubqueryAliasesInJoins function has a comment:
    //The left-most child of a join root is an exception that cannot be cached.
    No rationale is given for this. Looking at it, it seems like we used to generate CachedResults nodes before we finished resolving references in the query, and now we wait until after. So it's possible that this is the reason for the restriction, and the entire check is no longer necessary.
    Either way, the implementation is more restrictive than the comment would suggest. Due to how the algorithm tracks state via function parameters, it doesn't propagate state from a child node to it's parents/siblings, and the flag for recording that it's encountered a subqeury gets unset. As a result, no Subqueries will actually be cached.
    This PR fixes the tree walk to correctly remember once it's encountered a subquery and allow subsequent subqueries to be cached. This is still more broad than the comment would suggest, since it doesn't require that this subquery appear in the left-most child of the join.
    Among the changed plan tests, we see that CachedResults nodes are now emitted. Most of them are the children of HashLookups, but there are some that are the children of InnerJoin and SemiJoin nodes where one of the things being joined is a subquery.
  • 3200: implement double truncation and find correct hash comparison type
    Changes:
  • 3190: Refactorings to support index scans for pg catalog tables
    This PR adds new interfaces to allow different expressions types to participate in the standard index costing process, which results in a RangeCollection. Also plumbs additional type info through so that types with a more precise conversion process can participate as well.

Closed Issues

  • 9799: String-Boolean comparison in JOIN queries returns incorrect results
  • 9803: JOIN returns incorrect results when NULL compared against outer table expression

View the full release notes at https://github.com/dolthub/dolt/releases/tag/v1.59.6.


@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Sep 10, 2025
@github-actions
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

Caution

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Sep 10, 2025
@BrewTestBot BrewTestBot added this pull request to the merge queue Sep 10, 2025
Merged via the queue into main with commit 205248b Sep 10, 2025
22 checks passed
@BrewTestBot BrewTestBot deleted the bump-dolt-1.59.6 branch September 10, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants