Skip to content

test(view): pin the S4 introspection contract and reconcile the closed scope with PR #30578 - #30739

Merged
XuPeng-SH merged 7 commits into
matrixorigin:mainfrom
ck89119:issue-30668-main
Oct 23, 2026
Merged

XuPeng-SH merged 7 commits into
matrixorigin:mainfrom
ck89119:issue-30668-main

Conversation

@ck89119

@ck89119 ck89119 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

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):

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 persisted mo_columns branch 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 scan mo_columns, while ordinary tables keep their physical mo_columns read 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):

@matrix-meow matrix-meow added the size/XS Denotes a PR that changes [1, 9] lines label Oct 21, 2026
@mergify mergify Bot added the kind/documentation Improvements or additions to documentation label Oct 21, 2026
@ck89119
ck89119 marked this pull request as ready for review October 22, 2026 08:19
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 26fc1d6473a5c6770305a41911c3f739d3fbe83d

Review completed. Read the assessment.

@XuPeng-SH

XuPeng-SH commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-xupeng · superseded

Commit: 26fc1d6473a5c6770305a41911c3f739d3fbe83d

Review belongs to an older commit; it is not a review of the current head.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify mergify Bot added the queued label Oct 22, 2026
@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-22 09:28 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🚫 Left the queue — 2026-10-22 09:37 UTC · at 26fc1d6473a5c6770305a41911c3f739d3fbe83d

This pull request spent 9 minutes 4 seconds in the queue, with no time running CI.

Reason

Pull request #30739 has been dequeued

Queue conditions are not satisfied:

  • -draft [📌 queue requirement]

Hint

You 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.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Requeued — the merge queue status continues in this comment ↓.

@ck89119
ck89119 marked this pull request as draft October 22, 2026 09:36
@mergify mergify Bot added dequeued and removed queued labels Oct 22, 2026
@ck89119 ck89119 changed the title docs(view): reconcile the closed View metadata S4 scope with merged PR #30578 test(view): pin the S4 introspection contract and reconcile the closed scope with PR #30578 Oct 22, 2026
@mergify mergify Bot added kind/test-ci and removed dequeued labels Oct 22, 2026
@matrix-meow matrix-meow added size/M Denotes a PR that changes [100,499] lines and removed size/XS Denotes a PR that changes [1, 9] lines labels Oct 22, 2026
@XuPeng-SH
XuPeng-SH marked this pull request as ready for review October 22, 2026 22:15
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-23 03:44 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-10-23 04:32 UTC · at 9aa69845bc9b31a6f19e9f5894fb874cae02abdc

This pull request spent 47 minutes 32 seconds in the queue, with no time running CI.

Reason

The pull request can't be updated

This pull request seems to come from a fork, and Mergify needs the author's permission to update its branch.
The author needs to enable "Allow edits from maintainers" on this pull request, or update the branch manually.

Hint

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@XuPeng-SH
XuPeng-SH merged commit ebb2b74 into matrixorigin:main Oct 23, 2026
22 of 23 checks passed
@mergify mergify Bot added dequeued and removed queued labels Oct 23, 2026
@ck89119
ck89119 deleted the issue-30668-main branch October 23, 2026 06:07

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dequeued kind/documentation Improvements or additions to documentation kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QA follow-up]: Reconcile the closed View metadata S4 scope with merged PR #30578

3 participants