djouallah opened a new issue, #2720:
URL: https://github.com/apache/iceberg-go/issues/2720

   ### What
   
   Two small additions that would make the `iceberg` CLI usable as a ready-made 
table maintenance job:
   
   1. **A `remove-dangling-deletes` subcommand.** The library has 
`(*table.Table).RemoveDanglingDeleteFiles` (#2408, a port of Java's 
`RemoveDanglingDeleteFilesAction`), but the CLI does not expose it. Today the 
CLI covers `compact`, `expire-snapshots`, `clean-orphan-files` and 
`rewrite-manifests`, so a full maintenance pass (compact → dangling deletes → 
expire → orphans) still needs a custom Go program.
   2. **Prebuilt CLI binaries attached to each release** (linux/amd64 and 
arm64, darwin, windows; `CGO_ENABLED=0` builds). Releases currently ship only 
the source tarball, so anyone who wants to run the CLI has to install a Go 
toolchain and build it first.
   
   ### Why
   
   Without these, every user writes and builds their own wrapper. That is what 
we do: a small Go program over `compaction`, `RemoveDanglingDeleteFiles`, 
`ExpireSnapshots` and `maintenance.DeleteOrphanFiles`, built for linux/amd64 
and committed as a binary, so that a Microsoft Fabric Python notebook can run 
it daily against the tables of a OneLake Iceberg REST catalog. A released 
binary would turn that into "download and run", with no Go anywhere.
   
   Why dangling deletes matter: a table written by a MERGE that deletes builds 
up position delete files that point at data files no longer in the snapshot, 
after compaction rewrites those data files. We saw a table with 534 delete 
files for 15 data files, 520 of them pointing at nothing, and every reader 
opened them all.
   
   Related: #2719 (orphan cleanup deletes hidden paths such as OneLake's 
`_delta_log/`). The CLI's `clean-orphan-files` isn't safe for these tables 
until that's fixed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to