Skip to content

test: add BVT regression for IN subquery regexp misparsing (#23105) - #24464

Merged
mergify[bot] merged 5 commits into
matrixorigin:mainfrom
VioletQwQ-0:fix/in-subquery-regexp-regression-23105
May 20, 2026
Merged

test: add BVT regression for IN subquery regexp misparsing (#23105)#24464
mergify[bot] merged 5 commits into
matrixorigin:mainfrom
VioletQwQ-0:fix/in-subquery-regexp-regression-23105

Conversation

@VioletQwQ-0

Copy link
Copy Markdown
Collaborator

What type of PR is this?

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

Which issue(s) this PR fixes:

issue #23105

What this PR does / why we need it:

Add BVT regression test for #23105SELECT * FROM t WHERE id IN (SELECT id FROM t WHERE 1=0) used to produce error parsing regexp: missing closing ]: [ instead of returning an empty result.

The root cause was fixed by #23630 (regex metacharacter escaping in LIKE evaluation, merged 2026-02-02). This PR adds regression coverage so it stays fixed:

  • IN subquery with empty result set
  • IN subquery with non-empty result set
  • VARCHAR data containing regex metacharacters ([, +)
  • LIKE pattern containing [

🤖 Generated with Claude Code

…gin#23105)

The bug (IN subquery returning "error parsing regexp: missing closing ]")
was fixed by matrixorigin#23630 which corrected regex metacharacter escaping in LIKE
evaluation. Add regression coverage so it stays fixed.

Fixes matrixorigin#23105

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@VioletQwQ-0
VioletQwQ-0 requested a review from heni02 as a code owner May 19, 2026 07:43
@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 →

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mergify mergify Bot added the queued label May 20, 2026
@mergify

mergify Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • Entered queue2026-05-20 02:29 UTC · Rule: main
  • Checks passed · in-place
  • Merged2026-05-20 03:29 UTC · at bcd97f5ebf00d203e5aae29a1c88ba9e12c29373 · squash

This pull request spent 59 minutes 10 seconds in the queue, including 58 minutes 49 seconds running CI.

Required conditions to merge
  • #approved-reviews-by >= 1 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • github-review-decision = APPROVED [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Compose CI / multi cn e2e bvt test docker compose(PESSIMISTIC)
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(PESSIMISTIC)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(PESSIMISTIC)
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Standlone CI / Multi-CN e2e BVT Test on Linux/x64(LAUNCH, PROXY)
    • check-neutral = Matrixone Standlone CI / Multi-CN e2e BVT Test on Linux/x64(LAUNCH, PROXY)
    • check-skipped = Matrixone Standlone CI / Multi-CN e2e BVT Test on Linux/x64(LAUNCH, PROXY)
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
    • check-neutral = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
    • check-skipped = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone CI / SCA Test on Ubuntu/x86
    • check-neutral = Matrixone CI / SCA Test on Ubuntu/x86
    • check-skipped = Matrixone CI / SCA Test on Ubuntu/x86
  • 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 Compose CI / multi cn e2e bvt test docker compose(Optimistic/PUSH)
    • check-neutral = Matrixone Compose CI / multi cn e2e bvt test docker compose(Optimistic/PUSH)
    • check-skipped = Matrixone Compose CI / multi cn e2e bvt test docker compose(Optimistic/PUSH)
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH,Optimistic)
    • check-neutral = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH,Optimistic)
    • check-skipped = Matrixone Standlone CI / e2e BVT Test on Linux/x64(LAUNCH,Optimistic)
  • any of [🛡 GitHub branch protection]:
    • check-success = Matrixone Upgrade CI / Compatibility Test With Target on Linux/x64(LAUNCH)
    • check-neutral = Matrixone Upgrade CI / Compatibility Test With Target on Linux/x64(LAUNCH)
    • check-skipped = Matrixone Upgrade CI / Compatibility Test With Target on Linux/x64(LAUNCH)
  • any of [🛡 GitHub branch protection]:
    • check-skipped = Matrixone Utils CI / Coverage
    • check-neutral = Matrixone Utils CI / Coverage
    • check-success = Matrixone Utils CI / Coverage

@mergify
mergify Bot merged commit 3a5b6ea into matrixorigin:main May 20, 2026
23 of 24 checks passed
@mergify mergify Bot removed the queued label May 20, 2026
@VioletQwQ-0
VioletQwQ-0 deleted the fix/in-subquery-regexp-regression-23105 branch May 20, 2026 06:49
ULookup pushed a commit to ULookup/matrixone that referenced this pull request May 26, 2026
…gin#23105) (matrixorigin#24464)

Add BVT regression test for matrixorigin#23105 — `SELECT * FROM t WHERE id IN (SELECT id FROM t WHERE 1=0)` used to produce `error parsing regexp: missing closing ]: [` instead of returning an empty result.

The root cause was fixed by matrixorigin#23630 (regex metacharacter escaping in LIKE evaluation, merged 2026-02-02). This PR adds regression coverage so it stays fixed:

- IN subquery with empty result set
- IN subquery with non-empty result set
- VARCHAR data containing regex metacharacters (`[`, `+`)
- LIKE pattern containing `[`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Approved by: @heni02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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