227697 {
227698
227701
227702 UnifiedVectorFormat input_data;
227703 input.ToUnifiedFormat(count, input_data);
227704
227705
227706 FlatVector::SetValidity(result, input_data.validity);
227707
227708
227709 UnifiedVectorFormat input_struct_data;
227712 FlatVector::SetValidity(result_struct, input_struct_data.validity);
227713
227714
227715 result.CopyBuffer(input);
227716
227717 auto &input_keys = MapVector::GetKeys(input);
227718 auto &result_keys = MapVector::GetKeys(result);
227719 result_keys.Reference(input_keys);
227720
227721 auto &input_values = MapVector::GetValues(input);
227722 auto &result_values = MapVector::GetValues(result);
227723 result_values.Reference(input_values);
227724
227725 if (input.GetVectorType() == VectorType::DICTIONARY_VECTOR) {
227726 result.Slice(*input_data.sel, count);
227727 }
227728
227729
227730 result.SetVectorType(input.GetVectorType());
227731}
DUCKDB_API void ToUnifiedFormat(idx_t count, UnifiedVectorFormat &data)
Definition duckdb.cpp:136886
static DUCKDB_API const Vector & GetEntry(const Vector &vector)
Gets a reference to the underlying child-vector of a list.
Definition duckdb.cpp:138203
static DUCKDB_API void SetListSize(Vector &vec, idx_t size)
Sets the total size of the underlying child-vector of a list.
Definition duckdb.cpp:138248
static DUCKDB_API idx_t GetListSize(const Vector &vector)
Gets the total size of the underlying child-vector of a list.
Definition duckdb.cpp:138221