Config reference
This document describes the Floe YAML configuration format and the meaning of
all supported options. See example/config.yml for a full working example.
Structure at a glance
Section titled “Structure at a glance”version: "0.8"metadata: { ... }report: path: "/abs/or/relative/report/dir" storage: "s3_raw"env: file: "metadata/env.dev.yml" vars: incoming_path: "/data/incoming"domains: - name: "sales" incoming_dir: "{{incoming_path}}/sales"entities: - name: "customer" domain: "sales" metadata: { ... } incremental_mode: "file" state: path: "./state/customer.json" source: format: "csv" path: "{{domain.incoming_dir}}/customer" options: header: true separator: "," encoding: "utf-8" null_values: ["", "NULL", "null"] recursive: false glob: "*.csv" cast_mode: "strict" sink: accepted: format: "parquet" path: "/path/to/accepted/" rejected: format: "csv" path: "/path/to/rejected/" archive: path: "/path/to/archive/" policy: severity: "reject" schema: normalize_columns: enabled: true strategy: "snake_case" schema_evolution: mode: "strict" on_incompatible: "fail" unique_keys: [["customer_id"]] columns: - name: "customer_id" type: "string" nullable: falseTop-level fields
Section titled “Top-level fields”version(required)- The minimum Floe release the config targets, as a numeric
major.minorstring such as"0.8". - Floe accepts any version from
"0.1"up to its own release ("0.8") and rejects a newer one. Older versions keep their semantics. schema.schema_evolutionrequiresversion >= "0.2".version >= "0.3"qualifies entity identity with its domain (see Entity identity).
- The minimum Floe release the config targets, as a numeric
metadata(optional)- Free-form project metadata. Keys supported in schema:
project,description,owner,tags.
- Free-form project metadata. Keys supported in schema:
report(optional)report.pathis the base directory where run reports are written. If omitted, defaults to"report".report.storage(optional) selects the storage client used for reports. Defaults tostorages.defaultwhen defined, otherwiselocal.- When
report.storageis cloud-based, reports are written via temp upload. Relativereport.pathvalues resolve under the storage prefix. - Reports are written under:
report.path/run_<run_id>/run.summary.jsonandreport.path/run_<run_id>/<entity.name>/run.json; a single-domain run goes underreport.path/<domain>/run_<run_id>/(D37, see report). - A profile’s
report:block can fix the storage and a prefix;report.paththen nests under that prefix and must be relative, without..(see profiles). - Supports
{{var}}templating (see “Templating & domains”).
storages(optional)- Defines named storage clients for
source.storageandsink.*.storage. - If omitted,
localis assumed. - Types:
local,s3,adlsandgcs. Theadlsandgcstypes need theadlsorgcsextra (pip install 'floe-python[adls]'); credentials come from the environment.s3:bucketandregion(required),prefix,endpoint,path_style_access. See S3.adls:accountandcontainer(required),prefix,endpoint(an Azurite-style service). URIs areabfss://<container>@<account>.dfs.core.windows.net/.... See ADLS.gcs:bucket(required),prefix,endpoint(a fake-gcs-server-style service). URIs aregs://<bucket>/.... See GCS.
floe maintainandfloe manifest generate/replayrefuse a config that defines anyadlsorgcsstorage, even an unused one.- Iceberg sinks and
warehouse_storageaccepts3andgcsstorage, notadls. Delta is refused onadlsandgcs.
- Defines named storage clients for
catalogs(optional)- Defines named Iceberg REST catalogs (Polaris, Nessie, Snowflake Open Catalog, etc.). An Iceberg accepted sink requires one (D26).
- Supported types:
restandglue(AWS Glue, restored in 0.8.1).unitywas dropped in 0.8 (D1) and fails validation; the archived OpenLakeForge/floe-rust documents them for 0.7. - Keys:
default(optional): default catalog name used bysink.accepted.iceberg.catalogwhen omitted.definitions(required): array of catalog definitions.name(required)type(required):resturi(required): REST catalog base URIcredential(optional):token:<pat>orclient_credentials:<id>:<secret>;${ENV_VAR}placeholders are resolved from the OS environment at run time, so manifest runs can keep REST catalog secrets out of the manifest artifactwarehouse(optional): warehouse/prefix hint forwarded to the REST catalogoauth2_server_uri(optional): override OAuth2 server URL for client-credentials flowscope(optional): OAuth2 scopewarehouse_storage(optional): storage name for table location resolution; must be an S3 or GCS storagewarehouse_prefix(optional): prefix for deterministic table locations
- Glue definitions (
type: glue) takename,region(required),database(required: the Glue database that holds the tables;{domain}expands per entity to itssink.accepted.iceberg.namespaceordomain),create_database_if_missing(optional, defaulttrue),warehouse_storage(must be an S3 storage) andwarehouse_prefix. Glue supportsoverwriteandappend; merges need a REST catalog. See Iceberg sink.
lineage(optional)- Enables OpenLineage event emission for this run.
url(required): base URL of the OpenLineage-compatible endpoint (e.g.http://marquez:5000)endpoint(optional, defaultapi/v1/lineage): path joined tourlfor POST requestsnamespace(required): OpenLineage namespace for job identitydataset_namespace(optional, defaults tonamespace): namespace for accepted Iceberg output datasetsapi_key(optional): Bearer token; supports{{VAR}}placeholder expansiontimeout_secs(optional, default5): HTTP request timeout in secondsproducer(optional): URI identifying this producer- See OpenLineage integration for full event reference and lifecycle details.
env(optional)- Enables variable templating for string fields using
{{var}}syntax. env.file(optional) loads variables from a YAML file (path relative to the main config file).env.vars(optional) provides inline variables and overridesenv.file.
- Enables variable templating for string fields using
domains(optional)- Named domain roots that can be referenced by entities via
entity.domain. - Example entry:
{ name: "sales", incoming_dir: "{{incoming_path}}/sales" }. incoming_diris required in config version 0.2 and optional from 0.3. The{{domain.incoming_dir}}template is unavailable when it is omitted.defaults(optional, requiresversion: "0.3"): entity fields merged into every entity whosedomainmatches, before parsing. The entity wins; maps merge key by key; lists are replaced, not appended.schema.columnsandschema.primary_keyare never inherited. See Merge rules.
- Named domain roots that can be referenced by entities via
sources(optional, requiresversion: "0.3")- Named, reusable entity
sourceblocks: each entry isnameplus anysourcefields (format,path,storage,options,cast_mode). - A project may load these entries from one
sources.ymlfile withinclude.sources, relative to the main config file. The file has a top-levelsources: [...]array; inlinesourcesandinclude.sourcescannot be combined. - An entity uses one with
source: { ref: <name>, resource: <resource> }. Other fields set on the entity’ssourceoverride the referenced source (maps merge key by key, as for domaindefaults). Domaindefaultsapply beneath the resolved source: entity, then source, then domain defaults. {{resource}}in the sourcepathresolves tosource.resource, which defaults to the entityname.- An unknown
refis an error listing the declared sources.
- Named, reusable entity
include(optional, requiresversion: "0.3")include.sources: path to one file containing a top-levelsources: [...]array. It resolves relative to the main config file.include.domains: glob patterns, relative to the main config file, each matching a domain file (e.g.["silver/*/_domain.yml"]). A domain file holds onedomainsentry; every sibling*.ymlfile holds one entity of that domain. An entity file may omitdomain; if set, it must match the domain file’sname. Included domains and entities are appended after the inlinedomainsandentities, soentitiesmay be omitted.- A domain file may set
entities, a glob relative to the domain file (e.g.entities: "contracts/*.yml"). Its matches replace the sibling files as the domain’s entity files; the domain file itself is never loaded as an entity. Only an included domain file may set it. - A pattern that matches no file is an error, in
include.domainsand in a domain file’sentities. Includes resolve against local files only, so a remote (s3://, …) config cannot use them.
entities(required)- Array of entity definitions (datasets). A single CLI run may process multiple entities.
Merge rules
Section titled “Merge rules”An entity’s final definition is merged in two steps before it is parsed, so every inherited value is validated like an inline one:
- the entity’s own
sourcefields are overlaid on the referenced source; - the resulting entity is overlaid on its domain’s
defaults.
| Case | Rule |
|---|---|
| Precedence | entity > referenced source > domain defaults |
Maps (sink, sink.accepted, source.options, policy, …) |
Merged key by key, at every depth |
| Scalars | The higher layer’s value replaces the lower one |
Lists (source.options.null_values, schema.unique_keys, pii.columns, …) |
The higher layer’s list replaces the lower one; lists are never appended |
schema.columns, schema.primary_key in defaults |
Dropped; never inherited. Other schema keys (normalize_columns, schema_evolution, unique_keys, checks) are |
source.ref |
Set on the entity or in domain defaults.source; the entity’s wins. Removed before merging |
source.resource |
Read from the entity’s source only and removed before merging; in domain defaults it is an unknown field |
{{resource}} |
Replaced in the merged source.path with source.resource, or the entity name when omitted, with or without a named source |
Example: with sources: [{ name: csv_drop, format: csv, path: "./in/{{resource}}.csv", options: { header: true, separator: "," } }],
an entity source: { ref: csv_drop, options: { separator: ";" } } named
orders reads ./in/orders.csv with header: true and separator: ";".
Entity fields
Section titled “Entity fields”name (required)
Section titled “name (required)”Logical dataset name. Used in report and output paths.
metadata (optional)
Section titled “metadata (optional)”Free-form entity metadata. Supported keys: data_product, domain, owner,
description, tags.
domain (optional)
Section titled “domain (optional)”Reference to a domain defined in domains. When set, {{domain.incoming_dir}}
is available for templating within that entity.
runner (optional)
Section titled “runner (optional)”Select a runner declared in the environment profile. A domain can set runner
for its entities; an entity value takes precedence. When neither sets it, the
profile default is used. Validation rejects an undeclared name.
Entity identity
Section titled “Entity identity”With version >= "0.3", an entity with a domain is identified as <domain>.<name>;
otherwise (and in all 0.1/0.2 configs) its identity is the bare name.
- Ids must be unique, so the same
namemay exist in different domains. In0.3,nameanddomainmust be non-empty and must not contain.,/or\. - The id is used for report paths (
run_<id>/<domain>/<name>/run.json), run summary and report entity names, the default incremental state dir (.floe/state/<domain>/<name>/), manifestentities[].name, and OpenLineage job names. Manifestasset_keystays[domain, name]. --entitiesaccepts ids, or bare names when they match a single entity; an ambiguous bare name fails and lists the qualified candidates.floe statetakes the same selectors, andadd-entitytreats the same name in another domain as a new entity.
incremental_mode (optional)
Section titled “incremental_mode (optional)”- Controls incremental ingestion behavior for the entity.
- Supported values:
none(default)archivefilerowwas never implemented and is refused:incremental_mode: rowfails validation.
incremental_mode: archiverequiressink.archive.incremental_mode: fileenables per-file state tracking and skip logic.- For backward compatibility,
sink.archivewithoutincremental_modeis still treated as archive mode, but new configs should setincremental_mode: archiveexplicitly.
state (optional)
Section titled “state (optional)”- Entity-local state settings used by incremental ingestion.
state.path(optional)- Overrides the file or object used to store entity state.
- Supports local paths and URIs on the source storage (
s3://,abfss://,gs://). - Relative paths always resolve as local filesystem paths, regardless of the source storage context. Only explicit URIs use remote storage. A relative override with a cloud source will produce local state and will not benefit from remote claim coordination.
- If omitted and
incremental_mode: fileis used, Floe derives the path under the source root as.floe/state/<entity>/state.json. - For cloud sources, the derived default is a remote object under the source root,
for example
s3://bucket/prefix/incoming/.floe/state/customer/state.json.
File incremental state and concurrency
Section titled “File incremental state and concurrency”incremental_mode: file writes state using schema floe.state.file-ingest.v2.
Existing floe.state.file-ingest.v1 files are still readable; Floe rewrites state
as v2 the next time it updates the entity.
The durable files map tracks file URIs that have completed successfully. The
claims map tracks files currently owned by a run, with run_id, acquisition
time, expiry time, size, and mtime. The default claim TTL is one hour.
Before processing, Floe removes expired claims, skips previously processed files,
and skips files actively claimed by another run with an incremental warning in
the report. New pending files are claimed with an optimistic conditional state
write before accepted sink output is written. On success, the run promotes its
claims into files; on entity failure, it removes its claims so the files can be
retried. Conditional write conflicts are retried a small fixed number of times
and then fail with a clear concurrency error.
Remote state requires object-store permissions to read, write with conditional preconditions, and delete the state object. Normal source listing permissions are still needed for input discovery; state itself does not require listing except where the selected cloud provider or IAM policy requires it for object access.
See Incremental File Ingestion for examples, CLI operations, state file shape, and CAS behavior.
source (required)
Section titled “source (required)”format(required)- Supported:
csv,tsv,parquet,orc,json,xlsx,avro, andxml.fixed(fixed-width) was dropped in 0.8 (D1) and fails validation. - S3 inputs use temp download + local read.
jsonsupports NDJSON and JSON array modes.tsvuses tab-delimited parsing (same options ascsv).xlsxreads Excel worksheets usingsource.options.sheet+ row offsets.xmlreads repeated records usingsource.options.row_tag.
- Supported:
path(required)- Input location. Can be a file, a directory, or a glob pattern
(example:
/data/in/*.csv). - If a directory is provided, a glob is applied to select files.
- Relative paths resolve against the config file directory.
- Supports
{{var}}templating (see “Templating & domains”).
- Input location. Can be a file, a directory, or a glob pattern
(example:
storage(optional)- Name of the storage client to use for this source.
- Defaults to
storages.defaultwhen defined, otherwiselocal.
options(optional)- Format-specific options.
- Defaults if omitted:
header:trueseparator:";"(or"\t"whensource.formatistsv)encoding:"UTF8"null_values:[""](empty fields treated as null by default)recursive:falseglob: (none; default is based onsource.format)json_mode:"array"
glob(optional)- Used only when
source.pathis a directory. - Overrides the default file pattern for the source format:
csv:*.csvtsv:*.tsvparquet:*.parquetorc:*.orcjson:*.jsonxlsx:*.xlsxavro:*.avroxml:*.xml
- If
source.pathitself contains a glob pattern, this option is ignored.
- Used only when
recursive(optional)- If
true, directory globs include subdirectories (via**/).
- If
json_mode(optional)array(default): JSON array ingestion whensource.format: json.ndjson: newline-delimited JSON ingestion.- Nested JSON is supported via
schema.columns[].sourceselectors. - JSON schema mismatch checks only consider top-level selector sources (no
.or[). - For safety, JSON configs are limited to 1024 columns per entity.
row_tag(required,source.format: xml)- Element name used as row boundary (each matching element becomes one record).
namespace(optional,source.format: xml)- Namespace URI used to match
row_tagand selector element tokens.
- Namespace URI used to match
value_tag(optional,source.format: xml)- Optional descendant element used when extracting text content from selector targets.
sheet(optional,source.format: xlsx)- Sheet name to read (defaults to first sheet).
header_row(optional,source.format: xlsx)- 1-based row index for column headers (default: 1).
data_row(optional,source.format: xlsx)- 1-based row index where data starts (default:
header_row + 1).
- 1-based row index where data starts (default:
cast_mode(optional)strict(default): invalid values produce cast errors.coerce: invalid values become null (and may still failnot_null).
partitioning(optional, D28)- For raw layouts such as
<source>/yyyy/MM/dd/<batch>/files:source:path: s3://raw/crm/customer/partitioning:pattern: "{yyyy}/{MM}/{dd}/{batch}" # or "year={yyyy}/month={MM}/day={dd}"date_column: ingest_date # requiredbatch_column: batch_id # optionallookback_days: 1 # optional, file mode (D30) patternis matched against each input’s directory, relative to the source root (the part ofpathbefore any glob). The match is on the whole directory; the file name is free. Tokens are{yyyy},{MM}and{dd}(required),{HH}(optional) and{batch}(optional, one folder name, such as a hash). Other text is literal.- Every row gets
date_column, adate, or adatetimewhen the pattern has{HH}. Withbatch_column, it also gets the{batch}folder name as astring. Both are ordinary columns for keys, merges andpartition_spec(for example{column: ingest_date, transform: day}). They must not also be inschema.columns, before or afternormalize_columns. A file column with the same name is an extra column, handled byschema.mismatch.extra_columns; the value from the path is what is kept. - Inputs are listed recursively, whatever
options.recursivesays. They load by date, then by batch (earliest file modification time first, then name), then by file name.resolved_inputsin the report lists them in that order. - A listed file whose directory doesn’t match, or whose date is invalid (month 13), fails the run before any entity starts. The error names the file and the pattern.
- In archive mode, an input is archived under its partition path:
<archive>/<entity>/yyyy/MM/dd/<batch>/<stem>__run-…__src-….<ext>(D29). A--full-refreshreads the archive recursively and derives the same date and batch from those paths. On object stores (S3), each run also writes one index,<archive>/<entity>/.floe/source_mtime/<run_id>.json, before it archives: a JSON object from each archived file’s path under<entity>/to the source’s modification time. A full refresh merges the indexes to order same-day batches (#939, #1271), since the copy’s own time is its archive time. Archives from before the index keep the time in the copy’s object metadatafloe-source-mtime, which is still read for a file the indexes do not list. A local archive has no index: the copy’s own nanosecond modification time already follows the load order. - With
incremental_mode: file(D30), the state also keeps a watermark: the latest partition date ingested. A run lists only fromwatermark - lookback_days(default1): S3 starts the listing after the previous day’s prefix, a local source skips older directories. Inside that window the per-file state still decides, so a new batch on the same day is picked up. Any claim still in the state holds the window back to its date, so a crashed run’s files are retried. The window needs the date at the front ofpattern({yyyy},{MM},{dd}, no{batch}or{HH}before{dd}); with another pattern the whole source is listed and older files are dropped after listing. - A file landing in a day older than the window is not ingested. Floe can’t see it (it is not
listed), so every run that lists from a watermark logs one warning naming the window. A
--full-refreshlists everything and picks it up. - The watermark moves only forward, when a run promotes its files, in the same state write. A
failed
--full-refreshclears it. If it failed before writing to the sink, it also puts back the claims it replaced (of dead or still running runs), so those files are retried. - Per-file entries older than the window are pruned in the same state write, and the state
records the cut as
pruned_before. It moves only forward, never past a claim’s date, and no normal run lists a date before it, even after raisinglookback_daysor a failed--full-refresh; only a--full-refreshdoes. So the state no longer grows with every file ingested.
- For raw layouts such as
sink (required)
Section titled “sink (required)”write_mode(optional)overwrite(default): remove existing dataset parts, then write new ones.append: add new dataset parts without deleting existing ones.merge_scd1: upsert mode keyed byschema.primary_keyfor Iceberg accepted sinks (D2).- updates matching keys (SCD1) and inserts new keys
- requires
sink.accepted.format: iceberg - requires non-empty
schema.primary_key - optional merge behavior can be configured in
sink.accepted.merge - source rows must be unique on
schema.primary_key: duplicates of the key are rejected before the merge, even underpolicy.severity: warn
merge_scd2: history mode keyed byschema.primary_key.- closes changed current rows and inserts new current versions
- requires
sink.accepted.format: iceberg; the table carries the SCD2 system columns (sink.accepted.merge.scd2), and the report addsclosed_countandunchanged_count - requires non-empty
schema.primary_key - optional merge behavior can be configured in
sink.accepted.merge - source rows must be unique on
schema.primary_key: duplicates of the key are rejected before the merge, even underpolicy.severity: warn
- Applies to the accepted sink only. Rejected CSV, Parquet and Iceberg output always appends, whatever
write_modeis.
accepted(required)format:parquet,icebergordelta.iceberg: Iceberg table in a REST catalog;sink.accepted.icebergwith a catalog is required (0.8). See Iceberg sink.delta: path-based Delta table on local or S3 storage;write_modeoverwriteorappend; needs thedeltaextra.sink.accepted.deltawith atype: unitycatalog registers the table in Unity Catalog (S3 storage; tested against a stub only). See Delta sink.duckdbwas dropped in 0.8 (D1) and fails validation; the archived OpenLakeForge/floe-rust documents it for 0.7.
path: output directory for accepted records.- Supports
{{var}}templating (see “Templating & domains”). storage(optional)- Name of the storage client to use for this sink target.
- Defaults to
storages.defaultwhen defined, otherwiselocal.
options(optional)- Sink tuning options (format support varies).
compression:snappy,gzip,zstd,uncompressedrow_group_size: positive integer (rows per row group)max_size_per_file: positive integer bytes (default: 256MB)- Parquet: split accepted parquet into parts at write time.
- Iceberg: only sets the report’s small-file threshold (half this value).
- Iceberg applies
compressionandrow_group_sizetooverwrite/appenddata files only (not merges); see Iceberg sink. - Accepted rows are written once per entity, after every input file is read: Parquet
parts in one pass, Iceberg in one catalog commit. Inputs are archived (when
sink.archiveis enabled) only after that write succeeds, so an input is never archived unless its rows were written; if the write fails, the inputs stay in the source.
partition_by(optional,sink.accepted.format: delta): identity partition columns, set when the table is created. An existing table partitioned by other columns fails the run withrun_schema_evolution. Other formats:floe validaterejects it. See Delta sink.partition_spec(optional,sink.accepted.format: iceberg)- Array of partition spec entries.
- Each entry supports:
column(required): schema column nametransform(optional, defaultidentity):identity,year,month,day,hour,bucket(D12)num_buckets(required withtransform: bucket, positive; not allowed otherwise)
floe validatechecks column existence and supported transforms.- Runtime wiring is implemented for Iceberg accepted writes (table partition spec + partitioned file layout).
merge(optional, merge modes only)- Supported only when:
sink.accepted.format: icebergsink.write_mode: merge_scd1ormerge_scd2
ignore_columns(optional)- List of schema business columns excluded from merge update/compare behavior.
- Columns must exist in
schema.columns. schema.primary_keycolumns are not allowed.
compare_columns(optional;merge_scd2only:merge_scd1has no change detection and refuses it)- Explicit list of schema business columns used for change detection.
- Columns must exist in
schema.columns. schema.primary_keycolumns are not allowed.- If omitted in
merge_scd2, Floe compares all non-key business columns minusignore_columns.
scd2(optional,merge_scd2only)current_flag_column(default__floe_is_current)valid_from_column(default__floe_valid_from)valid_to_column(default__floe_valid_to)- Custom names must be non-empty, unique, and must not collide with business schema columns.
- Supported only when:
iceberg(required forsink.accepted.format: icebergin 0.8)- Binds the sink to its REST catalog; a catalog-less Iceberg sink is rejected by
floe validate. catalog(optional)- Catalog name from
catalogs.definitions(typerest). - If omitted,
catalogs.defaultis used when set.
- Catalog name from
namespace(optional)- Iceberg namespace; created in the catalog if missing.
- Defaults to
entity.domainwhen present, otherwisedefault.
table(optional)- Logical table name for the catalog registration.
- Defaults to
entity.name(normalized).
location(optional)- Overrides the Iceberg table root location.
- Resolved via
warehouse_storagewhen defined, otherwise via the sink storage. - Without it, the location is
<warehouse_prefix>/<namespace>/<table>when the catalog setswarehouse_storageorwarehouse_prefix, otherwisesink.accepted.path.
- Binds the sink to its REST catalog; a catalog-less Iceberg sink is rejected by
- Accepted output reports may include file sizing metrics (
files_written,total_bytes_written,avg_file_size_mb,small_files_count) when collected by the writer.- Parquet: populated from written parquet files.
- Iceberg: populated from written Iceberg data files (metadata/manifests excluded from size totals).
table_versionin reports is the Iceberg metadata version or the Delta table version;snapshot_idis Iceberg-only.- Floe does not maintain tables during
floe run. Iceberg snapshot expiry, orphan-file removal and (experimental) compaction run separately withfloe maintain(see CLI). schema.schema_evolutionis strict by default.- Runtime support is Iceberg-only and additive-only (D13).
mode: add_columnsadds new source columns to the Iceberg table as nullable columns.- Unsupported changes such as drops, renames, type changes, and non-nullable-to-nullable drift still fail the write.
- The columns are added, but 0.8 does not report it yet: the entity report’s
schema_evolutionblock staysapplied: falseand noschema_evolution_appliedevent is emitted (#994).
- Supports
rejected(required whenpolicy.severityisrejectorabort; D39)format:csv(default),parquetoriceberg.- The
__floe_*columns of each format and the__floe_errorsformat are a versioned contract: see Rejected row envelope.
path: output directory for rejected rows.- Supports
{{var}}templating (see “Templating & domains”). - Rejected outputs are written as dataset parts (
part-*.csvorpart-*.parquet). - With a Parquet accepted sink,
sink.accepted.pathmust differ fromsink.rejected.path, whatever the rejected format:reject_fileandabortcopy the raw file to<path>/<file>, and the accepted Parquet writer would overwrite or delete a copy namedpart-*.parquetthere.floe runrefuses the config. - Parquet output contract (the rows go to
<path>/rows/part-*.parquet, apart from the raw file copies and error reports thatreject_fileandabortput in<path>):- With a Parquet accepted sink,
sink.accepted.pathmust differ from<path>and from<path>/rows: accepted parts there would overwrite the raw file copies or the rejected rows. - Columns are the entity’s declared output columns holding the RAW source values: strings for csv, tsv, fixed, json and xml text inputs, native types for parquet, orc and avro inputs. Values are never cast to the Silver target type.
- Then four metadata columns:
__floe_row_index(UInt64, row index in the whole file),__floe_errors(String, JSON array as in the CSV),__floe_run_id(String) and__floe_source_uri(String). - PII masking applies before the write.
- Declared column names starting with
__floe_are rejected byfloe validatewhensink.rejectedis set. - Parsing normalises nulls and quoting, so byte-faithful replay needs the archived source file
(
output.archived_pathinrun.json), not the rejected Parquet.
- With a Parquet accepted sink,
- Iceberg output contract (
format: iceberg, opt-in quarantine table):- Binds a catalog like the accepted sink:
iceberg: {catalog, namespace, table, location}undersink.rejected. The catalog falls back tocatalogs.default; without onefloe validatefails withsink.rejected.iceberg.catalog is required (or set catalogs.default). The table defaults to<entity>_rejected; naming the accepted table fails withsink.rejected.iceberg must not write to the accepted table.pathandstoragelocate the table as for the accepted sink. - Columns: the declared output columns, ALL
string(a faileddecimalcast lands as the textabc), then__floe_row_index(long),__floe_errors,__floe_run_idand__floe_source_uri(string). Typed inputs are cast to string. - Append only, whatever
sink.write_modeis: one commit per entity run for all its files, never per file or row. Withschema.schema_evolution.mode: add_columnsnew declared columns are added to the table. - The rejected commit happens just BEFORE the accepted commit. The two commits are NOT atomic together: if the
accepted commit fails, the rejected rows stay in their table. The table is at-least-once and append-only: a retry
appends its rows again, so consumers dedupe on
(__floe_source_uri, __floe_row_index), keeping the latest__floe_run_id. - PII masking applies before the write, so the quarantine table holds masked values. Its access and retention are the deployment’s responsibility.
- Whole-file rejects (schema mismatch,
abort) still copy the raw file to<path>/<file>. The table itself defaults to<path>/table, so those copies never sit in the table location (orphan-file cleanup or an overwrite could delete them).iceberg.locationequal topathfailsfloe validatewithsink.rejected.iceberg.location must differ from sink.rejected.path (raw file copies are written to the path). output.rejected_pathis the resolvedpath.- The retry guard keys on
floe.input_hash, the same fingerprint of the run’s completed files as the accepted snapshot.
- Binds a catalog like the accepted sink:
- Supports
archive(optional)path: directory where raw input files are archived after ingestion.- If omitted, archiving is disabled.
- Supports
{{var}}templating (see “Templating & domains”). - Prefer an archive location outside the source path (for example
s3://raw/archive/next tos3://raw/crm/). Nesting it under the source is safe: a normal run never lists the archive as input, and--full-refreshreads it once, explicitly (D31).
pii (optional)
Section titled “pii (optional)”Column-level PII masking applied to accepted rows and to the rejected rows of
policy.severity: reject before they are written.
pii: columns: - name: email strategy: hash - name: credit_card strategy: mask mask_pattern: "{first4}****{last4}" - name: ssn strategy: redact redact_value: "***" - name: notes strategy: dropcolumns(required): array of PII column transformsname(required): schema column name (must matchschema.columns[].name)strategy(required):hash,drop,nullify,redact, ormaskmask_pattern(required forstrategy: mask): literal output string with optional{firstN}/{lastN}tokensredact_value(optional,strategy: redact): replacement string (default[REDACTED])
See PII masking for full strategy reference and masking pattern syntax.
policy (required)
Section titled “policy (required)”severity(required)warn: keep rows, log violations.reject: reject rows with violations (first unique kept, duplicates rejected).abort: abort the entire file on first violation.
rule_severity(optional): a map from a rule towarn,rejectorabort, overridingseverityfor that rule on every column. Keys:not_null,cast_error,out_of_range,not_allowed,pattern_mismatch,length,unique,schema_mismatch,min_rows_per_file, andmin_rows(warnorabortonly, see below). A column’s ownrule_severitywins over this map, and this map wins overseverity. In a domain’sdefaults.policyit merges with the entity’s map key by key.rejectoraborthere requiressink.rejected, andabortis refused withpii. See Checks.max_rejection_rate(optional,severity: rejectonly)- A number in
[0, 1]: the largest fraction of input rows (rejected_total / rows_total) the entity may reject. Above it the entity endsaborted(exit2); at the threshold it staysrejected. The accepted rows are committed either way.nullclears a domain default.
- A number in
min_rows(optional)- An integer
>= 1: the fewest input rows (results.rows_total, rejected rows included) the run’s files must hold. Checked after the commit: below it the entity endsaborted(exit2) atabort, orsuccess_with_warningsatwarn; abort does not roll back, the accepted rows stay committed. The level isrule_severity.min_rows, elseseverity, whererejectcounts asabort. A run whose files are allskipped(anincremental_mode: filerun with no new files) is not checked.min_rowsnever requiressink.rejectedand is allowed withpii.0fails withconfig_invalid_value.
- An integer
min_rows_per_file(optional)- An integer
>= 1: the fewest rows each input file must have (1means no empty file). A file with fewer rows is settled whole byrule_severity.min_rows_per_file(elseseverity):rejectcopies the raw file tosink.rejectedand accepts none of its rows;abortaborts the file and the entity, as any abort does;warnkeeps the rows and counts one warning. The file reports onevalidation.rules[]entrymin_rows_per_filewith emptycolumns.0fails withconfig_invalid_value. A file the reader cannot read (such as a zero-byte CSV with no header) stays an unreadable file onseverity.
- An integer
schema (required)
Section titled “schema (required)”normalize_columns(optional)enabled: boolean toggle.strategy:snake_case,lower,camel_case,none.- When enabled, both schema column names and input column names are normalized
before checks. Two schema columns (or selectors) that normalise to the same name fail
floe validate; an input column that collides with another after normalization fails the run.
schema_evolution(optional, v0.2)- Omitted by default, Floe behaves as
mode: strictandon_incompatible: fail. mode:strictoradd_columns.on_incompatible:fail.mode: add_columnsrequiressink.accepted.format: iceberg(D13).- Current implementation is additive-only:
- new columns are added to the existing Iceberg table as nullable columns
- existing columns must remain compatible (same type, no non-nullable → nullable change, none missing)
- merge-key columns cannot be introduced by evolution during
merge_scd1 - partition spec changes are rejected
- Omitted by default, Floe behaves as
primary_key(optional)- Array of schema column names.
- Primary key columns are always treated as required (
not_null) at runtime. - Config validation rejects
nullable: trueon primary key columns. primary_keyis also enforced as a composite unique constraint.- In
sink.write_mode: merge_scd1ormerge_scd2,primary_keyis the mandatory merge key.
unique_keys(optional)- Array of unique constraints, each constraint being an array of schema column names.
- Supports single-column and multi-column uniqueness:
unique_keys: [["email"], ["id","country_code"]]
- Migration: the per-column
unique: trueflag was removed in 1.0 and now fails validation; replace each flagged columncwith an entry["c"]here. - Null semantics: a row is ignored for a constraint if any key component is null.
columns(required)- Array of column definitions.
name(required): target column name in the output schema.source(optional): source field selector (including nested JSON/XML extraction).- When omitted, defaults to the value of
name. - For CSV/Parquet/ORC/XLSX/Avro, use an input column name.
- For JSON, selectors may include dot notation and
[index](example:user.names[0]). - For XML, selectors support element paths with
.or/, with optional terminal attribute selection (example:order.customer.@idororder/customer/@id). - When
sourceis set,normalize_columnsapplies to the source selector for matching, but the output column name remains the explicitname. - When
sourceis set, validation summaries and row error logs include the source value alongside the column name.
- When omitted, defaults to the value of
type(required): logical type. Accepted values are case-insensitive and normalized by removing-and_.nullable(optional): defaulttrue.min,max(optional): inclusive bounds on an int, float, decimal, date or datetime column (ruleout_of_range). A YAML number or string, converted like a CSV value of the column: quote exact decimals ("99999999.99"), and a datetime bound is normalised to UTC like the column’s values. NaN or infinite bounds andminabovemaxare refused.allowed_values(optional): a non-empty list of all strings or all integers, on an int or string column (rulenot_allowed). Each value must convert to the column type.pattern(optional): a regular expression the whole value of a string column must match (rulepattern_mismatch); Floe adds the anchors. Rustregexsyntax, as run by Polars.min_length,max_length(optional): non-negative bounds on the number of characters of a string column (rulelength), counted in Unicode code points.- A key on a column type it does not apply to fails validation with
config_conflict. See Checks. rule_severity(optional): a map fromnot_null,cast_error,out_of_range,not_allowed,pattern_mismatchorlengthtowarn,rejectorabort, for this column only.not_nullneeds a required column (nullable: falseor inschema.primary_key),cast_errora non-stringcolumn, and each value rule the keys that enable it; otherwise validation fails withconfig_conflict.
checks(optional): row predicates across the columns of a row; see Row predicates.name(required): lower snake_case ([a-z][a-z0-9_]*), unique in the entity, and not a built-in rule name (not_null,cast_error,out_of_range,not_allowed,pattern_mismatch,length,unique,schema_mismatch,schema_error,csv_read_error,unreadable_file,min_rows,min_rows_per_file:config_conflict). It is theruleof the row error and ofvalidation.rules[].left(required): a column ofschema.columns(config_unknown_referenceotherwise).op(required):eq,ne,lt,le,gt,ge(binary) oris_null,not_null(unary). Symbols such as>=are refused.rightorvalue: a binary op takes exactly one, a unary op neither (config_conflict).rightis a column of the same kind asleft(numeric, string, boolean, date or datetime; a date is not compared with a datetime).valueis a literal that must cast toleft’s type; a booleanlefttakes novalue.lt,le,gtandgedo not apply to a string or booleanleft.when(optional): one condition with the keysleft,op,right,valueand the same rules; the check applies only to the rows where it holds.severity(optional):warn,rejectorabort; defaults topolicy.severity. A predicate name is not apolicy.rule_severitykey.
Supported column types
Section titled “Supported column types”The parser accepts the following type names (case-insensitive, - and _
ignored):
string:string,str,textboolean:boolean,boolinteger:int8,int16,int32,int64,int,integer,longunsigned integer:uint8,uint16,uint32,uint64number(float64):number,float64,float,doubledecimal(p,s): exact decimal,1 <= p <= 38and0 <= s <= p(for exampledecimal(19,2)). Cast to a PolarsDecimaland written unchanged as ParquetDECIMAL(p,s)/ Icebergdecimal(p,s). A baredecimalis rejected: Float64 cannot hold exact values, so usedecimal(p,s)orfloat64. Incast_mode: strictexponent notation (1e-3) and a value with more digits than the scale (non-zero digits dropped) or the precision is acast_error; incoerceit is rounded half-even to the scale (out of precision stays an error). JSON numbers keep their written digits fordecimal(p,s)columns.float32:float32date:datedatetime:datetime,timestamp
time is not supported in 0.8 (D10): floe validate rejects it.
For more details about checks and severity behavior, see Checks. Execution order and pipeline phases are documented in How Floe works.
Templating & domains
Section titled “Templating & domains”Floe supports simple placeholder substitution in string fields using {{var}}
syntax. Variables are resolved in this order (lowest to highest precedence):
env.filevariables (YAML map)env.varsinline variables (override file values)
In entity path fields (source.path, sink.accepted.path, sink.rejected.path,
sink.archive.path), {{entity.name}} resolves to the entity’s own name, so
domain defaults can set per-entity paths such as "sales/{{entity.name}}".
If an entity sets domain: "<name>", the following is also available:
{{domain.incoming_dir}}resolved from the matching domain entry.{{domain.name}}the domain name.
Unresolved placeholders (or unknown domains) are configuration errors.
Splitting a single file
Section titled “Splitting a single file”Each step leaves a config that validates; run floe validate -c config.yml
after each. The result matches example/project/; see
Floe Projects for the full walkthrough.
- Set
version: "0.3". - Move repeated input settings into a top-level
sourceslist, and replace each entity’ssourcewith{ ref: <source>, resource: <resource> }. Use{{resource}}in the sourcepathwhere entities differ. - Move the
sourceslist intosources.yml(top-levelsources: [...]), drop it from the root config, and addinclude: { sources: sources.yml }. - Move repeated output and policy settings (
sink,policy, …) into each domain’sdefaults, and delete them from the entities that match. - For each domain, create
<dir>/_domain.ymlwith itsname,defaultsand optionalincoming_dir, and one sibling*.ymlfile per entity (domainmay be omitted there). Remove those domains and entities from the root config and add their glob underinclude.domains, for exampledomains/*/_domain.yml.
Relative paths in included files still resolve against the root config, so source and sink paths need no change when they move.
Synced from floe @ v1.1.0 (313b534), docs/reference/config.md.