MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AR_GE

Function AR_GE

src/arithmetic/boolean_funcs/boolean_funcs.c:91–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91SIValue AR_GE(SIValue *argv, int argc, void *private_data) {
92 SIValue a = argv[0];
93 SIValue b = argv[1];
94
95 int disjointOrNull = 0;
96 int res = SIValue_Compare(a, b, &disjointOrNull);
97 if(disjointOrNull == COMPARED_NULL) {
98 // Comparisons with NULL values always return NULL.
99 return SI_NullVal();
100 }
101 if(disjointOrNull == COMPARED_NAN) return SI_BoolVal(false);
102 if(disjointOrNull == DISJOINT) return SI_NullVal();
103
104 return SI_BoolVal(res >= 0);
105}
106
107SIValue AR_LT(SIValue *argv, int argc, void *private_data) {
108 SIValue a = argv[0];

Callers

nothing calls this directly

Calls 3

SIValue_CompareFunction · 0.85
SI_NullValFunction · 0.85
SI_BoolValFunction · 0.85

Tested by

no test coverage detected