Skip to main content

Crate faucet_sink_delta

Crate faucet_sink_delta 

Source
Expand description

§faucet-sink-delta

Apache Delta Lake sink for the faucet-stream ecosystem. Appends JSON records to a Delta table on the local filesystem or cloud object storage (S3 / Azure / GCS) via the Rust deltalake crate — the idiomatic, high-throughput way to land data for Databricks (and Spark, Trino, DuckDB, Microsoft Fabric) at the open table-format level.

  • Lazily creates the table from the inferred schema on first write (create_if_not_missing), honouring partition_by.
  • Appends one atomic Delta commit per flush.
  • Append-only in v1 — Sink::supported_write_modes returns [Append] (MERGE/upsert is a version-gated follow-up).
  • No datafusion dependency: append uses delta-rs’s low-level RecordBatchWriter.

Cloud backends are opt-in cargo features: s3, azure, gcs.

Structs§

DeltaConnection
Location + credentials for a Delta table. Flattened (#[serde(flatten)]) into both the source and sink config so the same three keys appear at the connector-config top level.
DeltaSink
A sink that appends JSON records to an Apache Delta Lake table.
DeltaSinkConfig
Configuration for the Delta Lake sink connector (append-only in v1).

Enums§

DeltaCredentials
Object-store credentials for reading/writing a Delta table.

Constants§

DEFAULT_SAMPLE_SIZE
Default number of records sampled to infer the table schema on first write.
DESCRIPTOR
The connector’s static descriptor (RFC 0013): its capabilities, answered from config alone.