Skip to content

Commit 8fd286d

Browse files
committed
fix conversation
1 parent 4e9b985 commit 8fd286d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/column/src/fixedsizebinary/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl FixedSizeBinaryColumnBuilder {
7171
}
7272

7373
pub fn is_empty(&self) -> bool {
74-
self.len() <= 1
74+
self.len() < 1
7575
}
7676

7777
pub fn memory_size(&self) -> usize {

src/common/column/src/fixedsizebinary/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl FixedSizeBinaryColumn {
6868
}
6969

7070
pub fn index(&self, index: usize) -> Option<&[u8]> {
71-
if index + 1 < self.len() {
71+
if index < self.len() {
7272
Some(&self.data[index..index + self.value_length])
7373
} else {
7474
None

0 commit comments

Comments
 (0)