Repository navigation
fix(sql): use fixed-width comparison for BIT inequality - #33146
Conversation
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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
🚫 Left the queue · pull request dequeued1 h 14 min in the queue, with no time running CI. So far
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.
To get back in the queue
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #33136
What this PR does / why we need it:
Both
<>and!=usenotEqualFn. 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 existinguint64inequality 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.