Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2026 07:48 AM
Hi @Garybary I am not sure if this trigger supports operations filtering or not but I could suggest you another approach where everytime this job gets triggered you can add a extra check on the first cell of this pipeline notebook or code:
tbl = "catalog.schema.table_name"
last = (spark.sql(f"DESCRIBE HISTORY {tbl}")
.orderBy("version", ascending=False)
.limit(1)
.collect()[0])
op = (last["operation"] or "").upper()
MAINT_OPS = {"VACUUM", "OPTIMIZE", "ZORDER BY"}
if op in MAINT_OPS:
dbutils.notebook.exit(f"SKIP: maintenance operation detected: {op}")