Apache Iceberg Official Native Rust Implementation

This crate contains the official Native Rust implementation of Apache Iceberg.
See the API documentation for examples and the full API.
Usage
use std::collections::HashMap;
use std::sync::Arc;
use futures::TryStreamExt;
use iceberg::io::MemoryStorageFactory;
use iceberg::memory::{MemoryCatalogBuilder, MEMORY_CATALOG_WAREHOUSE};
use iceberg::{Catalog, CatalogBuilder, Result, TableIdent};
#[tokio::main]
async fn main() -> Result<()> {
let catalog = MemoryCatalogBuilder::default()
.with_storage_factory(Arc::new(MemoryStorageFactory))
.load(
"my_catalog",
HashMap::from([(MEMORY_CATALOG_WAREHOUSE.to_string(), "/tmp/warehouse".to_string())]),
)
.await?;
let table = catalog
.load_table(&TableIdent::from_strs(["hello", "world"])?)
.await?;
let stream = table
.scan()
.select(["name", "id"])
.build()?
.to_arrow()
.await?;
let _data: Vec<_> = stream.try_collect().await?;
Ok(())
}
Storage Backends
For storage backend support (S3, GCS, local filesystem, etc.), use the iceberg-storage-opendal crate. See its README for available backends and feature flags.