Crates.io | datafusion-delta-sharing |
lib.rs | datafusion-delta-sharing |
version | 0.1.0 |
source | src |
created_at | 2024-02-04 20:42:31.424297 |
updated_at | 2024-02-04 20:42:31.424297 |
description | Delta Sharing integaration for DataFusion |
homepage | |
repository | https://github.com/tdikland/datafusion-delta-sharing |
max_upload_size | |
id | 1126642 |
size | 235,168 |
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.
The crate can be installed using cargo:
cargo add datafusion-delta-sharing
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?;