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

Function Priority

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

Source from the content-addressed store, hash-verified

1092 if (IsBinaryAssociativeCommutative(*call)) {
1093 struct {
1094 int Priority(const Expression& operand) const {
1095 // order literals first, starting with nulls
1096 if (operand.IsNullLiteral()) return 0;
1097 if (operand.literal()) return 1;
1098 return 2;
1099 }
1100 bool operator()(const Expression& l, const Expression& r) const {
1101 return Priority(l) < Priority(r);
1102 }

Callers 1

operator()Function · 0.85

Calls 2

IsNullLiteralMethod · 0.80
literalMethod · 0.80

Tested by

no test coverage detected