Skip to content

Commit

Permalink
only add unused edges if we have HLL
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed Sep 18, 2024
1 parent 079f7a2 commit b8541f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/optimizer/join_order/cardinality_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,9 @@ DenomInfo CardinalityEstimator::GetDenominator(JoinRelationSet &set) {
for (auto &edge : edges) {
if (subgraphs.size() == 1 && subgraphs.at(0).relations->ToString() == set.ToString()) {
// the first subgraph has connected all the desired relations, just skip the rest of the edges
auto edge_tdom = edge.has_tdom_hll ? edge.tdom_hll : edge.tdom_no_hll;
unused_edge_tdoms.insert(edge_tdom);
if (edge.has_tdom_hll) {
unused_edge_tdoms.insert(edge.tdom_hll);
}
continue;
}

Expand Down

0 comments on commit b8541f3

Please sign in to comment.