MDEV-39365 Preserve high bits when computing window BIT_XOR results #5767
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.33) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 146 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.299
Real PR Conversation Timeline
1 comments
"Review active on #5767"
general
weight: 0.35
gkodinov
Window
BIT_XORreconstructs its result from per-bit counters by shiftinga signed
int. Shifts at or above the width ofintare undefined, andsign extension can also corrupt the result. Negative values and high
positive bits can therefore produce an incorrect XOR.
Use an unsigned 64-bit shift when rebuilding the result.
The regression uses one table and one sliding-window query. Its five
rows cover the reported negative value, zero, a low bit, bit 40 and
parity changes as rows enter and leave the frame. The test adds no
includes or session settings, and the pre-existing tests are unchanged.
Bug report: https://jira.mariadb.org/browse/MDEV-39365
Validation
On
11.4atf49e838d367f2154b3edb43effa99ff9eb0d8602:main.win_bitonly at four of the fivenew rows; the low-bit control and all pre-existing results match.
main.win_bitandmain.selectpass.main.win_bitpasses.