Skip to content

tipb: backport Local MATCH protocol to release-8.5 (#439) - #440

Merged
solotzg merged 2 commits into
pingcap:release-8.5from
solotzg:codex/local-match-tipb-release-8.5
Nov 10, 2026
Merged

solotzg merged 2 commits into
pingcap:release-8.5from
solotzg:codex/local-match-tipb-release-8.5

Conversation

@solotzg

@solotzg solotzg commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Backport the Local MATCH Boolean protocol to release-8.5 so the release branch can carry the same TiDB/TiFlash wire format.

ref #439

What is changed and how does it work?

  • Add LocalMatchAgainstBoolean = 5250, its query/node messages, and analyzer enums to proto/expression.proto.
  • Regenerate the release-8.5 Go protobuf files from the release-8.5 schema.
  • Add the scalar signature and protocol definitions to scripts/proto.lock.

This uses the protocol change already merged into feature/release-8.5-fts by #432 and matches the master protocol PR #439. Keep this PR in draft until #439 merges.

Checks

  • The source protocol/Go generation change is from tipb: add scalar protocol for Local MATCH AGAINST in Boolean mode #432, whose Go, C++, and Rust generation CI passed on feature/release-8.5-fts.
  • git diff --check and JSON parsing of scripts/proto.lock passed.
  • The release-8.5 baseline has existing protolock drift across unrelated protocol fields and does not contain scripts/check.sh. This PR adds only the Local MATCH definitions rather than resetting the baseline lock snapshot.

…ngcap#432)

- Add LocalMatchAgainstBoolean (5250) and a versioned Boolean query payload carried in Expr.val, keeping SQL arguments in Expr.children.

- Define required, optional and prohibited word, phrase and prefix clauses, STANDARD/NGRAM analyzer settings, and built-in stopword configuration with independent stopword collation. 

- The protocol supports row-wise Local MATCH scalar execution without index lookup.
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: ee97f28d-d2ca-4f63-a2a8-41613e01fce2
Commits

Reviewing files that changed from the base of the PR and between 5817d66 and 70edcac.

Files ignored due to path filters: 3

  • go-tipb/analyze.pb.go is excluded by !**/*.pb.go
  • go-tipb/expression.pb.go is excluded by !**/*.pb.go
  • scripts/proto.lock is excluded by !**/*.lock
Files selected for processing: 1

  • proto/expression.proto
  • 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

@solotzg
solotzg marked this pull request as ready for review November 10, 2026 07:28
@solotzg
solotzg merged commit 348fa94 into pingcap:release-8.5 Nov 10, 2026
5 checks passed
@solotzg
solotzg deleted the codex/local-match-tipb-release-8.5 branch November 10, 2026 08:12
@solotzg solotzg changed the title tipb: backport Local MATCH protocol to release-8.5 tipb: backport Local MATCH protocol to release-8.5 (#439) Nov 10, 2026
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