mirror of
https://github.com/lancedb/lancedb.git
synced 2026-08-18 12:08:35 +00:00
fix: reject unsafe version cleanup windows
This commit is contained in:
@@ -6,6 +6,7 @@ use std::collections::HashMap;
|
||||
use chrono::{DateTime, Utc};
|
||||
|
||||
use lancedb::ipc::{ipc_file_to_batches, ipc_file_to_schema};
|
||||
use lancedb::table::optimize::validate_cleanup_options;
|
||||
use lancedb::table::{
|
||||
AddDataMode, ColumnAlteration as LanceColumnAlteration, Duration,
|
||||
FieldMetadataUpdate as LanceFieldMetadataUpdate, FtsToken as LanceDbFtsToken,
|
||||
@@ -559,6 +560,7 @@ impl Table {
|
||||
} else {
|
||||
None
|
||||
};
|
||||
validate_cleanup_options(older_than, delete_unverified).default_error()?;
|
||||
|
||||
let compaction_stats = inner
|
||||
.optimize(OptimizeAction::Compact {
|
||||
|
||||
Reference in New Issue
Block a user