fix: sync ColumnVector append length with FieldData state(#49071) (#49391)

related: #49071

Signed-off-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Chun Han
2026-04-28 02:25:51 +08:00
committed by GitHub
co-authored by MrPresent-Han Claude Opus 4.7
parent 47a57f2473
commit 3aadc7a226
+8 -1
View File
@@ -283,7 +283,14 @@ class ColumnVector final : public SimpleVector {
auto old_size = length_;
values_->FillFieldData(other.GetRawData(), other.size());
length_ += other.size();
auto values_length = values_->Length();
AssertInfo(values_length >= old_size,
"ColumnVector append length mismatch: values_length {} < "
"old_size {}",
values_length,
old_size);
length_ = values_length;
valid_values_.resize(length_);
// Copy validity from other