Repository navigation
test(view): pin the S4 introspection contract and reconcile the closed scope with PR #30578 - #30739
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
|
mo-bot review · Commit: Review belongs to an older commit; it is not a review of the current head. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 26fc1d6473a5c6770305a41911c3f739d3fbe83d
Assessment: approve
Reviewed the complete documentation delta and referenced owners/callers. The reconciliation matches the approved separation between logical View metadata and physical catalog semantics, preserves opt-in and rollout boundaries, and accounts for the relevant consumers. No actionable defects found. No executable behavior or runtime performance changes are introduced.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Verified the frozen HEAD, unchanged checkout and single-file documentation delta.
-
Cross-checked consumer classifications, historical-template adaptation, authorization/error boundaries, physical readers and the absence of production callers for BuildTableDefByMoColumns.
-
git diff --check passed: receipt 1792661127028790681-4.json, retained diff-check.log.
-
Document audit passed: eight sections, five tables, 38 relative links and a nonempty source-search inventory. Receipt 1792661127201970864-30.json matches doc-audit.log.
-
Evidence, source fingerprints and receipt reconciliation are retained under /home/xupeng/.local/state/mo-bot/jobs/3a505220ee2f9bce70162824/attempt-1 in doc-audit.json and review-notes.json. Go, BVT, race and benchmark runs were unnecessary for this documentation-only change.
Limitations:
-
Historical issue closures and dated owner clarifications were assessed from frozen records; live GitHub history was not fetched.
-
This approval covers the reconciliation document, not independent runtime certification of S3/S4 or passage of S5–S9 gates.
Merge Queue Status
This pull request spent 9 minutes 4 seconds in the queue, with no time running CI. ReasonPull request #30739 has been dequeued Queue conditions are not satisfied:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Requeued — the merge queue status continues in this comment ↓. |
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? |
Merge Queue Status
This pull request spent 47 minutes 32 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #30668
What this PR does / why we need it:
#30668 asks whether merged PR #30578 was intended to close only the S2 opt-in work or all of S4 (#29439), and requires the remaining adapter/consumer contract and tests to stay tracked before S5 (#29440) is treated as unblocked. This PR answers with a reconciliation record plus executable contract tests (no production code changes).
Reconciliation record (
docs/design/CLAUDE_2026-10-20-view-metadata-s4-reconciliation.md):mo_catalog.mo_columnsquery call site and every S4-scope View column/definition consumer, classified as derived, physical-compatible, regression-control, or S5-owned. The audit finds no remaining required consumer that still observes stale persisted View columns. Physical-compatible readers include SHOW SEQUENCES/SHOW INDEX (C17), CDC primary-key probes (relkind='r'only), the auto-increment RESET ownership check, vector-index metadata shape probes, snapshot sequence restores, upgrade version checks, engine replication/record layers, and offline checkpoint tools.mo_columnskeeps physical snapshot semantics; internal consumers requiring current columns use the logical entry points; description reads never persist derived results. The D03 replacement of [Bug]: View metadata stays stale after source column type changes #26227's persistence acceptance is recorded as closed (owner clarification 2026-09-30; issue closed 2026-10-10).BuildTableDefByMoColumnsdisposition is recorded in the S3 consumer document. The only remaining dependency item for S5 [Subtask]: Validate on-demand View metadata across DDL, security, restore, and version boundaries #29440 is its own scope.Contract tests (pin the reconciliation so S5 cannot regress it silently):
TestDerivedColumnsTemplateSeparatesPersistedAndDerivedAuthority(pkg/util/sysview): the I_S COLUMNS templates (current/V100/V109/V41-derived) keep user Views out of the persistedmo_columnsbranch and re-add them only through on-demand description; subscription candidates are authorized and filtered left of the APPLY; historical single-branch templates gain no subscription rows.TestShowColumnsSplitsPhysicalAndLogicalAuthority(pkg/sql/plan): under one opt-in metadata request, DESC/SHOW [FULL] COLUMNS/SHOW COLUMN_NUMBER plans for a user View never scanmo_columns, while ordinary tables keep their physicalmo_columnsread without any active request.TestViewColumnsSkipsNullCandidatesYieldsEmptyResult,TestViewColumnsStartRejectsCancelledContext(pkg/sql/colexec/table_function): filtered candidates yield empty scans instead of errors; cancellation at scan start aborts description with the context error.Audit baseline:
c0e826888b(mo/main, 2026-10-21); revision log in the document records the two earlier review completions.Validation (darwin/arm64, repository CGo wrapper, worktree-built native libraries):
pkg/sql/plan,pkg/sql/colexec/table_function, andpkg/util/sysview.-raceruns passed for the new plan/table_function contract tests plus the existing concurrent ViewMetadata request tests.go vet, andgit diff --checkpassed.