Skip to content

Commit

Permalink
minor ffi fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed Jul 15, 2024
1 parent 3750c1c commit 5c4ef5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ pub enum KernelError {
InvalidTableLocationError,
InvalidDecimalError,
InvalidStructDataError,
InternalError,
}

impl From<Error> for KernelError {
Expand Down Expand Up @@ -303,6 +304,7 @@ impl From<Error> for KernelError {
Error::InvalidTableLocation(_) => KernelError::InvalidTableLocationError,
Error::InvalidDecimal(_) => KernelError::InvalidDecimalError,
Error::InvalidStructData(_) => KernelError::InvalidStructDataError,
Error::InternalError(_) => KernelError::InternalError,
Error::Backtraced {
source,
backtrace: _,
Expand Down
2 changes: 1 addition & 1 deletion ffi/src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 5c4ef5a

Please sign in to comment.