Skip to content

Commit

Permalink
[improve](load) pass cancel reason to sink operator when cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Nov 6, 2024
1 parent 84307c5 commit c0fa66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/pipeline/exec/operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_s
if (_writer) {
Status st = _writer->get_writer_status();
if (exec_status.ok()) {
_writer->force_close(state->is_cancelled() ? Status::Cancelled("Cancelled")
_writer->force_close(state->is_cancelled() ? state->cancel_reason()
: Status::Cancelled("force close"));
} else {
_writer->force_close(exec_status);
Expand Down

0 comments on commit c0fa66d

Please sign in to comment.