QuestionQ192

VerifiedProductionizing Data Pipelines

A data engineer has developed an ETL that produce a Delta managed table with liquid clustering feature activated as output. Several consumers are having issues regarding time delay when reading this table.

How could the Data Engineer be sure about the OPTIMIZE command has been executed explicitly?

Explanation

The system.storage.predictive_optimization_operations_history table records only the compaction and clustering runs that Databricks triggers automatically through predictive optimization, so it cannot be used to prove a manual OPTIMIZE was run. Running DESCRIBE HISTORY against the table instead lists every recorded transaction, including any OPTIMIZE command that was explicitly issued, along with its timestamp and the user who ran it, letting the engineer confirm whether and when compaction actually occurred.

Community Discussion

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