Skip to content

Commit

Permalink
calculate cardinality after setting function pointer in rtree scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen committed Nov 4, 2024
1 parent 00b55e1 commit 28cafa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ class RTreeIndexScanOptimizer : public OptimizerExtension {
}

// If there are no table filters pushed down into the get, we can just replace the get with the index scan
const auto cardinality = get.function.cardinality(context, bind_data.get());
get.function = RTreeIndexScanFunction::GetFunction();
const auto cardinality = get.function.cardinality(context, bind_data.get());
get.has_estimated_cardinality = cardinality->has_estimated_cardinality;
get.estimated_cardinality = cardinality->estimated_cardinality;
get.bind_data = std::move(bind_data);
Expand Down

0 comments on commit 28cafa4

Please sign in to comment.