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

Function GetFunctionArgumentTypes

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

Source from the content-addressed store, hash-verified

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
137 // possible
138 RETURN_NOT_OK(CheckAllArrayOrScalar(args));
139 std::vector<TypeHolder> inputs(args.size());
140 for (size_t i = 0; i != args.size(); ++i) {
141 inputs[i] = TypeHolder(args[i].type());
142 }
143 return inputs;
144}
145
146} // namespace internal
147} // namespace compute

Callers 1

Calls 4

CheckAllArrayOrScalarFunction · 0.85
TypeHolderClass · 0.70
sizeMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected