Skip to content

Commit

Permalink
run format-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoying committed Apr 15, 2024
1 parent cd749b0 commit 1198baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/optimizer/join_order/cardinality_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void CardinalityEstimator::AddRelationTdom(FilterInfo &filter_info) {

bool CardinalityEstimator::SingleRelationFilter(FilterInfo &filter_info) {
if (filter_info.left_set && filter_info.right_set && filter_info.set.count > 1) {
// Both set and are from different relations
// Both set and are from different relations
return false;
}
if (EmptyFilter(filter_info)) {
Expand Down Expand Up @@ -100,7 +100,7 @@ void CardinalityEstimator::InitEquivalentRelations(const vector<unique_ptr<Filte
// For each filter, we fill keep track of the index of the equivalent relation set
// the left and right relation needs to be added to.
for (auto &filter : filter_infos) {
if (SingleRelationFilter(*filter)) {
if (SingleRelationFilter(*filter)) {
// Filter on one relation, (i.e string or range filter on a column).
// Grab the first relation and add it to the equivalence_relations
AddRelationTdom(*filter);
Expand Down

0 comments on commit 1198baa

Please sign in to comment.