Repository navigation
Conversation
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? |
|
Tick the box to add this pull request to the merge queue (same as
|
|
mo-bot review · Commit: "interrupted" |
…to fix/python-sdk-unified-contracts
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 96dbeecd906d74a579dad5755210170e10793cdd
Assessment: request_changes
Native labels and the shared connection, parameter, export and CDC helpers are proportionate fixes. The unconditional BEGIN hook conflicts with the existing non-transactional execution path and breaks DATA BRANCH PICK.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
- P2
clients/python/matrixone/_connection_options.py:29: Use the default auto_commit=True and execute DATA BRANCH PICK through a SQLAlchemy 2.x Client or an AsyncClient.
Impact: The BEGIN listener opens an explicit transaction before SELECT @@autocommit. That check still returns1, so the bypass skips its mode change and sends PICK inside the transaction; MatrixOne rejects an otherwise valid standalone operation.
Evidence: client.py:1410-1425 and async_client.py:1281-1298 use this bypass, while both managed engines register the listener. transaction-final.stdout.log records BEGIN, SELECT @@autocommit, then PICK through real SQLAlchemy/public Client dispatch; no-listener controls omit BEGIN and ordinary transaction controls retain it. data_branch_pick.go:124 and mysql_cmd_executor.go:122 reject explicitly begun PICK transactions. Make the BEGIN hook respect the non-transactional checkout before its first query, retain ordinary session/transaction semantics, and add an event-aware regression.
Validation:
-
Reviewed all fifteen changed files, affected owners/consumers, four discussion entries and all five linked issues, including issue31186 comments.
-
Isolation preflight passed. Complete offline suite passed on SQLAlchemy1.4.54: checks/1794549545449127316-3.json and offline14.stdout.log.
-
SQLAlchemy2.1.8 offline run:3244 passed;21 dialect-entrypoint setup failures all passed on exact-case retry after installing frozen SDK packaging metadata. Receipts: checks/1794549784777441668-3.json and checks/1794550015417979037-3.json; offline20.xml and metadata-retry.xml.
-
Real SQLAlchemy/mock-DBAPI public dispatch probes confirmed the BEGIN conflict with baseline and ordinary-transaction controls. Final source-bound receipt: checks/1794550437337306236-3.json; transaction-final.stdout.log. Earlier1.4/2.1 controls remain retained.
-
Frozen CI records successful Python offline matrices across SQLAlchemy1.4,2.0,2.1; online was skipped. Source, discussion, result and receipt audit retained in review-audit.json.
Limitations:
-
The transaction probe uses real SQLAlchemy and SDK dispatch with a deterministic DBAPI transport; PICK rejection is established by the frozen server guard, not a local live-server run.
-
Author-reported online autocommit, rollback, fulltext, export and CDC probes were not independently reproduced. The complete online suite is not claimed green.
|
mo-bot review · Commit: "interrupted" |
…tract cdc: MatrixOne reports an invisible catalog relation as parser error 1064 (`SQL parser error: table "mo_cdc_task" does not exist`), so the errno whitelist (1044/1045/1146/20403) never matched and detection depended on an unrelated `does not exist` substring anywhere in the message. Key on the reported relation instead, keep privilege errors on the fallback path, and let every other failure propagate. _driver_execution: a tuple is exactly one positional collection. The previous SQLAlchemy-shaped inference sent a tuple of parameter collections through executemany; that shape now runs as one collection, so announce it with a RuntimeWarning that names the list form instead of changing behaviour silently. tests: pin the CDC classification table and the parameter-shape matrix offline.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: c889423d0ea83dfcf5e890ca92f83048cd515048
Assessment: request_changes
Shared helpers and native SQLAlchemy labels fit the existing owners, and the earlier BEGIN/PICK defect is resolved. Three regressions remain: unintended commits on raw-connection return, malformed dollar-quoted exports, and disclosure of bound values in migration warnings.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
-
P1
clients/python/matrixone/_connection_options.py:56: With auto_commit=True, obtain get_sqlalchemy_engine().raw_connection(), disable autocommit, write a row, then close the checkout without committing.
Impact: Returning the abandoned transaction commits its pending writes instead of rolling them back.
Evidence: SQLAlchemy dispatches reset listeners before its default rollback. This listener enables autocommit first; MatrixOne's TxnHandler.SetAutocommit commits the active transaction on that transition. transaction14-final.log and transaction21.log reproduce committed rows visible to an independent storage connection; removing only this listener or explicitly rolling back leaves zero rows. Roll back pending work before restoring the mode, retaining explicit-commit, managed-rollback and PICK behavior. -
P2
clients/python/matrixone/export.py:43: Export a valid terminated query containing a dollar-quoted string, such as SELECT $tag$a // b$tag$;.
Impact: The scanner treats text inside the literal as a comment and retains the semicolon. OUTFILE is appended after a completed statement, producing invalid export SQL.
Evidence: The frozen MySQL scanner accepts dollar strings, and _sql_literals.substitute_parameters already recognizes their boundaries. sql-boundary14-evidence.log and sql-boundary21.log each demonstrate 36 affected raw/SQLAlchemy/builder, sync/async, CSV/JSONL cases. The base normalization removed the terminal semicolon. Honor dollar-string boundaries before comment detection and extend the existing terminator regression cases. -
P2
clients/python/matrixone/_driver_execution.py:39: Call execute_driver with a tuple containing multiple collection-valued bindings, including valid IN-clause parameters, while SQL logging is off.
Impact: The RuntimeWarning prints complete bound values to stderr, bypassing the SDK's default diagnostic privacy controls.
Evidence: The warning interpolates both params and list(params). Public SDK probes on SQLAlchemy 1.4.54 and 2.1.8 successfully execute the query and capture a synthetic private binding in stderr with sql_log_mode='off' (sql-boundary14-evidence.log and sql-boundary21.log). This conflicts with the documented opt-in data logging contract. Keep the migration guidance parameter-free and cover stderr in the privacy regression.
Validation:
-
Reviewed all 18 changed paths, affected owners/consumers, seven discussion entries and five linked issues. review-audit.log and checks/1794557712614631820-2.json confirm frozen-head identity, clean source, patch/AST/whitespace checks and receipt reconciliation. discussion-assessment.json covers every discussion key.
-
Isolation preflight passed. SQLAlchemy 1.4.54: 768 focused tests passed (focused14.log/xml; checks/1794557354772391815-2.json). SQLAlchemy 2.1.8: 451 passed (focused21.log/xml; checks/1794557466521753313-2.json). Neither run skipped tests.
-
Counterexample probes completed on both versions with rollback/commit, no-listener, managed-rollback, PICK and ordinary-quote/comment controls. validation-summary.json reconciles commands, source fingerprints, exits, logs and initial reviewer setup diagnostics.
-
Reused eight successful exact-head offline CI matrix jobs and two core-import jobs from the supplied evidence. Online CI was skipped.
Limitations:
-
Local runtime was Python 3.13.5. Transaction probes use real SDK/SQLAlchemy dispatch and independent SQLite storage with substituted MySQL transport/introspection; MatrixOne commit semantics are established from frozen server source, not a fresh live-server run.
-
Export probes inspect generated SQL against the frozen lexer contract. Author-reported online checks were not independently reproduced; raw CI artifacts were unavailable and no complete online-suite pass is claimed.
|
mo-bot review · Commit: "interrupted" |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: c70593175c07ad828fba0b8e4d2a97811ac600e8
Assessment: approve
Reviewed the complete 87-file scope. Earlier findings remain resolved. Release adaptations reuse existing execution and compilation owners; Arrow fallback retains existing transaction, cleanup and admission bounds without new workers, caches or write retries. No actionable defect remains.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reviewed all discussion entries and five linked issues; discussion-assessment.json covers all 19 keys.
-
Isolation preflight passed. Focused Python validation passed 962 tests and 4 subtests with zero failures/errors/skips. Receipt: checks/1794635762481591152-2.json; focused.log/xml.
-
All 21 CI scope-selection tests passed. Receipt: checks/1794635765627728044-2.json; ci-scope.log.
-
Final audit verified clean frozen source, 429 input hashes, 72 changed Python files, design digests and receipt/log consistency. Receipt: checks/1794636280212429932-2.json; review-audit.json and validation-manifest.json.
-
Reused eight successful frozen-head offline CI profiles and two core-import profiles.
Limitations:
-
No local live-server or native-companion execution. Author-reported online, analytics and packaging results were assessed with attribution; raw artifacts were unavailable.
-
Online CI was skipped. The latest reported original-4.2.8 full online sweep had six TLS setup errors; focused renewals do not erase that failure or certify TLS reliability. Documented native feature limitations remain.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: ac58e4f910827bd6c81ae5993025cf43035cbdf7
Assessment: request_changes
Two P2 defects remain: release guards reject valid scalar table DDL, and dated-hotfix selection breaks four online contracts. Shared execution/staging ownership is coherent; earlier transaction, export and warning findings are resolved.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
-
P2
clients/python/matrixone/_release_compat.py:237: On a qualified 4.2.8 connection, create an integer-only table named vecf4 or vecf8, such as CREATE TABLE vecf4(id INT PRIMARY KEY).
Impact: The listener mistakes the table identifier followed by '(' for a vector datatype and rejects valid DDL before dispatch, including SQLAlchemy CreateTable. Restrict detection to datatype positions.
Evidence: The published 4.2.8 lexer/grammar at 10d204b accepts these identifiers. scalar-vector-name-report.json demonstrates both scalar tables failing in the actual listener; quoted-name, ordinary-name and unqualified-banner controls pass. Receipts and logs are indexed in validation-summary.json. -
P2
clients/python/tests/online/test_block_vector_reflection_online.py:29: Select MO_SDK_TARGET=4.2.8-hotfix-20261114 through the newly supported release workflow/runner.
Impact: The gate recognizes only 4.2.5/4.2.8, so both vector tests attempt positive VECF4/VECF8 creation instead of checking the expected limitation. Four cases raise uncaught QueryError. Include qualified dated hotfixes using the shared release classification.
Evidence: The workflow and runner preserve the dated target, and tests/release_contracts.py recognizes it. dated-hotfix-vector-report.json invokes both maintained tests with the actual SDK listener: four uncaught compatibility errors while release_428 returns true. This is an internal deterministic probe.
Validation:
-
Reviewed all 91 changed files, relevant owners/consumers, six linked issues and all 21 discussion items.
-
Isolated offline runner: 3,454 tests plus 116 subtests passed with zero failures/errors/skips; Python 3.13.5, SQLAlchemy 2.0.43.
-
Focused async lifecycle/staging tests: 59 passed. Node CI scope tests: 21 passed.
-
Both counterexample probes completed with unaffected controls. AST, provenance, receipt, discussion coverage and git diff --check audits passed; source remains clean.
-
Supplied frozen-head CI records eight successful offline profiles and two successful core-import profiles.
Limitations:
-
No local live MatrixOne, TLS or multi-CN execution; online CI is skipped and unrelated native CI remains pending.
-
Native identifier acceptance is established from pinned released parser sources. Author-reported main/hotfix qualification and published TLS/dictionary limitations were reviewed, not rerun.
…32748) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Related to #29928. Release-branch follow-up to #29996; discovered while qualifying SDK #32671. ## What this PR does / why we need it: On the actual `v4.2.8-hotfix` branch, the MySQL reader can consume SSLRequest and TLS ClientHello together. Upgrading the raw socket then loses the buffered TLS bytes, causing a pre-authentication hang or EOF. Preserve that prefix at both TLS handoffs while forwarding the original socket, deadlines and close/liveness operations. This is the complete four-file backport of #29996, cherry-picked from `2bc83b0b9a2` onto release base `c66030006fc`. It adds no client retry, TLS fallback, catalog change or runner. Validation on Linux/amd64, Go 1.26.4: all nine focused TLS/disconnect roots pass normally and under race; the complete frontend package, gofmt, go vet and incremental golangci-lint pass. An independent real-service probe sends SSLRequest and ClientHello in a single write, negotiates verified TLS 1.3 and authenticates `SELECT 1` successfully. Source candidate identity is `8.0.30-MatrixOne-v4.2.8-hotfix`, git `dbd8358db62`, binary SHA-256 `e16a080574bcc8a8ef7d3ddcaa990f0a86a45ce64a295023309f471261ae2688`. This source candidate does not change the immutable published `v4.2.8-hotfix-20261114` asset. That published binary still reproduces the failure. Full SDK qualification and its distinct release/main identities are tracked in #32671; no published release or production deployment is performed here. Complete SDK qualification against this actual release-branch build now passes 1298/1298 online and 340/340 analytics cases with zero failures/errors/skips. All required TLS, certificate/hostname rejection and original Chinese-search assertions remain active. See #32671 for the separate SDK hotfix-version fixes and immutable-release counterevidence. Co-authored-by: davis zhen <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [x] API-change - [x] BUG - [x] Improvement - [x] Documentation - [ ] Feature - [x] Test and CI - [x] Code Refactoring ## Which issue(s) this PR fixes: Related to #29928 and #26068. Addresses the ENUM comma-member representation/replay portion of consolidated #30771, including original report #30776. Binary-collation identity and unrelated HEX behavior remain tracked by that open issue. Native 4.2 companion to SDK PR #32671. The SDK's supported paths on published 4.2.8 do not depend on this native PR. ## What this PR does / why we need it: Preserve the relevant protocol, schema replay, FULLTEXT, parser, Stage, Parquet and branch fixes on 4.2-dev. Ordinary scalar display stays exactly as in the base: INT(32), BOOL(0), BIGINT UNSIGNED(64), and the existing FLOAT/date/text conventions. The restored scalar golden rows remain unchanged. ### Complete ENUM member domains The old comma join maps both ENUM('a,b','c') and ENUM('a','b','c') to the same catalog text. The earlier PR mitigation rejected comma-bearing declarations. This revision removes that restriction and preserves the actual members and ordinals: - Keep ordinary domains in the existing encoding. Use explicitly tagged, counted byte framing for comma-bearing and singleton-empty domains. The tag and payload form one authoritative pair; readers never guess from a string prefix. - Carry the pair through existing plan/native/catalog/TAE containers, views/CTEs, schema copies, ALTER, imports, index/FK metadata and tooling. Retain the 16/20-byte native layouts by using the reserved type slot; add enum_encoding field 8 to plan.Type. - Preserve existing two-argument conversion overloads as legacy encoding. Append the tagged overloads, reuse one codec/lookup owner and decode constant domains once per batch. Unknown/malformed domains remain errors under IGNORE. - Preserve stored ordinal zero separately from a declared empty member through typed INSERT SELECT, checked remapping and frozen data-branch output. The background AST entry reuses ordinary compilation, transactions and constraints; normal strict INSERT of numeric zero still fails. - Stop hidden-ordinal propagation at comparison/counting set-operation boundaries. UNION DISTINCT and MINUS counterexamples now match their visible SELECT results; UNION ALL preserves storage ordinals and multiplicity. - Replay native COLUMN_TYPE and SHOW CREATE correctly under ordinary and NO_BACKSLASH_ESCAPES modes, including prepared mode changes, quotes, backslashes, NUL/CRLF and Unicode. ### Other retained fixes - Drain frontend-owned TLS read-ahead bytes in both handshake branches and retain TCP ownership for terminal detection. Reuse the existing monitor and current 4.2 FIN/write-half-close cancellation policy from #32743. - Quote FULLTEXT identifier components through existing planner/post-DML/ISCP owners and retain async parser parameters. - Correct numeric token boundaries, including incomplete signed exponents, while retaining 4.2 DOUBLE wire metadata. - Preserve Stage host-form URIs and support encoded logical names in path form, atomic combined ALTER, ENABLE=false and executing-session SQL-mode status. - Accept representable Parquet FLOAT32 infinities while preserving finite-overflow, NaN and signed-zero behavior; retain the inlineable normal conversion path. ENUM CSV/JSON/Hive/Parquet consumers share the domain reader. - Persist database branch identity in the existing dat_type field, retain receipt/target checks, serialize deletion through existing DDL locks/RC retry, and preflight source identity before restore effects. ## Compatibility and limits - Existing flattened ENUM data retains its historical split interpretation and ordinal mapping. Published fixtures show a/b/c at ordinals 1/2/3; saved original CREATE SQL is insufficient to safely regroup live values. No automatic repair or migration is performed. - New tagged data requires capable binaries and schema consumers. Stopped upgrades from 4.2.1 and 4.2.8 are qualified. Mixed-version operation, old-binary reads of the new encoding and supported downgrade are not. - SET's comma prohibition stays unchanged. Existing binary-collation identity, canonical BOOL reflection (#32746), lost historical view provenance and unmarked empty-branch limitations are not closed. - Existing branch-identity rollback and new path-form Stage URI limits still apply. Published releases are unchanged; a release containing this PR is required for its native capabilities. ## Validation Runtime optimization qualified at a65a050, based on c5623e4 and compared with 4.2-dev 25305b6. The subsequent CI-only read-buffer cleanup is 3d34894. All fresh work ran on 57/Linux/amd64, with source-matched CPU native libraries and task-owned data/temp directories outside /tmp. | Runtime follow-up check | Result | | --- | --- | | Types and function owners, -short -tags=matrixone_test, Go 1.26.4 and 1.27.1 | 176 + 1,297 root passes per toolchain; one existing TestDecimal128Float skip per toolchain | | Exact behavior tests | Leading/interior/trailing empty members, arbitrary bytes, per-row changing domains/tags, identical text with different tags, NULL and fatal oversized-domain errors under IGNORE pass | | Differential codec fuzz, Go 1.26.4 | 330,370 executions with a 30-second budget; no failure | | Owning list/build/vet and molint, Go 1.26.4 | Exit zero; configured incremental golangci reports zero issues | | Maintained real-service BVT | 121/121 twice, checked-in expected results unchanged; zero failed/ignored/abnormal statements; no genrs | | Independent public SQL/client oracle | Nine groups / 185 SQL operations pass: default/NBE/prepared replay, empty/zero ordinals, ALTER atomicity/backfill/remap, view/CTE/CTAS, FK, INSERT SELECT, CSV/JSON and scalar spelling | | Service lifecycle | Both isolated instances shut down normally; existing instance preserved | | Independent design, implementation and final review | gpt-6.1-sol / max; PASS; zero open blockers; reviewed delta d861af1862b9 | Full prior implementation qualification is recorded at f9c839a: 7,159 roots across 15 owners, 2,143 frontend/external race roots and focused 100-repeat lifecycle stress, actual two-CN propagation, frozen branch output/restore and stopped upgrades from published 4.2.1/4.2.8. The runtime follow-up at a65a050 confirmed 138 of its 143 PR paths byte-identical to that reviewed version. This follow-up changes one common legacy traversal, two owner test files and two design/evidence documents. Older broader evidence retains its stated source and scope; it is not represented as a fresh release/SDK, cross-cluster CDC or production-checkpoint qualification. Hosted CI must report on the pushed head separately. ### CI-only read-buffer cleanup The failed [UT Coverage job](https://github.com/matrixorigin/matrixone/actions/runs/43801930042/job/133084100487) reports a checked-allocator missing free of 27 bytes from TestLazyCacheFSReadsMagicPrefixedRemoteObjectsWithoutLocalChecksum after PASS. The final Coverage job is blocked by the absent UT profile; it did not compute a coverage-rate verdict. - The same exact test fails on clean base 25305b6 and original head a65a050 under Go 1.26.4, -short -tags=matrixone_test, set-mode package coverage, MO_MALLOC_DEBUG=1 and GOGC=1. The toolfs sources match on both revisions. - Existing test callers omit IOVector.Release; FileService.Close does not own those read results. Register five vector releases before assertions and copy the eviction helper's returned bytes before release. - All 26 toolfs roots pass normal, checked-coverage and race modes; each of the four affected tests passes 100 checked-coverage and 100 race repetitions. Owner build/vet/molint exit zero; configured incremental golangci reports zero issues. - This follow-up changes test cleanup and its evidence document. Production sources and coverage policy are unchanged, so the qualified ENUM performance sources are preserved. Whole hosted CI remains a separate result on 3d34894. - Independent final review: gpt-6.1-sol / max, PASS; zero open blockers; reviewed delta 34e8c37965ca. ## Performance versus current base Same maintained benchmark source on base 25305b6, original PR c5623e4 and candidate; CPU 23, GOMAXPROCS=1. The six dynamic controls plus scalar display use seven interleaved rounds of 500 ms per revision on each Go toolchain. Complete 54-case legacy and 54-case tagged matrices use three interleaved 100-ms rounds each. These are vector-function microbenchmarks, not end-to-end SQL throughput. The old PR's dynamic regression reproduces on Linux; scalar display on Go 1.27.1 is 127.7 -> 146.6 ns (+14.80%). The legacy reader now uses its existing checked count to traverse exact comma-byte boundaries with strings.IndexByte. The original strings.Split already counted internally: this change reduces general split dispatch/check overhead while retaining tag/size/member validation, independent ParseEnum oracles and the same allocation bounds. No global/payload-equality cache or row/data-shape special case is added. | 3-member legacy domain | Go 1.26.4 candidate/base | Go 1.27.1 candidate/base | | --- | ---: | ---: | | Dynamic 64 rows: display / name / numeric | -0.15% / +1.20% / -0.07% | +0.95% / +1.35% / +0.27% | | Dynamic 1,024 rows: display / name / numeric | -0.15% / +0.90% / -0.40% | -0.30% / +0.11% / -0.96% | | Scalar constant display | +3.26% | +2.21% | Bytes/allocations are unchanged for those controls. No legacy short-run median in the complete matrices exceeds 10% versus base (maximum +7.70% on Go 1.26.4 and +5.72% on Go 1.27.1). The sole tagged short-run point above 10%, dynamic 64-member/1,024-row name lookup on Go 1.26.4, is retained and remeasured over seven fixed longer rounds: original PR 655.833 us -> candidate 649.588 us (-0.95%), same 1,027 allocations. Large constant-batch gains remain. Go 1.27.1 complete-matrix medians: | Constant domain, 1,024 rows | Base | Candidate | Allocations | | --- | ---: | ---: | ---: | | 3 members, display | 49.517 us | 13.979 us | 1,026 -> 3 | | 64 members, display | 648.679 us | 15.525 us | 1,026 -> 3 | | 64 members, numeric validation | 641.309 us | 5.151 us | 1,026 -> 3 | | 64 members, indexed name lookup | 18.257 us | 18.250 us | 76 -> 76 | Residual small costs are reported, not described as universal speedups or zero regression. The candidate has not been retimed on Darwin/arm64; the earlier Darwin QA finding is not claimed resolved on that platform from Linux evidence alone. [Domain design](https://github.com/XuPeng-SH/matrixone/blob/3d348941273493135f083c3c8a9eb581558f5e49/docs/design/enum_member_encoding_42.md) · [Compatibility, evidence scope and detailed performance](https://github.com/XuPeng-SH/matrixone/blob/3d348941273493135f083c3c8a9eb581558f5e49/docs/design/python_sdk_42_compat_validation.md) --------- Signed-off-by: XuPeng-SH <[email protected]> Co-authored-by: davis zhen <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
|
mo-bot work · Commit: Review in progress. |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32538
Fixes #32537
Fixes #32556
Fixes #32026
Fixes #31186
What this PR does / why we need it:
Restore Python SDK transaction, query, export and analytics contracts on published MatrixOne releases, with main qualified separately. Official v4.2.8 and v4.2.8-hotfix-20261114 are SDK compatibility targets: use equivalent implementations where safe, otherwise give a precise actionable SDK limitation with verified effects. A future native release is not a prerequisite for these supported SDK paths.
Preserve transaction rollback/reset, explicit SQLAlchemy AUTOCOMMIT, native error causes, parameter ownership and one-slot timeout/cancellation cleanup.
Fix typed queries, snapshot compiler/cache adoption, verified CLONE source/no-op behavior, export literal handling and administrative SQL construction without global MySQL mutation.
Support Arrow-input uploads through checked Parquet after the exact native Arrow-format rejection. Preserve values, transaction and cleanup; pending async closes remain charged to the existing two-upload admission.
Adapt released-server numeric/dollar token boundaries and reflection spelling without changing values, aliases, native types or raw
execute_driverbytes. Recover original source-table SET member case from the same connection's account-scoped catalog, retaining bind/result processors.Scope ASYNC/gojieba classification to options of the same FULLTEXT index. Legal column/index names
asyncand separate indexes do not trigger the limitation. Retain the original Chinese-search data and positive alternatives.Report known Stage, FULLTEXT, branch, schema, vector-precision and FLOAT32-infinity limits with release/feature/advice. Unsafe DDL is refused before dispatch; actual native failures retain their source and errno. No silent identifier rename, ASYNC downgrade, type widening, DROP substitution or fabricated view provenance. Explicit usable alternatives have actual-service tests.
Select compatibility from the actual physical driver handshake, never a test flag or caller version override. The listener issues zero SQL before dispatch: even SQL-mode reads start a transaction on 4.2.8. Other unknown/custom/source builds keep their execution path and require qualification; the explicitly pinned hotfix source branch has its own release-family profile.
Document exact release boundaries and reopening criteria in maintained code/README/Stage guidance. Keep full original positive feature scenarios on main and the fixed 4.2 candidate. Keep all existing CI targets/runners: 1638 scenarios partition into 207 required + 1431 extended without omissions/duplicates.
Recognize native hotfix version suffixes without losing the backend version; keep full physical banner/revision checks for qualification. Give precise pre-authentication TLS EOF/timeout and missing-dictionary installation advice, preserving native causes and trust settings. No connection or write retry is added.
Retain native MySQL uppercase-view metadata controls and all original SDK-positive reflection/value/replay assertions through
Client.from_engine()on every target. The raw third-party view limitation remains separately tracked in [4.2][Bug]: preserve legacy metadata while supporting SQLAlchemy view reflection #32746.Version contracts and validation
Latest main:
625865c470631f33da52793a2e2766d63e5a316e, freshly built with Go 1.27.1. Actual hotfix release-branch candidate:dbd8358db6258b59d66d874a21801cbac0f43712on release basec66030006fc, Go 1.26.4, full identity8.0.30-MatrixOne-v4.2.8-hotfix. Exact binary/asset hashes and retained previous failures are in the maintained validation notes.625865c4706dbd8358db62The final
socket.timeoutspelling covers Python 3.8/3.9, where it differs from built-in TimeoutError. Its exception set is identical on each full-suite Python 3.10+ runtime; those successful full sweeps remain valid. Both older Python versions also pass focused six-case timeout/EOF renewal and installed-wheel checks. No source drift occurred within the recorded full runs.Released binary defects and their repairs
10d204b8763f, immutable imagesha256:eec6cee1ab0d1ddaa5c81cbc9d79ef6a59ecf13f2b5835631ef3b03ee6822fc6) retains its independently reproduced native TLS defect and the earlier full-sweep six TLS setup errors. A focused retry does not erase that failed sweep.v4.2.8-hotfix-20261114is sourcec66030006fc. Its unchanged published binary also exhibits pre-authentication TLS EOF/timeouts. fix(frontend): backport buffered TLS handshake fix to 4.2.8 hotfix #32748 backports the complete root TLS fix to the actualv4.2.8-hotfixrelease branch. The broader 4.2-dev [4.2-dev] fix SDK contracts and exact ENUM member replay #32723 alone does not modify that branch. No automatic retry, TLS downgrade, certificate relaxation, skipped assertion or accepted connection error turns a failure green.(1, 7). fix(release): include jieba dictionaries in Linux archives CI#478 repairs both Linux archive jobs, with six actual ZIP-layout and ten missing-file rejection subcases plus actionlint passing. This separate plaintext packaging probe does not qualify the old binary's TLS.-hotfixwas not parsed. The shared parser is repaired; those original assertions now pass in the complete 1298-case rerun.A green SDK compatibility suite does not certify every native feature. Release limits remain explicit: special FULLTEXT identifiers/ASYNC gojieba, quoted Stage catalog values, disabled Stage creation, empty branch deletion, some ENUM/SET serialization/view provenance, VECF4/VECF8 and Parquet FLOAT32 infinity. Equivalent Arrow-input upload and other documented alternatives keep their value, transaction and cleanup assertions; no silent ASYNC downgrade, identifier substitution, type widening or DROP replacement occurs.
Native companion #32723 expands the broader 4.2-dev capabilities and retains its separate native/upgrade validation. Its latest observed native CI UT job failed before the first-replay fault was reached (
TestCNFirstReplayDisconnect); that broader job is not certified by this SDK proof. The two BVT groups and coverage at that run passed. Upgrades remain shutdown-only; already-lost view provenance cannot be inferred.Maintained release map, exact identities and validation boundaries.
Local qualification is distinct from remote CI on this new head. Online CI requires its configured disposable-server workflow; skipped/pending jobs provide no online proof. No release is merged, published or deployed by this change; immutable published assets remain unchanged.