Skip to content

test(sql): cover scalar DESCRIBE view reflection - #30122

Merged
XuPeng-SH merged 4 commits into
matrixorigin:mainfrom
VioletQwQ-0:codex/issue-30045-describe-bvt
Oct 14, 2026
Merged

XuPeng-SH merged 4 commits into
matrixorigin:mainfrom
VioletQwQ-0:codex/issue-30045-describe-bvt

Conversation

@VioletQwQ-0

@VioletQwQ-0 VioletQwQ-0 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Test and CI

Which issue(s) this PR fixes:

Related to #30045. This regression-only PR does not automatically close the original deployment issue.

What this PR does / why we need it:

The original three-column view (INT, VARCHAR(8), DECIMAL(24,6)) exposed stock SQLAlchemy reflection failures when DESCRIBE returned uppercase, width-bearing type strings. The production fix is already merged in #29893, merge f42af4dfcba210fd91b6f1fc5d7b5a72704502ee. This PR records the scalar reproduction independently of BOOL aliases.

The canonical BVT checks table/view DESCRIBE, view SHOW COLUMNS and ordered information_schema type/nullability values (int, varchar(8), decimal(24,6)). The stock MySQL/PyMySQL Inspector test checks table/view names, types, width, precision/scale, nullability/defaults and absence of NullType or SAWarning, with committed setup and finally cleanup. The shared fixture uses sa.engine.URL.create and future=True so its existing commit/rollback calls work across SQLAlchemy 1.4 and 2.x. Existing BOOL, ENUM/SET, prepared metadata, restore and teardown cases remain intact. No production behavior changes.

Integration and execution identity:

  • Normal main merge preserves the original PR history. Tested base: 5d971d07a7c5a52a71f2c10390b109cebf5c0825; current test head: e412b88e94940c352334d2d034a4fb22ee106ebc.
  • Both actual merged prerequisites are ancestors: fix(sql): unify replayable MySQL column type metadata #29893 above, then #30111, merge f14a1fa9ee813529b7bde89ecc74dddca420dc00, which repairs the former EXPLAIN/protobuf build break. Closed/unmerged fix(explain): port EXPLAIN FORMAT=JSON to IndexSearchScan (#30108) #30110 is not a prerequisite.
  • Formal make build-with-prebuilt-native PASS with Go 1.27.1, CGo enabled and verified owned CPU native provenance. Service producer is ef7f81acaeb3353e9ee3e62530dd6d3c8f8e83c3, binary SHA256 d11d383dcfeba4d188eea5a57888ded868dab634818bbd50ee4b886620a06b69; its successor changes only the Python fixture. No rebuilt-successor claim.
  • Latest observed main 838bf5d1f8a34e09dc984b5e7d118bcbf2900ab9 is newer than the tested base. Its row-rule metadata visibility hook requires active rewrite rules, absent from these fresh-root fixtures. The prepared-policy change also touches ordinary PREPARE creation and therefore intersects the canonical fixture; latest-main runtime remains NOT_RUN and is not inferred from this exact tested-base evidence. No newer main merge is included.

Current validation:

  • Canonical mo-tester: 64/64 statements twice, exact result serialization and type cell comparison; standard nometa ignores JDBC field metadata. Database and snapshot teardown verified after both runs.
  • Stock SQLAlchemy 2.1.4 and 1.4.54, PyMySQL 1.2.3: the complete online reflection file passes 5/5 in each family, zero failures/errors/skips; actual imports bind to the current SDK/worktree. The legacy-1.4 missing commit/rollback API was detected before the fixture fix.
  • Native Superset 6.1.0, SQLAlchemy 1.4.54: actual CreateDatasetCommand registration, persistence, reload and fetch_metadata PASS for the scalar view; INTEGER / VARCHAR(8) / DECIMAL(24,6), unchanged refresh and zero SAWarning including refresh. Its own SQLite app metadata and MO objects were cleaned. This is native production application API execution, not the official Linux deployment.
  • Both owned service groups and all Java/pytest/Superset child groups are stopped; native loader/ISCP and terminal catalog/cleanup checks passed.
  • SQL/Python default diff whitespace check PASS. The result file preserves three required last empty-cell separators; other whitespace checks and actual canonical comparison PASS.
  • Original build FAIL and the first wrapper's missing consumer database FAIL are retained. The latter followed successful canonical cleanup and is addressed by explicit consumer database admission; it is not a product semantic failure. Older 21f19 results remain supplemental and are not relabeled current-head evidence.

QA required: yes. Deployed BI compatibility should be checked in the original Superset Linux image and original ten domain views; neither is claimed by local native application validation. Those deployment/issue-closure checks remain separate from this regression PR's current-source review and local correctness evidence. Independent review is complete for this regression scope; no merge or issue closure is requested.

@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 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Commit: e412b88e94940c352334d2d034a4fb22ee106ebc

Review completed. Read the assessment.

@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: e412b88e94940c352334d2d034a4fb22ee106ebc

Assessment: approve

Reviewed the complete three-file delta. The regression coverage fits the existing metadata owners, exercises stock MySQL reflection, and preserves prior tests and cleanup. The SQLAlchemy fixture change correctly supports 1.4 and 2.x. No actionable defects found. Production SQL paths incur no additional cost.

Model: gpt-6-astra / xhigh

Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0

Validation:

  • Verified the clean frozen head, merged prerequisites, regression-only scope, and unchanged existing BVT cases and results.

  • Host probes passed with SQLAlchemy 1.4.54 and 2.1.4 plus PyMySQL 1.2.3: fixture transaction APIs, table/view reflection, expected scalar metadata, and rejection of the old uppercase format.

  • Probe commands, successful exit receipts, source fingerprints and logs were reconciled. Evidence index: /home/xupeng/.local/state/mo-bot/jobs/d616ff79ae70521c5d672084/attempt-1/review-evidence.json.

  • Frozen CI evidence records successful BVT and offline SDK checks. Reviewed setup visibility, object isolation, cleanup, warning assertions and preservation of existing BOOL and ENUM/SET coverage.

Limitations:

  • Local probes used synthetic SQL responses, not a running MatrixOne service. Python online CI was skipped; the author's reported live-service runs had no retained receipts in local_validation and were not independently reproduced.

  • Original Superset Linux deployment and domain-view verification remain separate issue-closure QA. Approval covers this frozen regression-only change.

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

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-14 07:57 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-10-14 08:08 UTC · at 2a7dc4e35a68c2018cd3dc53776dce35405793b2

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

Reason

Pull request #30122 has been dequeued

Pull request from fork cannot be queued. This pull request comes 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.

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.

Waiting for any of
  • check-neutral = CI Required
  • check-skipped = CI Required
  • check-success = CI Required
All conditions

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

  • Requeue this pull request

This branch had an error being deployed

1 failed deployment
ci — 2a7dc4e3 Deployed Oct 14, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dequeued kind/test-ci size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants