简体   繁体   中英

How to call vacuum with a dry run in Python for a Delta Lake

I can see an example on how to call the vacuum function for a Delta lake in python here . But how do I call it for only a dry run? In other words, what is the equivalent Python code for the following?

%sql
VACUUM delta.`dbfs:/mnt/<myfolder>` DRY RUN

The dry run for non-SQL code is not yet available in Delta version 0.8.

There is an issue Vacuum dry run unavailable - deleted file information unexposed #454 open on GitHub.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM