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

Function haveSameTableIDs

src/optimizer/acc_hash_join_optimizer.cpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static bool haveSameTableIDs(const std::vector<LogicalOperator*>& ops,
76 SemiMaskTargetType targetType) {
77 std::unordered_set<table_id_t> tableIDSet;
78 for (auto id : getTableIDs(ops[0], targetType)) {
79 tableIDSet.insert(id);
80 }
81 for (auto i = 0u; i < ops.size(); ++i) {
82 if (!sameTableIDs(tableIDSet, getTableIDs(ops[i], targetType))) {
83 return false;
84 }
85 }
86 return true;
87}
88
89static bool haveSameType(const std::vector<LogicalOperator*>& ops) {
90 for (auto i = 0u; i < ops.size(); ++i) {

Callers 1

sanityCheckCandidatesFunction · 0.85

Calls 4

getTableIDsFunction · 0.85
sameTableIDsFunction · 0.85
insertMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected