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

Function ValidateInExpression

cpp/src/gandiva/expr_validator.cc:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27inline 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
42template <typename InExpressionNode>
43inline Status ValidateInExpression(const InExpressionNode& node,

Callers 1

VisitMethod · 0.85

Calls 8

OKFunction · 0.50
EqualsMethod · 0.45
ToStringMethod · 0.45
sizeMethod · 0.45
valuesMethod · 0.45
return_typeMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected