Skip to content

Commit

Permalink
Shouldn't stop just because a step returned no files
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed May 31, 2024
1 parent 90f9557 commit b84422a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/functions/delta_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,12 @@ string DeltaSnapshot::GetFile(idx_t i) {
}

while(i >= resolved_files.size()) {
auto size_before = resolved_files.size();

auto have_scan_data_res = ffi::kernel_scan_data_next(scan_data_iterator.get(), this, visit_data);

auto have_scan_data = TryUnpackKernelResult(have_scan_data_res);

// TODO: shouldn't the kernel always return false here?
if (!have_scan_data || resolved_files.size() == size_before) {
// kernel has indicated that we have no more data to scan
if (!have_scan_data) {
files_exhausted = true;
return "";
}
Expand Down

0 comments on commit b84422a

Please sign in to comment.