Skip to content

fix(readutil): preserve nested PK OR branches - #27521

Merged
mergify[bot] merged 2 commits into
matrixorigin:mainfrom
gouhongshen:fix/readutil-nested-pk-or-main
Aug 24, 2026
Merged

mergify[bot] merged 2 commits into
matrixorigin:mainfrom
gouhongshen:fix/readutil-nested-pk-or-main

Conversation

@gouhongshen

@gouhongshen gouhongshen commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #27503

What this PR does / why we need it:

This ports the root fix from #27502 to main. main contains the composite-PK block-pruning path introduced by #25596, but it does not contain either nested-disjunction guard from the 4.2 fix.

A BasePKFilter with Disjuncts is a container, not an atomic predicate. Its zero-value Op is function.EQUAL; allowing it into the atomic merge switch can compare empty bounds and drop an OR branch, producing a false-negative pruning filter.

The change rejects container merges before either AND or OR enters the atomic path. OR then flattens all disjuncts, while AND retains one safe atomic conjunct and leaves full predicate evaluation to the residual filter. The AND fallback now also preserves the selected atomic filter's OID.

Regression coverage adds nested OR and both AND operand orders to the readutil unit test, plus the prepared SQL BVT pk_filter_nested_boolean. The BVT result was generated against main; its three metadata-width entries differ from 4.2 while all SQL values remain identical.

Rebased onto upstream/main at 6a8e7ecc530539948663a35a52259224ee1d128a.

Validation on that base plus this branch:

  • make build
  • go test ./pkg/vm/engine/readutil -count=1
  • go test -race ./pkg/vm/engine/readutil -run '^TestConstructBasePKFilterWithOr$' -count=10
  • go vet ./pkg/vm/engine/readutil
  • mo-tester BVT pk_filter_nested_boolean: 29/29 statements, 100%

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

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

Deep-reviewed exact head 1882501, including the source issue and the complete 4.2 fix/review history. The container guard now runs before both atomic connector paths: OR falls back to the complete flattened disjunction, while AND retains only a necessary conjunct and preserves the selected atomic filter OID, so residual evaluation remains authoritative without false-negative pruning. Current-main merge simulation is clean. Exact-head list/build/vet/full readutil tests passed, focused race passed 20 iterations, and a temporary small-domain enumeration of atomic/container AND/OR combinations passed 20 iterations without dropping any true row; the temporary test was removed. No blocking issues found.

@XuPeng-SH XuPeng-SH 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.

Deep review completed on exact head 188250109c313f4cd4853822545acca1007c6c2c. No blocking issue found.

The fix restores the necessary pruning invariant: a BasePKFilter carrying Disjuncts is treated as a container before either atomic merge switch. OR therefore falls back to the complete flattened leaf set instead of interpreting the container zero-value Op as EQUAL; AND conservatively retains one necessary conjunct and leaves the full expression to residual evaluation. Both operand orders are safe, two disjunctions retain a necessary disjunction, and the selected fallback keeps its own OID/resource ownership. Unsupported/non-PK OR remains fail-open. The change does not distribute AND over OR, so expression/memory growth remains linear rather than exponential.

Fresh validation passed: full readutil tests; the focused nested-boolean regression under race for 10 repetitions; build; vet; and diff checks. I also rechecked NULL/unsupported branches, IN-vector ownership, composite-PK OID override, and sorted/unsorted block-search consumers. No correctness, leak, or material performance regression remains.

@mergify mergify Bot added the queued label Aug 24, 2026
@mergify

mergify Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-24 08:02 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🚫 Left the queue — 2026-08-24 08:02 UTC · at 188250109c313f4cd4853822545acca1007c6c2c

This pull request spent 12 seconds in the queue, with no time running CI.

Reason

The pull request can't be updated

For security reasons, Mergify can't update this pull request. Try updating locally.
GitHub response: refusing to allow a GitHub App to create or update workflow .github/workflows/esql-tvf.yml without workflows permission

Hint

You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Requeued — the merge queue status continues in this comment ↓.

@mergify mergify Bot added dequeued and removed queued labels Aug 24, 2026
@gouhongshen
gouhongshen force-pushed the fix/readutil-nested-pk-or-main branch from 1882501 to 3e3fb96 Compare August 24, 2026 11:06
@mergify

mergify Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-24 11:59 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged — 2026-08-24 12:00 UTC · at 3e3fb967db8b33e7351f7803e666c9e11fc1e8b7 · squash

This pull request spent 35 seconds in the queue, including 5 seconds running CI.

Required conditions to merge
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • github-review-approved [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone CI / UT Test on Ubuntu/x86
    • check-neutral = Matrixone CI / UT Test on Ubuntu/x86
    • check-skipped = Matrixone CI / UT Test on Ubuntu/x86
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone CI / SCA Test on Linux/arm64
    • check-neutral = Matrixone CI / SCA Test on Linux/arm64
    • check-skipped = Matrixone CI / SCA Test on Linux/arm64
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(PROXY)
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Utils CI / Coverage
    • check-neutral = Matrixone Utils CI / Coverage
    • check-skipped = Matrixone Utils CI / Coverage
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-neutral = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
    • check-skipped = Matrixone UT Coverage / UT Coverage on Ubuntu/x86
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
    • check-neutral = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)
    • check-skipped = Matrixone Standlone CI / multi CN e2e BVT Test on Linux/x64(COMPOSE, PESSIMISTIC)

@mergify
mergify Bot merged commit d8e1cc1 into matrixorigin:main Aug 24, 2026
25 of 26 checks passed
@mergify mergify Bot removed the queued label Aug 24, 2026
LeftHandCold added a commit that referenced this pull request Aug 26, 2026
## Summary
- replace the duplicated information_schema fixture called out in review
#5013529566
- exercise a genuinely distinct reachable axis on a normal VARCHAR
primary key
- cover server PREPARE reuse with `a <= ? AND (a IN (?,?,?) OR a > ?)`
across two bindings

## Why this is distinct
- the case reaches the nested disjunction/container merge through a
prepared `IN` plus a range arm
- it does not depend on the information_schema cast path from #26627
- it is different from the existing equality/range operand-order cases
in #27521

## Validation
- `go test ./pkg/vm/engine/readutil -run
^TestConstructBasePKFilterWithOr$ -count=1`
- `go test ./pkg/sql/plan -run TestDoMergeFiltersOnCompositeKey
-count=1`
- `go test ./pkg/sql/plan -run TestInRHSValues -count=1`
- SQL/result statement and expected-row alignment checked
- `git diff --check` passed

The shared local MatrixOne listener was not used because mo-tester
performs destructive global cleanup; the updated fixture is ready for
the repository BVT/CI environment.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
XuPeng-SH pushed a commit that referenced this pull request Sep 3, 2026
## What type of PR is this?

- [x] BUG
- [x] Test and CI

## Which issue(s) this PR fixes:

issue #27912

## What this PR does / why we need it:

Adds canonical regression coverage for the `information_schema.COLUMNS`
query shape reported in #27912. The test compares three SQL
`PREPARE`/`EXECUTE` paths over the same six-column table:

- a fully literal predicate;
- bound `TABLE_SCHEMA` and `TABLE_NAME` without `COLUMN_NAME IN`;
- bound schema/table predicates combined with the six-value literal
`COLUMN_NAME IN` clause that returned only 2 of 6 rows on v4.2.0.

All paths assert the complete six-row result in deterministic ordinal
order. This is test-only coverage for behavior already fixed by #27502
on release-4.2 and #27521 on main; it does not change production code or
SQL semantics.

- QA required: yes. Keep #27912 open for formal release/current-version
verification after this regression is merged.
- BVT: added to
`test/distributed/cases/optimizer/pk_filter_nested_boolean.sql`.
- Historical behavior: v4.2.0 returned 2/6 rows for the mixed
bind/literal path.
- CI repair: normalized six continuation-line indentations in the
generated `.result` command record after exact-head BVT rejected the
indented record before executing the new case.
- Exact base: `ffc8d9f0625c76e87ba967984ce19db2d082b0ba`.
- Exact PR head: `fb45e2d063bdb67b5403a8932b53158d7ee56963`.
- Local exact-main SQL validation: PASS, 6/6 rows for literal,
bind-only, and mixed paths through the MySQL wire protocol.
- Local exact-format validation: PASS; the paired multiline command
blocks match after whitespace normalization, and only the six
result-file indentation characters changed.
- Full mo-tester BVT: pending on the new PR head.
- `git diff --check`: PASS.
- Semantic preflight: PASS for exact head and diff.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
This ports the root fix from matrixorigin#27502 to `main`. `main` contains the composite-PK block-pruning path introduced by matrixorigin#25596, but it does not contain either nested-disjunction guard from the 4.2 fix.

A `BasePKFilter` with `Disjuncts` is a container, not an atomic predicate. Its zero-value `Op` is `function.EQUAL`; allowing it into the atomic merge switch can compare empty bounds and drop an OR branch, producing a false-negative pruning filter.

The change rejects container merges before either AND or OR enters the atomic path. OR then flattens all disjuncts, while AND retains one safe atomic conjunct and leaves full predicate evaluation to the residual filter. The AND fallback now also preserves the selected atomic filter's OID.

Regression coverage adds nested OR and both AND operand orders to the `readutil` unit test, plus the prepared SQL BVT `pk_filter_nested_boolean`. The BVT result was generated against `main`; its three metadata-width entries differ from 4.2 while all SQL values remain identical.

Rebased onto `upstream/main` at `6a8e7ecc530539948663a35a52259224ee1d128a`.

Validation on that base plus this branch:

- `make build`
- `go test ./pkg/vm/engine/readutil -count=1`
- `go test -race ./pkg/vm/engine/readutil -run '^TestConstructBasePKFilterWithOr$' -count=10`
- `go vet ./pkg/vm/engine/readutil`
- `mo-tester` BVT `pk_filter_nested_boolean`: 29/29 statements, 100%

Approved by: @aptend, @XuPeng-SH
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## Summary
- replace the duplicated information_schema fixture called out in review
#5013529566
- exercise a genuinely distinct reachable axis on a normal VARCHAR
primary key
- cover server PREPARE reuse with `a <= ? AND (a IN (?,?,?) OR a > ?)`
across two bindings

## Why this is distinct
- the case reaches the nested disjunction/container merge through a
prepared `IN` plus a range arm
- it does not depend on the information_schema cast path from matrixorigin#26627
- it is different from the existing equality/range operand-order cases
in matrixorigin#27521

## Validation
- `go test ./pkg/vm/engine/readutil -run
^TestConstructBasePKFilterWithOr$ -count=1`
- `go test ./pkg/sql/plan -run TestDoMergeFiltersOnCompositeKey
-count=1`
- `go test ./pkg/sql/plan -run TestInRHSValues -count=1`
- SQL/result statement and expected-row alignment checked
- `git diff --check` passed

The shared local MatrixOne listener was not used because mo-tester
performs destructive global cleanup; the updated fixture is ready for
the repository BVT/CI environment.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 added a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…gin#28082)

## What type of PR is this?

- [x] BUG
- [x] Test and CI

## Which issue(s) this PR fixes:

issue matrixorigin#27912

## What this PR does / why we need it:

Adds canonical regression coverage for the `information_schema.COLUMNS`
query shape reported in matrixorigin#27912. The test compares three SQL
`PREPARE`/`EXECUTE` paths over the same six-column table:

- a fully literal predicate;
- bound `TABLE_SCHEMA` and `TABLE_NAME` without `COLUMN_NAME IN`;
- bound schema/table predicates combined with the six-value literal
`COLUMN_NAME IN` clause that returned only 2 of 6 rows on v4.2.0.

All paths assert the complete six-row result in deterministic ordinal
order. This is test-only coverage for behavior already fixed by matrixorigin#27502
on release-4.2 and matrixorigin#27521 on main; it does not change production code or
SQL semantics.

- QA required: yes. Keep matrixorigin#27912 open for formal release/current-version
verification after this regression is merged.
- BVT: added to
`test/distributed/cases/optimizer/pk_filter_nested_boolean.sql`.
- Historical behavior: v4.2.0 returned 2/6 rows for the mixed
bind/literal path.
- CI repair: normalized six continuation-line indentations in the
generated `.result` command record after exact-head BVT rejected the
indented record before executing the new case.
- Exact base: `ffc8d9f0625c76e87ba967984ce19db2d082b0ba`.
- Exact PR head: `fb45e2d063bdb67b5403a8932b53158d7ee56963`.
- Local exact-main SQL validation: PASS, 6/6 rows for literal,
bind-only, and mixed paths through the MySQL wire protocol.
- Local exact-format validation: PASS; the paired multiline command
blocks match after whitespace normalization, and only the six
result-file indentation characters changed.
- Full mo-tester BVT: pending on the new PR head.
- `git diff --check`: PASS.
- Semantic preflight: PASS for exact head and diff.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
This ports the root fix from matrixorigin#27502 to `main`. `main` contains the composite-PK block-pruning path introduced by matrixorigin#25596, but it does not contain either nested-disjunction guard from the 4.2 fix.

A `BasePKFilter` with `Disjuncts` is a container, not an atomic predicate. Its zero-value `Op` is `function.EQUAL`; allowing it into the atomic merge switch can compare empty bounds and drop an OR branch, producing a false-negative pruning filter.

The change rejects container merges before either AND or OR enters the atomic path. OR then flattens all disjuncts, while AND retains one safe atomic conjunct and leaves full predicate evaluation to the residual filter. The AND fallback now also preserves the selected atomic filter's OID.

Regression coverage adds nested OR and both AND operand orders to the `readutil` unit test, plus the prepared SQL BVT `pk_filter_nested_boolean`. The BVT result was generated against `main`; its three metadata-width entries differ from 4.2 while all SQL values remain identical.

Rebased onto `upstream/main` at `6a8e7ecc530539948663a35a52259224ee1d128a`.

Validation on that base plus this branch:

- `make build`
- `go test ./pkg/vm/engine/readutil -count=1`
- `go test -race ./pkg/vm/engine/readutil -run '^TestConstructBasePKFilterWithOr$' -count=10`
- `go vet ./pkg/vm/engine/readutil`
- `mo-tester` BVT `pk_filter_nested_boolean`: 29/29 statements, 100%

Approved by: @aptend, @XuPeng-SH
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## Summary
- replace the duplicated information_schema fixture called out in review
#5013529566
- exercise a genuinely distinct reachable axis on a normal VARCHAR
primary key
- cover server PREPARE reuse with `a <= ? AND (a IN (?,?,?) OR a > ?)`
across two bindings

## Why this is distinct
- the case reaches the nested disjunction/container merge through a
prepared `IN` plus a range arm
- it does not depend on the information_schema cast path from matrixorigin#26627
- it is different from the existing equality/range operand-order cases
in matrixorigin#27521

## Validation
- `go test ./pkg/vm/engine/readutil -run
^TestConstructBasePKFilterWithOr$ -count=1`
- `go test ./pkg/sql/plan -run TestDoMergeFiltersOnCompositeKey
-count=1`
- `go test ./pkg/sql/plan -run TestInRHSValues -count=1`
- SQL/result statement and expected-row alignment checked
- `git diff --check` passed

The shared local MatrixOne listener was not used because mo-tester
performs destructive global cleanup; the updated fixture is ready for
the repository BVT/CI environment.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 added a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…gin#28082)

## What type of PR is this?

- [x] BUG
- [x] Test and CI

## Which issue(s) this PR fixes:

issue matrixorigin#27912

## What this PR does / why we need it:

Adds canonical regression coverage for the `information_schema.COLUMNS`
query shape reported in matrixorigin#27912. The test compares three SQL
`PREPARE`/`EXECUTE` paths over the same six-column table:

- a fully literal predicate;
- bound `TABLE_SCHEMA` and `TABLE_NAME` without `COLUMN_NAME IN`;
- bound schema/table predicates combined with the six-value literal
`COLUMN_NAME IN` clause that returned only 2 of 6 rows on v4.2.0.

All paths assert the complete six-row result in deterministic ordinal
order. This is test-only coverage for behavior already fixed by matrixorigin#27502
on release-4.2 and matrixorigin#27521 on main; it does not change production code or
SQL semantics.

- QA required: yes. Keep matrixorigin#27912 open for formal release/current-version
verification after this regression is merged.
- BVT: added to
`test/distributed/cases/optimizer/pk_filter_nested_boolean.sql`.
- Historical behavior: v4.2.0 returned 2/6 rows for the mixed
bind/literal path.
- CI repair: normalized six continuation-line indentations in the
generated `.result` command record after exact-head BVT rejected the
indented record before executing the new case.
- Exact base: `ffc8d9f0625c76e87ba967984ce19db2d082b0ba`.
- Exact PR head: `fb45e2d063bdb67b5403a8932b53158d7ee56963`.
- Local exact-main SQL validation: PASS, 6/6 rows for literal,
bind-only, and mixed paths through the MySQL wire protocol.
- Local exact-format validation: PASS; the paired multiline command
blocks match after whitespace normalization, and only the six
result-file indentation characters changed.
- Full mo-tester BVT: pending on the new PR head.
- `git diff --check`: PASS.
- Semantic preflight: PASS for exact head and diff.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
This ports the root fix from matrixorigin#27502 to `main`. `main` contains the composite-PK block-pruning path introduced by matrixorigin#25596, but it does not contain either nested-disjunction guard from the 4.2 fix.

A `BasePKFilter` with `Disjuncts` is a container, not an atomic predicate. Its zero-value `Op` is `function.EQUAL`; allowing it into the atomic merge switch can compare empty bounds and drop an OR branch, producing a false-negative pruning filter.

The change rejects container merges before either AND or OR enters the atomic path. OR then flattens all disjuncts, while AND retains one safe atomic conjunct and leaves full predicate evaluation to the residual filter. The AND fallback now also preserves the selected atomic filter's OID.

Regression coverage adds nested OR and both AND operand orders to the `readutil` unit test, plus the prepared SQL BVT `pk_filter_nested_boolean`. The BVT result was generated against `main`; its three metadata-width entries differ from 4.2 while all SQL values remain identical.

Rebased onto `upstream/main` at `6a8e7ecc530539948663a35a52259224ee1d128a`.

Validation on that base plus this branch:

- `make build`
- `go test ./pkg/vm/engine/readutil -count=1`
- `go test -race ./pkg/vm/engine/readutil -run '^TestConstructBasePKFilterWithOr$' -count=10`
- `go vet ./pkg/vm/engine/readutil`
- `mo-tester` BVT `pk_filter_nested_boolean`: 29/29 statements, 100%

Approved by: @aptend, @XuPeng-SH
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## Summary
- replace the duplicated information_schema fixture called out in review
#5013529566
- exercise a genuinely distinct reachable axis on a normal VARCHAR
primary key
- cover server PREPARE reuse with `a <= ? AND (a IN (?,?,?) OR a > ?)`
across two bindings

## Why this is distinct
- the case reaches the nested disjunction/container merge through a
prepared `IN` plus a range arm
- it does not depend on the information_schema cast path from matrixorigin#26627
- it is different from the existing equality/range operand-order cases
in matrixorigin#27521

## Validation
- `go test ./pkg/vm/engine/readutil -run
^TestConstructBasePKFilterWithOr$ -count=1`
- `go test ./pkg/sql/plan -run TestDoMergeFiltersOnCompositeKey
-count=1`
- `go test ./pkg/sql/plan -run TestInRHSValues -count=1`
- SQL/result statement and expected-row alignment checked
- `git diff --check` passed

The shared local MatrixOne listener was not used because mo-tester
performs destructive global cleanup; the updated fixture is ready for
the repository BVT/CI environment.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 added a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…gin#28082)

## What type of PR is this?

- [x] BUG
- [x] Test and CI

## Which issue(s) this PR fixes:

issue matrixorigin#27912

## What this PR does / why we need it:

Adds canonical regression coverage for the `information_schema.COLUMNS`
query shape reported in matrixorigin#27912. The test compares three SQL
`PREPARE`/`EXECUTE` paths over the same six-column table:

- a fully literal predicate;
- bound `TABLE_SCHEMA` and `TABLE_NAME` without `COLUMN_NAME IN`;
- bound schema/table predicates combined with the six-value literal
`COLUMN_NAME IN` clause that returned only 2 of 6 rows on v4.2.0.

All paths assert the complete six-row result in deterministic ordinal
order. This is test-only coverage for behavior already fixed by matrixorigin#27502
on release-4.2 and matrixorigin#27521 on main; it does not change production code or
SQL semantics.

- QA required: yes. Keep matrixorigin#27912 open for formal release/current-version
verification after this regression is merged.
- BVT: added to
`test/distributed/cases/optimizer/pk_filter_nested_boolean.sql`.
- Historical behavior: v4.2.0 returned 2/6 rows for the mixed
bind/literal path.
- CI repair: normalized six continuation-line indentations in the
generated `.result` command record after exact-head BVT rejected the
indented record before executing the new case.
- Exact base: `ffc8d9f0625c76e87ba967984ce19db2d082b0ba`.
- Exact PR head: `fb45e2d063bdb67b5403a8932b53158d7ee56963`.
- Local exact-main SQL validation: PASS, 6/6 rows for literal,
bind-only, and mixed paths through the MySQL wire protocol.
- Local exact-format validation: PASS; the paired multiline command
blocks match after whitespace normalization, and only the six
result-file indentation characters changed.
- Full mo-tester BVT: pending on the new PR head.
- `git diff --check`: PASS.
- Semantic preflight: PASS for exact head and diff.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

This branch was previously deployed

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

Labels

kind/bug Something isn't working kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Prepared IN on information_schema.TABLES drops nested OR branches on 4.2

4 participants