Skip to content

Conversation

@BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
# Merged PRs

dolt

go-mysql-server

  • 3210: Copy parent row in lateralJoinIterator.buildRow
    fixes dolthub/dolt#9820
    Also rename left and right to primary and secondary to follow the same pattern as other join iterators
  • 3209: Convert values to strings when evaluating bit_length
    Fixes dolthub/dolt#9818
  • 3208: dolthub/dolt#9817 - Fix binary operations return type to be uint64
    Fixes dolthub/dolt#9817
  • 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.

Closed Issues

  • 9712: Extending Dolt system tables, specifically dolt_branch, via foreign key
  • 9820: LATERAL keyword causes JOIN to incorrectly return empty result
  • 9818: BIT_LENGTH() returns incorrect results for int
  • 9817: Bitwise operations with negative numbers always return 9223372036854775807

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


@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 11, 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 11, 2025
@BrewTestBot BrewTestBot added this pull request to the merge queue Sep 11, 2025
Merged via the queue into main with commit 5d853be Sep 11, 2025
22 checks passed
@BrewTestBot BrewTestBot deleted the bump-dolt-1.59.7 branch September 11, 2025 02:54
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