Skip to content

Commit dd60978

Browse files
author
Matthew Katz
committed
quick fix
Signed-off-by: Matthew Katz <katz@spiraldb.com>
1 parent c1a4568 commit dd60978

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • vortex-array/src/arrays/listview

vortex-array/src/arrays/listview/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ pub trait ListViewArrayExt: TypedArrayRef<ListView> {
466466
/// Returns `Ok(1.0)` when `elements` is empty.
467467
fn estimate_density(&self, ctx: &mut ExecutionCtx) -> VortexResult<f32> {
468468
let n_elts = self.elements().len();
469-
if self.elements().is_empty() {
469+
if n_elts == 0 {
470470
return Ok(1.0);
471471
}
472472

0 commit comments

Comments
 (0)