We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e9b985 commit 8fd286dCopy full SHA for 8fd286d
src/common/column/src/fixedsizebinary/builder.rs
@@ -71,7 +71,7 @@ impl FixedSizeBinaryColumnBuilder {
71
}
72
73
pub fn is_empty(&self) -> bool {
74
- self.len() <= 1
+ self.len() < 1
75
76
77
pub fn memory_size(&self) -> usize {
src/common/column/src/fixedsizebinary/mod.rs
@@ -68,7 +68,7 @@ impl FixedSizeBinaryColumn {
68
69
70
pub fn index(&self, index: usize) -> Option<&[u8]> {
- if index + 1 < self.len() {
+ if index < self.len() {
Some(&self.data[index..index + self.value_length])
} else {
None
0 commit comments