Skip to content

Commit 90bf7cc

Browse files
committed
Add comments
1 parent 5266812 commit 90bf7cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎datafusion/physical-expr/src/expressions/in_list/primitive_filter.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl BitmapFilterType for Int8Type {
9696

9797
#[inline(always)]
9898
fn index(value: Self::Native) -> usize {
99+
// Reinterpret the signed value's bit pattern into a bitmap index.
99100
value as u8 as usize
100101
}
101102
}
@@ -117,6 +118,7 @@ impl BitmapFilterType for Int16Type {
117118

118119
#[inline(always)]
119120
fn index(value: Self::Native) -> usize {
121+
// Reinterpret the signed value's bit pattern into a bitmap index.
120122
value as u16 as usize
121123
}
122124
}

0 commit comments

Comments
 (0)