Floe is a Polars-powered data contract runtime for reliable file ingestion. It validates raw files or extracted datasets before they enter your trusted layer, routing accepted rows to lakehouse sinks and rejected rows to quarantine with audit reports.
Use Floe when you already have a platform such as an Iceberg lakehouse on Polaris or Snowflake Open Catalog (with static storage credentials: Floe does not use catalog-vended credentials), run by Dagster or Airflow, but you need a lightweight entry gate for file contracts, quality checks, rejected rows, and run evidence.
Floe complements extract/load tools such as dlt, ingestr, and Airbyte: they get data out of source systems; Floe decides what is allowed into trusted storage.
- Defines source, schema, checks, accepted output, rejected output, write mode, metadata, and reporting in one human-readable YAML contract.
- Reads common file exports and extracted datasets from local or cloud storage.
- Applies schema, casting, nullability, and uniqueness checks before write.
- Writes accepted rows to Parquet or Apache Iceberg (REST catalog), with SCD1 merge on Iceberg.
- Writes invalid rows separately and emits deterministic JSON run reports.
- Runs as a CLI, Docker image, Python library, or orchestrated job.
Each floe run executes a deterministic gate per entity:
| Stage | What happens |
|---|---|
| 1. Resolve inputs | Discover and download source files from local or cloud storage |
| 2. File-level checks | Validate schema structure, file format, and headers |
| 3. Row-level checks | Apply type casting and not_null checks row by row |
| 4. Entity-level checks | Apply unique / primary-key checks across all input rows plus existing accepted data |
| 5. Write outputs | Route valid rows to accepted sinks, invalid rows to rejected sinks, and write reports |
Floe is a Python package. It reads and validates with Polars, writes Iceberg tables through PyIceberg, and runs Iceberg merges through DuckDB, all on a single node. Unique checks against table history semi-join each chunk with Polars against a local cache of the table's key columns.
- Inputs: CSV · TSV · JSON · Parquet · ORC · Avro · XLSX · XML
- Accepted outputs: Parquet · Apache Iceberg
- Storage: local · S3 (and S3-compatible stores) · ADLS · GCS
- Catalogs: Iceberg REST (Polaris) · AWS Glue
Floe 0.8 dropped the DuckDB and fixed-width formats and the Unity catalog (Delta, ADLS and GCS are back). The Rust implementation that supported them (0.7 and earlier) is archived at OpenLakeForge/floe-rust.
Floe needs Python 3.11 or later.
pip install floe-python
floe --versionDocker
docker pull ghcr.io/openlakeforge/floe:latest
docker run --rm -v "$PWD:/work" ghcr.io/openlakeforge/floe:latest run -c /work/config.ymlfloe validate -c config.yml # validate config and schema
floe run -c config.yml # run the pipeline→ Config reference · Example config
The documentation starts at docs/README.md and is published at openlakeforge.dev/floe.
MIT

