Repository navigation
Rebuild Python UDF with typed revisions and Arrow Flight execution - #29152
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? |
Sync newly provisioned shared roots and their parent entries before accepting publication, retry sync on reopen, and preserve pre-provisioned roots below search-only ancestors. Reconcile routine definer test fixtures with the rebased catalog writes.
Keep same-version routine round-trip, index expression cloning and coordinator ownership checks after main removed mixed-version execution gates.
Keep shared FileService startup independent of parent-directory sync. Recheck the root and ancestor entries before reserving or accepting Python artifacts, and keep publication fail-closed across restarts and sync retries.
Keep upstream cache-locality RPC fields and use the next free tags for the unpublished Python status RPC. Refresh the wire fixtures and record the r46 current-stage contract.
|
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: b23ac8120eb6c71223ef9c3688f86522c3808c4f
Assessment: approve
Approve the explicitly enabled, trusted development-stage implementation. It reuses the existing SQL evaluator, catalog, and FileService; immutable revisions, worker execution, and bounded fencing serve distinct lifecycle and recovery responsibilities. Earlier capability-cancellation and SQL identifier regressions are addressed. Architecture and SQL/Planner decisions remain pending review status; the assigned review procedure does not establish them as a separate gate for this stage.
Model: gpt-6.1-terra / max
Session: 01a220f2-4126-7281-a3bf-dbc612e51e78 · slot 0 · generation 36
Validation:
-
The frozen source, 280-path patch, 195 discussion keys, and 195 native build inputs were reconciled successfully. Records are in final-audit-v4.log and validation-reconciliation.json; audit receipt checks/1795858732648896511-6.json.
-
Isolation preflight passed. The Python worker suite passed 154 tests, and focused gateway tests passed capability-cancellation, artifact-admission, and real-worker Flight cases. Receipts: checks/1795857724884509755-2.json, checks/1795857890044581150-2.json, and checks/1795857946285977060-2.json.
-
Parser and type checks passed, the generated parser matched the grammar, and an embedded prepared-statement test passed in binary and text modes. Receipts: checks/1795857958352917758-2.json, checks/1795858166921976746-2.json, and checks/1795858711801997252-2.json.
-
An embedded SQL server with a real Python worker passed boundary tests for type widths, failed replacement, artifact recovery, and READ COMMITTED no-replay behavior. Receipt: checks/1795858613005398481-2.json.
-
Focused physical backup and fresh-WAL restore tests passed. A single-CN released-schema fixture passed legacy SQL routine repair, replacement, and retained-snapshot restore checks. Receipts: checks/1795858347088087549-2.json and checks/1795858351926658713-2.json.
-
The supplied exact-head CI snapshot reports successful build, unit, coverage, and active multi-CN BVT jobs; raw named-case logs were unavailable.
Limitations:
-
Three permission-sensitive publication subtests skipped in the isolated runtime and are not counted as passes. Earlier same-PR host-user review evidence and current source were considered for the ancestor-permission paths.
-
The upgrade fixture models released catalog schemas; no historical server binary or released backup was run locally. The supplied CI upgrade lanes were skipped. A prior same-PR review reported matching the fixture and launcher inputs to v4.2.9 artifacts.
-
The permanent 1,024-identity artifact budget and temporary group-fence exhaustion are documented development-stage limits. This assessment does not establish production throughput, quota fairness, or sandbox isolation.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #28132. This PR delivers the opt-in external Python UDF adapter for test and development. Production sandboxing and tenant isolation remain outside this stage.
What this PR does / why we need it:
Python type-family checks and launch config
Commit
b23ac8120eb6c71223ef9c3688f86522c3808c4fdeclares the intended Python decimal and temporal subsets checked byTestTypeSwitchFamilies. DECIMAL256 and YEAR remain outside the Python ABI. TIME keeps the Arrow Duration representation, and TIMESTAMP NULLs use an explicit typed branch. The type-check baseline is unchanged. The rebase onto940d135ce8c0af3e0d855fb19f71e87d5ff8904dalso preserves both the upstream Sirius settings and the Python UDF client settings inetc/launch/cn.toml. Both remain disabled by default. Failing Coverage workerNew Darwin/arm64 validation reproduced all eight diagnostics on the prior head and passed
go test -short -tags matrixone_test -count=1 -run '^TestTypeSwitchFamilies$' ./pkg/container/typeswith the fix. The Python UDF Go package in short mode, seven focused catalog and launcher tests, TOML equivalence checks, scoped vet and lint, and the Loom artifact check passed. Earlier SQL parser evidence remains applicable. Hosted CI has yet to validate the new commit.Coverage workflow refresh
Rebased onto official
mainat3cb7a5e4a93dc5bd85e0fb107e558a07df934693to pick up the shared Coverage controller and worker update. The previous run's two Coverage workers succeeded, and both selectors received HTTP 403 while reading worker metadata. The Coverage summary therefore had no complete inputs. Previous run · Shared CI fixThe PR patch content is unchanged at
c73c922a5fc5a78ae0e97c2be5ed26c182df449d. Fresh validation passed fornode --test .github/ci/*.test.cjs(86 tests), actionlint on the active entrypoint and Coverage worker, the full parser suite, two focused backup tests, vet oncmd/mo-serviceandpkg/backup, and Loom's artifact check. The parser and prepared-routine regression sources are unchanged. The earlier real SQL result below is retained. Hosted CI on the rebased head is pending.SQL identifier compatibility
Commit
af7fcda18ee8ed21acd431a38b87a473cf6c53bcrestores barecalled,input,scalar, andvectorin generic function calls, role names, and Iceberg references. Python routine mode and NULL-policy clauses still use these keywords. Review findingNew Darwin/arm64 validation with Go 1.27.1:
go test -count=1 ./pkg/sql/parsers/...passed. All 16 focused cases returned syntax errors on the prior head and passed with the official main parser overlay and with the fix. Repository goyacc regeneration was byte-identical with zero conflicts.go test -tags=matrixone_test -run '^TestPreparedRoutineFieldHistory$' ./pkg/tests/sqlintegrationpassed against a real embedded CN. An unquoted SQL routine namedvectorworked in direct queries and binary PREPARE. The existing text PREPARE control also passed.Replace the demo's per-value protobuf transport with typed, revision-bound Python UDF execution over Arrow Flight. CN evaluates expressions using native MatrixOne vectors and runs user code in external handler processes.
Current design contract (r46) · Design and approval history · Implementation and rollout · Overload validation · Usage and BVT cases
Compatibility and rollout
4.0.7/53and retains MORPC134and the Arrow/Flight ABI. The new Python status RPC uses separate slots from the upstream cache-locality RPC. Worker/Gateway capabilities and environment digests must agree before execution.Validation and open review
e7d568b65b0b, hosted CI Required, ARM64 SCA, and the enabled multi-CN BVT lanes passed. The rebased head also has local parser regeneration, focused FLUSH/PREPARE, Python SQL, and cancellation coverage. Hosted release-upgrade lanes were skipped. CI run41947d4bce9a. Earlier capability-fix CIe7d568b65b0b. The latest review reports that newly reserved words break some previously valid unquoted identifiers in shared SQL parsing. Current review