| 25 | namespace { |
| 26 | |
| 27 | inline Status ValidateInExpression(size_t number_of_values, |
| 28 | const DataTypePtr& in_expr_return_type, |
| 29 | const DataTypePtr& types_of_values) { |
| 30 | ARROW_RETURN_IF(number_of_values == 0, |
| 31 | Status::ExpressionValidationError( |
| 32 | "IN Expression needs a non-empty constant list to match.")); |
| 33 | ARROW_RETURN_IF( |
| 34 | !in_expr_return_type->Equals(types_of_values), |
| 35 | Status::ExpressionValidationError( |
| 36 | "Evaluation expression for IN clause returns ", in_expr_return_type->ToString(), |
| 37 | " values are of type", types_of_values->ToString())); |
| 38 | |
| 39 | return Status::OK(); |
| 40 | } |
| 41 | |
| 42 | template <typename InExpressionNode> |
| 43 | inline Status ValidateInExpression(const InExpressionNode& node, |
no test coverage detected