QuestionQ196

VerifiedData Processing & Transformations

A data engineer has realized that the data files associated with a Delta table are incredibly small. They want to compact the small files to form larger files to improve performance.

Which of the following keywords can be used to compact the small files?

Explanation

The OPTIMIZE command in Databricks reorders data and combines small files into fewer, larger files to improve query performance. This reduces I/O overhead on subsequent queries. REPARTITION redistributes data; VACUUM removes old versions. Only OPTIMIZE addresses the stated goal of file compaction.

Community Discussion

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