Skip to content

fix(sql): use fixed-width comparison for BIT inequality - #33146

Merged
XuPeng-SH merged 8 commits into
matrixorigin:mainfrom
ck89119:issue-33136-main
Nov 25, 2026
Merged

XuPeng-SH merged 8 commits into
matrixorigin:mainfrom
ck89119:issue-33136-main

Conversation

@ck89119

@ck89119 ck89119 commented Nov 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 #33136

What this PR does / why we need it:

Both <> and != use notEqualFn. Its BIT branch asks the string template to read 24-byte varlena descriptors from vectors of 8-byte unsigned integers, causing a panic before the values are compared. Route BIT through the existing uint64 inequality branch.

The regression unit test reproduces the panic on the baseline and passes with the fix. It checks equal values, values that differ only in the highest bit, and NULL on either side. The SQL regression exercises both spellings, including a column comparison in a projection and a BIT constant comparison in a filter.

The function package tests, incremental vet and lint, and the BIT BVT case passed locally with Go 1.27.1.

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

@mergify

mergify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · pull request dequeued

1 h 14 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Wed 25 Nov, 11:41 · rule main · triggered by rule Automatic queue on approval for main
  • ⏹️ Testing stopped · in place
  • 🚫 Left the queue 12:56 · 6352ab2

Reason

Pull request #33146 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.

To get back in the queue

  • Push a change if one is needed: the pull request is queued again once its queue conditions match.
  • If no change is needed, tick the box below to queue it again as it is.

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

  • Requeue this pull request

Times in UTC · dashboard · how the merge queue works

This branch had an error being deployed

1 failed deployment
ci — 6352ab26 Deployed Nov 25, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dequeued kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: BIT not-equal comparisons panic in the string comparison executor

3 participants