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

Function CheckAllArrayOrScalar

cpp/src/arrow/compute/function_internal.cc:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125Status CheckAllArrayOrScalar(const std::vector<Datum>& values) {
126 for (const auto& value : values) {
127 if (!value.is_value()) {
128 return Status::TypeError(
129 "Tried executing function with non-array, non-scalar type: ", value.ToString());
130 }
131 }
132 return Status::OK();
133}
134
135Result<std::vector<TypeHolder>> GetFunctionArgumentTypes(const std::vector<Datum>& args) {
136 // type-check Datum arguments here. Really we'd like to avoid this as much as

Callers 1

GetFunctionArgumentTypesFunction · 0.85

Calls 3

TypeErrorFunction · 0.50
OKFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected