Skip to content

*: update tidb and parser - #12674

Merged
ti-chi-bot[bot] merged 3 commits into
pingcap:masterfrom
wk989898:dep-0604
Jun 10, 2026
Merged

ti-chi-bot[bot] merged 3 commits into
pingcap:masterfrom
wk989898:dep-0604

Conversation

@wk989898

@wk989898 wk989898 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

What problem does this PR solve?

Issue Number: close #12672

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

Please refer to [Release Notes Language Style Guide](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/release-notes-style-guide.html) to write a quality release note.

If you don't think this PR needs a release note then fill it with `None`.

Signed-off-by: wk989898 <nhsmwk@gmail.com>
@ti-chi-bot ti-chi-bot Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/needs-triage-completed area/dm Issues or PRs related to DM. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 4, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates import paths in dm/checker/checker.go and dm/loader/lightning.go to reference relocated packages under github.com/pingcap/tidb/lightning/pkg and github.com/pingcap/tidb/pkg/lightning/importdef. Additionally, it upgrades the Go version to 1.25.10 and updates various third-party dependencies in go.mod and go.sum. All review comments were filtered out as they commented on version numbers, so there is no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@wk989898

wk989898 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

/retest

Signed-off-by: wk989898 <nhsmwk@gmail.com>
@ti-chi-bot ti-chi-bot Bot added the area/engine Issues or PRs related to Dataflow Engine. label Jun 4, 2026
Comment thread go.mod
@@ -1,10 +1,10 @@
module github.com/pingcap/tiflow

go 1.25.8

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.

why bump this ?

@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 5, 2026

@OliverS929 OliverS929 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.

pingcap/tidb#67778 changes schemacmp so charset/collation comparison is no longer strict singleton matching: utf8/utf8mb3 -> utf8mb4 and latin1 -> utf8mb4 are treated as compatible upgrades, while unrelated charset/collation families remain incompatible.

My current understanding is that this is explainable for DM optimistic shard DDL, since DM also relies on schemacmp semantics here. The direction looks reasonable to me, but could @D3Hunter and @GMHDBJD help confirm whether this matches the intended DM behavior?

A follow-up could also consider covering the classic DM optimistic shard DDL path with a small charset/collation case, so this behavior is pinned on the DM side as well.

@OliverS929

Copy link
Copy Markdown
Contributor

Since this PR also changes engine-related files, I think @D3Hunter's approval is needed before merging.

@OliverS929

Copy link
Copy Markdown
Contributor

pingcap/tidb#67778 changes schemacmp so charset/collation comparison is no longer strict singleton matching: utf8/utf8mb3 -> utf8mb4 and latin1 -> utf8mb4 are treated as compatible upgrades, while unrelated charset/collation families remain incompatible.

My current understanding is that this is explainable for DM optimistic shard DDL, since DM also relies on schemacmp semantics here. The direction looks reasonable to me, but could @D3Hunter and @GMHDBJD help confirm whether this matches the intended DM behavior?

A follow-up could also consider covering the classic DM optimistic shard DDL path with a small charset/collation case, so this behavior is pinned on the DM side as well.

@alastori PTAL.

@ti-chi-bot

ti-chi-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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

@ti-chi-bot ti-chi-bot Bot added lgtm approved and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jun 9, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

[LGTM Timeline notifier]

Timeline:

  • 2026-06-05 07:17:20.86195138 +0000 UTC m=+512341.932268770: ☑️ agreed by 3AceShowHand.
  • 2026-06-09 03:41:57.120386418 +0000 UTC m=+845018.190703828: ☑️ agreed by GMHDBJD.

@wk989898

wk989898 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

/retest

2 similar comments
@wk989898

wk989898 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

/retest

@OliverS929

Copy link
Copy Markdown
Contributor

/retest

@alastori

alastori commented Jun 9, 2026

Copy link
Copy Markdown

@OliverS929 Thanks for the context. Non-blocking PM note from the customer-impact angle.

The direction makes sense for rolling charset upgrades in sharded DM tasks. A common customer scenario is one shard moving from utf8/utf8mb3 to utf8mb4 before the others; treating that as a compatible widening avoids a false optimistic DDL conflict.

The main caveat I want to make explicit is latin1. I think we should frame latin1 -> utf8mb4 as schema compatibility, not as a data conversion guarantee. For example, a latin1 value like Café may be stored as bytes 43 61 66 E9, while the same value in utf8mb4 is 43 61 66 C3 A9. If DM treats the schema change as compatible, can we confirm how full-load and incremental paths handle existing latin1 bytes after the downstream schema is widened? I want to make sure we are not accidentally changing equality, uniqueness, sorting, or query behavior for users with non-ASCII latin1 data.

For test coverage, I would prioritize the customer-facing boundaries that should remain incompatible:

  • Collation changes that alter comparison semantics. Example: utf8mb4_bin vs utf8mb4_general_ci, where values like A and a may compare differently.
  • Unrelated charset families. Example: utf8mb4 vs gbk should still conflict because this is not a simple widening path.

A lower-priority follow-up is table-default-only changes, for example ALTER TABLE ... DEFAULT CHARACTER SET utf8mb4, because changing the table default does not necessarily convert existing explicit columns.

@OliverS929

Copy link
Copy Markdown
Contributor

/retest

2 similar comments
@OliverS929

Copy link
Copy Markdown
Contributor

/retest

@OliverS929

Copy link
Copy Markdown
Contributor

/retest

@OliverS929

Copy link
Copy Markdown
Contributor

/retest

@wk989898

Copy link
Copy Markdown
Collaborator Author

/retest

@ti-chi-bot
ti-chi-bot Bot merged commit 97d6225 into pingcap:master Jun 10, 2026
35 checks passed
@ti-chi-bot

ti-chi-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@wk989898: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-syncdiff-integration-test d352679 link unknown /test pull-syncdiff-integration-test
pull-dm-integration-test d352679 link unknown /test pull-dm-integration-test

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

GMHDBJD pushed a commit to ti-chi-bot/tiflow that referenced this pull request Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/dm Issues or PRs related to DM. area/engine Issues or PRs related to Dataflow Engine. lgtm release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update tidb depedencies

5 participants