Repository navigation
fix: stabilize Top typed-NULL layout on 4.2-dev - #32238
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? |
aunjgr
left a comment
There was a problem hiding this comment.
Reviewed the complete change at 7020063, including the typed-NULL/computed-key layout, both input orders, heap replacement, reset/error handling and spill ownership. Planned column slots now determine the layout while the existing private build-batch view preserves the child's vectors; computed keys remain appended independently. No blocking findings.
Reused the exact-head successful CI and assessed the focused UT/SQL regression oracles. No additional local test run was needed.
|
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: 7020063ea7900bc75086fd912065c68dd4da7125
Assessment: approve
No actionable findings. Planned column slots fix typed-NULL layout drift while reusing Top's private batch view, preserving child ownership without adding state or abstractions.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reviewed the complete four-file delta, linked issue and all three discussion entries; traced expression evaluation, heap/spill consumers, output and cleanup.
-
Reused successful frozen-head UT, build, SCA, coverage and complementary BVT CI; assessed regression oracles and test selection.
-
Local source/evidence check passed: clean frozen head, matching delta, whitespace and discussion coverage. Receipt: checks/1793904144581809285-2.json; log: source-and-evidence-check.log.
Limitations:
-
No new Go or SQL execution. Supplied CI conclusions lack per-test logs; author-reported coverage percentages and repeated SQL counts were not independently verified.
-
Exact customer workload was not replayed because schema/data, deployed version and complete server logs were unavailable. SQL comparison sorting is supplemented by exact-order unit assertions.
|
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: 2056191d28ec9adaa854fc0bee541100dded7146
Assessment: approve
Planned column slots fix typed-NULL layout drift while reusing Top’s private batch view and existing heap/spill ownership. Computed keys remain independent, with no new state or abstraction. No actionable findings.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete four-file delta, all five discussion entries and linked issue context; traced evaluation, heap/spill consumers, output, errors and cleanup.
-
Reused frozen-head successful UT, build, SCA, coverage and complementary BVT CI; assessed focused regression oracles and qualified unchanged prior source.
-
Local source/evidence audit passed. Receipt: checks/1793940118971345597-2.json; retained log: source-and-evidence-check.log.
Limitations:
-
No new Go or SQL execution. Per-test CI logs are unavailable; author-reported coverage percentages and repeated SQL counts were not independently verified.
-
Exact customer workload was not replayed because schema/data, deployed version and complete logs were unavailable. SQL result sorting is supplemented by exact-order unit assertions.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes matrixorigin/matrixflow#20795
What this PR does / why we need it:
Backport the stable Top ordering layout from #30714 to
4.2-dev. A column expression may return an executor-owned typed-NULL vector, so pointer identity cannot identify its logical column. Use the planned column slot and append only computed sort expressions, keeping the layout stable across batches.Preserve this branch's cancellation checks and ordering comparators; do not import unrelated main memory-management changes.
Validation (Go 1.26.4, branch-local native libraries):
The complete production SQL was truncated, so validation uses minimal reproductions rather than a replay of the full production statement. No production deployment was performed.