Skip to content

Commit

Permalink
Correctly set have more output
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Dec 13, 2024
1 parent d10d08d commit ef407da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/operator/physical_path_finding_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ SourceResultType PhysicalPathFinding::GetData(ExecutionContext &context, DataChu
std::cout << "Batch list length: " << current_state->current_batch_path_list_len << std::endl;

pf_sink.result_scan_idx++;
return SourceResultType::FINISHED;
if (pf_sink.result_scan_idx == pf_sink.bfs_states.size()) {
return SourceResultType::FINISHED;
}
return SourceResultType::HAVE_MORE_OUTPUT;
}

//===--------------------------------------------------------------------===//
Expand Down

0 comments on commit ef407da

Please sign in to comment.