Skip to content

fix: restore text cast length compatibility - #25165

Merged
3 commits merged into
matrixorigin:v3.0.14-hotfix-20260626from
ck89119:revert-text-cast
Jun 26, 2026
Merged

3 commits merged into
matrixorigin:v3.0.14-hotfix-20260626from
ck89119:revert-text-cast

Conversation

@ck89119

@ck89119 ck89119 commented Jun 26, 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:

issue #23176

What this PR does / why we need it:

This PR restores the TEXT-to-CHAR/VARCHAR compatibility behavior on the v3.0.14-hotfix-20260626 branch.

It brings back the guarded TEXT cast path so prepared UPDATE statements involving TEXT expressions do not fail on the intermediate CHAR/VARCHAR width check introduced by the later cast compatibility changes.

It also adds a BVT regression case for PREPARE + EXECUTE ... USING:

  • test/distributed/cases/dml/update/update_text_prepare_cast.sql
  • test/distributed/cases/dml/update/update_text_prepare_cast.result

Validation:

  • go test ./pkg/sql/plan/function -run 'Test_strToStr_TextToCharVarchar|Test_strToStr_TextLengthCheck' -count=1
  • git diff --check
  • git diff --cached --check

Note: local BVT execution was not run because no mo-tester command or local mo-service on port 6001 was available in this worktree.

@mergify
mergify Bot requested a review from XuPeng-SH June 26, 2026 03:25
@mergify mergify Bot added kind/bug Something isn't working kind/test-ci labels Jun 26, 2026
@ck89119
ck89119 marked this pull request as ready for review June 26, 2026 03:35
@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 →

@ck89119
ck89119 requested a review from a user June 26, 2026 03:39
@ghost
ghost merged commit 405ef9a into matrixorigin:v3.0.14-hotfix-20260626 Jun 26, 2026
3 checks passed
@ck89119
ck89119 deleted the revert-text-cast branch June 26, 2026 06:37
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/test-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant