@lancedb/lancedb 0.40.0 → 0.41.0-beta.10
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/NODEJS_THIRD_PARTY_LICENSES.md +8 -0
- package/dist/arrow.d.ts +18 -1
- package/dist/arrow.js +194 -14
- package/dist/blob.d.ts +81 -2
- package/dist/blob.js +159 -6
- package/dist/catalog.d.ts +40 -6
- package/dist/catalog.js +58 -9
- package/dist/connection.d.ts +19 -13
- package/dist/connection.js +12 -7
- package/dist/index.d.ts +6 -5
- package/dist/index.js +4 -1
- package/dist/indices.d.ts +3 -1
- package/dist/listing.d.ts +41 -0
- package/dist/listing.js +57 -0
- package/dist/materialized_view.d.ts +5 -12
- package/dist/materialized_view.js +6 -12
- package/dist/merge.d.ts +7 -7
- package/dist/merge.js +8 -8
- package/dist/native.d.ts +151 -114
- package/dist/native.js +55 -52
- package/dist/query.d.ts +94 -26
- package/dist/query.js +176 -52
- package/dist/sanitize.d.ts +19 -18
- package/dist/sanitize.js +74 -11
- package/dist/schema.js +31 -3
- package/dist/table.d.ts +65 -60
- package/dist/table.js +26 -20
- package/package.json +13 -9
package/dist/schema.js
CHANGED
|
@@ -43,10 +43,18 @@ class SchemaInferrer {
|
|
|
43
43
|
else if (this.providedSchema === undefined) {
|
|
44
44
|
this.updateInferredField(path, value, row, current);
|
|
45
45
|
}
|
|
46
|
+
else if (current instanceof DeferredTypeEvidence) {
|
|
47
|
+
if (value != null) {
|
|
48
|
+
this.addSchemaField(this.providedSchema, path, value, row);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else if (current instanceof FieldTree || apache_arrow_1.DataType.isStruct(current)) {
|
|
52
|
+
assertStructValue(path, value, row);
|
|
53
|
+
}
|
|
46
54
|
}
|
|
47
55
|
addField(path, value, row) {
|
|
48
56
|
if (this.providedSchema !== undefined) {
|
|
49
|
-
this.addSchemaField(this.providedSchema, path, row);
|
|
57
|
+
this.addSchemaField(this.providedSchema, path, value, row);
|
|
50
58
|
return;
|
|
51
59
|
}
|
|
52
60
|
const evidence = this.inferType(value, path) ?? DeferredTypeEvidence.from(value, row);
|
|
@@ -58,12 +66,18 @@ class SchemaInferrer {
|
|
|
58
66
|
throw branchConflictError(conflict, row, "Struct");
|
|
59
67
|
}
|
|
60
68
|
}
|
|
61
|
-
addSchemaField(schema, path, row) {
|
|
69
|
+
addSchemaField(schema, path, value, row) {
|
|
62
70
|
const field = fieldAtPath(schema, path);
|
|
63
71
|
if (field === undefined) {
|
|
64
72
|
throw new Error(`Found field not in schema: ${path.join(".")} at row ${row}`);
|
|
65
73
|
}
|
|
66
|
-
|
|
74
|
+
if (apache_arrow_1.DataType.isStruct(field.type)) {
|
|
75
|
+
assertStructValue(path, value, row);
|
|
76
|
+
}
|
|
77
|
+
// Nulls are kept as deferred evidence so that a struct field seen first as
|
|
78
|
+
// null can be replaced by a record in a later row, just as a record seen
|
|
79
|
+
// first already ignores later nulls.
|
|
80
|
+
const conflict = this.fields.set(path, DeferredTypeEvidence.from(value, row) ?? field.type, (existing) => existing instanceof DeferredTypeEvidence && existing.isOnlyNulls());
|
|
67
81
|
if (conflict !== undefined) {
|
|
68
82
|
throw branchConflictError(conflict, row, "Struct");
|
|
69
83
|
}
|
|
@@ -332,6 +346,20 @@ function assertSupportedValue(value, field, row) {
|
|
|
332
346
|
throw new Error(`Unsupported object value for field ${field} at row ${row}.`);
|
|
333
347
|
}
|
|
334
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* Rejects primitives, arrays, and typed arrays given for a struct field, which
|
|
351
|
+
* would otherwise be written as a struct with every child null.
|
|
352
|
+
*/
|
|
353
|
+
function assertStructValue(path, value, row) {
|
|
354
|
+
if (value == null ||
|
|
355
|
+
(typeof value === "object" &&
|
|
356
|
+
!Array.isArray(value) &&
|
|
357
|
+
!ArrayBuffer.isView(value))) {
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
const kind = typeof value === "object" ? value.constructor.name : typeof value;
|
|
361
|
+
throw new Error(`Expected a struct value for field ${path.join(".")} at row ${row}, got ${kind}.`);
|
|
362
|
+
}
|
|
335
363
|
function fieldAtPath(schema, path) {
|
|
336
364
|
let fields = schema.fields;
|
|
337
365
|
let field;
|
package/dist/table.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { BlobFile, BlobReadOptions } from "./blob";
|
|
|
3
3
|
import { IndexOptions } from "./indices";
|
|
4
4
|
import { Job } from "./job";
|
|
5
5
|
import { MergeInsertBuilder } from "./merge";
|
|
6
|
-
import { AddColumnsResult, AddColumnsSql, AddResult, AlterColumnsResult, BranchContents, DeleteResult, DropColumnsResult, FunctionErrors, FunctionErrorsOptions, IndexConfig, IndexStatistics,
|
|
6
|
+
import { AddColumnsResult, AddColumnsSql, AddResult, AlterColumnsResult, BranchContents, DeleteResult, DropColumnsResult, FunctionErrors, FunctionErrorsOptions, IndexConfig, IndexStatistics, Branches as NativeBranches, OptimizeStats, RTEStats, RefreshColumnResult, RefreshMaterializedViewResult, TableStatistics, Tags, UpdateFieldMetadataResult, UpdateResult, Table as _NativeTable } from "./native";
|
|
7
7
|
import { AutoQuery, FullTextQuery, Query, TakeQuery, VectorQuery } from "./query";
|
|
8
8
|
import { IntoSql } from "./util";
|
|
9
9
|
export { IndexConfig } from "./native";
|
|
10
|
-
export {
|
|
10
|
+
export { TableShardStats, SsTableStats, RTEStats, MemtableStats, } from "./native";
|
|
11
11
|
/**
|
|
12
12
|
* Progress snapshot for a write operation, delivered to the `progress`
|
|
13
13
|
* callback passed to {@link Table.add}.
|
|
@@ -139,8 +139,8 @@ export type TokenizeTableOptions = {
|
|
|
139
139
|
column?: never;
|
|
140
140
|
};
|
|
141
141
|
/**
|
|
142
|
-
* Specification
|
|
143
|
-
* `mergeInsert
|
|
142
|
+
* Specification enabling the realtime engine (RTE), which routes
|
|
143
|
+
* `mergeInsert` through Lance's MemWAL LSM-style write path.
|
|
144
144
|
*
|
|
145
145
|
* `specType` is `"bucket"`, `"identity"`, or `"unsharded"`. For `"bucket"`,
|
|
146
146
|
* `column` and `numBuckets` are required; for `"identity"`, `column` is
|
|
@@ -149,7 +149,7 @@ export type TokenizeTableOptions = {
|
|
|
149
149
|
* `column` value, or upserts of that key can land in different shards and a
|
|
150
150
|
* stale version can win).
|
|
151
151
|
*/
|
|
152
|
-
export interface
|
|
152
|
+
export interface RTEWriteSpec {
|
|
153
153
|
/** One of `"bucket"`, `"identity"`, or `"unsharded"`. */
|
|
154
154
|
specType: "bucket" | "identity" | "unsharded";
|
|
155
155
|
/** Bucket and identity variants: the sharding column. */
|
|
@@ -157,9 +157,8 @@ export interface LsmWriteSpec {
|
|
|
157
157
|
/** Bucket variant: the number of buckets, in `[1, 1024]`. */
|
|
158
158
|
numBuckets?: number;
|
|
159
159
|
/**
|
|
160
|
-
* Indexes the
|
|
161
|
-
*
|
|
162
|
-
* maintained. Pass `[]` for none.
|
|
160
|
+
* Indexes the RTE keeps up to date. Omit for every index the table has,
|
|
161
|
+
* including ones created later. Pass `[]` for none.
|
|
163
162
|
*/
|
|
164
163
|
maintainedIndexes?: string[];
|
|
165
164
|
/** Default `ShardWriter` configuration recorded in the MemWAL index. */
|
|
@@ -425,7 +424,8 @@ export declare abstract class Table {
|
|
|
425
424
|
*/
|
|
426
425
|
abstract takeRowIds(rowIds: readonly (bigint | number)[]): TakeQuery;
|
|
427
426
|
/**
|
|
428
|
-
* Blob v2 columns, including nested dotted paths.
|
|
427
|
+
* Blob v2 columns addressable by row ID, including struct-nested dotted paths.
|
|
428
|
+
* Blobs inside lists are omitted because a row ID does not identify an element.
|
|
429
429
|
*/
|
|
430
430
|
abstract blobColumns(): Promise<string[]>;
|
|
431
431
|
/**
|
|
@@ -434,6 +434,10 @@ export declare abstract class Table {
|
|
|
434
434
|
* Reads the table's current checkout. IDs from another version can fail after
|
|
435
435
|
* compaction unless stable row ids are enabled. Results keep input order and
|
|
436
436
|
* duplicates. Null blobs are `null`. Empty blobs are empty buffers.
|
|
437
|
+
* One missing or deleted row ID rejects the entire batch, including on remote
|
|
438
|
+
* tables; no partial results are returned.
|
|
439
|
+
* Blobs inside lists cannot be fetched by row ID.
|
|
440
|
+
*
|
|
437
441
|
* Remote servers limit each request to 1024 row IDs and 64 MiB of blob bytes.
|
|
438
442
|
* The client splits requests automatically and reads an individual larger
|
|
439
443
|
* blob through the Range route. This method still materializes all bytes in
|
|
@@ -446,6 +450,8 @@ export declare abstract class Table {
|
|
|
446
450
|
*
|
|
447
451
|
* Preserves input order, duplicates, and nulls. Use this for large payloads.
|
|
448
452
|
* See {@link Table.fetchBlobs} for row-ID validity across versions.
|
|
453
|
+
* One missing or deleted row ID rejects the entire batch, including on remote
|
|
454
|
+
* tables; no partial handles are returned.
|
|
449
455
|
*/
|
|
450
456
|
abstract fetchBlobFiles(column: string, rowIds: readonly (bigint | number)[], options?: BlobReadOptions): Promise<(BlobFile | null)[]>;
|
|
451
457
|
/**
|
|
@@ -556,7 +562,7 @@ export declare abstract class Table {
|
|
|
556
562
|
* it: rejects tables that carry no view definition.
|
|
557
563
|
* @ignore
|
|
558
564
|
*/
|
|
559
|
-
abstract refreshMaterializedView(
|
|
565
|
+
abstract refreshMaterializedView(sourceVersion?: number): Promise<RefreshMaterializedViewResult>;
|
|
560
566
|
/** @ignore */
|
|
561
567
|
abstract materializedViewDefinition(): Promise<string>;
|
|
562
568
|
/**
|
|
@@ -614,10 +620,10 @@ export declare abstract class Table {
|
|
|
614
620
|
*/
|
|
615
621
|
abstract setUnenforcedPrimaryKey(columns: string | string[]): Promise<void>;
|
|
616
622
|
/**
|
|
617
|
-
* Install an {@link
|
|
623
|
+
* Install an {@link RTEWriteSpec} on this table, selecting Lance's MemWAL
|
|
618
624
|
* LSM-style write path for future `mergeInsert` calls.
|
|
619
625
|
*
|
|
620
|
-
* `
|
|
626
|
+
* `RTEWriteSpec` chooses one of three sharding strategies via `specType`:
|
|
621
627
|
*
|
|
622
628
|
* - `"bucket"` — hash-bucket writes by the single-column unenforced primary
|
|
623
629
|
* key (`column` and `numBuckets` required).
|
|
@@ -628,16 +634,16 @@ export declare abstract class Table {
|
|
|
628
634
|
* ({@link Table#setUnenforcedPrimaryKey}); bucket sharding additionally
|
|
629
635
|
* requires it to be the single column being bucketed.
|
|
630
636
|
*
|
|
631
|
-
* Omitting `maintainedIndexes` maintains every index
|
|
632
|
-
*
|
|
637
|
+
* Omitting `maintainedIndexes` maintains every index the table has,
|
|
638
|
+
* including ones created later, and skips a kind the RTE cannot maintain.
|
|
633
639
|
* Naming them pins an exact set, and a still-building index is rejected
|
|
634
640
|
* rather than quietly omitted.
|
|
635
|
-
* @param {
|
|
641
|
+
* @param {RTEWriteSpec} spec The sharding spec to install.
|
|
636
642
|
* @returns {Promise<void>}
|
|
637
643
|
* @example
|
|
638
644
|
* ```ts
|
|
639
645
|
* await table.setUnenforcedPrimaryKey("id");
|
|
640
|
-
* await table.
|
|
646
|
+
* await table.enableRTE({
|
|
641
647
|
* specType: "bucket",
|
|
642
648
|
* column: "id",
|
|
643
649
|
* numBuckets: 16,
|
|
@@ -645,60 +651,59 @@ export declare abstract class Table {
|
|
|
645
651
|
* });
|
|
646
652
|
* ```
|
|
647
653
|
*/
|
|
648
|
-
abstract
|
|
654
|
+
abstract enableRTE(spec: RTEWriteSpec): Promise<void>;
|
|
649
655
|
/**
|
|
650
|
-
* Remove the {@link
|
|
656
|
+
* Remove the {@link RTEWriteSpec} from this table, reverting to the standard
|
|
651
657
|
* `mergeInsert` write path.
|
|
652
658
|
*
|
|
653
659
|
* Errors if no spec is currently set.
|
|
654
660
|
* @returns {Promise<void>}
|
|
655
661
|
*/
|
|
656
|
-
abstract
|
|
662
|
+
abstract disableRTE(): Promise<void>;
|
|
657
663
|
/**
|
|
658
|
-
* Read the {@link
|
|
664
|
+
* Read the {@link RTEWriteSpec} currently installed on this table.
|
|
659
665
|
*
|
|
660
|
-
* Resolves to `undefined` when the
|
|
661
|
-
* spec has been set, or it was removed with {@link Table#
|
|
662
|
-
* The
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
* @returns {Promise<LsmWriteSpec | undefined>}
|
|
666
|
+
* Resolves to `undefined` when the RTE write path is not enabled (no
|
|
667
|
+
* spec has been set, or it was removed with {@link Table#disableRTE}).
|
|
668
|
+
* The spec is the one installed, including its maintained-index selection:
|
|
669
|
+
* an absent `maintainedIndexes` for every index the table has, an empty
|
|
670
|
+
* array for none.
|
|
671
|
+
* @returns {Promise<RTEWriteSpec | undefined>}
|
|
667
672
|
*/
|
|
668
|
-
abstract
|
|
673
|
+
abstract getRTESpec(): Promise<RTEWriteSpec | undefined>;
|
|
669
674
|
/**
|
|
670
|
-
* Drain and close any cached
|
|
675
|
+
* Drain and close any cached RTE shard writers held for this table.
|
|
671
676
|
*
|
|
672
|
-
* When an {@link
|
|
677
|
+
* When an {@link RTEWriteSpec} is installed, `mergeInsert` opens RTE
|
|
673
678
|
* shard writers and caches them for reuse across calls. This closes them,
|
|
674
679
|
* flushing pending data; writers reopen lazily on the next `mergeInsert`.
|
|
675
680
|
* It is a no-op when no writers are cached.
|
|
676
681
|
* @returns {Promise<void>}
|
|
677
682
|
*/
|
|
678
|
-
abstract
|
|
683
|
+
abstract closeRTEWriters(): Promise<void>;
|
|
679
684
|
/**
|
|
680
|
-
*
|
|
685
|
+
* Freeze every table shard's active memtable into a new SSTable.
|
|
681
686
|
*
|
|
682
|
-
* Returns once the
|
|
687
|
+
* Returns once the freeze is committed. Freezing an empty memtable is a no-op,
|
|
683
688
|
* so this is safe to call repeatedly.
|
|
684
689
|
* @returns {Promise<void>}
|
|
685
690
|
*/
|
|
686
|
-
abstract
|
|
691
|
+
abstract flushRTE(): Promise<void>;
|
|
687
692
|
/**
|
|
688
|
-
* Trigger a background
|
|
693
|
+
* Trigger a background SSTable compaction pass per table shard.
|
|
689
694
|
*
|
|
690
695
|
* Returns once the passes are *dispatched*, not once they finish — watch
|
|
691
|
-
* {@link Table#
|
|
692
|
-
* {@link Table#
|
|
696
|
+
* {@link Table#getRTEStats} for progress, or use
|
|
697
|
+
* {@link Table#checkpointRTE} to wait for convergence.
|
|
693
698
|
* @returns {Promise<void>}
|
|
694
699
|
*/
|
|
695
|
-
abstract
|
|
700
|
+
abstract compactRTE(): Promise<void>;
|
|
696
701
|
/**
|
|
697
|
-
* Converge this table's
|
|
702
|
+
* Converge this table's RTE write path into its base table.
|
|
698
703
|
*
|
|
699
|
-
*
|
|
704
|
+
* Freezes once, then triggers compaction and polls until the SSTables that existed
|
|
700
705
|
* at the start is gone. The target set is fixed at the start, so
|
|
701
|
-
*
|
|
706
|
+
* SSTables created *during* the checkpoint are ignored — that is what
|
|
702
707
|
* lets it terminate under write load, and what makes it best-effort: it
|
|
703
708
|
* converges the fresh tier as of some instant. Idempotent, abandonable at
|
|
704
709
|
* any point, and safe to run on a cadence.
|
|
@@ -709,24 +714,24 @@ export declare abstract class Table {
|
|
|
709
714
|
* @returns {Promise<void>}
|
|
710
715
|
* @example
|
|
711
716
|
* ```ts
|
|
712
|
-
* const before = await table.
|
|
713
|
-
* await table.
|
|
714
|
-
* const after = await table.
|
|
717
|
+
* const before = await table.getRTEStats();
|
|
718
|
+
* await table.checkpointRTE();
|
|
719
|
+
* const after = await table.getRTEStats();
|
|
715
720
|
* ```
|
|
716
721
|
*/
|
|
717
|
-
abstract
|
|
722
|
+
abstract checkpointRTE(): Promise<void>;
|
|
718
723
|
/**
|
|
719
|
-
* Read live per-
|
|
724
|
+
* Read live per-table-shard RTE state.
|
|
720
725
|
*
|
|
721
|
-
* Answers "how far behind is my fresh tier", "which
|
|
726
|
+
* Answers "how far behind is my fresh tier", "which table shard is hot", and
|
|
722
727
|
* "why is my fresh-tier vector search brute-force". Mutates no table state.
|
|
723
728
|
*
|
|
724
|
-
* Resolves to `undefined` only when the
|
|
725
|
-
* @param {boolean}
|
|
729
|
+
* Resolves to `undefined` only when the RTE write path is not enabled.
|
|
730
|
+
* @param {boolean} includeSstableRows Also count rows per SSTable.
|
|
726
731
|
* Off by default because each count opens an uncached Lance dataset.
|
|
727
|
-
* @returns {Promise<
|
|
732
|
+
* @returns {Promise<RTEStats | undefined>}
|
|
728
733
|
*/
|
|
729
|
-
abstract
|
|
734
|
+
abstract getRTEStats(includeSstableRows?: boolean): Promise<RTEStats | undefined>;
|
|
730
735
|
/** Retrieve the version of the table */
|
|
731
736
|
abstract version(): Promise<number>;
|
|
732
737
|
/**
|
|
@@ -929,20 +934,20 @@ export declare class LocalTable extends Table {
|
|
|
929
934
|
refreshColumn(column: string): Promise<RefreshColumnResult>;
|
|
930
935
|
refreshColumnAsync(column: string): Promise<Job>;
|
|
931
936
|
functionErrors(options?: FunctionErrorsOptions): Promise<FunctionErrors>;
|
|
932
|
-
refreshMaterializedView(
|
|
937
|
+
refreshMaterializedView(sourceVersion?: number): Promise<RefreshMaterializedViewResult>;
|
|
933
938
|
materializedViewDefinition(): Promise<string>;
|
|
934
939
|
alterColumns(columnAlterations: ColumnAlteration[]): Promise<AlterColumnsResult>;
|
|
935
940
|
updateFieldMetadata(updates: FieldMetadataUpdate[]): Promise<UpdateFieldMetadataResult>;
|
|
936
941
|
dropColumns(columnNames: string[]): Promise<DropColumnsResult>;
|
|
937
942
|
setUnenforcedPrimaryKey(columns: string | string[]): Promise<void>;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
943
|
+
enableRTE(spec: RTEWriteSpec): Promise<void>;
|
|
944
|
+
disableRTE(): Promise<void>;
|
|
945
|
+
getRTESpec(): Promise<RTEWriteSpec | undefined>;
|
|
946
|
+
closeRTEWriters(): Promise<void>;
|
|
947
|
+
flushRTE(): Promise<void>;
|
|
948
|
+
compactRTE(): Promise<void>;
|
|
949
|
+
checkpointRTE(): Promise<void>;
|
|
950
|
+
getRTEStats(includeSstableRows?: boolean): Promise<RTEStats | undefined>;
|
|
946
951
|
version(): Promise<number>;
|
|
947
952
|
checkout(version: number | string): Promise<void>;
|
|
948
953
|
checkoutLatest(): Promise<void>;
|
package/dist/table.js
CHANGED
|
@@ -161,10 +161,16 @@ class LocalTable extends Table {
|
|
|
161
161
|
await this.inner.waitForIndex(indexNames, timeoutSeconds);
|
|
162
162
|
}
|
|
163
163
|
takeOffsets(offsets) {
|
|
164
|
-
return new query_1.TakeQuery(this.inner.takeOffsets(offsets)
|
|
164
|
+
return new query_1.TakeQuery(this.inner.takeOffsets(offsets), {
|
|
165
|
+
table: this.inner,
|
|
166
|
+
withRowId: false,
|
|
167
|
+
});
|
|
165
168
|
}
|
|
166
169
|
takeRowIds(rowIds) {
|
|
167
|
-
return new query_1.TakeQuery(this.inner.takeRowIds(rowIdsToBigInts(rowIds))
|
|
170
|
+
return new query_1.TakeQuery(this.inner.takeRowIds(rowIdsToBigInts(rowIds)), {
|
|
171
|
+
table: this.inner,
|
|
172
|
+
withRowId: false,
|
|
173
|
+
});
|
|
168
174
|
}
|
|
169
175
|
blobColumns() {
|
|
170
176
|
return this.inner.blobColumns();
|
|
@@ -280,8 +286,8 @@ class LocalTable extends Table {
|
|
|
280
286
|
(0, materialized_view_1.validateNonNegativeInteger)(options?.limit, "limit");
|
|
281
287
|
return await this.inner.functionErrors(options);
|
|
282
288
|
}
|
|
283
|
-
async refreshMaterializedView(
|
|
284
|
-
return await this.inner.refreshMaterializedView(
|
|
289
|
+
async refreshMaterializedView(sourceVersion) {
|
|
290
|
+
return await this.inner.refreshMaterializedView(sourceVersion);
|
|
285
291
|
}
|
|
286
292
|
async materializedViewDefinition() {
|
|
287
293
|
return await this.inner.materializedViewDefinition();
|
|
@@ -320,32 +326,32 @@ class LocalTable extends Table {
|
|
|
320
326
|
const cols = typeof columns === "string" ? [columns] : columns;
|
|
321
327
|
return await this.inner.setUnenforcedPrimaryKey(cols);
|
|
322
328
|
}
|
|
323
|
-
async
|
|
324
|
-
return await this.inner.
|
|
329
|
+
async enableRTE(spec) {
|
|
330
|
+
return await this.inner.enableRTE(spec);
|
|
325
331
|
}
|
|
326
|
-
async
|
|
327
|
-
return await this.inner.
|
|
332
|
+
async disableRTE() {
|
|
333
|
+
return await this.inner.disableRTE();
|
|
328
334
|
}
|
|
329
|
-
async
|
|
335
|
+
async getRTESpec() {
|
|
330
336
|
// The native binding types `specType` as a plain `string`; narrow it back
|
|
331
337
|
// to the public union. The Rust `From` impl only ever emits one of the
|
|
332
338
|
// three valid values, so the cast is safe.
|
|
333
|
-
return ((await this.inner.
|
|
339
|
+
return ((await this.inner.getRTESpec()) ?? undefined);
|
|
334
340
|
}
|
|
335
|
-
async
|
|
336
|
-
return await this.inner.
|
|
341
|
+
async closeRTEWriters() {
|
|
342
|
+
return await this.inner.closeRTEWriters();
|
|
337
343
|
}
|
|
338
|
-
async
|
|
339
|
-
return await this.inner.
|
|
344
|
+
async flushRTE() {
|
|
345
|
+
return await this.inner.flushRTE();
|
|
340
346
|
}
|
|
341
|
-
async
|
|
342
|
-
return await this.inner.
|
|
347
|
+
async compactRTE() {
|
|
348
|
+
return await this.inner.compactRTE();
|
|
343
349
|
}
|
|
344
|
-
async
|
|
345
|
-
return await this.inner.
|
|
350
|
+
async checkpointRTE() {
|
|
351
|
+
return await this.inner.checkpointRTE();
|
|
346
352
|
}
|
|
347
|
-
async
|
|
348
|
-
return (await this.inner.
|
|
353
|
+
async getRTEStats(includeSstableRows = false) {
|
|
354
|
+
return (await this.inner.getRTEStats(includeSstableRows)) ?? undefined;
|
|
349
355
|
}
|
|
350
356
|
async version() {
|
|
351
357
|
return await this.inner.version();
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.41.0-beta.10",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
@@ -49,10 +49,14 @@
|
|
|
49
49
|
"@types/jest": "^29.1.2",
|
|
50
50
|
"@types/node": "22.7.4",
|
|
51
51
|
"@types/tmp": "^0.2.6",
|
|
52
|
+
"apache-arrow": "21.2.0",
|
|
52
53
|
"apache-arrow-15": "npm:apache-arrow@15.0.0",
|
|
53
54
|
"apache-arrow-16": "npm:apache-arrow@16.0.0",
|
|
54
55
|
"apache-arrow-17": "npm:apache-arrow@17.0.0",
|
|
55
56
|
"apache-arrow-18": "npm:apache-arrow@18.0.0",
|
|
57
|
+
"apache-arrow-19": "npm:apache-arrow@19.0.1",
|
|
58
|
+
"apache-arrow-20": "npm:apache-arrow@20.0.0",
|
|
59
|
+
"apache-arrow-21": "npm:apache-arrow@21.2.0",
|
|
56
60
|
"eslint": "^8.57.0",
|
|
57
61
|
"jest": "^29.7.0",
|
|
58
62
|
"shx": "^0.3.4",
|
|
@@ -106,17 +110,17 @@
|
|
|
106
110
|
"optionalDependencies": {
|
|
107
111
|
"@huggingface/transformers": "3.0.2",
|
|
108
112
|
"openai": "4.29.2",
|
|
109
|
-
"@lancedb/lancedb-darwin-arm64": "0.
|
|
110
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.
|
|
111
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.
|
|
112
|
-
"@lancedb/lancedb-linux-x64-musl": "0.
|
|
113
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.
|
|
114
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.
|
|
115
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.
|
|
113
|
+
"@lancedb/lancedb-darwin-arm64": "0.41.0-beta.10",
|
|
114
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.41.0-beta.10",
|
|
115
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.41.0-beta.10",
|
|
116
|
+
"@lancedb/lancedb-linux-x64-musl": "0.41.0-beta.10",
|
|
117
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.41.0-beta.10",
|
|
118
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.41.0-beta.10",
|
|
119
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.41.0-beta.10"
|
|
116
120
|
},
|
|
117
121
|
"peerDependencies": {
|
|
118
122
|
"@types/node": ">=22",
|
|
119
|
-
"apache-arrow": ">=15.0.0
|
|
123
|
+
"apache-arrow": ">=15.0.0 <22.0.0"
|
|
120
124
|
},
|
|
121
125
|
"peerDependenciesMeta": {
|
|
122
126
|
"@types/node": {
|