Skip to content

Commit c14ae6e

Browse files
committed
escape [] for doc and clippy
1 parent e96a6a3 commit c14ae6e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

datafusion/physical-plan/src/union.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ fn union_distinct_count(
891891
///
892892
/// overlap_a = fraction of A's range that overlaps with B
893893
/// overlap_b = fraction of B's range that overlaps with A
894-
/// NDV = max(overlap_a * NDV_a, overlap_b * NDV_b) [intersection]
894+
/// NDV = max(overlap_a * NDV_a, overlap_b * NDV_b) \[intersection\]
895895
/// + (1 - overlap_a) * NDV_a [only in A]
896896
/// + (1 - overlap_b) * NDV_b [only in B]
897897
fn estimate_ndv_with_overlap(
@@ -1133,15 +1133,16 @@ mod tests {
11331133
#[test]
11341134
fn test_union_distinct_count() {
11351135
// (left_ndv, left_min, left_max, right_ndv, right_min, right_max, expected)
1136-
let cases: Vec<(
1136+
type NdvTestCase = (
11371137
Precision<usize>,
11381138
Option<i64>,
11391139
Option<i64>,
11401140
Precision<usize>,
11411141
Option<i64>,
11421142
Option<i64>,
11431143
Precision<usize>,
1144-
)> = vec![
1144+
);
1145+
let cases: Vec<NdvTestCase> = vec![
11451146
// disjoint ranges: NDV = 5 + 3
11461147
(
11471148
Precision::Exact(5),

0 commit comments

Comments
 (0)