Repository navigation
fix: support bit_xor window function - #27619
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? |
aptend
left a comment
There was a problem hiding this comment.
Deep-reviewed the complete diff, issue reproducer, parser grammar/generated parser path, aggregate/window binding, bitwise aggregate runtime contract, and all review/comment history at exact head 97c97cbb3b4d8a852d07c8d3982511d2462cc4bd. The root cause is correctly isolated to lexical classification: the BIT_XOR grammar and generated reduction already carry window_spec_opt, but the missing keyword-map entry kept calls on the generic function path. Adding the token makes BIT_XOR match the same special production as BIT_AND/BIT_OR while not_keyword preserves its use as an identifier. The BVT covers cumulative, partitioned, sliding, empty, all-NULL, and NULL-containing frames with BIT_AND/BIT_OR controls; the expected XOR identities and frame results are consistent with the existing aggregate implementation. No blocking issue remains. Validation: git diff --check; the full MySQL parser suite; the focused parser regression under -race -count=5; and go vet pass after the required third-party build. Exact-head CI, including BVT, is green.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review completed at exact head 97c97cbb3b4d8a852d07c8d3982511d2462cc4bd against merge base 6ef0c7818c85568b8dc793ae5eb0ed8cbf820b3f.
The implementation correctly fixes the lexical admission boundary: the grammar and generated parser already support BIT_XOR(...) window_spec_opt, but without the keyword-map entry the call stayed on the generic-function path. Mapping bit_xor to BIT_XOR aligns it with BIT_AND/BIT_OR, while the existing not_keyword production and the added parser control preserve identifier use.
The BVT independently covers cumulative, partitioned, sliding, NULL-containing, all-NULL, and empty frames, with deterministic ordering and BIT_AND/BIT_OR controls. The expected XOR values and zero identity match the existing aggregate implementation. This is a focused compatibility bug fix with no new state, resource, wire, or hot-path mechanism. Exact-head CI and the existing parser/race/vet evidence are green; I found no blocker.
Merge Queue Status
This pull request spent 22 minutes 55 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #27619 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.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27342 ## What this PR does / why we need it: fix: support bit_xor window function Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27342 ## What this PR does / why we need it: fix: support bit_xor window function Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#27342 ## What this PR does / why we need it: fix: support bit_xor window function Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #27342
What this PR does / why we need it:
fix: support bit_xor window function