Skip to content

test: cover prepared information_schema columns regression - #28082

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
VioletQwQ-0:codex/issue-27912-columns-prepared-regression
Sep 3, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
VioletQwQ-0:codex/issue-27912-columns-prepared-regression

Conversation

@VioletQwQ-0

@VioletQwQ-0 VioletQwQ-0 commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • BUG
  • 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 [Bug]: information_schema.COLUMNS truncates rows when prepared-statement bind params (TABLE_SCHEMA/TABLE_NAME) are combined with a literal IN(...) clause (v4.2.0) #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.

@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 →

@VioletQwQ-0

Copy link
Copy Markdown
Collaborator Author

CI repair on exact PR head 675ea15f2286f4126bfe5979739c8e71003f72bc:

  • The current BVT failure was a test-golden parser mismatch, not a production SQL failure. mo-tester rejected the multiline CREATE TABLE column_probe command because the corresponding .result continuation lines retained indentation.
  • Fixed in fb45e2d063bdb67b5403a8932b53158d7ee56963 by removing only those six continuation-line indentations.
  • Local exact-format check: PASS; SQL/result command blocks match after whitespace normalization, and metadata/expected rows are unchanged.
  • git diff --check: PASS.
  • Semantic preflight: PASS for base ffc8d9f0625c76e87ba967984ce19db2d082b0ba and head fb45e2d063bdb67b5403a8932b53158d7ee56963.

The new-head BVT/CI and formal review remain pending; #27912 remains open for QA after merge.

@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 reviewed exact head fb45e2d against base ffc8d9f.

The regression is discriminating rather than merely exercising a happy path. The literal and bind-only controls each require all six catalog rows, while the target prepared query binds TABLE_SCHEMA and TABLE_NAME through EXECUTE USING and keeps the six-value COLUMN_NAME IN list literal—the exact shape that historically returned only two rows. Its snapshot therefore fails directly if the truncation returns. ORDER BY ordinal_position makes row order deterministic, and projecting COLUMN_NAME alone is sufficient to detect the row-loss defect.

Fixture ownership is clean: prepared statements are deallocated and the database is dropped. The test adds no sleeps, randomness, external dependency, production behavior, or material BVT cost. The repaired result command formatting now reaches execution, and exact-head UT, SCA, coverage, proxy BVT, and pessimistic multi-CN BVT are green. I found no remaining coverage, false-positive, cleanup, determinism, or performance blocker.

@mergify mergify Bot added the queued label Sep 3, 2026
@mergify

mergify Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-09-03 13:58 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-09-03 14:03 UTC · at b5165db81db8bfa23644cca0f0a48d63b44090b9

This pull request spent 4 minutes 49 seconds in the queue, with no time running CI.

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

Reason

Pull request #28082 has been dequeued

Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.

The author needs to enable "Allow edits from maintainers" on this pull request.

Failing checks:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@XuPeng-SH
XuPeng-SH merged commit 2ad1038 into matrixorigin:main Sep 3, 2026
18 of 20 checks passed
@mergify mergify Bot added dequeued and removed queued labels Sep 3, 2026
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 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 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
VioletQwQ-0 deleted the codex/issue-27912-columns-prepared-regression branch December 1, 2026 03:47

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/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants