Skip to main content

Databases and SaaS ingestion

You'll choose a managed ingestion pattern and know what each one requires in ~5 min.

Prereqs: Data access and ETL

The big picture​

Lakeflow Connect copies data from an external database or SaaS application into Unity Catalog streaming tables. The source credentials live in a Unity Catalog connection. The ingestion pattern decides how Databricks finds new and changed rows.

For databases, start with this choice:

CompareQuery-based connectorsCDC database connectors
GatewayNo ingestion gatewayUses an ingestion gateway for the standard CDC architecture
StagingNo staging volumeStages captured changes in a Unity Catalog volume
Ingestion timingRuns on a scheduleCaptures source changes continuously, then applies them on the ingestion pipeline schedule
Change historyReads the latest row state available to each query. It does not capture intermediate states between runsCaptures intermediate changes recorded by the source change log
Source compatibilityWorks with a broader set of database sources, including sources without CDC supportRequires a supported CDC source and source-side CDC configuration
Source impactQueries source tables directly, which adds source load and can result in slower queriesReads the source change log instead of repeatedly querying source tables

Supported database sources​

CDC connectors are available for MySQL, PostgreSQL, SQL Server, and Oracle. Direct query-based connections support Oracle, Teradata, SQL Server, MySQL, MariaDB, and PostgreSQL. Query-based ingestion through a foreign catalog supports Lakehouse Federation data sources.

The screenshots in both walkthroughs show SQL Server. Other supported database connectors follow the same overall workspace workflow. Source preparation, authentication methods, and available settings vary by connector, so check the documentation for your database before you start. The CDC walkthrough uses the standard gateway-based architecture. SQL Server also supports integrated CDC with a single pipeline, which is outside this walkthrough.

Build an ingestion pipeline​

  • Change data capture (CDC): create a database connection, gateway, and ingestion pipeline, then validate the source and select tables to ingest.
  • Query-based ingestion: query a database incrementally with a cursor column and load the result into Unity Catalog.

Video tutorials​

SQL Server change data capture (CDC)​

Salesforce​

SharePoint​

ServiceNow​

Deploy with DABs​

Use a Declarative Automation Bundle when the pipeline should be version-controlled and repeatable across environments.

  • DABs definition: define and deploy a gateway and ingestion pipeline as code.

Next​