fix(stats): count_rows filter 类型修正 Option<&str> -> Option<String>

f6c4383 的 count_rows(Some("is_deleted = true")) 编译失败(E0308: 此 lance 版本
签名 Option<String>)。修正为 .to_string()。实测 stats tombstone_count=830
(memories 表 is_deleted=true 行数, 之前恒 0)。
This commit is contained in:
小唯 2026-09-06 09:25:27 +08:00
parent f6c4383f98
commit 1bf23c42e8
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ impl LanceDBOps {
if let Ok(cnt) = rt().block_on(tbl.count_rows(None)) { m = cnt; }
// tombstone_count = memories 中 is_deleted=true 的行(软删审计语义;
// SoftDelete 持久化标记 is_deleted 而非写独立 tombstones 表2026-09-06 修正统计源)
if let Ok(tc) = rt().block_on(tbl.count_rows(Some("is_deleted = true"))) { t = tc; }
if let Ok(tc) = rt().block_on(tbl.count_rows(Some("is_deleted = true".to_string()))) { t = tc; }
} else if let Ok(cnt) = rt().block_on(tbl.count_rows(None)) {
match name.as_str() {
"episodes" => e = cnt,