Skip to content

Commit ea3b8c6

Browse files
authored
GH-47781: [C++] Cleaned up type-limit warning in sink_node.cc (#47782)
### Rationale for this change This cleans up a dead code branch the compiler warns about ### What changes are included in this PR? Removes a code branch that will never be hit ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: #47781 Authored-by: Will Ayd <william.ayd@icloud.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 771e14b commit ea3b8c6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cpp/src/arrow/acero/sink_node.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@ class SinkNode : public ExecNode,
267267
return Status::Invalid(
268268
"`backpressure::pause_if_above` must be >= `backpressure::resume_if_below");
269269
}
270-
if (sink_options.backpressure.resume_if_below < 0) {
271-
return Status::Invalid(
272-
"`backpressure::pause_if_above and backpressure::resume_if_below must be >= 0. "
273-
" Set to 0 to disable backpressure.");
274-
}
275270
return Status::OK();
276271
}
277272

0 commit comments

Comments
 (0)