138167 {
138168 D_ASSERT(vector.GetType().id() == LogicalTypeId::STRUCT || vector.GetType().id() == LogicalTypeId::UNION ||
138169 vector.GetType().id() == LogicalTypeId::VARIANT);
138170
138171 if (vector.GetVectorType() == VectorType::DICTIONARY_VECTOR) {
138172 auto &child = DictionaryVector::Child(vector);
138173 return StructVector::GetEntries(child);
138174 }
138175 D_ASSERT(vector.GetVectorType() == VectorType::FLAT_VECTOR ||
138176 vector.GetVectorType() == VectorType::CONSTANT_VECTOR);
138177 D_ASSERT(vector.auxiliary);
138178 D_ASSERT(vector.auxiliary->GetBufferType() == VectorBufferType::STRUCT_BUFFER);
138179 return vector.auxiliary->Cast<VectorStructBuffer>().GetChildren();
138180}