MCPcopy Create free account
hub / github.com/apache/cloudberry / get_leftop

Function get_leftop

src/include/nodes/nodeFuncs.h:72–81  ·  view source on GitHub ↗

Extract left arg of a binary opclause, or only arg of a unary opclause */

Source from the content-addressed store, hash-verified

70
71/* Extract left arg of a binary opclause, or only arg of a unary opclause */
72static inline Node *
73get_leftop(const void *clause)
74{
75 const OpExpr *expr = (const OpExpr *) clause;
76
77 if (expr->args != NIL)
78 return (Node *) linitial(expr->args);
79 else
80 return NULL;
81}
82
83/* Extract right arg of a binary opclause (NULL if it's a unary opclause) */
84static inline Node *

Callers 15

ProcessOpExprMethod · 0.85
mergejoinscanselFunction · 0.85
print_exprFunction · 0.85
MakeTidOpExprFunction · 0.85
ExecIndexBuildScanKeysFunction · 0.85
TidExprListCreateFunction · 0.85
rel_is_distinct_forFunction · 0.85
addRangeClauseFunction · 0.85
gen_implied_qualsFunction · 0.85

Calls

no outgoing calls

Tested by 1