Parameters for Lakeflow pipelines are now generally available
Use key-value pairs to parameterize Lakeflow pipeline SQL source code and reuse the same logic across different environments.
O que mudou
Use cases
Imagine you need to run the exact same data transformation logic in both development and production environments, changing only the target catalog or source path. Pipeline parameters prevent you from having to manually edit source code for each environment change.
- Reuse the same SQL code across different catalogs, schemas, or tables.
- Define default values in pipeline settings or override them when starting an update.
- Reference parameters directly in SQL source code using named parameter syntax.
How to use
You can define parameters in JSON format within your pipeline settings and reference them in your SQL code.
{
"name": "Sales pipeline",
"parameters": {
"source_catalog": "dev_catalog",
"source_schema": "sales",
"start_date": "2026-01-01"
}
}
What happens in this code:
- The JSON object defines the pipeline name and the parameters map.
- The keys
source_catalog,source_schema, andstart_datereceive default values. - These values can be injected into SQL queries during pipeline execution.
To use the parameter in SQL source code, prefix the name with a colon:
CREATE OR REFRESH MATERIALIZED VIEW transaction_summary AS
SELECT account_id,
COUNT(txn_id) AS txn_count,
SUM(txn_amount) AS account_revenue
FROM :source_catalog.sales.transactions
WHERE txn_date >= :start_date
GROUP BY account_id
What happens in this code:
- Databricks binds the parameter value to the
:source_catalogplaceholder. - The date filter uses
:start_dateto limit the scope of processed data. - The materialized view is created or refreshed using the dynamic runtime values.
Limitations and requirements
- Generally Available (GA) feature.
- Named parameter syntax is supported in SQL source code only.
- Pipelines run a single update at a time; Databricks caps concurrency to 1 in specific job tasks or loops to prevent update overlaps.
- Date filters bounded on both start and end can invalidate incremental processing and trigger a full refresh.
Using it in a pipeline
Use parameters in Bronze or Silver layers to dynamically switch between test and production data sources without altering the underlying code base.
- lakeflow
- pipelines
- sql
- parameters
- etl
Parameters for Lakeflow pipelines are now generally available
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