fix: avoid top panic on null varlen copy#24049
fix: avoid top panic on null varlen copy#24049mergify[bot] merged 3 commits intomatrixorigin:3.0-devfrom
Conversation
Guard compare copy and vector copy against null varlen rows so Top heap replacement does not dereference stale varlena metadata from null values. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Review Summary by QodoFix panic on null varlen copy in Top operator
WalkthroughsDescription• Guard null varlen row copies against stale metadata dereferencing • Reorganize Copy logic to clear varlena headers before marking null • Prevent Top heap replacement panic on null varlen values • Add comprehensive tests for null varlena copy scenarios Diagramflowchart LR
A["Null Varlen Copy"] --> B["Clear Varlena Header"]
B --> C["Mark Row Null"]
C --> D["Prevent Stale Metadata"]
D --> E["Top Operator Safe"]
File Changes1. pkg/compare/arraycompare.go
|
Code Review by Qodo
1.
|
5e6f147 to
0bc64fd
Compare
Merge Queue Status
This pull request spent 24 seconds in the queue, including 3 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #24048
What this PR does / why we need it:
Guard compare copy and vector copy against null varlen rows so Top heap replacement does not dereference stale varlena metadata from null values.