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

Function appendKeyIfInScope

src/optimizer/unwind_dedup_optimizer.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static bool appendKeyIfInScope(binder::expression_vector& keys,
51 std::unordered_set<std::string>& names, const LogicalOperator& op,
52 const std::shared_ptr<binder::Expression>& key) {
53 auto schema = op.getSchema();
54 if (!schema->isExpressionInScope(*key)) {
55 return false;
56 }
57 if (names.insert(key->getUniqueName()).second) {
58 keys.push_back(key);
59 }
60 return true;
61}
62
63static binder::expression_vector getDedupKeyExpressions(const LogicalMerge& merge,
64 const LogicalOperator& op) {

Callers 1

getDedupKeyExpressionsFunction · 0.85

Calls 4

isExpressionInScopeMethod · 0.80
insertMethod · 0.45
getUniqueNameMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected