Repository navigation
fix(plan): infer prepared lag lead offsets - #27225
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 review on the exact head found no blocking issue. A bare prepared LAG/LEAD offset now gets the integer vector type required by the window executor, while literals, columns, and explicitly typed expressions retain their existing binding paths. The cast remains around the ParamRef through plan copying/fill, composes with the existing third-argument default cast, and propagates cast-construction errors. Focused binder and prepare/fill tests pass repeatedly; git diff --check is clean.
|
Queued — the merge queue status continues in this comment ↓. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review on exact head d3095b8 found no blocking issue. The failure chain and fix are coherent: bare prepared LAG/LEAD offsets previously remained text, while the executor accepts only integer vectors; binding the direct marker through an int64 cast before overload resolution preserves that cast through plan copy/fill and composes with the existing third/default-argument cast. Literal, column, and explicitly typed offset paths are unchanged. The SQL PREPARE/EXECUTE regression covers both LAG and LEAD, focused tests pass, the complete pkg/sql/plan suite passes locally, and diff --check is clean.
Merge Queue Status
This pull request spent 27 minutes 24 seconds in the queue, with no time running CI. ReasonPull request #27225 has been merged manually at 484e196 HintYou were too fast! 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#26865 ## What this PR does / why we need it: fix(plan): infer prepared lag lead offsets --------- 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#26865 ## What this PR does / why we need it: fix(plan): infer prepared lag lead offsets --------- 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#26865 ## What this PR does / why we need it: fix(plan): infer prepared lag lead offsets --------- 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 #26865
What this PR does / why we need it:
fix(plan): infer prepared lag lead offsets