@lancedb/lancedb 0.40.0 → 0.41.0-beta.2
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 +182 -13
- package/dist/blob.d.ts +56 -2
- package/dist/blob.js +106 -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 +4 -3
- 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/native.d.ts +41 -11
- package/dist/native.js +55 -52
- package/dist/query.d.ts +7 -1
- package/dist/query.js +12 -15
- package/dist/sanitize.d.ts +19 -18
- package/dist/sanitize.js +74 -11
- package/dist/schema.js +31 -3
- package/dist/table.d.ts +9 -11
- package/dist/table.js +2 -2
- package/package.json +13 -9
package/dist/native.js
CHANGED
|
@@ -76,8 +76,8 @@ function requireNative() {
|
|
|
76
76
|
try {
|
|
77
77
|
const binding = require('@lancedb/lancedb-android-arm64');
|
|
78
78
|
const bindingPackageVersion = require('@lancedb/lancedb-android-arm64/package.json').version;
|
|
79
|
-
if (bindingPackageVersion !== '0.
|
|
80
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
79
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
80
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
81
81
|
}
|
|
82
82
|
return binding;
|
|
83
83
|
}
|
|
@@ -95,8 +95,8 @@ function requireNative() {
|
|
|
95
95
|
try {
|
|
96
96
|
const binding = require('@lancedb/lancedb-android-arm-eabi');
|
|
97
97
|
const bindingPackageVersion = require('@lancedb/lancedb-android-arm-eabi/package.json').version;
|
|
98
|
-
if (bindingPackageVersion !== '0.
|
|
99
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
98
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
99
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
100
100
|
}
|
|
101
101
|
return binding;
|
|
102
102
|
}
|
|
@@ -120,8 +120,8 @@ function requireNative() {
|
|
|
120
120
|
try {
|
|
121
121
|
const binding = require('@lancedb/lancedb-win32-x64-gnu');
|
|
122
122
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-x64-gnu/package.json').version;
|
|
123
|
-
if (bindingPackageVersion !== '0.
|
|
124
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
123
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
124
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
125
125
|
}
|
|
126
126
|
return binding;
|
|
127
127
|
}
|
|
@@ -139,8 +139,8 @@ function requireNative() {
|
|
|
139
139
|
try {
|
|
140
140
|
const binding = require('@lancedb/lancedb-win32-x64-msvc');
|
|
141
141
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-x64-msvc/package.json').version;
|
|
142
|
-
if (bindingPackageVersion !== '0.
|
|
143
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
142
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
143
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
144
144
|
}
|
|
145
145
|
return binding;
|
|
146
146
|
}
|
|
@@ -159,8 +159,8 @@ function requireNative() {
|
|
|
159
159
|
try {
|
|
160
160
|
const binding = require('@lancedb/lancedb-win32-ia32-msvc');
|
|
161
161
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-ia32-msvc/package.json').version;
|
|
162
|
-
if (bindingPackageVersion !== '0.
|
|
163
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
162
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
163
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
164
164
|
}
|
|
165
165
|
return binding;
|
|
166
166
|
}
|
|
@@ -178,8 +178,8 @@ function requireNative() {
|
|
|
178
178
|
try {
|
|
179
179
|
const binding = require('@lancedb/lancedb-win32-arm64-msvc');
|
|
180
180
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-arm64-msvc/package.json').version;
|
|
181
|
-
if (bindingPackageVersion !== '0.
|
|
182
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
181
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
182
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
183
183
|
}
|
|
184
184
|
return binding;
|
|
185
185
|
}
|
|
@@ -201,8 +201,8 @@ function requireNative() {
|
|
|
201
201
|
try {
|
|
202
202
|
const binding = require('@lancedb/lancedb-darwin-universal');
|
|
203
203
|
const bindingPackageVersion = require('@lancedb/lancedb-darwin-universal/package.json').version;
|
|
204
|
-
if (bindingPackageVersion !== '0.
|
|
205
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
204
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
205
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
206
206
|
}
|
|
207
207
|
return binding;
|
|
208
208
|
}
|
|
@@ -219,8 +219,8 @@ function requireNative() {
|
|
|
219
219
|
try {
|
|
220
220
|
const binding = require('@lancedb/lancedb-darwin-x64');
|
|
221
221
|
const bindingPackageVersion = require('@lancedb/lancedb-darwin-x64/package.json').version;
|
|
222
|
-
if (bindingPackageVersion !== '0.
|
|
223
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
222
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
223
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
224
224
|
}
|
|
225
225
|
return binding;
|
|
226
226
|
}
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@lancedb/lancedb-darwin-arm64');
|
|
240
240
|
const bindingPackageVersion = require('@lancedb/lancedb-darwin-arm64/package.json').version;
|
|
241
|
-
if (bindingPackageVersion !== '0.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
241
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
243
243
|
}
|
|
244
244
|
return binding;
|
|
245
245
|
}
|
|
@@ -262,8 +262,8 @@ function requireNative() {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = require('@lancedb/lancedb-freebsd-x64');
|
|
264
264
|
const bindingPackageVersion = require('@lancedb/lancedb-freebsd-x64/package.json').version;
|
|
265
|
-
if (bindingPackageVersion !== '0.
|
|
266
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
265
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
266
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
267
267
|
}
|
|
268
268
|
return binding;
|
|
269
269
|
}
|
|
@@ -281,8 +281,8 @@ function requireNative() {
|
|
|
281
281
|
try {
|
|
282
282
|
const binding = require('@lancedb/lancedb-freebsd-arm64');
|
|
283
283
|
const bindingPackageVersion = require('@lancedb/lancedb-freebsd-arm64/package.json').version;
|
|
284
|
-
if (bindingPackageVersion !== '0.
|
|
285
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
284
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
285
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
286
286
|
}
|
|
287
287
|
return binding;
|
|
288
288
|
}
|
|
@@ -306,8 +306,8 @@ function requireNative() {
|
|
|
306
306
|
try {
|
|
307
307
|
const binding = require('@lancedb/lancedb-linux-x64-musl');
|
|
308
308
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-x64-musl/package.json').version;
|
|
309
|
-
if (bindingPackageVersion !== '0.
|
|
310
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
309
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
310
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
311
311
|
}
|
|
312
312
|
return binding;
|
|
313
313
|
}
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@lancedb/lancedb-linux-x64-gnu');
|
|
327
327
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-x64-gnu/package.json').version;
|
|
328
|
-
if (bindingPackageVersion !== '0.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
328
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
330
330
|
}
|
|
331
331
|
return binding;
|
|
332
332
|
}
|
|
@@ -346,8 +346,8 @@ function requireNative() {
|
|
|
346
346
|
try {
|
|
347
347
|
const binding = require('@lancedb/lancedb-linux-arm64-musl');
|
|
348
348
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm64-musl/package.json').version;
|
|
349
|
-
if (bindingPackageVersion !== '0.
|
|
350
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
349
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
350
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
351
351
|
}
|
|
352
352
|
return binding;
|
|
353
353
|
}
|
|
@@ -365,8 +365,8 @@ function requireNative() {
|
|
|
365
365
|
try {
|
|
366
366
|
const binding = require('@lancedb/lancedb-linux-arm64-gnu');
|
|
367
367
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm64-gnu/package.json').version;
|
|
368
|
-
if (bindingPackageVersion !== '0.
|
|
369
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
368
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
369
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
370
370
|
}
|
|
371
371
|
return binding;
|
|
372
372
|
}
|
|
@@ -386,8 +386,8 @@ function requireNative() {
|
|
|
386
386
|
try {
|
|
387
387
|
const binding = require('@lancedb/lancedb-linux-arm-musleabihf');
|
|
388
388
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm-musleabihf/package.json').version;
|
|
389
|
-
if (bindingPackageVersion !== '0.
|
|
390
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
389
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
390
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
391
391
|
}
|
|
392
392
|
return binding;
|
|
393
393
|
}
|
|
@@ -405,8 +405,8 @@ function requireNative() {
|
|
|
405
405
|
try {
|
|
406
406
|
const binding = require('@lancedb/lancedb-linux-arm-gnueabihf');
|
|
407
407
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm-gnueabihf/package.json').version;
|
|
408
|
-
if (bindingPackageVersion !== '0.
|
|
409
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
408
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
409
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
410
410
|
}
|
|
411
411
|
return binding;
|
|
412
412
|
}
|
|
@@ -426,8 +426,8 @@ function requireNative() {
|
|
|
426
426
|
try {
|
|
427
427
|
const binding = require('@lancedb/lancedb-linux-loong64-musl');
|
|
428
428
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-loong64-musl/package.json').version;
|
|
429
|
-
if (bindingPackageVersion !== '0.
|
|
430
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
429
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
430
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
431
431
|
}
|
|
432
432
|
return binding;
|
|
433
433
|
}
|
|
@@ -445,8 +445,8 @@ function requireNative() {
|
|
|
445
445
|
try {
|
|
446
446
|
const binding = require('@lancedb/lancedb-linux-loong64-gnu');
|
|
447
447
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-loong64-gnu/package.json').version;
|
|
448
|
-
if (bindingPackageVersion !== '0.
|
|
449
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
448
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
449
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
450
450
|
}
|
|
451
451
|
return binding;
|
|
452
452
|
}
|
|
@@ -466,8 +466,8 @@ function requireNative() {
|
|
|
466
466
|
try {
|
|
467
467
|
const binding = require('@lancedb/lancedb-linux-riscv64-musl');
|
|
468
468
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-riscv64-musl/package.json').version;
|
|
469
|
-
if (bindingPackageVersion !== '0.
|
|
470
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
469
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
470
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
471
471
|
}
|
|
472
472
|
return binding;
|
|
473
473
|
}
|
|
@@ -485,8 +485,8 @@ function requireNative() {
|
|
|
485
485
|
try {
|
|
486
486
|
const binding = require('@lancedb/lancedb-linux-riscv64-gnu');
|
|
487
487
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-riscv64-gnu/package.json').version;
|
|
488
|
-
if (bindingPackageVersion !== '0.
|
|
489
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
488
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
489
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
490
490
|
}
|
|
491
491
|
return binding;
|
|
492
492
|
}
|
|
@@ -505,8 +505,8 @@ function requireNative() {
|
|
|
505
505
|
try {
|
|
506
506
|
const binding = require('@lancedb/lancedb-linux-ppc64-gnu');
|
|
507
507
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-ppc64-gnu/package.json').version;
|
|
508
|
-
if (bindingPackageVersion !== '0.
|
|
509
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
508
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
509
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
510
510
|
}
|
|
511
511
|
return binding;
|
|
512
512
|
}
|
|
@@ -524,8 +524,8 @@ function requireNative() {
|
|
|
524
524
|
try {
|
|
525
525
|
const binding = require('@lancedb/lancedb-linux-s390x-gnu');
|
|
526
526
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-s390x-gnu/package.json').version;
|
|
527
|
-
if (bindingPackageVersion !== '0.
|
|
528
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
527
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
528
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
529
529
|
}
|
|
530
530
|
return binding;
|
|
531
531
|
}
|
|
@@ -548,8 +548,8 @@ function requireNative() {
|
|
|
548
548
|
try {
|
|
549
549
|
const binding = require('@lancedb/lancedb-openharmony-arm64');
|
|
550
550
|
const bindingPackageVersion = require('@lancedb/lancedb-openharmony-arm64/package.json').version;
|
|
551
|
-
if (bindingPackageVersion !== '0.
|
|
552
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
551
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
552
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
553
553
|
}
|
|
554
554
|
return binding;
|
|
555
555
|
}
|
|
@@ -567,8 +567,8 @@ function requireNative() {
|
|
|
567
567
|
try {
|
|
568
568
|
const binding = require('@lancedb/lancedb-openharmony-x64');
|
|
569
569
|
const bindingPackageVersion = require('@lancedb/lancedb-openharmony-x64/package.json').version;
|
|
570
|
-
if (bindingPackageVersion !== '0.
|
|
571
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
570
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
571
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
572
572
|
}
|
|
573
573
|
return binding;
|
|
574
574
|
}
|
|
@@ -586,8 +586,8 @@ function requireNative() {
|
|
|
586
586
|
try {
|
|
587
587
|
const binding = require('@lancedb/lancedb-openharmony-arm');
|
|
588
588
|
const bindingPackageVersion = require('@lancedb/lancedb-openharmony-arm/package.json').version;
|
|
589
|
-
if (bindingPackageVersion !== '0.
|
|
590
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
589
|
+
if (bindingPackageVersion !== '0.41.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
590
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
591
591
|
}
|
|
592
592
|
return binding;
|
|
593
593
|
}
|
|
@@ -666,10 +666,13 @@ module.exports.BranchContents = nativeBinding.BranchContents;
|
|
|
666
666
|
module.exports.Branches = nativeBinding.Branches;
|
|
667
667
|
module.exports.Catalog = nativeBinding.Catalog;
|
|
668
668
|
module.exports.Connection = nativeBinding.Connection;
|
|
669
|
+
module.exports.DatabaseNames = nativeBinding.DatabaseNames;
|
|
669
670
|
module.exports.Index = nativeBinding.Index;
|
|
670
671
|
module.exports.Job = nativeBinding.Job;
|
|
672
|
+
module.exports.JobListing = nativeBinding.JobListing;
|
|
671
673
|
module.exports.JsFullTextQuery = nativeBinding.JsFullTextQuery;
|
|
672
674
|
module.exports.JsHeaderProvider = nativeBinding.JsHeaderProvider;
|
|
675
|
+
module.exports.NameListing = nativeBinding.NameListing;
|
|
673
676
|
module.exports.NapiScannable = nativeBinding.NapiScannable;
|
|
674
677
|
module.exports.NativeMergeInsertBuilder = nativeBinding.NativeMergeInsertBuilder;
|
|
675
678
|
module.exports.OAuthSession = nativeBinding.OAuthSession;
|
package/dist/query.d.ts
CHANGED
|
@@ -119,7 +119,11 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
|
|
|
119
119
|
* @hidden
|
|
120
120
|
*/
|
|
121
121
|
[Symbol.asyncIterator](): AsyncIterator<RecordBatch<any>>;
|
|
122
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* Collect the results as an Arrow @see {@link ArrowTable}.
|
|
124
|
+
*
|
|
125
|
+
* Empty results retain the query's output schema.
|
|
126
|
+
*/
|
|
123
127
|
toArrow(options?: Partial<QueryExecutionOptions>): Promise<ArrowTable>;
|
|
124
128
|
/** Collect the results as an array of objects. */
|
|
125
129
|
toArray(options?: Partial<QueryExecutionOptions>): Promise<any[]>;
|
|
@@ -279,6 +283,8 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
|
|
|
279
283
|
/**
|
|
280
284
|
* Set the number of partitions to search (probe)
|
|
281
285
|
*
|
|
286
|
+
* The number of probes must be greater than 0.
|
|
287
|
+
*
|
|
282
288
|
* This argument is only used when the vector column has an IVF PQ index.
|
|
283
289
|
* If there is no index then this value is ignored.
|
|
284
290
|
*
|
package/dist/query.js
CHANGED
|
@@ -21,18 +21,6 @@ async function* RecordBatchIterator(promisedInner) {
|
|
|
21
21
|
yield batches[0];
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
class RecordBatchIterable {
|
|
25
|
-
inner;
|
|
26
|
-
options;
|
|
27
|
-
constructor(inner, options) {
|
|
28
|
-
this.inner = inner;
|
|
29
|
-
this.options = options;
|
|
30
|
-
}
|
|
31
|
-
// biome-ignore lint/suspicious/noExplicitAny: skip
|
|
32
|
-
[Symbol.asyncIterator]() {
|
|
33
|
-
return RecordBatchIterator(this.inner.execute(this.options?.maxBatchLength, this.options?.timeoutMs));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
24
|
function nearestToNative(inner, vector) {
|
|
37
25
|
const raw = Array.isArray(vector) ? null : (0, arrow_1.extractVectorBuffer)(vector);
|
|
38
26
|
if (raw) {
|
|
@@ -183,13 +171,20 @@ class QueryBase {
|
|
|
183
171
|
[Symbol.asyncIterator]() {
|
|
184
172
|
return RecordBatchIterator(this.nativeExecute());
|
|
185
173
|
}
|
|
186
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Collect the results as an Arrow @see {@link ArrowTable}.
|
|
176
|
+
*
|
|
177
|
+
* Empty results retain the query's output schema.
|
|
178
|
+
*/
|
|
187
179
|
async toArrow(options) {
|
|
188
180
|
const batches = [];
|
|
189
|
-
const
|
|
190
|
-
for await (const batch of
|
|
181
|
+
const iterator = this.nativeExecute(options);
|
|
182
|
+
for await (const batch of RecordBatchIterator(iterator)) {
|
|
191
183
|
batches.push(batch);
|
|
192
184
|
}
|
|
185
|
+
if (batches.length === 0) {
|
|
186
|
+
return (0, arrow_1.tableFromIPC)((await iterator).schema());
|
|
187
|
+
}
|
|
193
188
|
return new arrow_1.Table(batches);
|
|
194
189
|
}
|
|
195
190
|
/** Collect the results as an array of objects. */
|
|
@@ -415,6 +410,8 @@ class VectorQuery extends StandardQueryBase {
|
|
|
415
410
|
/**
|
|
416
411
|
* Set the number of partitions to search (probe)
|
|
417
412
|
*
|
|
413
|
+
* The number of probes must be greater than 0.
|
|
414
|
+
*
|
|
418
415
|
* This argument is only used when the vector column has an IVF PQ index.
|
|
419
416
|
* If there is no index then this value is ignored.
|
|
420
417
|
*
|
package/dist/sanitize.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import * as arrowModule from "apache-arrow";
|
|
1
2
|
import type { TKeys } from "apache-arrow/type";
|
|
2
|
-
import { DataType,
|
|
3
|
+
import { DataType, DenseUnion, Field, Schema, SchemaLike, SparseUnion, Table, TableLike, TimestampMicrosecond, TimestampMillisecond, TimestampNanosecond, TimestampSecond } from "./arrow";
|
|
3
4
|
export declare function sanitizeMetadata(metadataLike?: unknown): Map<string, string> | undefined;
|
|
4
|
-
export declare function sanitizeInt(typeLike: object): Int<Type.Int | Type.Int8 | Type.Int16 | Type.Int32 | Type.Int64 | Type.Uint8 | Type.Uint16 | Type.Uint32 | Type.Uint64>;
|
|
5
|
-
export declare function sanitizeFloat(typeLike: object): Float<Type.Float | Type.Float16 | Type.Float32 | Type.Float64>;
|
|
6
|
-
export declare function sanitizeDecimal(typeLike: object): Decimal;
|
|
7
|
-
export declare function sanitizeDate(typeLike: object): Date_<import("apache-arrow/type").Dates>;
|
|
8
|
-
export declare function sanitizeTime(typeLike: object): Time<Type.Time | Type.TimeSecond | Type.TimeMillisecond | Type.TimeMicrosecond | Type.TimeNanosecond>;
|
|
9
|
-
export declare function sanitizeTimestamp(typeLike: object): Timestamp<Type.Timestamp | Type.TimestampSecond | Type.TimestampMillisecond | Type.TimestampMicrosecond | Type.TimestampNanosecond>;
|
|
10
|
-
export declare function sanitizeTypedTimestamp(typeLike: object, Datatype: typeof TimestampNanosecond | typeof TimestampMicrosecond | typeof TimestampMillisecond | typeof TimestampSecond):
|
|
11
|
-
export declare function sanitizeInterval(typeLike: object): Interval<Type.Interval | Type.IntervalDayTime | Type.IntervalYearMonth>;
|
|
12
|
-
export declare function sanitizeList(typeLike: object): List<any>;
|
|
13
|
-
export declare function sanitizeStruct(typeLike: object): Struct<any>;
|
|
14
|
-
export declare function sanitizeUnion(typeLike: object): Union<Type.Union | Type.DenseUnion | Type.SparseUnion>;
|
|
15
|
-
export declare function sanitizeTypedUnion(typeLike: object, UnionType: typeof DenseUnion | typeof SparseUnion):
|
|
16
|
-
export declare function sanitizeFixedSizeBinary(typeLike: object): FixedSizeBinary;
|
|
17
|
-
export declare function sanitizeFixedSizeList(typeLike: object): FixedSizeList<any>;
|
|
18
|
-
export declare function sanitizeMap(typeLike: object): Map_<any, any>;
|
|
19
|
-
export declare function sanitizeDuration(typeLike: object): Duration<Type.Duration | Type.DurationSecond | Type.DurationMillisecond | Type.DurationMicrosecond | Type.DurationNanosecond>;
|
|
20
|
-
export declare function sanitizeDictionary(typeLike: object): Dictionary<DataType<Type, any>, TKeys>;
|
|
5
|
+
export declare function sanitizeInt(typeLike: object): arrowModule.Int<arrowModule.Type.Int | arrowModule.Type.Int8 | arrowModule.Type.Int16 | arrowModule.Type.Int32 | arrowModule.Type.Int64 | arrowModule.Type.Uint8 | arrowModule.Type.Uint16 | arrowModule.Type.Uint32 | arrowModule.Type.Uint64>;
|
|
6
|
+
export declare function sanitizeFloat(typeLike: object): arrowModule.Float<arrowModule.Type.Float | arrowModule.Type.Float16 | arrowModule.Type.Float32 | arrowModule.Type.Float64>;
|
|
7
|
+
export declare function sanitizeDecimal(typeLike: object): arrowModule.Decimal;
|
|
8
|
+
export declare function sanitizeDate(typeLike: object): arrowModule.Date_<import("apache-arrow/type").Dates>;
|
|
9
|
+
export declare function sanitizeTime(typeLike: object): arrowModule.Time<arrowModule.Type.Time | arrowModule.Type.TimeSecond | arrowModule.Type.TimeMillisecond | arrowModule.Type.TimeMicrosecond | arrowModule.Type.TimeNanosecond>;
|
|
10
|
+
export declare function sanitizeTimestamp(typeLike: object): arrowModule.Timestamp<arrowModule.Type.Timestamp | arrowModule.Type.TimestampSecond | arrowModule.Type.TimestampMillisecond | arrowModule.Type.TimestampMicrosecond | arrowModule.Type.TimestampNanosecond>;
|
|
11
|
+
export declare function sanitizeTypedTimestamp(typeLike: object, Datatype: typeof TimestampNanosecond | typeof TimestampMicrosecond | typeof TimestampMillisecond | typeof TimestampSecond): arrowModule.TimestampNanosecond | arrowModule.TimestampMicrosecond | arrowModule.TimestampMillisecond | arrowModule.TimestampSecond;
|
|
12
|
+
export declare function sanitizeInterval(typeLike: object): arrowModule.Interval<arrowModule.Type.Interval | arrowModule.Type.IntervalDayTime | arrowModule.Type.IntervalYearMonth | arrowModule.Type.IntervalMonthDayNano>;
|
|
13
|
+
export declare function sanitizeList(typeLike: object): arrowModule.List<any>;
|
|
14
|
+
export declare function sanitizeStruct(typeLike: object): arrowModule.Struct<any>;
|
|
15
|
+
export declare function sanitizeUnion(typeLike: object): arrowModule.Union<arrowModule.Type.Union | arrowModule.Type.DenseUnion | arrowModule.Type.SparseUnion>;
|
|
16
|
+
export declare function sanitizeTypedUnion(typeLike: object, UnionType: typeof DenseUnion | typeof SparseUnion): arrowModule.DenseUnion | arrowModule.SparseUnion;
|
|
17
|
+
export declare function sanitizeFixedSizeBinary(typeLike: object): arrowModule.FixedSizeBinary;
|
|
18
|
+
export declare function sanitizeFixedSizeList(typeLike: object): arrowModule.FixedSizeList<any>;
|
|
19
|
+
export declare function sanitizeMap(typeLike: object): arrowModule.Map_<any, any>;
|
|
20
|
+
export declare function sanitizeDuration(typeLike: object): arrowModule.Duration<arrowModule.Type.Duration | arrowModule.Type.DurationSecond | arrowModule.Type.DurationMillisecond | arrowModule.Type.DurationMicrosecond | arrowModule.Type.DurationNanosecond>;
|
|
21
|
+
export declare function sanitizeDictionary(typeLike: object): arrowModule.Dictionary<arrowModule.DataType<arrowModule.Type, any>, TKeys>;
|
|
21
22
|
export declare function sanitizeType(typeLike: unknown): DataType<any>;
|
|
22
23
|
export declare function sanitizeField(fieldLike: unknown): Field;
|
|
23
24
|
/**
|
package/dist/sanitize.js
CHANGED
|
@@ -32,8 +32,42 @@ exports.dataTypeFromName = dataTypeFromName;
|
|
|
32
32
|
// time. However, arrow-js uses instanceof which expected that the input
|
|
33
33
|
// comes from the exact same library instance. This is not always the case
|
|
34
34
|
// and so we must sanitize the input to ensure that it is compatible.
|
|
35
|
+
const arrowModule = require("apache-arrow");
|
|
35
36
|
const apache_arrow_1 = require("apache-arrow");
|
|
36
37
|
const arrow_1 = require("./arrow");
|
|
38
|
+
/**
|
|
39
|
+
* Whether `value` was created by *this* copy of apache-arrow's `ctor`.
|
|
40
|
+
*
|
|
41
|
+
* Arrow 21 overrides `Symbol.hasInstance` on `Schema`, `Field`, `Table`,
|
|
42
|
+
* `RecordBatch`, `Vector` and `Data` so that `instanceof` also matches objects
|
|
43
|
+
* built by a different copy of the library. Those are exactly the objects
|
|
44
|
+
* this module has to rebuild: the `DataType` instances nested inside them are
|
|
45
|
+
* deliberately *not* given that treatment upstream, so Arrow's own builders and
|
|
46
|
+
* writers reject them. Walk the real prototype chain instead of trusting
|
|
47
|
+
* `instanceof`.
|
|
48
|
+
*/
|
|
49
|
+
function isOwnInstance(value,
|
|
50
|
+
// biome-ignore lint/suspicious/noExplicitAny: matches any class constructor
|
|
51
|
+
ctor) {
|
|
52
|
+
return (typeof value === "object" &&
|
|
53
|
+
value !== null &&
|
|
54
|
+
Object.prototype.isPrototypeOf.call(ctor.prototype, value));
|
|
55
|
+
}
|
|
56
|
+
const NEWER_TYPES = [
|
|
57
|
+
{ name: "IntervalMonthDayNano", typeId: -31, since: 20 },
|
|
58
|
+
{ name: "LargeList", typeId: 21, since: 21 },
|
|
59
|
+
{ name: "BinaryView", typeId: 23, since: 21 },
|
|
60
|
+
{ name: "Utf8View", typeId: 24, since: 21 },
|
|
61
|
+
];
|
|
62
|
+
function newerTypeConstructor(name) {
|
|
63
|
+
const ctor = arrowModule[name];
|
|
64
|
+
if (typeof ctor !== "function") {
|
|
65
|
+
const since = NEWER_TYPES.find((t) => t.name === name)?.since;
|
|
66
|
+
throw new Error(`The Arrow type ${name} requires apache-arrow ${since} or newer, ` +
|
|
67
|
+
"but the installed apache-arrow does not provide it");
|
|
68
|
+
}
|
|
69
|
+
return ctor;
|
|
70
|
+
}
|
|
37
71
|
function createSanitizationContext() {
|
|
38
72
|
return {
|
|
39
73
|
types: new WeakMap(),
|
|
@@ -130,14 +164,21 @@ function sanitizeInterval(typeLike) {
|
|
|
130
164
|
function sanitizeList(typeLike) {
|
|
131
165
|
return sanitizeListWithContext(typeLike, createSanitizationContext());
|
|
132
166
|
}
|
|
133
|
-
function
|
|
167
|
+
function sanitizeListChildWithContext(typeLike, context, typeName) {
|
|
134
168
|
if (!("children" in typeLike) || !Array.isArray(typeLike.children)) {
|
|
135
|
-
throw Error(
|
|
169
|
+
throw Error(`Expected a ${typeName} type to have an array-like \`children\` property`);
|
|
136
170
|
}
|
|
137
171
|
if (typeLike.children.length !== 1) {
|
|
138
|
-
throw Error(
|
|
172
|
+
throw Error(`Expected a ${typeName} type to have exactly one child`);
|
|
139
173
|
}
|
|
140
|
-
return
|
|
174
|
+
return sanitizeFieldWithContext(typeLike.children[0], context);
|
|
175
|
+
}
|
|
176
|
+
function sanitizeListWithContext(typeLike, context) {
|
|
177
|
+
return new arrow_1.List(sanitizeListChildWithContext(typeLike, context, "List"));
|
|
178
|
+
}
|
|
179
|
+
function sanitizeLargeListWithContext(typeLike, context) {
|
|
180
|
+
const LargeList = newerTypeConstructor("LargeList");
|
|
181
|
+
return new LargeList(sanitizeListChildWithContext(typeLike, context, "LargeList"));
|
|
141
182
|
}
|
|
142
183
|
function sanitizeStruct(typeLike) {
|
|
143
184
|
return sanitizeStructWithContext(typeLike, createSanitizationContext());
|
|
@@ -274,7 +315,21 @@ function sanitizeTypeWithContext(typeLike, context) {
|
|
|
274
315
|
context.types.set(typeLike, type);
|
|
275
316
|
return type;
|
|
276
317
|
}
|
|
318
|
+
function sanitizeNewerTypeById(typeLike, typeId, context) {
|
|
319
|
+
const entry = NEWER_TYPES.find((t) => t.typeId === typeId);
|
|
320
|
+
if (entry === undefined) {
|
|
321
|
+
return undefined;
|
|
322
|
+
}
|
|
323
|
+
if (entry.name === "LargeList") {
|
|
324
|
+
return sanitizeLargeListWithContext(typeLike, context);
|
|
325
|
+
}
|
|
326
|
+
return new (newerTypeConstructor(entry.name))();
|
|
327
|
+
}
|
|
277
328
|
function sanitizeTypeById(typeLike, typeId, context) {
|
|
329
|
+
const newer = sanitizeNewerTypeById(typeLike, typeId, context);
|
|
330
|
+
if (newer !== undefined) {
|
|
331
|
+
return newer;
|
|
332
|
+
}
|
|
278
333
|
switch (typeId) {
|
|
279
334
|
case arrow_1.Type.NONE:
|
|
280
335
|
throw Error("Received a Type with a typeId of NONE");
|
|
@@ -386,7 +441,7 @@ function sanitizeField(fieldLike) {
|
|
|
386
441
|
return sanitizeFieldWithContext(fieldLike, createSanitizationContext());
|
|
387
442
|
}
|
|
388
443
|
function sanitizeFieldWithContext(fieldLike, context) {
|
|
389
|
-
if (fieldLike
|
|
444
|
+
if (isOwnInstance(fieldLike, arrow_1.Field)) {
|
|
390
445
|
return fieldLike;
|
|
391
446
|
}
|
|
392
447
|
if (typeof fieldLike !== "object" || fieldLike === null) {
|
|
@@ -429,7 +484,7 @@ function sanitizeSchema(schemaLike) {
|
|
|
429
484
|
return sanitizeSchemaWithContext(schemaLike, createSanitizationContext());
|
|
430
485
|
}
|
|
431
486
|
function sanitizeSchemaWithContext(schemaLike, context) {
|
|
432
|
-
if (schemaLike
|
|
487
|
+
if (isOwnInstance(schemaLike, arrow_1.Schema)) {
|
|
433
488
|
return schemaLike;
|
|
434
489
|
}
|
|
435
490
|
if (typeof schemaLike !== "object" || schemaLike === null) {
|
|
@@ -449,7 +504,7 @@ function sanitizeSchemaWithContext(schemaLike, context) {
|
|
|
449
504
|
return new arrow_1.Schema(sanitizedFields, metadata);
|
|
450
505
|
}
|
|
451
506
|
function sanitizeTable(tableLike) {
|
|
452
|
-
if (tableLike
|
|
507
|
+
if (isOwnInstance(tableLike, arrow_1.Table)) {
|
|
453
508
|
return tableLike;
|
|
454
509
|
}
|
|
455
510
|
if (typeof tableLike !== "object" || tableLike === null) {
|
|
@@ -467,7 +522,7 @@ function sanitizeTable(tableLike) {
|
|
|
467
522
|
return new arrow_1.Table(schema, batches);
|
|
468
523
|
}
|
|
469
524
|
function sanitizeRecordBatch(batchLike, context) {
|
|
470
|
-
if (batchLike
|
|
525
|
+
if (isOwnInstance(batchLike, arrow_1.RecordBatch)) {
|
|
471
526
|
return batchLike;
|
|
472
527
|
}
|
|
473
528
|
if (typeof batchLike !== "object" || batchLike === null) {
|
|
@@ -484,7 +539,7 @@ function sanitizeRecordBatch(batchLike, context) {
|
|
|
484
539
|
return new arrow_1.RecordBatch(schema, data);
|
|
485
540
|
}
|
|
486
541
|
function sanitizeData(dataLike, context) {
|
|
487
|
-
if (dataLike
|
|
542
|
+
if (isOwnInstance(dataLike, apache_arrow_1.Data)) {
|
|
488
543
|
return dataLike;
|
|
489
544
|
}
|
|
490
545
|
const cachedData = context.data.get(dataLike);
|
|
@@ -500,19 +555,26 @@ function sanitizeData(dataLike, context) {
|
|
|
500
555
|
context.vectors.set(dictionaryLike, dictionary);
|
|
501
556
|
}
|
|
502
557
|
}
|
|
503
|
-
|
|
558
|
+
// Arrow 21 added an eighth constructor parameter (`variadicBuffers`); older
|
|
559
|
+
// releases ignore the extra argument but their typings do not declare it.
|
|
560
|
+
const DataCtor = apache_arrow_1.Data;
|
|
561
|
+
const data = new DataCtor(sanitizeTypeWithContext(dataLike.type, context), dataLike.offset, dataLike.length, dataLike.nullCount, {
|
|
504
562
|
[apache_arrow_1.BufferType.OFFSET]: dataLike.valueOffsets,
|
|
505
563
|
[apache_arrow_1.BufferType.DATA]: dataLike.values,
|
|
506
564
|
[apache_arrow_1.BufferType.VALIDITY]: dataLike.nullBitmap,
|
|
507
565
|
[apache_arrow_1.BufferType.TYPE]: dataLike.typeIds,
|
|
508
|
-
}, dataLike.children.map((child) => sanitizeData(child, context)), dictionary);
|
|
566
|
+
}, dataLike.children.map((child) => sanitizeData(child, context)), dictionary, dataLike.variadicBuffers);
|
|
509
567
|
context.data.set(dataLike, data);
|
|
510
568
|
return data;
|
|
511
569
|
}
|
|
512
570
|
const constructorsByTypeName = {
|
|
513
571
|
null: () => new arrow_1.Null(),
|
|
514
572
|
binary: () => new arrow_1.Binary(),
|
|
573
|
+
largebinary: () => new arrow_1.LargeBinary(),
|
|
574
|
+
binaryview: () => new (newerTypeConstructor("BinaryView"))(),
|
|
515
575
|
utf8: () => new arrow_1.Utf8(),
|
|
576
|
+
largeutf8: () => new arrow_1.LargeUtf8(),
|
|
577
|
+
utf8view: () => new (newerTypeConstructor("Utf8View"))(),
|
|
516
578
|
bool: () => new arrow_1.Bool(),
|
|
517
579
|
int8: () => new arrow_1.Int8(),
|
|
518
580
|
int16: () => new arrow_1.Int16(),
|
|
@@ -533,6 +595,7 @@ const constructorsByTypeName = {
|
|
|
533
595
|
timesecond: () => new arrow_1.TimeSecond(),
|
|
534
596
|
intervaldaytime: () => new arrow_1.IntervalDayTime(),
|
|
535
597
|
intervalyearmonth: () => new arrow_1.IntervalYearMonth(),
|
|
598
|
+
intervalmonthdaynano: () => new (newerTypeConstructor("IntervalMonthDayNano"))(),
|
|
536
599
|
durationnanosecond: () => new arrow_1.DurationNanosecond(),
|
|
537
600
|
durationmicrosecond: () => new arrow_1.DurationMicrosecond(),
|
|
538
601
|
durationmillisecond: () => new arrow_1.DurationMillisecond(),
|