400775 {
400776 auto sdata = UnifiedVectorFormat::GetData<T>(adata);
400777 auto tdata = reinterpret_cast<T *>(target);
400778 if (!adata.validity.AllValid()) {
400779 for (
idx_t i = 0; i < count; i++) {
400780 auto source_idx = adata.sel->get_index(offset + i);
400781 auto target_idx = target_offset + i;
400782 bool is_null = !adata.validity.RowIsValid(source_idx);
400783 if (!is_null) {
400784 stats.statistics.SetHasNoNullFast();
400785 stats.statistics.UpdateNumericStats<T>(sdata[source_idx]);
400786 tdata[target_idx] = sdata[source_idx];
400787 } else {
400788 stats.statistics.SetHasNullFast();
400789
400790
400792 }
400793 }
400794 } else {
400795 stats.statistics.SetHasNoNullFast();
400796 for (
idx_t i = 0; i < count; i++) {
400797 auto source_idx = adata.sel->get_index(offset + i);
400798 auto target_idx = target_offset + i;
400799 stats.statistics.UpdateNumericStats<T>(sdata[source_idx]);
400800 tdata[target_idx] = sdata[source_idx];
400801 }
400802 }
400803 }
T NullValue()
Placeholder to insert in Vectors or to use for hashing NULLs.
Definition duckdb.cpp:30953
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237