- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 05:45 AM
Greetings,
I have tried using Spark with DBR 9.1 LTS to run VACUUM on my delta table then DESCRIBE HISTORY to see the operation, but apparently the VACUUM operation was not in the history despite the things stated in the documentation from: https://docs.databricks.com/delta/delta-utility.html#3
From my understanding there should be a "VACUUM" operation in the history table. Can you please confirm if my understanding is correct, or if not can you please improve my understanding why not?
Regards,
Cristian
- Labels:
-
Cristian
-
Delta table
-
VACUUM Operation
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 05:39 PM
To capture the logs for VACUUM operation enable vacuum logging.
spark.conf.set("spark.databricks.delta.vacuum.logging.enabled",True)
On doing so, you'll see two records in the history logs.
- VACUUM START and
- VACUUM END
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 05:39 PM
To capture the logs for VACUUM operation enable vacuum logging.
spark.conf.set("spark.databricks.delta.vacuum.logging.enabled",True)
On doing so, you'll see two records in the history logs.
- VACUUM START and
- VACUUM END
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 12:44 AM
That makes sense, thanks for the reply!