MCPcopy Create free account
hub / github.com/apache/arrow / ValidateOptions

Method ValidateOptions

cpp/src/arrow/acero/sink_node.cc:260–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 static Status ValidateOptions(const SinkNodeOptions& sink_options) {
261 if (!sink_options.generator) {
262 return Status::Invalid(
263 "`generator` is a required SinkNode option and cannot be null");
264 }
265 if (sink_options.backpressure.pause_if_above <
266 sink_options.backpressure.resume_if_below) {
267 return Status::Invalid(
268 "`backpressure::pause_if_above` must be >= `backpressure::resume_if_below");
269 }
270 return Status::OK();
271 }
272
273 AtomicCounter input_counter_;
274

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected