From 1f0f3661f4d73da05e4ffcef47135ddfa0250217 Mon Sep 17 00:00:00 2001 From: Mahmoud Khalaf Date: Mon, 28 Oct 2024 05:07:53 +0100 Subject: [PATCH] fixup! codecov --- src/engine/joinOrdering/CostCout.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/engine/joinOrdering/CostCout.cpp b/src/engine/joinOrdering/CostCout.cpp index 314e4b7f7f..b425bf2beb 100644 --- a/src/engine/joinOrdering/CostCout.cpp +++ b/src/engine/joinOrdering/CostCout.cpp @@ -60,10 +60,11 @@ requires RelationAble unsigned long long cardinality( selectivity(l, r, selectivities); if (l) return cardinality(n->left, cardinalities, selectivities); - if (r) return cardinality(n->right, cardinalities, selectivities); + // if (r) return cardinality(n->right, cardinalities, selectivities); + return cardinality(n->right, cardinalities, selectivities); - AD_CONTRACT_CHECK("How Did We Get Here?"); - return 0; + // AD_CONTRACT_CHECK("How Did We Get Here?"); + // return 0; } template @@ -117,10 +118,10 @@ requires RelationAble double Cout( Cout(r, cardinalities, selectivities); if (l) return Cout(l, cardinalities, selectivities); - if (r) return Cout(r, cardinalities, selectivities); - - AD_CONTRACT_CHECK("How Did We Get Here?"); - return 0; + // if (r) return Cout(r, cardinalities, selectivities); + return Cout(r, cardinalities, selectivities); + // AD_CONTRACT_CHECK("How Did We Get Here?"); + // return 0; } template double Cout(const JoinTree& t,