MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isProbeSideQualified

Function isProbeSideQualified

src/optimizer/acc_hash_join_optimizer.cpp:147–154  ·  view source on GitHub ↗

Probe side is qualified if it is selective.

Source from the content-addressed store, hash-verified

145
146// Probe side is qualified if it is selective.
147static bool isProbeSideQualified(LogicalOperator* probeRoot) {
148 if (probeRoot->getOperatorType() == LogicalOperatorType::ACCUMULATE) {
149 // No Acc hash join if probe side has already been accumulated. This can be solved.
150 return false;
151 }
152 // Probe side is not selective. So we don't apply acc hash join.
153 return subPlanContainsFilter(probeRoot);
154}
155
156// Find all ScanNodeIDs under root which scans parameter nodeID. Note that there might be
157// multiple ScanNodeIDs matches because both node and rel table scans will trigger scanNodeIDs.

Callers 2

tryProbeToBuildHJSIPFunction · 0.85
visitIntersectMethod · 0.85

Calls 1

subPlanContainsFilterFunction · 0.85

Tested by

no test coverage detected