Repository navigation
Conversation
VioletQwQ-0
force-pushed
the
codex/issue-28051-generated-key-odku-safety
branch
from
September 4, 2026 03:47
f1370fb to
39f3a43
Compare
VioletQwQ-0
force-pushed
the
codex/issue-28051-generated-key-odku-safety
branch
from
September 4, 2026 04:56
39f3a43 to
cfe6007
Compare
VioletQwQ-0
marked this pull request as ready for review
September 4, 2026 05:00
1 of 7 tasks
3 of 7 tasks
XuPeng-SH
pushed a commit
that referenced
this pull request
Sep 15, 2026
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [x] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #28164 ## What this PR does / why we need it: This PR records the reviewed replacement for the sidecar proposal and the current native-0900 integration status. The design reuses existing unique-index tables, hidden physical primary keys, tuple framing, and transaction/index maintenance paths. User-visible string values remain in the base row; comparison identities and physical key format are carried by schema/index metadata. The implementation is kept in a separate branch: - Implementation branch: https://github.com/VioletQwQ-0/matrixone/tree/codex/issue-28164-collation-integration - Current implementation head: `993957c232ac29e81009bb94275734b4f5d8786f` - Design/documentation branch: https://github.com/VioletQwQ-0/matrixone/tree/codex/issue-28164-collation-redesign - Current design/documentation head: `743903047861c59674ff1582ca0927401141513e` The implementation repair includes: - ALTER COPY dedup comparing effective collation identity, key expression/prefix and physical key format, so semantic or encoding changes cannot reuse an old uniqueness proof. - Hidden physical primary-key rebuilding computing the final table format after schema conversion and preserving the native format for a string-PK-only table; index aliases and unknown references are handled explicitly. - Expression collation provenance and coercibility propagation, including ordinary string functions inheriting their string input, CONCAT preserving an explicit identity when inputs resolve to the same identity, and equal-rank non-binary conflicts remaining errors. - Row-value `IN` deriving each corresponding field independently instead of mixing all tuple fields. - A physical-identity guard that keeps predicates with a mismatched explicit collation as residual filters instead of rewriting them to a native hidden-primary-key lookup. - Legacy hash behavior remaining bytewise and accepting legacy raw bytes; native 0900 hash paths alone validate UTF-8 and generate weights. - The local and remote temporary default-closed fences checking native expressions, columns, relation/index formats and folded native plans. This is not the durable mixed-version cluster gate; production native-0900 activation remains prohibited. The native backend candidate is fixed to Vitess v0.24.0 at `e8d9fa81d351066497a8d99f92e9e9f2ecfd69d0`. Historical v0.22.1/Go 1.24.4/MO `86c030d6b2` experiment data is kept as historical evidence and is not relabeled as v0.24.0 validation. ## Review status An Astra-medium sub-agent performed three review rounds using `mo-self-review` and `mo-pr-preflight-review`, including complete producer/consumer and failure-path checks plus historical CR mechanisms from #28076, #27252, #25881 and #25879. The final review verdict for the repair scope is **PASS**: no confirmed P1/P2 or merge blocker remains in the reviewed changes. The review still records the activation and end-to-end items below as `NOT_RUN`. ## Validation PASS at implementation head `993957c232ac29e81009bb94275734b4f5d8786f`: - Full `pkg/common/hashmap`, `pkg/sql/plan`, `pkg/sql/compile` and `pkg/pb/plan` package tests as applicable; plan and compile use the repository CGo wrapper. - Full and focused race tests for hashmap, plan and compile; focused collation regressions ran with repeated iterations. - Regression coverage for CONCAT provenance, explicit-binary residual preservation, folded native admission rejection, legacy bytewise hash behavior and native invalid-UTF-8 rejection. - A temporary mutant that restored the old unconditional CONCAT rank assignment made the authentic conflict regression fail, confirming the test catches the original defect. - `git diff --check` passed. PASS at documentation head `743903047861c59674ff1582ca0927401141513e`: - Evidence JSON parses successfully. - Historical, candidate and target identity mappings are separated. - The documentation describes the current default-closed fence as temporary and does not claim a durable cluster gate. BVT for #28842 itself is `N/A`: this PR contains design/evidence documentation; the separate implementation branch has deterministic package-level regressions. Product SQL execution, index backfill and storage-filter behavior remain activation gates and are listed as `NOT_RUN`. NOT_RUN / blocked: - Complete independent Vitess v0.24.0 versus MySQL 8.0.45 byte freeze, especially the 0900-bin oracle and formal V1 byte-format freeze. - Live SQL DML, unique conflicts, original-value return, index backfill, transactions, concurrent conflicts, and actual zonemap/Bloom pruning. - Migration conflict/foreign-key/cancel/rollback and restart/backup/restore. - Durable catalog activation, mixed-version old-node rejection, and complete remote/cluster admission; production activation remains prohibited. - Current-head CI, QA, performance budgets, and full dependency-closure review for the v0.24.0 candidate. This PR is Ready for design/documentation review. It does not complete or close #28164; production activation and the implementation acceptance gates listed above remain pending. ## Synchronization update - Current exact head: `7901039b15d4c8295e3d6129eadc646180061244`; base and merge-base: `main@b347a62`. - Rebased from `672da229a99c092f7e896f6fd15b786a3541500f`; the 7/7 range-diff remained equivalent, with no semantic code change. - Exact-content diff hash: `437b8748fcb7375e9a0a6c568bfeb4b2d0d800465340563f071703f9b177a2de`; clean worktree and `git diff --check` PASS. - Fresh CI is pending for the current head. Ready and REVIEW_REQUIRED were preserved; QA and production activation remain separate gates. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28051 ## What this PR does / why we need it: This is the phase-one data-safety fix for ODKU statements that can indirectly change generated keys. - Compute the alias-normalized fixed-point closure of columns that may change through generated-column dependencies, including implicit `ON UPDATE` columns. - Reject ODKU during planning with the existing 20313 unsupported-DML error when a generated primary-key or UNIQUE part may change. - Route affected generated non-unique indexes through the existing hidden-index delete/insert maintenance path. - Keep unrelated generated indexes on the insert-only path. This intentionally does not implement MySQL-style final-value uniqueness checking, change SQL/catalog/protobuf/storage formats, or repair indexes already damaged by an older version. Validation on exact head `cfe6007254e1612eac97b611500b6a853f88be9e`: - Focused generated-key ODKU planner tests: PASS. - Full `pkg/sql/plan`: PASS. - Isolated `generated_column.sql` BVT: 190/190 PASS, twice. - The `ON UPDATE -> generated UNIQUE` regression now enters through `runOneStmt`, preserving the real `OnUpdate` metadata and proving the planner returns 20313. - Generated non-unique maintenance now has a predicate-free forced-index scan; it returns exactly `(1,4)` and `(2,4)`, so a stale old hidden key cannot be masked by a base-table predicate. - Semantic preflight: `PASS semantic=PASS`, diff hash `ad6aacd4b5dd3f46fdce246d31eff467f814b62e62fb1f67a0bea5fa6165744c`. - `git diff --check`: PASS. QA required: yes. This changes a user-visible ODKU error path and protects persisted secondary-index consistency. Keep the PR Draft until exact-head CI, review, and QA pass. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
…igin#28842) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [x] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28164 ## What this PR does / why we need it: This PR records the reviewed replacement for the sidecar proposal and the current native-0900 integration status. The design reuses existing unique-index tables, hidden physical primary keys, tuple framing, and transaction/index maintenance paths. User-visible string values remain in the base row; comparison identities and physical key format are carried by schema/index metadata. The implementation is kept in a separate branch: - Implementation branch: https://github.com/VioletQwQ-0/matrixone/tree/codex/issue-28164-collation-integration - Current implementation head: `993957c232ac29e81009bb94275734b4f5d8786f` - Design/documentation branch: https://github.com/VioletQwQ-0/matrixone/tree/codex/issue-28164-collation-redesign - Current design/documentation head: `743903047861c59674ff1582ca0927401141513e` The implementation repair includes: - ALTER COPY dedup comparing effective collation identity, key expression/prefix and physical key format, so semantic or encoding changes cannot reuse an old uniqueness proof. - Hidden physical primary-key rebuilding computing the final table format after schema conversion and preserving the native format for a string-PK-only table; index aliases and unknown references are handled explicitly. - Expression collation provenance and coercibility propagation, including ordinary string functions inheriting their string input, CONCAT preserving an explicit identity when inputs resolve to the same identity, and equal-rank non-binary conflicts remaining errors. - Row-value `IN` deriving each corresponding field independently instead of mixing all tuple fields. - A physical-identity guard that keeps predicates with a mismatched explicit collation as residual filters instead of rewriting them to a native hidden-primary-key lookup. - Legacy hash behavior remaining bytewise and accepting legacy raw bytes; native 0900 hash paths alone validate UTF-8 and generate weights. - The local and remote temporary default-closed fences checking native expressions, columns, relation/index formats and folded native plans. This is not the durable mixed-version cluster gate; production native-0900 activation remains prohibited. The native backend candidate is fixed to Vitess v0.24.0 at `e8d9fa81d351066497a8d99f92e9e9f2ecfd69d0`. Historical v0.22.1/Go 1.24.4/MO `86c030d6b2` experiment data is kept as historical evidence and is not relabeled as v0.24.0 validation. ## Review status An Astra-medium sub-agent performed three review rounds using `mo-self-review` and `mo-pr-preflight-review`, including complete producer/consumer and failure-path checks plus historical CR mechanisms from matrixorigin#28076, matrixorigin#27252, matrixorigin#25881 and matrixorigin#25879. The final review verdict for the repair scope is **PASS**: no confirmed P1/P2 or merge blocker remains in the reviewed changes. The review still records the activation and end-to-end items below as `NOT_RUN`. ## Validation PASS at implementation head `993957c232ac29e81009bb94275734b4f5d8786f`: - Full `pkg/common/hashmap`, `pkg/sql/plan`, `pkg/sql/compile` and `pkg/pb/plan` package tests as applicable; plan and compile use the repository CGo wrapper. - Full and focused race tests for hashmap, plan and compile; focused collation regressions ran with repeated iterations. - Regression coverage for CONCAT provenance, explicit-binary residual preservation, folded native admission rejection, legacy bytewise hash behavior and native invalid-UTF-8 rejection. - A temporary mutant that restored the old unconditional CONCAT rank assignment made the authentic conflict regression fail, confirming the test catches the original defect. - `git diff --check` passed. PASS at documentation head `743903047861c59674ff1582ca0927401141513e`: - Evidence JSON parses successfully. - Historical, candidate and target identity mappings are separated. - The documentation describes the current default-closed fence as temporary and does not claim a durable cluster gate. BVT for matrixorigin#28842 itself is `N/A`: this PR contains design/evidence documentation; the separate implementation branch has deterministic package-level regressions. Product SQL execution, index backfill and storage-filter behavior remain activation gates and are listed as `NOT_RUN`. NOT_RUN / blocked: - Complete independent Vitess v0.24.0 versus MySQL 8.0.45 byte freeze, especially the 0900-bin oracle and formal V1 byte-format freeze. - Live SQL DML, unique conflicts, original-value return, index backfill, transactions, concurrent conflicts, and actual zonemap/Bloom pruning. - Migration conflict/foreign-key/cancel/rollback and restart/backup/restore. - Durable catalog activation, mixed-version old-node rejection, and complete remote/cluster admission; production activation remains prohibited. - Current-head CI, QA, performance budgets, and full dependency-closure review for the v0.24.0 candidate. This PR is Ready for design/documentation review. It does not complete or close matrixorigin#28164; production activation and the implementation acceptance gates listed above remain pending. ## Synchronization update - Current exact head: `7901039b15d4c8295e3d6129eadc646180061244`; base and merge-base: `main@b347a62`. - Rebased from `672da229a99c092f7e896f6fd15b786a3541500f`; the 7/7 range-diff remained equivalent, with no semantic code change. - Exact-content diff hash: `437b8748fcb7375e9a0a6c568bfeb4b2d0d800465340563f071703f9b177a2de`; clean worktree and `git diff --check` PASS. - Fresh CI is pending for the current head. Ready and REVIEW_REQUIRED were preserved; QA and production activation remain separate gates. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28051 ## What this PR does / why we need it: This is the phase-one data-safety fix for ODKU statements that can indirectly change generated keys. - Compute the alias-normalized fixed-point closure of columns that may change through generated-column dependencies, including implicit `ON UPDATE` columns. - Reject ODKU during planning with the existing 20313 unsupported-DML error when a generated primary-key or UNIQUE part may change. - Route affected generated non-unique indexes through the existing hidden-index delete/insert maintenance path. - Keep unrelated generated indexes on the insert-only path. This intentionally does not implement MySQL-style final-value uniqueness checking, change SQL/catalog/protobuf/storage formats, or repair indexes already damaged by an older version. Validation on exact head `cfe6007254e1612eac97b611500b6a853f88be9e`: - Focused generated-key ODKU planner tests: PASS. - Full `pkg/sql/plan`: PASS. - Isolated `generated_column.sql` BVT: 190/190 PASS, twice. - The `ON UPDATE -> generated UNIQUE` regression now enters through `runOneStmt`, preserving the real `OnUpdate` metadata and proving the planner returns 20313. - Generated non-unique maintenance now has a predicate-free forced-index scan; it returns exactly `(1,4)` and `(2,4)`, so a stale old hidden key cannot be masked by a base-table predicate. - Semantic preflight: `PASS semantic=PASS`, diff hash `ad6aacd4b5dd3f46fdce246d31eff467f814b62e62fb1f67a0bea5fa6165744c`. - `git diff --check`: PASS. QA required: yes. This changes a user-visible ODKU error path and protects persisted secondary-index consistency. Keep the PR Draft until exact-head CI, review, and QA pass. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28051 ## What this PR does / why we need it: This is the phase-one data-safety fix for ODKU statements that can indirectly change generated keys. - Compute the alias-normalized fixed-point closure of columns that may change through generated-column dependencies, including implicit `ON UPDATE` columns. - Reject ODKU during planning with the existing 20313 unsupported-DML error when a generated primary-key or UNIQUE part may change. - Route affected generated non-unique indexes through the existing hidden-index delete/insert maintenance path. - Keep unrelated generated indexes on the insert-only path. This intentionally does not implement MySQL-style final-value uniqueness checking, change SQL/catalog/protobuf/storage formats, or repair indexes already damaged by an older version. Validation on exact head `cfe6007254e1612eac97b611500b6a853f88be9e`: - Focused generated-key ODKU planner tests: PASS. - Full `pkg/sql/plan`: PASS. - Isolated `generated_column.sql` BVT: 190/190 PASS, twice. - The `ON UPDATE -> generated UNIQUE` regression now enters through `runOneStmt`, preserving the real `OnUpdate` metadata and proving the planner returns 20313. - Generated non-unique maintenance now has a predicate-free forced-index scan; it returns exactly `(1,4)` and `(2,4)`, so a stale old hidden key cannot be masked by a base-table predicate. - Semantic preflight: `PASS semantic=PASS`, diff hash `ad6aacd4b5dd3f46fdce246d31eff467f814b62e62fb1f67a0bea5fa6165744c`. - `git diff --check`: PASS. QA required: yes. This changes a user-visible ODKU error path and protects persisted secondary-index consistency. Keep the PR Draft until exact-head CI, review, and QA pass. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0
added a commit
to VioletQwQ-0/matrixone
that referenced
this pull request
Sep 17, 2026
…igin#28842) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [x] Documentation - [x] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#28164 ## What this PR does / why we need it: This PR records the reviewed replacement for the sidecar proposal and the current native-0900 integration status. The design reuses existing unique-index tables, hidden physical primary keys, tuple framing, and transaction/index maintenance paths. User-visible string values remain in the base row; comparison identities and physical key format are carried by schema/index metadata. The implementation is kept in a separate branch: - Implementation branch: https://github.com/VioletQwQ-0/matrixone/tree/codex/issue-28164-collation-integration - Current implementation head: `993957c232ac29e81009bb94275734b4f5d8786f` - Design/documentation branch: https://github.com/VioletQwQ-0/matrixone/tree/codex/issue-28164-collation-redesign - Current design/documentation head: `743903047861c59674ff1582ca0927401141513e` The implementation repair includes: - ALTER COPY dedup comparing effective collation identity, key expression/prefix and physical key format, so semantic or encoding changes cannot reuse an old uniqueness proof. - Hidden physical primary-key rebuilding computing the final table format after schema conversion and preserving the native format for a string-PK-only table; index aliases and unknown references are handled explicitly. - Expression collation provenance and coercibility propagation, including ordinary string functions inheriting their string input, CONCAT preserving an explicit identity when inputs resolve to the same identity, and equal-rank non-binary conflicts remaining errors. - Row-value `IN` deriving each corresponding field independently instead of mixing all tuple fields. - A physical-identity guard that keeps predicates with a mismatched explicit collation as residual filters instead of rewriting them to a native hidden-primary-key lookup. - Legacy hash behavior remaining bytewise and accepting legacy raw bytes; native 0900 hash paths alone validate UTF-8 and generate weights. - The local and remote temporary default-closed fences checking native expressions, columns, relation/index formats and folded native plans. This is not the durable mixed-version cluster gate; production native-0900 activation remains prohibited. The native backend candidate is fixed to Vitess v0.24.0 at `e8d9fa81d351066497a8d99f92e9e9f2ecfd69d0`. Historical v0.22.1/Go 1.24.4/MO `86c030d6b2` experiment data is kept as historical evidence and is not relabeled as v0.24.0 validation. ## Review status An Astra-medium sub-agent performed three review rounds using `mo-self-review` and `mo-pr-preflight-review`, including complete producer/consumer and failure-path checks plus historical CR mechanisms from matrixorigin#28076, matrixorigin#27252, matrixorigin#25881 and matrixorigin#25879. The final review verdict for the repair scope is **PASS**: no confirmed P1/P2 or merge blocker remains in the reviewed changes. The review still records the activation and end-to-end items below as `NOT_RUN`. ## Validation PASS at implementation head `993957c232ac29e81009bb94275734b4f5d8786f`: - Full `pkg/common/hashmap`, `pkg/sql/plan`, `pkg/sql/compile` and `pkg/pb/plan` package tests as applicable; plan and compile use the repository CGo wrapper. - Full and focused race tests for hashmap, plan and compile; focused collation regressions ran with repeated iterations. - Regression coverage for CONCAT provenance, explicit-binary residual preservation, folded native admission rejection, legacy bytewise hash behavior and native invalid-UTF-8 rejection. - A temporary mutant that restored the old unconditional CONCAT rank assignment made the authentic conflict regression fail, confirming the test catches the original defect. - `git diff --check` passed. PASS at documentation head `743903047861c59674ff1582ca0927401141513e`: - Evidence JSON parses successfully. - Historical, candidate and target identity mappings are separated. - The documentation describes the current default-closed fence as temporary and does not claim a durable cluster gate. BVT for matrixorigin#28842 itself is `N/A`: this PR contains design/evidence documentation; the separate implementation branch has deterministic package-level regressions. Product SQL execution, index backfill and storage-filter behavior remain activation gates and are listed as `NOT_RUN`. NOT_RUN / blocked: - Complete independent Vitess v0.24.0 versus MySQL 8.0.45 byte freeze, especially the 0900-bin oracle and formal V1 byte-format freeze. - Live SQL DML, unique conflicts, original-value return, index backfill, transactions, concurrent conflicts, and actual zonemap/Bloom pruning. - Migration conflict/foreign-key/cancel/rollback and restart/backup/restore. - Durable catalog activation, mixed-version old-node rejection, and complete remote/cluster admission; production activation remains prohibited. - Current-head CI, QA, performance budgets, and full dependency-closure review for the v0.24.0 candidate. This PR is Ready for design/documentation review. It does not complete or close matrixorigin#28164; production activation and the implementation acceptance gates listed above remain pending. ## Synchronization update - Current exact head: `7901039b15d4c8295e3d6129eadc646180061244`; base and merge-base: `main@b347a62`. - Rebased from `672da229a99c092f7e896f6fd15b786a3541500f`; the 7/7 range-diff remained equivalent, with no semantic code change. - Exact-content diff hash: `437b8748fcb7375e9a0a6c568bfeb4b2d0d800465340563f071703f9b177a2de`; clean worktree and `git diff --check` PASS. - Fresh CI is pending for the current head. Ready and REVIEW_REQUIRED were preserved; QA and production activation remain separate gates. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
3 of 7 tasks
aptend
added a commit
that referenced
this pull request
Sep 22, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #27933 ## What this PR does / why we need it: Backport the ODKU irregular-index routing from #27956, the synchronous FULLTEXT optimization from #28066, and the generated-key safety guard from #28076 to `hotfix-20260922`. This PR is independent of the VALUES fix in #29218. For `INSERT ... ON DUPLICATE KEY UPDATE` on tables with classic synchronous FULLTEXT indexes: - unchanged conflict rows skip hidden FULLTEXT delete, tokenization, and insert work; - new rows and rows whose indexed values change continue through the existing maintenance path; - all physical definitions of one logical irregular index stay in the same routing group; - comparisons include row identity and supported indexed text columns and use null-safe equality; - unsupported types, unknown plugins, asynchronous indexes, and incomplete metadata conservatively retain the original maintenance path. The backport also expands explicit assignments and implicit `ON UPDATE` columns through generated-column dependencies before primary/unique-key and irregular-index classification. An ODKU that can change a generated primary or unique key is rejected before maintenance can use a stale document identity; unrelated assignments remain supported. Hotfix-specific adaptation: - this release line has no newer `INSERT ALL` planner path, so no corresponding change is included; - this release line predates ordered ODKU assignments, so dependency closure is computed from the hotfix planner's final explicit and implicit assignment set. Regression coverage includes real planner-entry tests for explicit and implicit generated-UNIQUE dependencies, an unrelated-update control, sink-consumer plan invariants, and distributed generated-column/ODKU cases. Existing FULLTEXT and vector-index maintenance coverage is retained. The PR also carries main's temporary local Iceberg E2E disable while the workflow's Docker Hub dependency is unavailable. ### Validation Validated exact head `38cb71fcc3add986f99786fa9b29f5c90d159181`: - `make build`: PASS; `./mo-service -version` reports branch `backport/28066-on-9572bd3`, commit `38cb71fcc3`. - `GOWORK=off go test -count=1 -timeout=10m ./pkg/sql/plan ./pkg/fulltext/plugin/plan`: PASS (`4.552s`, `0.043s`). - `GOWORK=off go vet ./pkg/sql/plan ./pkg/fulltext/plugin/plan ./pkg/indexplugin/plan`: PASS. - `golangci-lint run -c .golangci.yml --new-from-rev 9572bd3 ./pkg/sql/plan ./pkg/fulltext/plugin/plan ./pkg/indexplugin/plan`: PASS (`0 issues`). - Fresh launch reached SQL readiness on `127.0.0.1:6001` after 11 seconds; `select version(), 1` returned `8.0.30-MatrixOne-v2806695723, 1`. - Same-instance normal comparison, run twice with `./run.sh -n -g -t 2`: `generated_column.sql` passed `174/174` in both runs; `on_duplicate_key_modern.sql` passed `265/265` in both runs. Each combined run was `439/439`, 100%, with no failed/ignored/abnormal cases. - The service terminated cleanly after the rerun (`Shutdown complete`, exit 0). Full MatrixOne PR CI/BVT is not scheduled by the current workflow because its branch filter does not include base branch `hotfix-20260922`. --------- Co-authored-by: 和光同尘 <[email protected]>
2 of 4 tasks
This branch was previously deployed
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:
issue #28051
What this PR does / why we need it:
This is the phase-one data-safety fix for ODKU statements that can indirectly change generated keys.
ON UPDATEcolumns.This intentionally does not implement MySQL-style final-value uniqueness checking, change SQL/catalog/protobuf/storage formats, or repair indexes already damaged by an older version.
Validation on exact head
cfe6007254e1612eac97b611500b6a853f88be9e:pkg/sql/plan: PASS.generated_column.sqlBVT: 190/190 PASS, twice.ON UPDATE -> generated UNIQUEregression now enters throughrunOneStmt, preserving the realOnUpdatemetadata and proving the planner returns 20313.(1,4)and(2,4), so a stale old hidden key cannot be masked by a base-table predicate.PASS semantic=PASS, diff hashad6aacd4b5dd3f46fdce246d31eff467f814b62e62fb1f67a0bea5fa6165744c.git diff --check: PASS.QA required: yes. This changes a user-visible ODKU error path and protects persisted secondary-index consistency. Keep the PR Draft until exact-head CI, review, and QA pass.