| 123 | } |
| 124 | |
| 125 | Status 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 | |
| 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 |
no test coverage detected