Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Object Storage (local / cloud)

Schemes: s3://, s3a://, gs://, gcs://, az://, azure://, abfs://, abfss://, local-store://

Query parameters recognised as config fields for this connector. The object-typed csv is set with a JSON literal, e.g. ?csv={...}. Unrecognised parameters are not forwarded as driver options, so any other ?key=value pair is rejected rather than silently ignored.

NameTypeRequiredDefaultDescription
checkpoint_storestringno—(Source only) Durable resume store URL recording the last processed object key, e.g. file:///var/lib/mqb/obj.json, s3://bucket/cursors, or postgres://…. Without it every restart re-lists and re-emits all objects.
compressionnone | gzip | lz4 | zstdnononeWhole-object compression (none, gzip, lz4, zstd). Requires the compression feature.
csvobjectnosee belowCSV dialect (separator, quote, header, columns); only read with format: csv.
cursor_idstringno—(Source only) Cursor id namespacing the checkpoint key; enables durable resume.
date_partitionbooleannonull(Sink only) Prepend a YYYY/MM/DD/ path (write time, UTC) to each object key. Applies to write_time naming only; defaults to on. Purely for readability / lifecycle rules.
date_partition_stylenested | hivenonested(Sink only) Date folder layout: nested (YYYY/MM/DD/) or hive (year=YYYY/month=MM/day=DD/).
delimiterstringno—Record delimiter within an object. Defaults to newline (“\n”). Can be a string or a hex sequence (e.g. “0x00”).
encryptionobjectnonullAt-rest AEAD encryption applied after compression. Requires the encryption feature.
extensionstringno—(Sink only) Extension for written objects, without the dot. Defaults to a value derived from format, compression and encryption (e.g. jsonl, csv, bin, jsonl.gz, jsonl.lz4, jsonl.gz.enc); encrypted objects get a trailing .enc since they are ciphertext, not a directly decompressible .gz.
formatnormal | json | text | raw | csv | parquetnonormalRecord encoding within an object, shared with the file endpoint. Defaults to normal (one JSON CanonicalMessage per line). Parquet needs the parquet feature.
idempotencybooleanno—Deprecated: use name_by. true = source_position, false = write_time; ignored when name_by is set.
max_object_bytesintegerno—(Source only) Maximum size in bytes of a single object to fetch into memory. An object larger than this fails the read (surfaced as a consumer error) instead of being buffered whole. Unset means no limit (the whole object is materialized).
name_byauto | source_position | write_timenoauto(Sink only) auto, write_time (uuidv7 name) or source_position (name carries the source range).
on_decode_errorskip | failnoskip(Source only) An object that cannot be decoded: skip it (default) or fail the route. skip also stops the route while no object has been decoded yet.
polling_interval_msintegerno—(Source only) Idle poll interval in milliseconds when no new objects are found. Defaults to 1000.
urlstringyes—Object-store URL, e.g. file:///var/lib/mqb/incoming, s3://bucket/prefix, gs://bucket/prefix, or az://container/prefix. Credentials are resolved from the environment by the object_store crate (same mechanism as the checkpoint backend); Azure takes the account from AZURE_STORAGE_ACCOUNT_NAME, R2 uses s3:// plus a custom AWS_ENDPOINT_URL.

Struct-typed fields

csv

CSV dialect for format: csv: field separator, quoting, header and nested values.

NameTypeRequiredDefaultDescription
columnsarray of stringno—Column names. A source uses them instead of the header’s; a sink writes exactly these, in this order.
headerbooleanno—Whether the first record names the columns. Defaults to true; a source without one needs columns.
nestedflatten | jsonnoflatten(Sink only) Nested objects: flatten into parent.child columns (default) or json text in one cell.
on_mismatchwarn | failno—(Sink only) A record whose keys differ from the columns: warn (default) writes it anyway, fail rejects it.
quotestringno—Quote character, or none for unquoted fields. Defaults to ".
separatorstringno—Field separator: one character, tab, space, hex (0x1f) or auto (source: guessed from the first record). Defaults to ,.