Skip to content

Commit e6d5eae

Browse files
committed
I'm just impatiant
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent e861c26 commit e6d5eae

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

vortex-ffi/src/data_source.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::sync::Arc;
99

1010
use vortex::error::VortexResult;
1111
use vortex::error::vortex_ensure;
12+
use vortex::expr::stats::Precision::Absent;
1213
use vortex::expr::stats::Precision::Exact;
1314
use vortex::expr::stats::Precision::Inexact;
1415
use vortex::file::multi::MultiFileDataSource;
@@ -124,7 +125,7 @@ pub unsafe extern "C-unwind" fn vx_data_source_get_row_count(
124125
rc.r#type = vx_estimate_type::VX_ESTIMATE_INEXACT;
125126
rc.estimate = rows;
126127
}
127-
None => {
128+
Some(Absent) | None => {
128129
rc.r#type = vx_estimate_type::VX_ESTIMATE_UNKNOWN;
129130
}
130131
}

vortex-ffi/src/scan.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ pub unsafe extern "C-unwind" fn vx_data_source_scan(
238238
scan.partition_count().map(|x| match x {
239239
Precision::Exact(v) => Precision::Exact(v as u64),
240240
Precision::Inexact(v) => Precision::Inexact(v as u64),
241+
Precision::Absent => Precision::Absent,
241242
}),
242243
unsafe { &mut *estimate },
243244
);

0 commit comments

Comments
 (0)