Repository navigation
Conversation
aptend
requested review from
LeftHandCold,
XuPeng-SH and
aunjgr
as code owners
November 13, 2026 10:21
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Contributor
|
This pull request is merged. |
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.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #25077.
What this PR does / why we need it:
Upgrading a 3.0.4 catalog can fail inside the v4.0.0 migrations: COPY ALTER's lineage hooks query
mo_feature_registryandmo_snapshots.kindbefore those migrations have installed them. Reordering the registry creation alone cannot fix ALTER ofmo_snapshotsitself.Mark statements issued by
UpgradeEntrywith a statement-scoped internal option. COPY ALTER skips its lineage preparation and preservation hooks only when the option is present and the resolved database ismo_catalog. Ordinary ALTER retains its lineage behavior, and the existing statement-context defer clears the marker on success/error. Migration SQL, ordering, versions and offsets are unchanged.This PR targets
v4.2.1-hotfixindependently of #32699; the combined tree is also validated.Validation (Linux/amd64, Go 1.26.4, CGO enabled):
.agents/skills/mo-dev/scripts/mo-cgo-test -json -p=1 -count=1 -timeout=240s ./pkg/defines ./pkg/util/executor ./pkg/bootstrap/versions ./pkg/sql/compile ./pkg/tests/upgrade.pkg/sql/compileandpkg/tests/upgradealso pass atop [4.2.1-hotfix] consolidate missing fixes from dated releases #32699.make thirdparties,make cgo, releasemake build, and fullgo vet -mod=readonly -p=4 ./....golangci-lint run --new-from-rev=origin/v4.2.1-hotfix ./...and the same check against freshly fetchedorigin/main.checkrecoverfindings reproduce on clean base115c227239.gofmtandgit diff --checkpass.