Skip to content

fix(mo-tool): preserve text and blob subtypes in checkpoint DDL - #30374

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
Ariznawlll:codex/fix-checkpoint-text-family
Oct 16, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
Ariznawlll:codex/fix-checkpoint-text-family

Conversation

@Ariznawlll

@Ariznawlll Ariznawlll commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

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

Which issue(s) this PR fixes:

Fixes #30376.

What this PR does / why we need it:

Checkpoint dump reconstructs MEDIUMTEXT as TEXT because its SQL type renderer falls back to DescString, which ignores the TEXT/BLOB family width. This causes the PITR checkpoint dump/restore schema check to fail for big_data_test.fulltext_test in run 38787656121.

Use FormatSQLColumnType for TEXT and BLOB so exported DDL preserves the declared subtype. Add encoded catalog type regression coverage for all TEXT/BLOB variants, including legacy zero-width BLOB. Temporal formatting is unchanged.

Validation: gofmt and git diff --check passed. The targeted checkpointtool Go tests were attempted but compilation is blocked locally by missing native headers (xxhash.h, roaring.h, usearch.h); runtime tests remain for CI.

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

Copy link
Copy Markdown
Contributor

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

Commit: b69a57982a91e082cadbfd2cdded9c1ea30b1bc5

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

Assessment: approve

Reviewed the complete two-file delta and affected callers; no actionable findings remain. Reusing the established SQL type formatter restores TEXT/BLOB subtype preservation without duplicating width rules or changing temporal handling. The change adds only bounded schema-formatting work, with no new I/O, synchronization or retained state.

Model: gpt-6-astra / xhigh

Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1

Validation:

  • Traced catalog type encoding through checkpoint schema decoding, DDL rendering and CSV consumers. Subtype names remain intact, CSV quoting remains compatible, and legacy zero-width BLOB follows the existing LONGBLOB convention.

  • Reviewed the nine encoded-catalog regression cases and existing formatter boundary, catalog DDL and temporal tests.

  • Reused successful exact-head CI outcomes recorded in evidence.json: shared build, Ubuntu unit tests, arm64 static analysis, coverage and BVT. Repository UT discovery includes checkpointtool.

  • git diff --check passed. Reconciled checks/1792138377081623459-2.json with the expected command, clean source fingerprint, exit code 0 and review-diff-check.log under the assigned attempt directory. Review audit retained in review-audit.json.

Limitations:

  • Supplied CI evidence contains outcomes, not raw logs or per-test reports; local_validation is empty. No local Go tests or full PITR incident replay were performed.

  • Performance assessment is based on the bounded code path; no benchmark measurements are claimed.

@mergify

mergify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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

@mergify mergify Bot added kind/bug Something isn't working queued labels Oct 16, 2026
@mergify

mergify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-16 09:13 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-10-16 09:34 UTC · at 9e0ba3ad0947c8f0956269812850ad3306eb8d48

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

Reason

Pull request #30374 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 was previously deployed

1 inactive deployment
ci — 9e0ba3ad Deployed Oct 16, 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/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: checkpoint dump restores MEDIUMTEXT as TEXT and loses TEXT/BLOB subtypes

3 participants