Repository navigation
Add set inner join - #29
Merged
Merged
Conversation
yingfeng
pushed a commit
that referenced
this pull request
Aug 18, 2021
jiangxinmeng1
referenced
this pull request
in jiangxinmeng1/matrixone
Apr 24, 2022
jiangxinmeng1
referenced
this pull request
in jiangxinmeng1/matrixone
Apr 29, 2022
zengyan1
pushed a commit
to zengyan1/matrixone
that referenced
this pull request
Mar 27, 2023
w-zr
referenced
this pull request
in w-zr/matrixone
Apr 27, 2023
reusee
pushed a commit
to reusee/matrixone
that referenced
this pull request
Jul 24, 2023
…er-hashpage add log for w-w conflict
Wenbin1002
pushed a commit
to Wenbin1002/matrixone
that referenced
this pull request
Oct 12, 2024
migrate command
ouyuanning
pushed a commit
to ouyuanning/matrixone
that referenced
this pull request
Oct 22, 2024
…tiupdate Build load use multiupdate
fengttt
pushed a commit
to fengttt/matrixone
that referenced
this pull request
May 7, 2026
This was referenced Oct 9, 2026
XuPeng-SH
pushed a commit
that referenced
this pull request
Oct 9, 2026
…29775) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: References #29757, #28968 and #28966. These feature issues remain open. ## What this PR does / why we need it: A prepared SELECT can bind an old table definition, then observe a concurrent `ALTER TABLE ... MODIFY b BIGINT` commit before its pipeline starts. Previously the frontend froze the old result schema before Run, so an otherwise valid definition retry returned `20631/HY000: txn need retry in rc mode, def changed`. The deterministic public reproduction also fails on main `b6fa8ccfc7` with only an inert fault point added; this is the failure class observed by #29757's pessimistic Compose BVT at `pessimistic_transaction/prepare.sql` row 10. Publish SELECT metadata once from the actual execution generation, immediately before its first positive output batch or after successful completion for zero rows. Rebuilt binary executions discard stale cached column packets. Once a consumer retains or publishes metadata, the existing incompatible-schema retry guard still rejects schema drift; its flag is atomic for the output callback boundary. Cursor decoding retains its earlier freeze and its existing response-after-commit behavior. Saved results finalize metadata after whole-query success, where write errors can propagate, rather than from a pipeline-local reset callback. PERFORM reuses the same existing finalizer. The unchanged cached-plan admission phase is extracted so its compile-only test continues exercising the real owner without relying on early result packets. The legacy protocol test producer now observes the same metadata-before-rows boundary. Validation includes the original publication-boundary evidence and the current review fix at `6efb5fdfdaad60c2f458963ab143ec5ae5ec812f`, based on authoritative main `72d4a49db7d750520e1a1654cb6091fc7169882b`: - Complete `pkg/frontend` and `pkg/sql/compile` suites pass in normal and race modes using verified CGo artifacts. - Public MySQL regressions pass: text/binary execution after commit and after execute-time binding, each with empty/nonempty results and exact BIGINT metadata/values; saved empty-result completion and exact BIGINT replay; prepared parameters, numeric/temporal contracts and workspace visibility. All responses are fully drained. - Metadata ordering, final plan selection, execution/cancellation/header/finalization failures, statement reuse and existing cursor/frozen-schema/SELECT INTO controls pass. - Focused concurrent callback test passes 100 race repetitions (measurement below test-clock resolution); the public eight-case test passes three in-process race repetitions (measured 9.14s; 30s budget). - `make config`, the full mandatory pre-push SCA gate, and lifecycle self-review pass; the branch is zero commits behind freshly fetched authoritative main. This is an independent kernel prerequisite for C's CI closure. After it merges, C can inherit the merged fix; C also still requires merged Sirius #29 and its final merged-pin release/public checks. D implementation begins only after C merges. Review follow-up (2026-10-10): SELECT now clears session saved-result state on a late Run/cancellation/metadata/finalization failure, following the existing PERFORM cleanup guard. The prior-head unit reproduction fails and the fixed error/cancellation controls pass. A public test persists a real batch, injects an error afterward, fully drains it, verifies the connection ID is unchanged, then saves and replays an exact BIGINT on that same connection. Cursor staging keeps its independent abort owner. All nine public cases and full frontend/compiler suites pass normally/under race; three in-process public race repetitions and full pre-push SCA pass. The reviewer thread is answered and resolved; fresh review/CI are requested on the new head. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
XuPeng-SH
added a commit
that referenced
this pull request
Oct 10, 2026
) Opt-in embedded MO-reader queries now lower MO exact Decimal64/128/256 values and descriptors to Sirius GPU execution. One immutable capability-scoped profile owns admission, physical types/literals, bound scalar/aggregate overloads, input publication, result reconstruction and public numeric error classes. Terminal evidence records verified descriptors and a schema digest without logging headings or values. This implements approved PR C from #29690 and the versioned [design/validation map](https://github.com/matrixorigin/matrixone/blob/a4e34ef05de6a6d02ceb0fa81219cacd452ae6c8/docs/design/sirius-mo-exact-lowering.md). Physical width is preserved at narrow declared precision; MO-bound division metadata and 32-byte Decimal256 coefficients use the existing credit-before-copy and borrowed-result contracts. Embedded fetch defaults and DATE extraction use supported native wire forms. All prerequisites are merged and inherited: - Sirius [#29](matrixorigin/sirius#29): `908ffc75a58b3be496b2172795e416326416e7ec`, with merged importer #5 at `99c7ca3b6f8f3159239e119ed2982d42f98c4690`. - Kernel [#29775](#29775): `af3f7232a31879a2d6ed590785c8e9a560361c3f`. Prepared SELECT metadata comes from the executed generation; incomplete saved SELECTs clear session state before reuse. - Main [#29794](#29794) supplies the existing MORPC shutdown-test race correction. Main now also includes the histogram-export synchronization fix; C uses main's bounded two-send notification wait unchanged. Final release/native integration at executable C head `ad61b5b5d3`, on merged-kernel main `af3f7232a3`, passes: - Default, Sirius-only and combined Sirius/cuVS release builds. The clean merged SDK, all 73 fingerprints, compiler/header/proto identity and runtime package/provenance guards pass. - All 22 native preparations without reader/GPU-task admission. The complete public MySQL numeric fixture passes exact values, metadata/NULLs, arithmetic/aggregates/joins/sort, operation-owned errors, masked errors, healthy reuse and prepared division increments 0/4/10/30/4. Native MO supplies the independent oracle. - All 31 public terminal events show capability 31, `mo-exact-decimal-v1`, completed GPU tasks, no fallback, healthy cleanup and zero retained input/result credit. - Four C-owning packages plus frontend pass default normal/race checks; native-tag owning checks and the complete combined bridge suite pass. cuVS-before/Sirius/cuVS-after passes in one process. - All nine public prepared-metadata/saved-result cases pass normal mode and three race repetitions, including a real persisted-batch failure followed by successful save/replay on the same physical connection. - Native data/cancellation passes 68 race repetitions in one process (measured 0.44s; 30s budget). The exact MORPC shutdown test passes 100 race repetitions. Metrics focused/owning normal/race and 100 focused race repetitions pass. The delivered head is `b34111b4c9e94cda034d199a2c362072fe98d808`, normally merged with authoritative main `e5dd4724f782067e1c76c38c9d2f55cebceda4a9`. Review fixes are committed in `af4f342066`: typed DATE lowering preserves persisted MO zero dates; exact CASE retains the MO-bound descriptor around IfThen; ordinary embedded integer add/subtract/multiply declines before readers because the pinned consumer does not implement MO checked overflow. Flight encoding/admission, reader bytes, native ABI and the merged Sirius pin are unchanged. The installed and loaded host drivers now both report NVIDIA 615.78.08; final GPU checks run directly with the installed driver. The bounded local native fixture uses 256 MiB GPU and 2 GiB host capacity. An initial 512 MiB host fixture correctly rejected larger progress-window reservations; only the test fixture was corrected. Production windows, limits and assertions remain unchanged. Review-resolution validation at prior head `a4e34ef05d`: - Both incoming counterexamples have real GPU red/green proof. Zero DATE now returns 0/0/0 alongside year-0001/leap-day/year-9999/NULL controls, with SQL mode restored. Nullable division conditions with two required decimal arms execute with native-MO values and nullable DECIMAL(15,2) metadata. - The existing public fixture covers integer +/-/* overflow declines and healthy integral/decimal reuse. No new cluster, production hook, native library dependency, sleep or skip was added. - All 22 native preparations pass. Full public GPU normal mode passes (9.596s); measured race mode followed by three in-process repetitions passes (29.571s). Its 34 terminal events verify exact profile/capability31, completed GPU work, no fallback, healthy cleanup and zero retained input/result credits. - Fresh combined release/native provenance and full bridge/coexistence pass. Exporter/compiler/CN owning normal/race, focused new wire/domain regressions, config and full mandatory pre-push SCA pass with zero lint findings. Self-review has no unresolved implementation blocker. **Ready for review; merge gates remain required CI and reviewer approval.** Both incoming findings were reproduced on actual GPU/public MySQL and fixed with regressions. A separate admitted integer-overflow counterexample returned -2 instead of native MO 1690/22003; it now declines before execution. Fresh CI is pending for the delivered head, and the reviewer has been asked to reassess the fixes. Local passes do not establish required CI success. C remains opt-in. D begins after C merges and stays one complete public campaign PR for all-22 SF1/SF10, bounded comparison, lifecycle/resource/process evidence and performance gates. E/F retain their separate recovery-readiness design. References #28968 and #28966; neither issue is closed by C. Conflict resolution at `b34111b4c9` (2026-10-10): normally merged authoritative main `e5dd4724f7`. The single conflict was two equivalent asynchronous histogram-test fixes; main's stopped-timer notification barrier is retained unchanged. All 28 prior C paths were checked: only this test changed, while the DATE/CASE/integer review fixes and merged native pins remain intact. Validation at this merged head passes: affected owning packages normal/race, 100 focused metrics race repetitions, fresh native generations and combined release/package, all 22 actual preparations (1.116s), full public GPU normal/race (9.762s/11.999s), and full combined bridge/coexistence (1.108s). Both public runs' 34 terminal events verify completed GPU work, exact profile/capability31, healthy cleanup, no fallback and zero retained credits. Mandatory pre-push SCA passes with zero findings; self-review has no unresolved implementation blocker. New-head required CI and human reviewer approval remain the merge gates. --------- Co-authored-by: XuPeng-SH <[email protected]>
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:
Fixes #25
What this PR does / why we need it:
Not Available
Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available