Repository navigation
Conversation
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#26960 ## What this PR does / why we need it: Remote table-scan pipelines serialized the plan node, but the receiving CN never restored Node.BlockFilterList into its execution Source. Remote range expansion therefore received no block predicates and scanned the full committed persisted partition. This change: - carries raw block-filter expressions in a per-message node copy without mutating the reusable coordinator scope; - folds session variables before serialization, then creates and evaluates receiver-owned Fold executors on the remote CN; - restores block filters for old-sender/new-receiver rolling upgrades; - keeps decoded scopes as raw reusable templates and preserves empty scalar literals across protobuf serialization. Validation: - GOWORK=off go build -mod=readonly ./pkg/sql/compile - GOWORK=off go vet -mod=readonly ./pkg/sql/compile - GOWORK=off go test -mod=readonly -count=1 -timeout=10m ./pkg/sql/compile - focused remote block-filter regression tests with -race -count=100 - GOWORK=off go test -mod=readonly -race -count=1 -timeout=15m ./pkg/sql/compile Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 77a4ef3)
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #26960
What this PR does / why we need it:
Backport of #27043 to 4.2-dev.
Remote table-scan pipelines serialized the plan node, but the receiving CN never restored Node.BlockFilterList into its execution Source. Remote range expansion therefore received no block predicates and scanned the full committed persisted partition.
This change:
Validation: