137719 {
137720 D_ASSERT(vector.GetVectorType() == VectorType::FLAT_VECTOR);
137721 vector.validity.Set(idx, !is_null);
137722 if (!is_null) {
137723 return;
137724 }
137725
137726 auto &type = vector.GetType();
137727 auto internal_type = type.InternalType();
137728
137729
137731 auto &entries = StructVector::GetEntries(vector);
137732 for (auto &entry : entries) {
137733 FlatVector::SetNull(*entry, idx, is_null);
137734 }
137735 return;
137736 }
137737
137738
137739 if (internal_type == PhysicalType::ARRAY) {
137741 auto array_size = ArrayType::GetSize(type);
137742 auto child_offset = idx * array_size;
137743 for (
idx_t i = 0; i < array_size; i++) {
137744 FlatVector::SetNull(child, child_offset + i, is_null);
137745 }
137746 }
137747}
@ STRUCT
Struct of logical types.
Definition duckdb.hpp:2816
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
static DUCKDB_API const Vector & GetEntry(const Vector &vector)
Gets a reference to the underlying child-vector of an array.
Definition duckdb.cpp:138574