chore: bump to 0.10.8 (#1187)

This commit is contained in:
Lei Xu
2024-04-03 16:52:32 -07:00
committed by GitHub
parent f0cd43da69
commit 8687735bea
3 changed files with 6 additions and 13 deletions

View File

@@ -14,10 +14,10 @@ keywords = ["lancedb", "lance", "database", "vector", "search"]
categories = ["database-implementations"]
[workspace.dependencies]
lance = { "version" = "=0.10.7", "features" = ["dynamodb"] }
lance-index = { "version" = "=0.10.7" }
lance-linalg = { "version" = "=0.10.7" }
lance-testing = { "version" = "=0.10.7" }
lance = { "version" = "=0.10.8", "features" = ["dynamodb"] }
lance-index = { "version" = "=0.10.8" }
lance-linalg = { "version" = "=0.10.8" }
lance-testing = { "version" = "=0.10.8" }
# Note that this one does not include pyarrow
arrow = { version = "50.0", optional = false }
arrow-array = "50.0"

View File

@@ -3,7 +3,7 @@ name = "lancedb"
version = "0.6.6"
dependencies = [
"deprecation",
"pylance==0.10.7",
"pylance==0.10.8",
"ratelimiter~=1.0",
"retry>=0.9.2",
"tqdm>=4.27.0",

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(