Saving an unchanged job no longer adds rows to system tables
Update prevents saving an unchanged job from adding unnecessary records to Lakeflow system tables.
O que mudou
Saving a job in the UI, via the Jobs API, or using Declarative Automation Bundles without changing any settings no longer generates new rows in the system.lakeflow.jobs or system.lakeflow.job_tasks tables. The change_time field remains at the timestamp of the last actual modification.
Use cases
Imagine you open an existing job just to inspect parameters in the UI and click save without changing anything. Previously, this generated a new row in the Lakeflow system tables, cluttering the change history (SCD2). Now, the history stays clean and reflects only actual modifications.
How to use
You can query the current state of jobs in the system tables by filtering for the latest modification:
-- Get the current state of every job, excluding deleted jobs
WITH latest AS (
SELECT
*,
ROW_NUMBER() OVER(PARTITION BY workspace_id, job_id ORDER BY change_time DESC) AS rn
FROM
system.lakeflow.jobs
QUALIFY rn = 1
)
SELECT * FROM latest WHERE delete_time IS NULL;
What happens in this code:
- The query partitions by
workspace_idandjob_idto order rows by the latest change timestamp (change_time). - The
ROW_NUMBER()function identifies the newest version of each job in the SCD2-backed table. - The final filter ensures only active jobs are returned by excluding those with a populated
delete_time.
Limitations and requirements
- This applies to saves performed via the UI, Jobs API, and Asset Bundles.
- To access Lakeflow system tables, users must be metastore/account admins or have
USEandSELECTpermissions on the system schemas.
- system tables
- jobs
- lakeflow
- audit logs
- unity catalog
Saving an unchanged job no longer adds rows to the jobs system tables
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
- DatabricksBeta
Conector do SurveyMonkey chega ao Lakeflow Connect no Databricks
O Lakeflow Connect agora conta com conector nativo para o SurveyMonkey em Beta, permitindo ingestão incremental de pesquisas, respostas e contatos com governança no Unity Catalog.
lakeflow connect · surveymonkey - DatabricksBeta
Lakeflow Connect adiciona conector do Oracle Eloqua em Beta
O Lakeflow Connect agora oferece um conector gerenciado em Beta para o Oracle Eloqua, permitindo ingestão incremental de dados de marketing governados pelo Unity Catalog.
lakeflow connect · oracle eloqua - DatabricksBeta
Ingira métricas do GA4 com o novo conector do Lakeflow Connect
O Lakeflow Connect ganha conector gerenciado em Beta para o Google Analytics 4, permitindo ingestão incremental de relatórios agregados via API com governança no Unity Catalog.
lakeflow connect · google analytics