diff --git a/ffi/src/lib.rs b/ffi/src/lib.rs index cf3685896..0942056f3 100644 --- a/ffi/src/lib.rs +++ b/ffi/src/lib.rs @@ -263,6 +263,7 @@ pub enum KernelError { InvalidTableLocationError, InvalidDecimalError, InvalidStructDataError, + InternalError, } impl From for KernelError { @@ -303,6 +304,7 @@ impl From for KernelError { Error::InvalidTableLocation(_) => KernelError::InvalidTableLocationError, Error::InvalidDecimal(_) => KernelError::InvalidDecimalError, Error::InvalidStructData(_) => KernelError::InvalidStructDataError, + Error::InternalError(_) => KernelError::InternalError, Error::Backtraced { source, backtrace: _, diff --git a/ffi/src/scan.rs b/ffi/src/scan.rs index e4e9c5867..cbee3ee3f 100644 --- a/ffi/src/scan.rs +++ b/ffi/src/scan.rs @@ -5,7 +5,7 @@ use std::ffi::c_void; use std::sync::{Arc, Mutex}; use delta_kernel::scan::state::{visit_scan_files, DvInfo, GlobalScanState}; -use delta_kernel::scan::{Scan, ScanBuilder, ScanData}; +use delta_kernel::scan::{Scan, ScanData}; use delta_kernel::schema::Schema; use delta_kernel::snapshot::Snapshot; use delta_kernel::{DeltaResult, EngineData, Error};