MCPcopy Create free account
hub / github.com/bytedance/bolt / canDropDuplicates

Function canDropDuplicates

bolt/exec/HashJoinBridge.cpp:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198bool canDropDuplicates(
199 const std::shared_ptr<const core::HashJoinNode>& joinNode) {
200 // Left semi and anti join with no extra filter only needs to know whether
201 // there is a match. Hence, no need to store entries with duplicate keys.
202 return !joinNode->filter() &&
203 (joinNode->isLeftSemiFilterJoin() || joinNode->isLeftSemiProjectJoin() ||
204 joinNode->isAntiJoin());
205}
206
207uint64_t HashJoinMemoryReclaimer::reclaim(
208 memory::MemoryPool* pool,

Callers 2

makeTableTypeFunction · 0.85
HashBuildMethod · 0.85

Calls 4

isLeftSemiFilterJoinMethod · 0.80
isLeftSemiProjectJoinMethod · 0.80
isAntiJoinMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected