mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-23 05:19:58 +00:00
ci: fix Python and Node CI on main (#2700)
Example failure: https://github.com/lancedb/lancedb/actions/runs/18237024283/job/51932651993
This commit is contained in:
1
.github/workflows/nodejs.yml
vendored
1
.github/workflows/nodejs.yml
vendored
@@ -6,6 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- Cargo.toml
|
||||||
- nodejs/**
|
- nodejs/**
|
||||||
- .github/workflows/nodejs.yml
|
- .github/workflows/nodejs.yml
|
||||||
- docker-compose.yml
|
- docker-compose.yml
|
||||||
|
|||||||
1
.github/workflows/python.yml
vendored
1
.github/workflows/python.yml
vendored
@@ -6,6 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- Cargo.toml
|
||||||
- python/**
|
- python/**
|
||||||
- .github/workflows/python.yml
|
- .github/workflows/python.yml
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,30 @@ the merge result
|
|||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
|
### useIndex()
|
||||||
|
|
||||||
|
```ts
|
||||||
|
useIndex(useIndex): MergeInsertBuilder
|
||||||
|
```
|
||||||
|
|
||||||
|
Controls whether to use indexes for the merge operation.
|
||||||
|
|
||||||
|
When set to `true` (the default), the operation will use an index if available
|
||||||
|
on the join key for improved performance. When set to `false`, it forces a full
|
||||||
|
table scan even if an index exists. This can be useful for benchmarking or when
|
||||||
|
the query optimizer chooses a suboptimal path.
|
||||||
|
|
||||||
|
#### Parameters
|
||||||
|
|
||||||
|
* **useIndex**: `boolean`
|
||||||
|
Whether to use indices for the merge operation. Defaults to `true`.
|
||||||
|
|
||||||
|
#### Returns
|
||||||
|
|
||||||
|
[`MergeInsertBuilder`](MergeInsertBuilder.md)
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
### whenMatchedUpdateAll()
|
### whenMatchedUpdateAll()
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|||||||
@@ -1398,19 +1398,19 @@ impl Tags for NativeTags {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn create(&mut self, tag: &str, version: u64) -> Result<()> {
|
async fn create(&mut self, tag: &str, version: u64) -> Result<()> {
|
||||||
let dataset = self.dataset.get_mut().await?;
|
let dataset = self.dataset.get().await?;
|
||||||
dataset.tags().create(tag, version).await?;
|
dataset.tags().create(tag, version).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn delete(&mut self, tag: &str) -> Result<()> {
|
async fn delete(&mut self, tag: &str) -> Result<()> {
|
||||||
let dataset = self.dataset.get_mut().await?;
|
let dataset = self.dataset.get().await?;
|
||||||
dataset.tags().delete(tag).await?;
|
dataset.tags().delete(tag).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn update(&mut self, tag: &str, version: u64) -> Result<()> {
|
async fn update(&mut self, tag: &str, version: u64) -> Result<()> {
|
||||||
let dataset = self.dataset.get_mut().await?;
|
let dataset = self.dataset.get().await?;
|
||||||
dataset.tags().update(tag, version).await?;
|
dataset.tags().update(tag, version).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user