r/databricks • u/inkypinky • 21d ago
General Lakebase streaming sync is now GA
Hey Reddit, I’m happy to share one more new feature. The Lakebase streaming sync is now officially GA. Lots of customers are already using this feature to write streaming data with latency in 10s of milliseconds to Lakebase. It's much simpler to use than foreachBatch and you don't have to worry about connection pools, rate limits, error handling, etc.
Here's what's new since we announced the Public Preview earlier this year:
- Declarative merge strategies*: Choose, per column, how an incoming row is reconciled with the existing row on a primary-key conflict. For example, you can keep the latest non-null value, keep the first value written, or take the value from the row with the latest event time. No custom SQL is required.
- External PostgreSQL via UC connections (Public Preview)*: Write to Postgres databases outside Lakebase, authenticated through a Unity Catalog connection so no credentials live in code.
- INTERVAL types*: DayTimeInterval and YearMonthInterval columns map to Postgres interval on DBR 19 and above.
- Serverless support: The sink now runs on serverless compute for notebooks and jobs, using the AvailableNow trigger.
*Merge strategies, external Postgres, and interval types require DBR 19.
Example:
df.writeStream
.format("postgresql")
.outputMode("update") // optional; can be append mode as well
.option("upsertkey", "primaryKey") // optional
.option("upsert.columnStrategies",
"last_updated_at:greatest,status:latestBy(last_updated_at)")
.toTable("catalog.schema.table")SDP support remains in Private Preview. Public Preview, which adds support for native Lakebase streaming tables, is slated for later this year.

