<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0" -->

---
title: Modernizing SQL ETL in Lakehouse with Declarative Patterns
description: Databricks is bringing declarative ETL patterns to the Lakehouse SQL Editor, letting SQL analysts define APPEND, AUTO CDC, and REPLACE WHERE flows directly in...
canonical: https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Modernizing SQL ETL in Lakehouse with Declarative Patterns | daily.dev
og:description: Databricks is bringing declarative ETL patterns to the Lakehouse SQL Editor, letting SQL analysts define APPEND, AUTO CDC, and REPLACE WHERE flows directly in...
og:url: https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0
og:image: https://api.daily.dev/og/posts/2BcPe5rx0.png
og:image:alt: Modernizing SQL ETL in Lakehouse with Declarative Patterns
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Modernizing SQL ETL in Lakehouse with Declarative Patterns

**[databricks](https://daily.dev/sources/databricks)** · 7 min read · 1 upvotes · 0 comments

## Summary

Databricks is bringing declarative ETL patterns to the Lakehouse SQL Editor, letting SQL analysts define APPEND, AUTO CDC, and REPLACE WHERE flows directly in queries instead of relying solely on the dedicated Lakeflow Pipelines Editor. APPEND flows handle incremental ingestion, AUTO CDC simplifies change-data-capture handling for SCD Type 1/2 without hand-written merge logic, and REPLACE WHERE enables targeted batch recomputation, which Databricks claims runs 3.4x faster and 2.5x cheaper than traditional REPLACE WHERE when powered by its Enzyme incrementalization engine. Genie Code can help generate and refine these declarative flows, and users can mix declarative and procedural SQL, moving to the Pipelines Editor as projects scale.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.databricks.com/blog/modernizing-sql-etl-lakehouse-declarative-patterns>

## Questions this post answers

### What is AUTO CDC in Databricks and how does it simplify change data capture?

AUTO CDC is a declarative flow in Databricks Lakehouse that lets SQL users define change data capture logic with a few lines of code instead of hand-writing MERGE INTO pipelines. It handles keys, sequencing, out-of-order data, and delete handling, and supports storing results as either SCD Type 1 or SCD Type 2, avoiding the incorrect results that manual CDC merge logic can produce.

_Teams evaluating CDC approaches can track declarative ETL updates like these via daily.dev._

### How much faster is Enzyme-powered REPLACE WHERE compared to traditional REPLACE WHERE in Databricks?

In Lakehouse benchmark testing, Enzyme-powered REPLACE WHERE ran 3.4 times faster and 2.5 times cheaper than traditional REPLACE WHERE. Enzyme is the automatic incrementalization engine that identifies and processes only the data changed within a specified predicate, avoiding full recomputes or rewriting the entire matching slice of a target table.

_Engineers optimizing batch recomputation costs can follow performance benchmarks like this through daily.dev._

### Can I use declarative ETL flows directly in the Databricks SQL Editor instead of the Lakeflow Pipelines Editor?

Yes, Databricks now supports declarative APPEND, AUTO CDC, and REPLACE WHERE flows directly within the SQL Editor, so SQL practitioners no longer need to work in the dedicated Lakeflow Pipelines Editor for these common recurring ETL patterns. Users can mix procedural SQL with declarative operations and move to the Pipelines Editor later for larger, multi-file, team-based projects.

_Analysts weighing SQL editor versus dedicated pipeline tooling can compare workflow options through daily.dev._

## Similar posts on daily.dev

- [Stop Hand-Coding Change Data Capture Pipelines](https://daily.dev/posts/stop-hand-coding-change-data-capture-pipelines-wnvuu7hry) · databricks · 0 upvotes · 0 comments
- [What If You Could Skip the CDC Pipeline Entirely?](https://daily.dev/posts/what-if-you-could-skip-the-cdc-pipeline-entirely--wvg3iaboq) · Snowflake Community · 1 upvotes · 0 comments
- [Lakeflow: A new era of agentic data engineering](https://daily.dev/posts/lakeflow-a-new-era-of-agentic-data-engineering-o3y9hgcdq) · databricks · 0 upvotes · 0 comments
- [How Spyne simplified their CDC pipeline with ClickPipes and ClickHouse Cloud](https://daily.dev/posts/how-spyne-simplified-their-cdc-pipeline-with-clickpipes-and-clickhouse-cloud-xtczu2jzw) · ClickHouse · 0 upvotes · 0 comments

---

Tags: [#sql](https://daily.dev/tags/sql), [#apache-spark](https://daily.dev/tags/apache-spark), [#databricks](https://daily.dev/tags/databricks), [#etl](https://daily.dev/tags/etl), [#change-data-capture](https://daily.dev/tags/change-data-capture)

[View this post on daily.dev](https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Modernizing SQL ETL in Lakehouse with Declarative Patterns","url":"https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0"},"datePublished":"2026-08-25T15:58:49.488Z","dateModified":"2026-09-14T07:08:00.781Z","description":"Databricks is bringing declarative ETL patterns to the Lakehouse SQL Editor, letting SQL analysts define APPEND, AUTO CDC, and REPLACE WHERE flows directly in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ce563f77038486a957f6d2377e734d5c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ce563f77038486a957f6d2377e734d5c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"databricks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"databricks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/fa7aa720f2db4d1eba826814730482c8","url":"https://daily.dev/sources/databricks"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"sql,apache-spark,databricks,etl,change-data-capture","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"databricks","item":"https://daily.dev/sources/databricks"},{"@type":"ListItem","position":3,"name":"Modernizing SQL ETL in Lakehouse with Declarative Patterns"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/modernizing-sql-etl-in-lakehouse-with-declarative-patterns-2bcpe5rx0#faq","mainEntity":[{"@type":"Question","name":"What is AUTO CDC in Databricks and how does it simplify change data capture?","acceptedAnswer":{"@type":"Answer","text":"AUTO CDC is a declarative flow in Databricks Lakehouse that lets SQL users define change data capture logic with a few lines of code instead of hand-writing MERGE INTO pipelines. It handles keys, sequencing, out-of-order data, and delete handling, and supports storing results as either SCD Type 1 or SCD Type 2, avoiding the incorrect results that manual CDC merge logic can produce. Teams evaluating CDC approaches can track declarative ETL updates like these via daily.dev."}},{"@type":"Question","name":"How much faster is Enzyme-powered REPLACE WHERE compared to traditional REPLACE WHERE in Databricks?","acceptedAnswer":{"@type":"Answer","text":"In Lakehouse benchmark testing, Enzyme-powered REPLACE WHERE ran 3.4 times faster and 2.5 times cheaper than traditional REPLACE WHERE. Enzyme is the automatic incrementalization engine that identifies and processes only the data changed within a specified predicate, avoiding full recomputes or rewriting the entire matching slice of a target table. Engineers optimizing batch recomputation costs can follow performance benchmarks like this through daily.dev."}},{"@type":"Question","name":"Can I use declarative ETL flows directly in the Databricks SQL Editor instead of the Lakeflow Pipelines Editor?","acceptedAnswer":{"@type":"Answer","text":"Yes, Databricks now supports declarative APPEND, AUTO CDC, and REPLACE WHERE flows directly within the SQL Editor, so SQL practitioners no longer need to work in the dedicated Lakeflow Pipelines Editor for these common recurring ETL patterns. Users can mix procedural SQL with declarative operations and move to the Pipelines Editor later for larger, multi-file, team-based projects. Analysts weighing SQL editor versus dedicated pipeline tooling can compare workflow options through daily.dev."}}]}
```

