@useairfoil/flight 0.4.8 → 0.4.9
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/LICENSE.txt +201 -0
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -12
- package/src/record-batch-decoder.ts +6 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useairfoil/flight",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"repository": "useairfoil/connector-kit",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -17,29 +17,28 @@
|
|
|
17
17
|
"default": "./dist/index.mjs"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsdown",
|
|
22
|
-
"build:proto": "buf generate proto",
|
|
23
|
-
"typecheck": "tsc --noEmit"
|
|
24
|
-
},
|
|
25
20
|
"dependencies": {
|
|
26
21
|
"@bufbuild/protobuf": "^2.9.0",
|
|
27
|
-
"apache-arrow": "^21.
|
|
22
|
+
"apache-arrow": "^21.2.0",
|
|
28
23
|
"flatbuffers": "^25.9.23",
|
|
29
|
-
"iter-ops": "^3.5.0",
|
|
30
24
|
"long": "^5.3.2",
|
|
31
25
|
"nice-grpc": "^2.1.13",
|
|
32
26
|
"nice-grpc-common": "^2.0.2"
|
|
33
27
|
},
|
|
34
28
|
"devDependencies": {
|
|
35
29
|
"@bufbuild/buf": "^1.5.7",
|
|
36
|
-
"@effect/vitest": "^4.0
|
|
30
|
+
"@effect/vitest": "^4.1.0",
|
|
37
31
|
"@types/node": "^24.2.0",
|
|
38
|
-
"effect": "^4.0
|
|
32
|
+
"effect": "^4.1.0",
|
|
39
33
|
"tsdown": "^0.23.0",
|
|
40
34
|
"vitest": "^5.0.3"
|
|
41
35
|
},
|
|
42
36
|
"peerDependencies": {
|
|
43
|
-
"effect": "^4.0
|
|
37
|
+
"effect": "^4.1.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsdown",
|
|
41
|
+
"build:proto": "buf generate proto",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
44
43
|
}
|
|
45
|
-
}
|
|
44
|
+
}
|
|
@@ -266,42 +266,15 @@ export class RecordBatchStreamReaderFromFlightData<T extends TypeMap = any>
|
|
|
266
266
|
return this as AsyncIterableIterator<RecordBatchWithMetadata<T>>;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
this._reader
|
|
274
|
-
this.dictionaries = <any>null;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
public async open(options?: OpenOptions) {
|
|
279
|
-
if (!this.closed) {
|
|
280
|
-
this.autoDestroy = shouldAutoDestroy(this, options);
|
|
281
|
-
if (
|
|
282
|
-
!(this.schema || (this.schema = (await this._reader.readSchema())!))
|
|
283
|
-
) {
|
|
284
|
-
await this.cancel();
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return this;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
public async throw(value?: any): Promise<IteratorResult<any>> {
|
|
291
|
-
if (!this.closed && this.autoDestroy && (this.closed = true)) {
|
|
292
|
-
return await this.reset()._reader.throw(value);
|
|
269
|
+
public async return(): Promise<IteratorResult<RecordBatchWithMetadata<T>>> {
|
|
270
|
+
if (!this.closed && this.autoDestroy) {
|
|
271
|
+
this.closed = true;
|
|
272
|
+
this.reset();
|
|
273
|
+
await this._reader.return?.();
|
|
293
274
|
}
|
|
294
275
|
return ITERATOR_DONE;
|
|
295
276
|
}
|
|
296
277
|
|
|
297
|
-
public async return(value?: any): Promise<IteratorResult<any>> {
|
|
298
|
-
if (!this.closed && this.autoDestroy && (this.closed = true)) {
|
|
299
|
-
return await this.reset()._reader.return(value);
|
|
300
|
-
}
|
|
301
|
-
return ITERATOR_DONE;
|
|
302
|
-
}
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
278
|
public async next() {
|
|
306
279
|
if (this.closed) {
|
|
307
280
|
return ITERATOR_DONE;
|
|
@@ -347,8 +320,7 @@ export class RecordBatchStreamReaderFromFlightData<T extends TypeMap = any>
|
|
|
347
320
|
};
|
|
348
321
|
}
|
|
349
322
|
|
|
350
|
-
|
|
351
|
-
return ITERATOR_DONE;
|
|
323
|
+
return this.return();
|
|
352
324
|
}
|
|
353
325
|
|
|
354
326
|
protected async _readNextMessageAndValidate<T extends MessageHeader>(type?: T | null) {
|