@lancedb/lancedb 0.22.1 → 0.22.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arrow.d.ts +1 -1
- package/dist/arrow.js +1 -1
- package/dist/merge.d.ts +11 -0
- package/dist/merge.js +13 -0
- package/dist/native.d.ts +1 -0
- package/package.json +9 -9
package/dist/arrow.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare class MakeArrowTableOptions {
|
|
|
85
85
|
constructor(values?: Partial<MakeArrowTableOptions>);
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* An enhanced version of the
|
|
88
|
+
* An enhanced version of the apache-arrow makeTable function from Apache Arrow
|
|
89
89
|
* that supports nested fields and embeddings columns.
|
|
90
90
|
*
|
|
91
91
|
* (typically you do not need to call this function. It will be called automatically
|
package/dist/arrow.js
CHANGED
|
@@ -212,7 +212,7 @@ class MakeArrowTableOptions {
|
|
|
212
212
|
}
|
|
213
213
|
exports.MakeArrowTableOptions = MakeArrowTableOptions;
|
|
214
214
|
/**
|
|
215
|
-
* An enhanced version of the
|
|
215
|
+
* An enhanced version of the apache-arrow makeTable function from Apache Arrow
|
|
216
216
|
* that supports nested fields and embeddings columns.
|
|
217
217
|
*
|
|
218
218
|
* (typically you do not need to call this function. It will be called automatically
|
package/dist/merge.d.ts
CHANGED
|
@@ -45,6 +45,17 @@ export declare class MergeInsertBuilder {
|
|
|
45
45
|
whenNotMatchedBySourceDelete(options?: {
|
|
46
46
|
where: string;
|
|
47
47
|
}): MergeInsertBuilder;
|
|
48
|
+
/**
|
|
49
|
+
* Controls whether to use indexes for the merge operation.
|
|
50
|
+
*
|
|
51
|
+
* When set to `true` (the default), the operation will use an index if available
|
|
52
|
+
* on the join key for improved performance. When set to `false`, it forces a full
|
|
53
|
+
* table scan even if an index exists. This can be useful for benchmarking or when
|
|
54
|
+
* the query optimizer chooses a suboptimal path.
|
|
55
|
+
*
|
|
56
|
+
* @param useIndex - Whether to use indices for the merge operation. Defaults to `true`.
|
|
57
|
+
*/
|
|
58
|
+
useIndex(useIndex: boolean): MergeInsertBuilder;
|
|
48
59
|
/**
|
|
49
60
|
* Executes the merge insert operation
|
|
50
61
|
*
|
package/dist/merge.js
CHANGED
|
@@ -55,6 +55,19 @@ class MergeInsertBuilder {
|
|
|
55
55
|
whenNotMatchedBySourceDelete(options) {
|
|
56
56
|
return new MergeInsertBuilder(this.#native.whenNotMatchedBySourceDelete(options?.where), this.#schema);
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Controls whether to use indexes for the merge operation.
|
|
60
|
+
*
|
|
61
|
+
* When set to `true` (the default), the operation will use an index if available
|
|
62
|
+
* on the join key for improved performance. When set to `false`, it forces a full
|
|
63
|
+
* table scan even if an index exists. This can be useful for benchmarking or when
|
|
64
|
+
* the query optimizer chooses a suboptimal path.
|
|
65
|
+
*
|
|
66
|
+
* @param useIndex - Whether to use indices for the merge operation. Defaults to `true`.
|
|
67
|
+
*/
|
|
68
|
+
useIndex(useIndex) {
|
|
69
|
+
return new MergeInsertBuilder(this.#native.useIndex(useIndex), this.#schema);
|
|
70
|
+
}
|
|
58
71
|
/**
|
|
59
72
|
* Executes the merge insert operation
|
|
60
73
|
*
|
package/dist/native.d.ts
CHANGED
|
@@ -375,6 +375,7 @@ export class NativeMergeInsertBuilder {
|
|
|
375
375
|
whenNotMatchedInsertAll(): NativeMergeInsertBuilder
|
|
376
376
|
whenNotMatchedBySourceDelete(filter?: string | undefined | null): NativeMergeInsertBuilder
|
|
377
377
|
setTimeout(timeout: number): void
|
|
378
|
+
useIndex(useIndex: boolean): NativeMergeInsertBuilder
|
|
378
379
|
execute(buf: Buffer): Promise<MergeResult>
|
|
379
380
|
}
|
|
380
381
|
export class Query {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.22.1",
|
|
14
|
+
"version": "0.22.2-beta.1",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
"reflect-metadata": "^0.2.2"
|
|
101
101
|
},
|
|
102
102
|
"optionalDependencies": {
|
|
103
|
-
"@lancedb/lancedb-darwin-x64": "0.22.1",
|
|
104
|
-
"@lancedb/lancedb-darwin-arm64": "0.22.1",
|
|
105
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.22.1",
|
|
106
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.22.1",
|
|
107
|
-
"@lancedb/lancedb-linux-x64-musl": "0.22.1",
|
|
108
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.22.1",
|
|
109
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.22.1",
|
|
110
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.22.1"
|
|
103
|
+
"@lancedb/lancedb-darwin-x64": "0.22.2-beta.1",
|
|
104
|
+
"@lancedb/lancedb-darwin-arm64": "0.22.2-beta.1",
|
|
105
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.22.2-beta.1",
|
|
106
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.22.2-beta.1",
|
|
107
|
+
"@lancedb/lancedb-linux-x64-musl": "0.22.2-beta.1",
|
|
108
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.22.2-beta.1",
|
|
109
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.22.2-beta.1",
|
|
110
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.22.2-beta.1"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"apache-arrow": ">=15.0.0 <=18.1.0"
|