Skip to content

[release-nextgen-202609] codec: align canal-json javaType mapping with tiflow - #6993

Open
ti-chi-bot[bot] wants to merge 3 commits into
pingcap:release-nextgen-202609from
ti-chi-bot:cherry-pick-6977-to-release-nextgen-202609
Open

ti-chi-bot[bot] wants to merge 3 commits into
pingcap:release-nextgen-202609from
ti-chi-bot:cherry-pick-6977-to-release-nextgen-202609

Conversation

@ti-chi-bot

@ti-chi-bot ti-chi-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #6977

What problem does this PR solve?

Issue Number: close #6947

What is changed and how it works?

mysqlType2JavaType now returns JavaSQLTypeNULL for mysql.TypeNull and JavaSQLTypeBINARY for mysql.TypeGeometry, as in tiflow, instead of falling through to JavaSQLTypeVARCHAR.

Check List

Tests

  • Unit test: go test -tags=intest ./pkg/sink/codec/canal passed. No existing case asserts javaType for these types, and no test case was added.

Questions

Will it cause performance regression or break compatibility?

No. Only the javaType of these two types changes.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

None.

Summary by CodeRabbit

  • Bug Fixes
    • NULL database columns are now represented with the corresponding NULL output type, and geometry columns with the binary output type. This improves the accuracy of data type handling when data from these columns is processed. Other database type mappings and the default VARCHAR behavior are unchanged.

@ti-chi-bot ti-chi-bot Bot added the lgtm label Nov 25, 2026
@ti-chi-bot ti-chi-bot Bot added the release-note-none Denotes a PR that doesn't merit a release note. label Nov 25, 2026
@ti-chi-bot ti-chi-bot Bot added do-not-merge/cherry-pick-not-approved size/S Denotes a PR that changes 10-29 lines, ignoring generated files. type/cherry-pick-for-release-nextgen-202609 labels Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 972543f8-6056-47fb-9491-bec8102fc3ac

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ti-chi-bot ti-chi-bot Bot added contribution This PR is from a community contributor. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 25, 2026
@ti-chi-bot ti-chi-bot Bot added the approved label Nov 25, 2026
@ti-chi-bot ti-chi-bot Bot added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Nov 25, 2026
@ti-chi-bot

ti-chi-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3AceShowHand, lidezhu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [3AceShowHand,lidezhu]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Labels

approved cherry-pick-approved Cherry pick PR approved by release team. contribution This PR is from a community contributor. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/cherry-pick-for-release-nextgen-202609

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants