Skip to content

Conversation

@0xPoe
Copy link
Member

@0xPoe 0xPoe commented May 27, 2025

What problem does this PR solve?

ref pingcap/tidb#61273

Problem Summary:

What is changed and how it works?

Proposal: pingcap/tidb#61330

What's Changed:

Added a new BroadcastQuery type to help TiDB stats and plan cache modules distribute SQL commands across different TiDB nodes in the cluster.

How it Works:

Related changes

None

@CLAassistant
Copy link

CLAassistant commented May 27, 2025

CLA assistant check
All committers have signed the CLA.

@0xPoe 0xPoe marked this pull request as draft May 27, 2025 13:19
@0xPoe 0xPoe force-pushed the poe-patch-executor branch 2 times, most recently from 698aafb to ad14d85 Compare May 28, 2025 08:21
@0xPoe 0xPoe marked this pull request as ready for review May 29, 2025 06:56
@0xPoe 0xPoe requested a review from Copilot May 29, 2025 06:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new broadcast query type to the executor proto and updates the ExecType enum to support distributing SQL commands across TiDB nodes.

  • Added a new ExecType enum value "TypeBroadcastQuery".
  • Updated the Executor message to include an optional BroadcastQuery field.
  • Added a new BroadcastQuery message with a query string field.

Copy link
Member Author

@0xPoe 0xPoe left a comment

Choose a reason for hiding this comment

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

🔢 Self-check (PR reviewed by myself and ready for feedback)

/cc @time-and-fate

time-and-fate
time-and-fate previously approved these changes May 29, 2025
0xPoe added 3 commits May 29, 2025 14:07
Signed-off-by: 0xPoe <techregister@pm.me>
…ptorProto size

- Updated the descriptor index for BroadcastQuery from 35 to 34.
- Replaced the gzipped FileDescriptorProto with a new version, increasing its size from 5470 bytes to 5513 bytes.

Signed-off-by: 0xPoe <techregister@pm.me>
…unction

- Increased the gzipped FileDescriptorProto size from 5452 bytes to 5497 bytes.
- Removed unnecessary conflict markers and cleaned up the init function.

Signed-off-by: 0xPoe <techregister@pm.me>
@0xPoe 0xPoe merged commit bb8180a into pingcap:master May 29, 2025
3 of 4 checks passed
@0xPoe 0xPoe deleted the poe-patch-executor branch May 29, 2025 12:32
zimulala added a commit to zimulala/tidb that referenced this pull request Jun 4, 2025
zimulala added a commit to zimulala/tidb that referenced this pull request Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants