chore: bump to 0.10.8 (#1187)

This commit is contained in:
Lei Xu
2024-04-03 16:52:32 -07:00
committed by Weston Pace
parent 44d799ebb8
commit e6ff3d848b
3 changed files with 6 additions and 13 deletions

View File

@@ -1304,14 +1304,7 @@ impl TableInternal for NativeTable {
}
async fn count_rows(&self, filter: Option<String>) -> Result<usize> {
let dataset = self.dataset.get().await?;
if let Some(filter) = filter {
let mut scanner = dataset.scan();
scanner.filter(&filter)?;
Ok(scanner.count_rows().await? as usize)
} else {
Ok(dataset.count_rows().await?)
}
Ok(self.dataset.get().await?.count_rows(filter).await?)
}
async fn add(