Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't reset validity target count #9565

Merged
merged 3 commits into from Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/common/types/vector_cache.cpp
Expand Up @@ -77,6 +77,10 @@ class VectorCacheBuffer : public VectorBuffer {
auto &child_cache = child_caches[0]->Cast<VectorCacheBuffer>();
auto &array_child = result.auxiliary->Cast<VectorArrayBuffer>().GetChild();
child_cache.ResetFromCache(array_child, child_caches[0]);

// Ensure the child validity is (will be) large enough, even if its not initialized.
auto validity_target_size = array_child.validity.TargetCount();
array_child.validity.Resize(validity_target_size, std::max(validity_target_size, child_cache.capacity));
break;
}
case PhysicalType::STRUCT: {
Expand Down