thomazrossito/data-agents/databricks-lakeflow-connect
Claude Code and agent skill by thomazrossito/data-agents
- community
Checking that the SKILL.md file is still in the repository.
Patterns and best practices for LakeFlow Connect — Databricks native managed ingestion for streaming data from SaaS applications and databases into Unity Catalog. Use when setting up CDC from databases (PostgreSQL, MySQL, SQL Server, Oracle), ingesting from SaaS sources (Salesforce, ServiceNow, Workday, NetSuite), configuring incremental ingestion pipelines, monitoring connector health and lag, or troubleshooting ingestion failures.
Install
npx vskill@latest install thomazrossito/data-agents/databricks-lakeflow-connectSKILL.md
The same SKILL.md was published earlier as thomazrossito/data-agents/databricks-lakeflow-connect.
LakeFlow Connect
LakeFlow Connect is Databricks' managed ingestion product for streaming data from external sources into Unity Catalog using Delta Live Tables (DLT) pipelines. It is GA as of 2025, replacing the need for third-party ETL tools (Fivetran, Airbyte) for supported source types.
LakeFlow Connect é diferente de LakeFlow Pipelines (DLT). Connect = ingestão de fontes externas. Pipelines = transformação Spark/SQL dentro do Databricks.
When to Use
| Use Case | LakeFlow Connect | |
|---|---|---|
| CDC de banco relacional (PostgreSQL, MySQL, SQL Server, Oracle) | ✓ Ideal | |
| Ingestão de SaaS (Salesforce, ServiceNow, Workday, NetSuite) | ✓ Ideal | |
| Streaming de eventos Kafka / Kinesis | ✗ Usar Auto Loader ou structured streaming diretamente | |
| Arquivos em cloud storage (S3, ADLS, GCS) | ✗ Usar Auto Loader | |
| APIs REST customizadas | ✗ Construir pipeline Python custom |
Architecture Overview
- Connectors rodam como DLT pipelines no workspace Databricks
- Dados são escritos em Delta tables no Unity Catalog
- Suporte a full refresh e incremental (CDC via log-based replication)
- Monitoramento via Pipeline Events e métricas nativas do DLT
Supported Sources (GA — Abril 2026)
Database Sources (CDC via log-based replication)
| Source | CDC Method | Notes | |
|---|---|---|---|
| PostgreSQL | Logical replication (pgoutput) | Requer wal_level = logical | |
| MySQL | Binary log (binlog) | Requer binlog_format = ROW | |
| SQL Server | CDC / change tracking | Requer SQL Server CDC habilitado | |
| Oracle | LogMiner | Requer supplemental logging |
SaaS Sources
| Source | Ingestion Type | Notes | |
|---|---|---|---|
| Salesforce | Bulk API 2.0 + incremental | Objects e Custom Objects | |
| ServiceNow | Table API incremental | Suporte a campos sys_updated_on | |
| Workday | Raas Reports incremental | Requer Workday ISU | |
| NetSuite | SuiteQL incremental | Requer token-based auth | |
| Google Analytics 4 | Batch daily | 28 dias de lookback | |
| HubSpot | REST API incremental | Deals, contacts, companies |
Quick Start — Database CDC (PostgreSQL)
1. Pré-requisitos no PostgreSQL
2. Criar Connection no Databricks
3. Criar Ingestion Pipeline
4. Iniciar e Monitorar
Quick Start — SaaS Source (Salesforce)
1. Criar Connection Salesforce
2. Criar Pipeline com objetos específicos
Monitoramento e Observabilidade
Verificar lag de replicação (DB sources)
Verificar tabelas ingeridas e row counts
Alertas recomendados
Transformações Downstream (Silver Layer)
LakeFlow Connect grava na camada Bronze. Use DLT para transformar para Silver no mesmo pipeline ou em pipeline separado:
Schema Evolution
LakeFlow Connect suporta schema evolution automático por padrão:
| Evento | Comportamento padrão | |
|---|---|---|
| Nova coluna no source | Adicionada automaticamente na tabela Delta | |
| Coluna removida no source | Mantida na Delta com NULL para novos registros | |
| Mudança de tipo (ex: INT → BIGINT) | Aceita se compatível (widening); falha se incompatível | |
| Rename de coluna | Tratada como drop + add (coluna antiga com NULLs) |
Para desabilitar evolution automático:
Troubleshooting
| Sintoma | Causa provável | Solução | |
|---|---|---|---|
Pipeline em FAILED com erro de replicação | wal_level não é logical no PostgreSQL | ALTER SYSTEM SET wal_level = logical; SELECT pg_reload_conf(); | |
| Lag crescente no CDC | Tabela source sem índice na PK | Adicionar índice primário + verificar replica identity | |
SaaS connector com RATE_LIMITED | Muitas requisições à API do SaaS | Reduzir frequência de polling em schedule_interval | |
| Tabela com registros duplicados | Pipeline reiniciado sem checkpoint limpo | Verificar _commit_version e deduplificar com MERGE | |
| Schema evolution falhou | Mudança de tipo incompatível (ex: BIGINT → INT) | Recriar tabela destino com novo schema |
Boas Práticas
- Sempre usar Databricks Secrets para credenciais — nunca hardcode em opções do connector
- Nomear connections com ambiente:
postgresql-prod,salesforce-staging - Separar schemas Bronze por source:
bronze_postgresql,bronze_salesforce— facilita lineage - Monitorar `_commit_timestamp` nas tabelas Bronze para detectar lag de CDC
- Usar `continuous=True` apenas para fontes com CDC real (DB). Para SaaS, usar scheduled com
continuous=False - Schema Bronze = append-only: nunca atualizar tabelas Bronze diretamente — deixar o connector gerenciar
- Testar em desenvolvimento primeiro: criar pipeline com
development=Truepara validar configuração antes de produção
Referências
- Databricks Docs: LakeFlow Connect
- Databricks Docs: Supported Sources
- Skill relacionada:
skills/databricks/databricks-spark-declarative-pipelines/— DLT para transformação Silver/Gold - KB relacionada:
kb/pipeline-design/— padrões Medallion e orquestração - KB relacionada:
kb/databricks/— Unity Catalog e Delta Lake
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/databricks/databricks-lakeflow-connect/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 20
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thomazrossito/data-agents/databricks-lakeflow-connect)