Repository navigation
fix(sql): preserve BIT binary bytes and unsigned window results - #32195
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 2aebd67cb3cba52515cfa8e8d1cea05026a5c004
Assessment: approve
Both fixes reuse existing cast and window-domain handling. BIT encoding and unsigned window results satisfy the scoped contracts while preserving assignment, VARBINARY and non-BIT behavior. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed all seven changed paths, both discussion entries and linked issues #32122/#32125; traced cast, binder, window, rank, VIEW and CTAS consumers.
-
Preflight passed: checks/1793829850280122484-2.json; preflight.log.
-
Encoding probe passed 12,096 width/padding/truncation/NULL checks and reproduced the baseline defect: checks/1793829861763166776-2.json; bit-binary-probe.jsonl.
-
Independent source/fixture audit passed for all 36 SQL statements and byte/value/type oracles: checks/1793830073581225205-2.json; source-fixture-audit.log. Reconciliation: validation-evidence.json.
-
Frozen-head CI reports successful build, unit tests, SCA and proxy/pessimistic multi-CN BVT.
Limitations:
-
The local Go probe uses extracted production branches with a documented in-memory harness; full native packages and public SQL suites were not rerun locally.
-
Author-reported package and BVT runs retain older-base labels; detailed raw logs were not supplied.
🚫 Left the queue · pull request dequeued3 h 22 min in the queue, with no time running CI. So far
Reason Pull request #32195 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
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32122
Fixes #32125
What this PR does / why we need it:
Encode native BIT values as big-endian bytes of their declared width for explicit BINARY casts, before applying the existing destination truncation or right padding. This preserves leading zero bytes and non-symmetric values such as BIT(64) 258 -> 0000000000000102. Assignment and VARBINARY conversion behavior is unchanged.
Coerce native BIT arguments to BIGINT UNSIGNED for FIRST_VALUE, LAST_VALUE, LAG, LEAD and NTH_VALUE so their derived values, LENGTH results, VIEW projections and CTAS column types use the unsigned numeric domain. Coerce a BIT default argument consistently while retaining existing offset, frame and NULL behavior.
Validation:
CI and reviewer decisions remain pending on the published HEAD. No multi-CN or deployment validation is claimed.