{"id":26555293,"url":"https://github.com/macieklesiczka/bazof","last_synced_at":"2025-03-22T10:25:53.672Z","repository":{"id":277982064,"uuid":"934095175","full_name":"MaciekLesiczka/bazof","owner":"MaciekLesiczka","description":"Lakehouse with time travel","archived":false,"fork":false,"pushed_at":"2025-03-21T07:49:45.000Z","size":24803,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T08:31:58.292Z","etag":null,"topics":["datafusion","datalake","lakehouse","parquet","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaciekLesiczka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-17T09:11:30.000Z","updated_at":"2025-03-21T07:49:49.000Z","dependencies_parsed_at":"2025-02-17T11:27:55.258Z","dependency_job_id":"cb6bd046-ab0a-44ec-9acd-0d8d903ed509","html_url":"https://github.com/MaciekLesiczka/bazof","commit_stats":null,"previous_names":["macieklesiczka/bazof"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciekLesiczka%2Fbazof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciekLesiczka%2Fbazof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciekLesiczka%2Fbazof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaciekLesiczka%2Fbazof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaciekLesiczka","download_url":"https://codeload.github.com/MaciekLesiczka/bazof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244940196,"owners_count":20535571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datafusion","datalake","lakehouse","parquet","rust-lang"],"created_at":"2025-03-22T10:25:52.952Z","updated_at":"2025-03-22T10:25:53.663Z","avatar_url":"https://github.com/MaciekLesiczka.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bazof\n\n[![Rust CI](https://github.com/MaciekLesiczka/bazof/actions/workflows/rust.yml/badge.svg)](https://github.com/MaciekLesiczka/bazof/actions/workflows/rust.yml)\n[![Crates.io](https://img.shields.io/crates/v/bazof.svg)](https://crates.io/crates/bazof)\n[![Documentation](https://docs.rs/bazof/badge.svg)](https://docs.rs/bazof)\n[![License](https://img.shields.io/crates/l/bazof.svg)](LICENSE)\n\nQuery tables in object storage as of event time.\n\nBazof is a lakehouse format with time-travel capabilities.\n\n## Project Structure\n\nThe Bazof project is organized as a Rust workspace with multiple crates:\n\n- **bazof**: The core library providing the lakehouse format functionality\n- **bazof-cli**: A CLI utility demonstrating how to use the library\n- **bazof-datafusion**: DataFusion integration for SQL queries\n\n## Getting Started\n\nTo build all projects in the workspace:\n\n```bash\ncargo build --workspace\n```\n\n## Using the CLI\n\nThe bazof-cli provides a command-line interface for interacting with bazof:\n\n```bash\n# Scan a table (current version)\ncargo run -p bazof-cli -- scan --path ./test-data --table table0\n\n# Scan a table as of a specific event time\ncargo run -p bazof-cli -- scan --path ./test-data --table table0 --as-of \"2024-03-15T14:30:00\"\n```\n\n## DataFusion Integration\n\nThe bazof-datafusion crate provides integration with Apache DataFusion, allowing you to:\n\n1. Register Bazof tables in a DataFusion context\n2. Run SQL queries against Bazof tables\n3. Perform time-travel queries using the AsOf functionality\n\n### Example\n\n```rust\nuse bazof_datafusion::BazofTableProvider;\nuse datafusion::prelude::*;\n\nasync fn query_bazof() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let ctx = SessionContext::new();\n    \n    let event_time = Utc.with_ymd_and_hms(2019, 1, 17, 0, 0, 0).unwrap();\n    \n    let provider = BazofTableProvider::as_of(\n        store_path.clone(), \n        local_store.clone(), \n        \"ltm_revenue\".to_string(),\n        event_time\n    )?;\n    \n    ctx.register_table(\"ltm_revenue_jan17\", Arc::new(provider))?;\n    \n    let df = ctx.sql(\"SELECT key as symbol, value as revenue FROM ltm_revenue_jan17 WHERE key IN ('AAPL', 'GOOG') ORDER BY key\").await?;\n    df.show().await?;\n}\n```\n\nRun the example:\n\n```bash\ncargo run --example query_example -p bazof-datafusion\n```\n\nIf you install the CLI with `cargo install --path crates/bazof-cli`, you can run it directly with:\n\n```bash\nbazof-cli scan --path ./test-data --table table0\n```\n\n## Project Roadmap\n\nBazof is under development. The goal is to implement a data lakehouse with the following capabilities:\n\n* Atomic, non-concurrent writes (single writer)\n* Consistent reads\n* Schema evolution\n* Event time travel queries \n* Handling late-arriving data\n* Integration with an execution engine\n\n### Milestone 0\n\n- [x] Script/tool for generating sample kv data set\n- [x] Key-value reader\n- [x] DataFusion table provider\n\n### Milestone 1\n\n - [ ] Multiple columns support\n - [ ] Single row, key-value writer\n - [ ] Document spec\n - [ ] Delta -\u003e snapshot compaction\n - [ ] Metadata validity checks\n\n### Milestone 2\n- [ ] Streaming in scan\n- [ ] Schema definition and evolution\n- [ ] Late-arriving data support\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacieklesiczka%2Fbazof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacieklesiczka%2Fbazof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacieklesiczka%2Fbazof/lists"}