405307 {
405308 auto &result_mask = FlatVector::Validity(result);
405309
405310
405311
405312
405313 idx_t result_idx = 0;
405314 if (!run_index) {
405315 LoadNextRun();
405316 }
405317 while (!finished && result_idx < to_scan) {
405318
405319
405320 auto start_of_run =
405323
405324
405325 idx_t run_end = run.start + 1 + run.length;
405326 auto run_or_scan_end = MinValue<idx_t>(run_end,
scanned_count + to_scan);
405327
405328
405329 D_ASSERT(run_or_scan_end >= start_of_run);
405330 if (run_or_scan_end > start_of_run) {
405331 idx_t amount = run_or_scan_end - start_of_run;
405332 idx_t start = result_offset + result_idx;
405333 idx_t end = start + amount;
405335 }
405336
405337 result_idx += run_or_scan_end - start_of_run;
405339
405340 LoadNextRun();
405341 }
405342 }
405344}
void SetInvalidRange(ValidityMask &result, idx_t start, idx_t end)
This can be increased, but requires additional changes beyond just changing the constant.
Definition duckdb.cpp:404211
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
idx_t scanned_count
How much of the container is already consumed.
Definition duckdb.cpp:403498