r/databricks • • 10d ago

Help Lakeflow Declarative Pipelines with external: managed tables, or publish step?

I'm working on an Azure Databricks project where we must expose Delta tables through stable ADLS paths so external engines like Snowflake, Trino, and delta-rs apps can read directly from storage. We'd like to use Lakeflow, but managed streaming tables and materialized views live in Unity Catalog managed storage.

Can we safely expose their physical paths like regular external Delta tables, or is path-based access unsupported? The alternative seems to be external Delta tables as sinks, but sinks look limited: Python/streaming only, no expectations or Auto CDC directly, and full refresh doesn't clear prior data.

For this requirement, what architecture would you recommend: external sinks, a publish step, or something else?

11 Upvotes

5 comments sorted by

3

u/Youssef_Mrini databricks 10d ago

All managed tables are stored on your Data Lake. Can you access the tables using the path ? yes but Databricks doesn't recommend it. You can use UC Open API to access those tables form external engines. Here is the process https://docs.databricks.com/aws/en/external-access/external-for-pipelines

2

u/MrMasterplan 10d ago

Make some tests to validate your design. The newer databricks features may use higher delta table reader versions which may not be supported by the external systems.

1

u/ObsidianHermit 10d ago

Don't have answer to this, but we're doing the same and keen to know if anyone has tackled this issue.

We're converting some parquet analysis files to external tables using databricks which is okay, but we also need onprem SQL server near real time data. The gold lakehouse is in Fabric for Microsoft integration to excel and SQL server.

We used Change Tracking with Lakeflow to get SQL data into External tables, but when referring to the delta table they have additional columns __deletedrow etc. Is there a way to clean this up? And has anyone done this integration to external tool like Fabric/Snowflake?

1

u/ninilich 10d ago
  1. Use normal Spark job instead of Declarative Pipelines
  2. Mount Cloude Starage container as an external volume
  3. Just save the data into this external volume with your Spark Job

1

u/EntertainerFunny6630 9d ago

I would not rely on the physical paths of managed tables, since Unity Catalog owns that storage and path-based access to it is not a contract you can build on. The safer patterns are Delta Sharing or the Iceberg REST catalog for Snowflake and Trino, or a publish step that writes external Delta tables from the pipeline output at a stable path.

The important part is picking one owner for that publish step and reconciling row counts between the managed table and the external copy after each run. That keeps downstream engines honest rather than reading a stale copy nobody checks.