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

Function isNotDistinctJoin

src/backend/executor/nodeHashjoin.c:1812–1831  ·  view source on GitHub ↗

Is this an IS-NOT-DISTINCT-join qual list (as opposed the an equijoin)? * * XXX We perform an abbreviated test based on the assumptions that * these are the only possibilities and that all conjuncts are * alike in this regard. */

Source from the content-addressed store, hash-verified

1810 * alike in this regard.
1811 */
1812static bool
1813isNotDistinctJoin(List *qualList)
1814{
1815 ListCell *lc;
1816
1817 foreach(lc, qualList)
1818 {
1819 BoolExpr *bex = (BoolExpr *) lfirst(lc);
1820 DistinctExpr *dex;
1821
1822 if (IsA(bex, BoolExpr) &&bex->boolop == NOT_EXPR)
1823 {
1824 dex = (DistinctExpr *) linitial(bex->args);
1825
1826 if (IsA(dex, DistinctExpr))
1827 return true; /* We assume the rest follow suit! */
1828 }
1829 }
1830 return false;
1831}
1832#endif
1833
1834static void

Callers 1

ExecInitHashJoinFunction · 0.85

Calls 1

foreachFunction · 0.50

Tested by

no test coverage detected