1 unstable release

0.1.0 Feb 4, 2024

#1254 in Database interfaces

MIT license

130KB
3K SLoC

DataFusion Delta Sharing

This create provides the integration between Delta Sharing and DataFusion.

Delta Sharing is an open protocol for securely sharing large datasets. It is a REST protocol that securely provides access to a part of a cloud dataset stored on popular cloud storage systems like S3, ADLS, and GCS.

Maintenance main crates-io api-docs

Installation

The crate can be installed using cargo:

cargo add datafusion-delta-sharing

Example

An example of the integration is shown below:

use std::sync::Arc;
use datafusion::prelude::*;

use datafusion_delta_sharing::DeltaSharingTable;

let ctx = SessionContext::new();
let table = DeltaSharingTable::try_from_str("./path/to/profile.share#share.schema.table").await?;

ctx.register_table("demo", Arc::new(table))?;
ctx.sql("select * from demo").await?.show().await?;

Dependencies

~47–64MB
~1.5M SLoC