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

Function sameTableIDs

src/optimizer/acc_hash_join_optimizer.cpp:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static bool sameTableIDs(const std::unordered_set<table_id_t>& set,
63 const std::vector<table_id_t>& ids) {
64 if (set.size() != ids.size()) {
65 return false;
66 }
67 for (auto id : ids) {
68 if (!set.contains(id)) {
69 return false;
70 }
71 }
72 return true;
73}
74
75static bool haveSameTableIDs(const std::vector<LogicalOperator*>& ops,
76 SemiMaskTargetType targetType) {

Callers 1

haveSameTableIDsFunction · 0.85

Calls 2

sizeMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected