docs: explain storage reclamation after dropping columns (#5174)

Dropping a column can leave its data in files that the current table
still needs. The schema guide now explains how compaction and retention
determine when cleanup can reclaim those data files and their ordinary
Blob v2 sidecars.
This commit is contained in:
Xuanwo
2026-11-24 13:33:47 +08:00
committed by GitHub
parent ea7b3d0203
commit f183fe14c3
+6
View File
@@ -1519,6 +1519,12 @@ but following the conventions keeps your tables consistent with Enterprise tooli
You can remove columns using the [`drop_columns`](https://lancedb.github.io/lancedb/python/python/#lancedb.table.Table.drop_columns)
method in Python, [`dropColumns`](https://lancedb.github.io/lancedb/js/classes/Table/#dropcolumns) in TypeScript/JavaScript, or `drop_columns` in Rust.
If a data file still stores other columns, the table keeps it and its ordinary
Blob v2 sidecar files when you drop a column or add a new one with the same name.
Compaction can rewrite the current columns into new data files. Cleanup can
reclaim the superseded data files and their sidecars once the applicable retention
window has passed and no retained version, including any tagged version, references
those files. See [Garbage Collection](/maintenance/cleanup).
#### Set Up the example table {#schema-set-up-the-example-table-3}