Skip to content

Commit

Permalink
Expose the deltalake-aws crate from the meta crate when present
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler committed Dec 30, 2023
1 parent eb898bf commit 00c56ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/deltalake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
* The deltalake crate is currently just a meta-package shim for deltalake-core
*/
pub use deltalake_core::*;

#[cfg(any(feature="s3", feature="s3-native-tls"))]
pub use deltalake_aws as aws;
2 changes: 2 additions & 0 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,8 @@ impl PyDeltaDataChecker {
// module name need to match project name
fn _internal(py: Python, m: &PyModule) -> PyResult<()> {
use crate::error::{CommitFailedError, DeltaError, TableNotFoundError};

deltalake::aws::register_handlers(None);
m.add("DeltaError", py.get_type::<DeltaError>())?;
m.add("CommitFailedError", py.get_type::<CommitFailedError>())?;
m.add("DeltaProtocolError", py.get_type::<DeltaProtocolError>())?;
Expand Down

0 comments on commit 00c56ed

Please sign in to comment.