Repository navigation
fix(python): restore SDK SQL and execution contracts - #31953
Conversation
|
Peng Xu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
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? |
|
mo-bot review · Commit: Review belongs to an older commit; it is not a review of the current head. |
|
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: 08444cefce30990030cf9eb51b3db9405ca8bee5
Assessment: approve
Reviewed all 31 changed files, affected owners and consumers, linked issues, and complete discussion. SDK contract corrections and native fulltext fixes preserve existing ownership and lifecycle guarantees. No actionable defects remain.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
Validation:
-
Isolation preflight passed; native prerequisites verified against 193 current inputs and seven artifact hashes.
-
Three Go owning packages passed with vet=all: 205 root tests, 348 tests/subtests, zero failures or skips.
-
315 focused Python SDK tests passed with zero skips.
-
11 maintained SDK online cases passed against an isolated server built from the assessed head, covering restore, lineage DDL, mapped joins, fulltext maintenance and asynchronous parser catch-up.
-
Final audit verified unchanged source, exact patch correspondence, all four discussion keys, and matching receipts/logs. Records are retained in attempt-1/validation-summary.json, discussion-assessment.json and final-audit-receipts.json.
Limitations:
-
Broader account/cluster restore and released-server checks remain author-reported; no local multi-CN soak or exact BVT harness run was performed.
-
Frozen CI contains pending Go/build/static-analysis checks and skipped SDK online execution; these were not counted as passes.
-
The CLA administrative notice remains outside this technical assessment.
What type of PR is this?
Related issues
What this PR does / why we need it
Public SDK entry points generated obsolete or ambiguous SQL, misreported settings, or failed to preserve the intended execution owner. The changes consolidate restore and loader validation, preserve selectable identity and SQL literals, and extend the established autocommit and pool cleanup path. Full-text SQL generation and CDC maintenance use the existing identifier and literal quoting helpers. Regression cases cover rejection before dispatch, cancellation/cleanup paths, real database outcomes, and async index catch-up.
Validation
Author checks on the reviewed implementation (004739d):
mo-cgo-test -vet=all; incremental golangci-lint reported zero issues. The 4.2.5 full-text target checks passed, with its native prerequisite outcome checked rather than treated as fixed.Independent Sol review of 004739d found no material remaining findings after fixes. Its separately built source passed 2,866 offline tests plus 95 subtests, 29 current-source native cases, 3 release-target checks, the three affected Go packages, incremental lint and wheel/source identity verification. This is an independent technical review, not a GitHub approval.
Refresh onto main 1565fb7 introduces only the upstream system-variable change; all reviewed files are byte-identical to 004739d. The refreshed combination was rebuilt and checked with native system-variable wire metadata and sync/async IVF, autocommit and pool reuse smoke tests. Refreshed checks on f8bb5b8:
python scripts/run_contracts.py --server current-source --output /tmp/sdk-refresh-native: 187 passed, zero skipped on an isolated source-built server at f8bb5b8.python -m pytest tests/offline/test_non_transactional_sql.py tests/offline/contracts/test_mapped_query_identity.py tests/offline/test_fulltext_search_comprehensive.py -q: 258 passed, zero skipped (SQLAlchemy 2.0.43)..agents/skills/mo-dev/scripts/mo-cgo-test -vet=all -count=1 -timeout=120s ./pkg/frontend ./pkg/sql/plan -run 'TestResolveVariableTypeDeclaresIntegerSystemVariables|TestIntegerSystemVariablePreparedWireMetadata|TestNonIntegerSystemVariablePreparedWireMetadataUnchanged|TestBindUserVariableCapturesEffectiveStringDomain|TestBindUserVariableStringDomainErrorsAndNonStringControls': both packages passed.Limitations
Tests use isolated disposable single-node fixtures; they are not multi-CN, soak or production validation. Account and cluster restore tests require exclusive server ownership. No issues are automatically closed by this PR.