329566 {
329567 if (!pipeline_executor) {
329568 pipeline_executor = make_uniq<PipelineExecutor>(pipeline.GetClientContext(), pipeline);
329569 }
329570
329571 pipeline_executor->SetTaskForInterrupts(shared_from_this());
329572
329573 if (mode == TaskExecutionMode::PROCESS_PARTIAL) {
329574 auto res = pipeline_executor->Execute(PARTIAL_CHUNK_COUNT);
329575
329576 switch (res) {
329578 return TaskExecutionResult::TASK_NOT_FINISHED;
329580 return TaskExecutionResult::TASK_BLOCKED;
329582 break;
329583 }
329584 } else {
329585 auto res = pipeline_executor->Execute();
329586 switch (res) {
329588 throw InternalException("Execute without limit should not return NOT_FINISHED");
329590 return TaskExecutionResult::TASK_BLOCKED;
329592 break;
329593 }
329594 }
329595
329596 event->FinishTask();
329597 pipeline_executor.reset();
329598 return TaskExecutionResult::TASK_FINISHED;
329599}
@ FINISHED
PipelineExecutor is fully executed: the source is completely exhausted.
Definition duckdb.cpp:328180
@ INTERRUPTED
Definition duckdb.cpp:328185
@ NOT_FINISHED
PipelineExecutor is not yet fully executed and can be called again immediately.
Definition duckdb.cpp:328182