Skip to content

release-26.1: tree: walk all of Insert, Delete, and Update#161970

Merged
michae2 merged 1 commit intorelease-26.1from
blathers/backport-release-26.1-161773
Jan 29, 2026
Merged

release-26.1: tree: walk all of Insert, Delete, and Update#161970
michae2 merged 1 commit intorelease-26.1from
blathers/backport-release-26.1-161773

Conversation

@blathers-crl
Copy link

@blathers-crl blathers-crl bot commented Jan 28, 2026

Backport 1/1 commits from #161773 on behalf of @michae2.


Teach ExtendedVisitor to walk all of Insert, Delete, and Update AST nodes. This allows hint injection for mutation statements.

Fixes: #161729

Release note (bug fix): Fix a bug which prevented successfully injecting hints using information_schema.crdb_rewrite_inline_hints for INSERT, UPSERT, UPDATE, and DELETE statements. This bug has existed since hint injection was introduced in v26.1.0-alpha.2.


Release justification: fix for GA blocker in new functionality.

@blathers-crl blathers-crl bot force-pushed the blathers/backport-release-26.1-161773 branch from ff28d8d to bfeee76 Compare January 28, 2026 23:14
@blathers-crl blathers-crl bot requested a review from a team as a code owner January 28, 2026 23:14
@blathers-crl blathers-crl bot requested review from ZhouXing19 and removed request for a team January 28, 2026 23:14
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Jan 28, 2026
@blathers-crl
Copy link
Author

blathers-crl bot commented Jan 28, 2026

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added backport Label PR's that are backports to older release branches T-sql-queries SQL Queries Team labels Jan 28, 2026
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuzefovich reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @DrewKimball, @michae2, and @ZhouXing19).

Teach ExtendedVisitor to walk all of Insert, Delete, and Update AST
nodes. This allows hint injection for mutation statements.

Fixes: #161729

Release note (bug fix): Fix a bug which prevented successfully injecting
hints using `information_schema.crdb_rewrite_inline_hints` for INSERT,
UPSERT, UPDATE, and DELETE statements. This bug has existed since hint
injection was introduced in v26.1.0-alpha.2.

Co-Authored-By: Claude <noreply@anthropic.com>
@michae2 michae2 force-pushed the blathers/backport-release-26.1-161773 branch from bfeee76 to 2fce783 Compare January 29, 2026 05:32
@michae2 michae2 merged commit 28930e4 into release-26.1 Jan 29, 2026
18 of 19 checks passed
@michae2 michae2 deleted the blathers/backport-release-26.1-161773 branch January 29, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. T-sql-queries SQL Queries Team target-release-26.1.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants