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

Function CheckIfAllScalar

cpp/src/arrow/compute/exec.cc:332–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332bool CheckIfAllScalar(const ExecBatch& batch) {
333 for (const Datum& value : batch.values) {
334 if (!value.is_scalar()) {
335 DCHECK(value.is_arraylike());
336 return false;
337 }
338 }
339 return batch.num_values() > 0;
340}
341
342} // namespace
343

Callers 2

InitMethod · 0.85
ExecuteMethod · 0.85

Calls 2

is_scalarMethod · 0.80
num_valuesMethod · 0.45

Tested by

no test coverage detected