QuestionQ267

VerifiedProductionizing Data Pipelines

A data engineer manages several Unity Catalog-managed Delta tables that need ongoing maintenance. Currently, the engineer manually schedules OPTIMIZE and VACUUM jobs for each table, adjusting the frequency based on how often each table is queried and updated.

The engineer wants to remove this manual maintenance burden and have the platform automatically decide when and how to perform these operations.

Which action should the engineer take to meet these requirements?

Explanation

Databricks predictive optimization automatically runs OPTIMIZE, VACUUM, and ANALYZE on Unity Catalog managed tables (Delta Lake and Iceberg) without requiring manual scheduling. It uses machine learning to monitor table usage and determine the most cost-effective times to compact files and vacuum stale data, eliminating the need to track and tune maintenance schedules manually. This feature can be enabled at the account level for all metastores, and catalogs/schemas inherit that setting by default but can override it, satisfying the requirement to have the platform automatically identify and run these operations across many tables. Liquid Clustering only affects data layout/compaction strategy and doesn't schedule VACUUM; the delta.autoOptimize properties only govern write-time file compaction and do not run VACUUM; Auto Loader is an ingestion tool and does not trigger table maintenance operations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!