3 releases (breaking)

0.3.0 Aug 19, 2024
0.2.0 Feb 20, 2024
0.1.0 Aug 9, 2021

#286 in Database interfaces

Download history 26/week @ 2024-07-29 6/week @ 2024-08-05 1229/week @ 2024-08-19 1258/week @ 2024-08-26 1893/week @ 2024-09-02 1448/week @ 2024-09-09 891/week @ 2024-09-16 1062/week @ 2024-09-23 230/week @ 2024-09-30 305/week @ 2024-10-07 36/week @ 2024-10-14 18/week @ 2024-10-21 90/week @ 2024-10-28 77/week @ 2024-11-04 48/week @ 2024-11-11

238 downloads per month
Used in 6 crates (5 directly)

Apache-2.0

1.5MB
31K SLoC

Apache Iceberg Official Native Rust Implementation

crates.io docs.rs

This crate contains the official Native Rust implementation of Apache Iceberg.

See the API documentation for examples and the full API.

Usage

use futures::TryStreamExt;
use iceberg::io::{FileIO, FileIOBuilder};
use iceberg::{Catalog, Result, TableIdent};
use iceberg_catalog_memory::MemoryCatalog;

#[tokio::main]
async fn main() -> Result<()> {
    // Build your file IO.
    let file_io = FileIOBuilder::new("memory").build()?;
    // Connect to a catalog.
    let catalog = MemoryCatalog::new(file_io, None);
    // Load table from catalog.
    let table = catalog
        .load_table(&TableIdent::from_strs(["hello", "world"])?)
        .await?;
    // Build table scan.
    let stream = table
        .scan()
        .select(["name", "id"])
        .build()?
        .to_arrow()
        .await?;

    // Consume this stream like arrow record batch stream.
    let _data: Vec<_> = stream. try_collect().await?;
    Ok(())
}

Dependencies

~39–57MB
~1M SLoC