Create managed tables and multiple append flows in Lakeflow pipelines
Lakeflow now supports creating managed tables fed by one or more append flows, allowing you to migrate Structured Streaming workloads.
O que mudou
Use cases
Imagine you need to consolidate data from two different streaming sources into a single table within Lakeflow. With this feature, you can create managed tables and target multiple append flows to the same destination. It also allows you to:
- Consolidate multiple append flows into a single managed table.
- Migrate existing Structured Streaming workloads without reprocessing the source using checkpoints.
How to use
from pyspark import pipelines as dp
lp.create_table(
name="my_managed_table",
comment="Combined table from two sources"
)
@dp.append_flow(target="my_managed_table")
def stream_a():
return spark.readStream.table("source_a")
@dp.append_flow(target="my_managed_table")
def stream_b():
return spark.readStream.table("source_b")
What happens in this code:
- The
dp.create_tablefunction defines and creates a new managed table within the pipeline. - The
@dp.append_flowdecorator points thestream_afunction to write streaming data into the combined table. - The second
@dp.append_flowdecorator addsstream_bwriting to the same target table.
Limitations and requirements
- This feature is in Beta.
- Managed tables do not support CDC change flows.
- Only append flows (
append_flow) are supported; replace flows are not allowed. - Requires pipelines configured with Unity Catalog.
- You cannot reuse the name of an existing streaming table for a new managed table.
Using it in a pipeline
Use this approach in your Silver or Gold layers to unify real-time ingestion streams coming from different bronze sources into a single consolidated table.
- lakeflow
- pipelines
- streaming
- unity catalog
Managed tables in Lakeflow pipelines (Beta)
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Repositórios de pacotes em nível de workspace para Databricks Apps
Administradores de workspace podem configurar repositórios padrão de pacotes Python e npm para Databricks Apps.
databricks apps · workspace settings - DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis