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

Function IsBinaryAssociativeCommutative

cpp/src/arrow/compute/expression.cc:1026–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024namespace {
1025
1026bool IsBinaryAssociativeCommutative(const Expression::Call& call) {
1027 static std::unordered_set<std::string> binary_associative_commutative{
1028 "and", "or", "and_kleene", "or_kleene", "xor",
1029 "multiply", "add", "multiply_checked", "add_checked"};
1030
1031 auto it = binary_associative_commutative.find(call.function_name);
1032 return it != binary_associative_commutative.end();
1033}
1034
1035Result<Expression> HandleInconsistentTypes(Expression::Call call,
1036 compute::ExecContext* exec_context) {

Callers 1

CanonicalizeFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected