| 133 | } |
| 134 | |
| 135 | Result<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 |
no test coverage detected