Skip to content

Commit ef16cfe

Browse files
committed
make lint
1 parent 9eba34d commit ef16cfe

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/query/storages/fuse/src/io/write/stream/column_statistics_state.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,12 @@ impl ColumnStatisticsState {
101101
col_stats.distinct_of_values = Some(distinct_of_values);
102102
} else if let Some(estimator) = self.distinct_columns.get(&id) {
103103
col_stats.distinct_of_values = Some(estimator.finalize());
104-
} else {
105-
if col_stats.min == col_stats.max {
106-
if col_stats.min.is_null() {
107-
col_stats.distinct_of_values = Some(0);
108-
} else {
109-
col_stats.distinct_of_values = Some(1);
110-
}
104+
} else if col_stats.min == col_stats.max {
105+
// Bloom index will skip the large string column, it also no need to calc distinct values.
106+
if col_stats.min.is_null() {
107+
col_stats.distinct_of_values = Some(0);
108+
} else {
109+
col_stats.distinct_of_values = Some(1);
111110
}
112111
}
113112
statistics.insert(id, col_stats);

0 commit comments

Comments
 (0)