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

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

View File

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

View File

@@ -1304,14 +1304,7 @@ impl TableInternal for NativeTable {
} }
async fn count_rows(&self, filter: Option<String>) -> Result<usize> { async fn count_rows(&self, filter: Option<String>) -> Result<usize> {
let dataset = self.dataset.get().await?; Ok(self.dataset.get().await?.count_rows(filter).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?)
}
} }
async fn add( async fn add(