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

Function fix_opfuncids_walker

src/backend/nodes/nodeFuncs.c:1717–1731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1715}
1716
1717static bool
1718fix_opfuncids_walker(Node *node, void *context)
1719{
1720 if (node == NULL)
1721 return false;
1722 if (IsA(node, OpExpr))
1723 set_opfuncid((OpExpr *) node);
1724 else if (IsA(node, DistinctExpr))
1725 set_opfuncid((OpExpr *) node); /* rely on struct equivalence */
1726 else if (IsA(node, NullIfExpr))
1727 set_opfuncid((OpExpr *) node); /* rely on struct equivalence */
1728 else if (IsA(node, ScalarArrayOpExpr))
1729 set_sa_opfuncid((ScalarArrayOpExpr *) node);
1730 return expression_tree_walker(node, fix_opfuncids_walker, context);
1731}
1732
1733/*
1734 * set_opfuncid

Callers 1

fix_opfuncidsFunction · 0.85

Calls 3

set_opfuncidFunction · 0.85
set_sa_opfuncidFunction · 0.85
expression_tree_walkerFunction · 0.85

Tested by

no test coverage detected