diff --git a/crates/core/src/kernel/snapshot/iterators.rs b/crates/core/src/kernel/snapshot/iterators.rs index aff24fb5cf..10671eb409 100644 --- a/crates/core/src/kernel/snapshot/iterators.rs +++ b/crates/core/src/kernel/snapshot/iterators.rs @@ -241,6 +241,14 @@ impl LogicalFileView { .map(|s| round_ms_datetimes(s, &ceil_datetime)) } + /// Return the underlying [DeletionVectorDescriptor] if it exists. + /// + /// **NOTE**: THis API may be removed in the future without deprecation warnings as the + /// utilization of deletion vectors inside of delta-rs becomes more sophisticated. + pub fn deletion_vector_descriptor(&self) -> Option { + self.deletion_vector().map(|dv| dv.descriptor()) + } + /// Returns a view into the deletion vector for this file, if present. fn deletion_vector(&self) -> Option> { let dv_col = self