mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-06 20:02:58 +00:00
chore: bump to 0.10.8 (#1187)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user