Skip to content

Commit cc2a0a1

Browse files
committed
fix
1 parent 6ce8205 commit cc2a0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/cubestore/cubestore/src/queryplanner/planning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ fn optimal_index_by_score<'a, T: Iterator<Item = &'a IdRow<Index>>>(
12741274
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
12751275
let res = match self.index_type {
12761276
IndexType::Regular => match other.index_type {
1277-
IndexType::Regular => core::cmp::Ordering::Equal,
1277+
IndexType::Regular => core::cmp::Ordering::Less,
12781278
IndexType::Aggregate => core::cmp::Ordering::Greater,
12791279
},
12801280
IndexType::Aggregate => match other.index_type {

0 commit comments

Comments
 (0)