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

Function AR_GT

src/arithmetic/boolean_funcs/boolean_funcs.c:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73SIValue AR_GT(SIValue *argv, int argc, void *private_data) {
74 SIValue a = argv[0];
75 SIValue b = argv[1];
76
77 int disjointOrNull = 0;
78 int res = SIValue_Compare(a, b, &disjointOrNull);
79 if(disjointOrNull == COMPARED_NULL || disjointOrNull == DISJOINT) {
80 // comparisons with NULL or different types values always return NULL
81 return SI_NullVal();
82 }
83 if(disjointOrNull == COMPARED_NAN) {
84 // comparisons with NaN values always return false
85 return SI_BoolVal(false);
86 }
87
88 return SI_BoolVal(res > 0);
89}
90
91SIValue AR_GE(SIValue *argv, int argc, void *private_data) {
92 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