Repository navigation
test(sql): cover NULL lag and lead defaults across partitions - #30020
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: Assessment: approve Reviewed the complete two-file test delta, existing coverage, production callers and fixture lifecycle. Expected SQL values and NULL bits are correct; vector assertions preserve cleanup and provenance coverage. Production code is unchanged. No actionable defects found. Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: c871dfe71f35cb918bebf7c8e22d4e40f5893ca1
Assessment: approve
Reviewed the complete two-file test delta, existing coverage, production callers and fixture lifecycle. Expected SQL values and NULL bits are correct; vector assertions preserve cleanup and provenance coverage. Production code is unchanged. No actionable defects found.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
Verified exact HEAD, clean source and correspondence with the frozen patch. git diff --check and gofmt checks passed.
-
Traced constant-NULL cleanup and reuse through UnionBatch, window argument evaluation and LAG/LEAD default selection.
-
Checked all ten SQL cases, row counts, ordering, error handling, connection cleanup and shared one-CN fixture reuse.
-
Compared existing regression coverage: several NULL cases overlap, while zero and row-dependent defaults and DOUBLE/length transitions add distinct coverage.
-
Reused author-reported normal and race validation: 11 top-level tests per mode, including all ten new SQL cases and existing cancellation/error/lifecycle controls.
-
Reviewed both supplied comments; neither raises a technical concern. Recorded evidence in review-audit.json and static-checks.json.
Limitations:
-
Author validation lacks raw logs and exact commands; no local native tests were rerun. Substantive remote CI results are absent from the frozen snapshot.
-
The standalone issue #29925 body was not supplied; its contract was assessed from the PR description and SQL cases.
-
Added test runtime was not measured; the new SQL test reuses the existing shared cluster.
|
mo-bot work · Commit: Confirmed the noop repair disposition. The Qodo account notification requires no source change, rebase or rerun. Existing PR CI remains pending; this result does not certify merge readiness. |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #29925
What this PR does / why we need it:
Adds regression coverage for LAG/LEAD explicit NULL defaults across partitions of sizes two and one. The cleanup fix already merged in #29918 clears payload-free NULL-vector lengths; these tests verify the reported SQL behavior and protect that reuse contract.
SQL tests check untyped NULL, typed DOUBLE NULL, omitted, zero and row-dependent defaults, asserting every value and NULL bit. Vector coverage adds DOUBLE and shrinking, empty and growing lengths, retaining provenance and memory-cleanup assertions. Production code is unchanged.
Validation: focused normal and race checks passed 11 top-level tests per mode across vector, window and SQL integration, including all ten new SQL cases and existing cancellation/error/lifecycle controls, with no skips or race reports. Incremental gofmt and go vet passed; configured golangci-lint reported 0 issues. Molint ran over the same three packages; its two unsafe-import diagnostics are in unchanged files verified byte-identical to the base.
Tests used Go 1.27.1, CGO_ENABLED=1 and fresh native artifacts. Local SQL fixtures used a diagnostic configuration overlay changing only the Unix socket pathname to avoid Linux path-length limits; TCP query execution and assertions were unchanged. The final gpt-6.1-sol/xhigh review accepted the exact committed candidate. Remote CI remains pending.
Closes #29925