@useairfoil/flight 0.4.6 → 0.4.7

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.
@@ -1,4 +1,4 @@
1
- import { t as __export } from "./chunk-Bp6m_JJh.js";
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { Config, Context, Data, Effect, Layer, Scope, Stream } from "effect";
3
3
  import { createChannel, createClient } from "nice-grpc";
4
4
  import { Message, MessageHeader, RecordBatch, Struct, Vector, compressionRegistry, makeData } from "apache-arrow";
@@ -11,8 +11,8 @@ import { CompressedVectorLoader, VectorLoader } from "apache-arrow/visitor/vecto
11
11
  import * as flatbuffers from "flatbuffers";
12
12
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
13
13
  import { VectorAssembler } from "apache-arrow/visitor/vectorassembler";
14
-
15
14
  //#region src/record-batch-decoder.ts
15
+ /** biome-ignore-all lint/suspicious/noExplicitAny: <> */
16
16
  const invalidMessageType = (type) => `Expected ${MessageHeader[type]} Message in stream, but was null or length 0.`;
17
17
  var RecordBatchReaderImpl = class {
18
18
  closed = false;
@@ -92,7 +92,7 @@ var RecordBatchReaderImpl = class {
92
92
  let currentOffset = 0;
93
93
  for (const { offset, length } of header.buffers) {
94
94
  if (length === 0) {
95
- decompressedBuffers.push(new Uint8Array(0));
95
+ decompressedBuffers.push(/* @__PURE__ */ new Uint8Array(0));
96
96
  newBufferRegions.push(new metadata.BufferRegion(currentOffset, 0));
97
97
  continue;
98
98
  }
@@ -113,6 +113,7 @@ var RecordBatchReaderImpl = class {
113
113
  }
114
114
  };
115
115
  var RecordBatchStreamReaderFromFlightData = class extends RecordBatchReaderImpl {
116
+ _source;
116
117
  _reader;
117
118
  constructor(_source, dictionaries) {
118
119
  super(dictionaries);
@@ -152,7 +153,7 @@ var RecordBatchStreamReaderFromFlightData = class extends RecordBatchReaderImpl
152
153
  done: false,
153
154
  value: {
154
155
  batch: new _InternalEmptyPlaceholderRecordBatch(this.schema),
155
- appMetadata: new Uint8Array(0)
156
+ appMetadata: /* @__PURE__ */ new Uint8Array(0)
156
157
  }
157
158
  };
158
159
  }
@@ -169,7 +170,6 @@ var RecordBatchStreamReaderFromFlightData = class extends RecordBatchReaderImpl
169
170
  };
170
171
  }
171
172
  };
172
-
173
173
  //#endregion
174
174
  //#region src/arrow-utils.ts
175
175
  function decodeSchemaFromFlightInfo(info) {
@@ -181,10 +181,9 @@ function getMessageSchema(message) {
181
181
  function decodeFlightDataStream(stream, { expectedSchema: _expectedSchema }) {
182
182
  return new RecordBatchStreamReaderFromFlightData(stream);
183
183
  }
184
-
185
184
  //#endregion
186
185
  //#region src/flight-client-error.ts
187
- var flight_client_error_exports = /* @__PURE__ */ __export({
186
+ var flight_client_error_exports = /* @__PURE__ */ __exportAll({
188
187
  FlightClientError: () => FlightClientError,
189
188
  FlightDecodeError: () => FlightDecodeError,
190
189
  FlightProtocolError: () => FlightProtocolError,
@@ -194,18 +193,15 @@ var FlightClientError = class extends Data.TaggedError("FlightClientError") {};
194
193
  var FlightTransportError = class extends Data.TaggedError("FlightTransportError") {};
195
194
  var FlightDecodeError = class extends Data.TaggedError("FlightDecodeError") {};
196
195
  var FlightProtocolError = class extends Data.TaggedError("FlightProtocolError") {};
197
-
198
196
  //#endregion
199
197
  //#region src/proto-utils.ts
200
198
  function createChannelFromConfig(config) {
201
199
  if (config.host !== void 0) return createChannel(config.host, config.credentials, config.channelOptions);
202
200
  return config.channel;
203
201
  }
204
-
205
202
  //#endregion
206
203
  //#region src/proto/typeRegistry.ts
207
204
  const messageTypeRegistry = /* @__PURE__ */ new Map();
208
-
209
205
  //#endregion
210
206
  //#region src/proto/google/protobuf/timestamp.ts
211
207
  function createBaseTimestamp() {
@@ -273,98 +269,61 @@ messageTypeRegistry.set(Timestamp.$type, Timestamp);
273
269
  function isSet$3(value) {
274
270
  return value !== null && value !== void 0;
275
271
  }
276
-
277
272
  //#endregion
278
273
  //#region src/proto/Flight.ts
279
- /**
280
- * The result of a cancel operation.
281
- *
282
- * This is used by CancelFlightInfoResult.status.
283
- */
284
- let CancelStatus = /* @__PURE__ */ function(CancelStatus$1) {
285
- /**
286
- * UNSPECIFIED - The cancellation status is unknown. Servers should avoid using
287
- * this value (send a NOT_FOUND error if the requested query is
288
- * not known). Clients can retry the request.
289
- */
290
- CancelStatus$1[CancelStatus$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
291
- /**
292
- * CANCELLED - The cancellation request is complete. Subsequent requests with
293
- * the same payload may return CANCELLED or a NOT_FOUND error.
294
- */
295
- CancelStatus$1[CancelStatus$1["CANCELLED"] = 1] = "CANCELLED";
296
- /**
297
- * CANCELLING - The cancellation request is in progress. The client may retry
298
- * the cancellation request.
299
- */
300
- CancelStatus$1[CancelStatus$1["CANCELLING"] = 2] = "CANCELLING";
301
- /**
302
- * NOT_CANCELLABLE - The query is not cancellable. The client should not retry the
303
- * cancellation request.
304
- */
305
- CancelStatus$1[CancelStatus$1["NOT_CANCELLABLE"] = 3] = "NOT_CANCELLABLE";
306
- CancelStatus$1[CancelStatus$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
307
- return CancelStatus$1;
308
- }({});
309
274
  function cancelStatusFromJSON(object) {
310
275
  switch (object) {
311
276
  case 0:
312
- case "CANCEL_STATUS_UNSPECIFIED": return CancelStatus.UNSPECIFIED;
277
+ case "CANCEL_STATUS_UNSPECIFIED": return 0;
313
278
  case 1:
314
- case "CANCEL_STATUS_CANCELLED": return CancelStatus.CANCELLED;
279
+ case "CANCEL_STATUS_CANCELLED": return 1;
315
280
  case 2:
316
- case "CANCEL_STATUS_CANCELLING": return CancelStatus.CANCELLING;
281
+ case "CANCEL_STATUS_CANCELLING": return 2;
317
282
  case 3:
318
- case "CANCEL_STATUS_NOT_CANCELLABLE": return CancelStatus.NOT_CANCELLABLE;
319
- case -1:
320
- case "UNRECOGNIZED":
321
- default: return CancelStatus.UNRECOGNIZED;
283
+ case "CANCEL_STATUS_NOT_CANCELLABLE": return 3;
284
+ default: return -1;
322
285
  }
323
286
  }
324
287
  function cancelStatusToJSON(object) {
325
288
  switch (object) {
326
- case CancelStatus.UNSPECIFIED: return "CANCEL_STATUS_UNSPECIFIED";
327
- case CancelStatus.CANCELLED: return "CANCEL_STATUS_CANCELLED";
328
- case CancelStatus.CANCELLING: return "CANCEL_STATUS_CANCELLING";
329
- case CancelStatus.NOT_CANCELLABLE: return "CANCEL_STATUS_NOT_CANCELLABLE";
330
- case CancelStatus.UNRECOGNIZED:
289
+ case 0: return "CANCEL_STATUS_UNSPECIFIED";
290
+ case 1: return "CANCEL_STATUS_CANCELLED";
291
+ case 2: return "CANCEL_STATUS_CANCELLING";
292
+ case 3: return "CANCEL_STATUS_NOT_CANCELLABLE";
331
293
  default: return "UNRECOGNIZED";
332
294
  }
333
295
  }
334
296
  /** Describes what type of descriptor is defined. */
335
- let FlightDescriptor_DescriptorType = /* @__PURE__ */ function(FlightDescriptor_DescriptorType$1) {
297
+ let FlightDescriptor_DescriptorType = /* @__PURE__ */ function(FlightDescriptor_DescriptorType) {
336
298
  /** UNKNOWN - Protobuf pattern, not used. */
337
- FlightDescriptor_DescriptorType$1[FlightDescriptor_DescriptorType$1["UNKNOWN"] = 0] = "UNKNOWN";
299
+ FlightDescriptor_DescriptorType[FlightDescriptor_DescriptorType["UNKNOWN"] = 0] = "UNKNOWN";
338
300
  /**
339
301
  * PATH - A named path that identifies a dataset. A path is composed of a string
340
302
  * or list of strings describing a particular dataset. This is conceptually
341
303
  * similar to a path inside a filesystem.
342
304
  */
343
- FlightDescriptor_DescriptorType$1[FlightDescriptor_DescriptorType$1["PATH"] = 1] = "PATH";
305
+ FlightDescriptor_DescriptorType[FlightDescriptor_DescriptorType["PATH"] = 1] = "PATH";
344
306
  /** CMD - An opaque command to generate a dataset. */
345
- FlightDescriptor_DescriptorType$1[FlightDescriptor_DescriptorType$1["CMD"] = 2] = "CMD";
346
- FlightDescriptor_DescriptorType$1[FlightDescriptor_DescriptorType$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
347
- return FlightDescriptor_DescriptorType$1;
307
+ FlightDescriptor_DescriptorType[FlightDescriptor_DescriptorType["CMD"] = 2] = "CMD";
308
+ FlightDescriptor_DescriptorType[FlightDescriptor_DescriptorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
309
+ return FlightDescriptor_DescriptorType;
348
310
  }({});
349
311
  function flightDescriptor_DescriptorTypeFromJSON(object) {
350
312
  switch (object) {
351
313
  case 0:
352
- case "UNKNOWN": return FlightDescriptor_DescriptorType.UNKNOWN;
314
+ case "UNKNOWN": return 0;
353
315
  case 1:
354
- case "PATH": return FlightDescriptor_DescriptorType.PATH;
316
+ case "PATH": return 1;
355
317
  case 2:
356
- case "CMD": return FlightDescriptor_DescriptorType.CMD;
357
- case -1:
358
- case "UNRECOGNIZED":
359
- default: return FlightDescriptor_DescriptorType.UNRECOGNIZED;
318
+ case "CMD": return 2;
319
+ default: return -1;
360
320
  }
361
321
  }
362
322
  function flightDescriptor_DescriptorTypeToJSON(object) {
363
323
  switch (object) {
364
- case FlightDescriptor_DescriptorType.UNKNOWN: return "UNKNOWN";
365
- case FlightDescriptor_DescriptorType.PATH: return "PATH";
366
- case FlightDescriptor_DescriptorType.CMD: return "CMD";
367
- case FlightDescriptor_DescriptorType.UNRECOGNIZED:
324
+ case 0: return "UNKNOWN";
325
+ case 1: return "PATH";
326
+ case 2: return "CMD";
368
327
  default: return "UNRECOGNIZED";
369
328
  }
370
329
  }
@@ -372,7 +331,7 @@ function createBaseHandshakeRequest() {
372
331
  return {
373
332
  $type: "arrow.flight.protocol.HandshakeRequest",
374
333
  protocolVersion: 0n,
375
- payload: new Uint8Array(0)
334
+ payload: /* @__PURE__ */ new Uint8Array(0)
376
335
  };
377
336
  }
378
337
  const HandshakeRequest = {
@@ -410,7 +369,7 @@ const HandshakeRequest = {
410
369
  return {
411
370
  $type: HandshakeRequest.$type,
412
371
  protocolVersion: isSet$2(object.protocolVersion) ? BigInt(object.protocolVersion) : 0n,
413
- payload: isSet$2(object.payload) ? bytesFromBase64$2(object.payload) : new Uint8Array(0)
372
+ payload: isSet$2(object.payload) ? bytesFromBase64$2(object.payload) : /* @__PURE__ */ new Uint8Array(0)
414
373
  };
415
374
  },
416
375
  toJSON(message) {
@@ -425,7 +384,7 @@ const HandshakeRequest = {
425
384
  fromPartial(object) {
426
385
  const message = createBaseHandshakeRequest();
427
386
  message.protocolVersion = object.protocolVersion ?? 0n;
428
- message.payload = object.payload ?? new Uint8Array(0);
387
+ message.payload = object.payload ?? /* @__PURE__ */ new Uint8Array(0);
429
388
  return message;
430
389
  }
431
390
  };
@@ -434,7 +393,7 @@ function createBaseHandshakeResponse() {
434
393
  return {
435
394
  $type: "arrow.flight.protocol.HandshakeResponse",
436
395
  protocolVersion: 0n,
437
- payload: new Uint8Array(0)
396
+ payload: /* @__PURE__ */ new Uint8Array(0)
438
397
  };
439
398
  }
440
399
  const HandshakeResponse = {
@@ -472,7 +431,7 @@ const HandshakeResponse = {
472
431
  return {
473
432
  $type: HandshakeResponse.$type,
474
433
  protocolVersion: isSet$2(object.protocolVersion) ? BigInt(object.protocolVersion) : 0n,
475
- payload: isSet$2(object.payload) ? bytesFromBase64$2(object.payload) : new Uint8Array(0)
434
+ payload: isSet$2(object.payload) ? bytesFromBase64$2(object.payload) : /* @__PURE__ */ new Uint8Array(0)
476
435
  };
477
436
  },
478
437
  toJSON(message) {
@@ -487,7 +446,7 @@ const HandshakeResponse = {
487
446
  fromPartial(object) {
488
447
  const message = createBaseHandshakeResponse();
489
448
  message.protocolVersion = object.protocolVersion ?? 0n;
490
- message.payload = object.payload ?? new Uint8Array(0);
449
+ message.payload = object.payload ?? /* @__PURE__ */ new Uint8Array(0);
491
450
  return message;
492
451
  }
493
452
  };
@@ -565,7 +524,7 @@ const Empty = {
565
524
  const message = createBaseEmpty();
566
525
  while (reader.pos < end) {
567
526
  const tag = reader.uint32();
568
- switch (tag >>> 3) {}
527
+ tag >>> 3;
569
528
  if ((tag & 7) === 4 || tag === 0) break;
570
529
  reader.skip(tag & 7);
571
530
  }
@@ -647,7 +606,7 @@ messageTypeRegistry.set(ActionType.$type, ActionType);
647
606
  function createBaseCriteria() {
648
607
  return {
649
608
  $type: "arrow.flight.protocol.Criteria",
650
- expression: new Uint8Array(0)
609
+ expression: /* @__PURE__ */ new Uint8Array(0)
651
610
  };
652
611
  }
653
612
  const Criteria = {
@@ -676,7 +635,7 @@ const Criteria = {
676
635
  fromJSON(object) {
677
636
  return {
678
637
  $type: Criteria.$type,
679
- expression: isSet$2(object.expression) ? bytesFromBase64$2(object.expression) : new Uint8Array(0)
638
+ expression: isSet$2(object.expression) ? bytesFromBase64$2(object.expression) : /* @__PURE__ */ new Uint8Array(0)
680
639
  };
681
640
  },
682
641
  toJSON(message) {
@@ -689,7 +648,7 @@ const Criteria = {
689
648
  },
690
649
  fromPartial(object) {
691
650
  const message = createBaseCriteria();
692
- message.expression = object.expression ?? new Uint8Array(0);
651
+ message.expression = object.expression ?? /* @__PURE__ */ new Uint8Array(0);
693
652
  return message;
694
653
  }
695
654
  };
@@ -698,7 +657,7 @@ function createBaseAction() {
698
657
  return {
699
658
  $type: "arrow.flight.protocol.Action",
700
659
  type: "",
701
- body: new Uint8Array(0)
660
+ body: /* @__PURE__ */ new Uint8Array(0)
702
661
  };
703
662
  }
704
663
  const Action = {
@@ -733,7 +692,7 @@ const Action = {
733
692
  return {
734
693
  $type: Action.$type,
735
694
  type: isSet$2(object.type) ? globalThis.String(object.type) : "",
736
- body: isSet$2(object.body) ? bytesFromBase64$2(object.body) : new Uint8Array(0)
695
+ body: isSet$2(object.body) ? bytesFromBase64$2(object.body) : /* @__PURE__ */ new Uint8Array(0)
737
696
  };
738
697
  },
739
698
  toJSON(message) {
@@ -748,7 +707,7 @@ const Action = {
748
707
  fromPartial(object) {
749
708
  const message = createBaseAction();
750
709
  message.type = object.type ?? "";
751
- message.body = object.body ?? new Uint8Array(0);
710
+ message.body = object.body ?? /* @__PURE__ */ new Uint8Array(0);
752
711
  return message;
753
712
  }
754
713
  };
@@ -856,7 +815,7 @@ messageTypeRegistry.set(RenewFlightEndpointRequest.$type, RenewFlightEndpointReq
856
815
  function createBaseResult() {
857
816
  return {
858
817
  $type: "arrow.flight.protocol.Result",
859
- body: new Uint8Array(0)
818
+ body: /* @__PURE__ */ new Uint8Array(0)
860
819
  };
861
820
  }
862
821
  const Result = {
@@ -885,7 +844,7 @@ const Result = {
885
844
  fromJSON(object) {
886
845
  return {
887
846
  $type: Result.$type,
888
- body: isSet$2(object.body) ? bytesFromBase64$2(object.body) : new Uint8Array(0)
847
+ body: isSet$2(object.body) ? bytesFromBase64$2(object.body) : /* @__PURE__ */ new Uint8Array(0)
889
848
  };
890
849
  },
891
850
  toJSON(message) {
@@ -898,7 +857,7 @@ const Result = {
898
857
  },
899
858
  fromPartial(object) {
900
859
  const message = createBaseResult();
901
- message.body = object.body ?? new Uint8Array(0);
860
+ message.body = object.body ?? /* @__PURE__ */ new Uint8Array(0);
902
861
  return message;
903
862
  }
904
863
  };
@@ -956,7 +915,7 @@ messageTypeRegistry.set(CancelFlightInfoResult.$type, CancelFlightInfoResult);
956
915
  function createBaseSchemaResult() {
957
916
  return {
958
917
  $type: "arrow.flight.protocol.SchemaResult",
959
- schema: new Uint8Array(0)
918
+ schema: /* @__PURE__ */ new Uint8Array(0)
960
919
  };
961
920
  }
962
921
  const SchemaResult = {
@@ -985,7 +944,7 @@ const SchemaResult = {
985
944
  fromJSON(object) {
986
945
  return {
987
946
  $type: SchemaResult.$type,
988
- schema: isSet$2(object.schema) ? bytesFromBase64$2(object.schema) : new Uint8Array(0)
947
+ schema: isSet$2(object.schema) ? bytesFromBase64$2(object.schema) : /* @__PURE__ */ new Uint8Array(0)
989
948
  };
990
949
  },
991
950
  toJSON(message) {
@@ -998,7 +957,7 @@ const SchemaResult = {
998
957
  },
999
958
  fromPartial(object) {
1000
959
  const message = createBaseSchemaResult();
1001
- message.schema = object.schema ?? new Uint8Array(0);
960
+ message.schema = object.schema ?? /* @__PURE__ */ new Uint8Array(0);
1002
961
  return message;
1003
962
  }
1004
963
  };
@@ -1007,7 +966,7 @@ function createBaseFlightDescriptor() {
1007
966
  return {
1008
967
  $type: "arrow.flight.protocol.FlightDescriptor",
1009
968
  type: 0,
1010
- cmd: new Uint8Array(0),
969
+ cmd: /* @__PURE__ */ new Uint8Array(0),
1011
970
  path: []
1012
971
  };
1013
972
  }
@@ -1048,7 +1007,7 @@ const FlightDescriptor = {
1048
1007
  return {
1049
1008
  $type: FlightDescriptor.$type,
1050
1009
  type: isSet$2(object.type) ? flightDescriptor_DescriptorTypeFromJSON(object.type) : 0,
1051
- cmd: isSet$2(object.cmd) ? bytesFromBase64$2(object.cmd) : new Uint8Array(0),
1010
+ cmd: isSet$2(object.cmd) ? bytesFromBase64$2(object.cmd) : /* @__PURE__ */ new Uint8Array(0),
1052
1011
  path: globalThis.Array.isArray(object?.path) ? object.path.map((e) => globalThis.String(e)) : []
1053
1012
  };
1054
1013
  },
@@ -1065,7 +1024,7 @@ const FlightDescriptor = {
1065
1024
  fromPartial(object) {
1066
1025
  const message = createBaseFlightDescriptor();
1067
1026
  message.type = object.type ?? 0;
1068
- message.cmd = object.cmd ?? new Uint8Array(0);
1027
+ message.cmd = object.cmd ?? /* @__PURE__ */ new Uint8Array(0);
1069
1028
  message.path = object.path?.map((e) => e) || [];
1070
1029
  return message;
1071
1030
  }
@@ -1074,13 +1033,13 @@ messageTypeRegistry.set(FlightDescriptor.$type, FlightDescriptor);
1074
1033
  function createBaseFlightInfo() {
1075
1034
  return {
1076
1035
  $type: "arrow.flight.protocol.FlightInfo",
1077
- schema: new Uint8Array(0),
1036
+ schema: /* @__PURE__ */ new Uint8Array(0),
1078
1037
  flightDescriptor: void 0,
1079
1038
  endpoint: [],
1080
1039
  totalRecords: 0n,
1081
1040
  totalBytes: 0n,
1082
1041
  ordered: false,
1083
- appMetadata: new Uint8Array(0)
1042
+ appMetadata: /* @__PURE__ */ new Uint8Array(0)
1084
1043
  };
1085
1044
  }
1086
1045
  const FlightInfo = {
@@ -1145,13 +1104,13 @@ const FlightInfo = {
1145
1104
  fromJSON(object) {
1146
1105
  return {
1147
1106
  $type: FlightInfo.$type,
1148
- schema: isSet$2(object.schema) ? bytesFromBase64$2(object.schema) : new Uint8Array(0),
1107
+ schema: isSet$2(object.schema) ? bytesFromBase64$2(object.schema) : /* @__PURE__ */ new Uint8Array(0),
1149
1108
  flightDescriptor: isSet$2(object.flightDescriptor) ? FlightDescriptor.fromJSON(object.flightDescriptor) : void 0,
1150
1109
  endpoint: globalThis.Array.isArray(object?.endpoint) ? object.endpoint.map((e) => FlightEndpoint.fromJSON(e)) : [],
1151
1110
  totalRecords: isSet$2(object.totalRecords) ? BigInt(object.totalRecords) : 0n,
1152
1111
  totalBytes: isSet$2(object.totalBytes) ? BigInt(object.totalBytes) : 0n,
1153
1112
  ordered: isSet$2(object.ordered) ? globalThis.Boolean(object.ordered) : false,
1154
- appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : new Uint8Array(0)
1113
+ appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : /* @__PURE__ */ new Uint8Array(0)
1155
1114
  };
1156
1115
  },
1157
1116
  toJSON(message) {
@@ -1170,13 +1129,13 @@ const FlightInfo = {
1170
1129
  },
1171
1130
  fromPartial(object) {
1172
1131
  const message = createBaseFlightInfo();
1173
- message.schema = object.schema ?? new Uint8Array(0);
1132
+ message.schema = object.schema ?? /* @__PURE__ */ new Uint8Array(0);
1174
1133
  message.flightDescriptor = object.flightDescriptor !== void 0 && object.flightDescriptor !== null ? FlightDescriptor.fromPartial(object.flightDescriptor) : void 0;
1175
1134
  message.endpoint = object.endpoint?.map((e) => FlightEndpoint.fromPartial(e)) || [];
1176
1135
  message.totalRecords = object.totalRecords ?? 0n;
1177
1136
  message.totalBytes = object.totalBytes ?? 0n;
1178
1137
  message.ordered = object.ordered ?? false;
1179
- message.appMetadata = object.appMetadata ?? new Uint8Array(0);
1138
+ message.appMetadata = object.appMetadata ?? /* @__PURE__ */ new Uint8Array(0);
1180
1139
  return message;
1181
1140
  }
1182
1141
  };
@@ -1264,7 +1223,7 @@ function createBaseFlightEndpoint() {
1264
1223
  ticket: void 0,
1265
1224
  location: [],
1266
1225
  expirationTime: void 0,
1267
- appMetadata: new Uint8Array(0)
1226
+ appMetadata: /* @__PURE__ */ new Uint8Array(0)
1268
1227
  };
1269
1228
  }
1270
1229
  const FlightEndpoint = {
@@ -1311,7 +1270,7 @@ const FlightEndpoint = {
1311
1270
  ticket: isSet$2(object.ticket) ? Ticket.fromJSON(object.ticket) : void 0,
1312
1271
  location: globalThis.Array.isArray(object?.location) ? object.location.map((e) => Location.fromJSON(e)) : [],
1313
1272
  expirationTime: isSet$2(object.expirationTime) ? fromJsonTimestamp(object.expirationTime) : void 0,
1314
- appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : new Uint8Array(0)
1273
+ appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : /* @__PURE__ */ new Uint8Array(0)
1315
1274
  };
1316
1275
  },
1317
1276
  toJSON(message) {
@@ -1330,7 +1289,7 @@ const FlightEndpoint = {
1330
1289
  message.ticket = object.ticket !== void 0 && object.ticket !== null ? Ticket.fromPartial(object.ticket) : void 0;
1331
1290
  message.location = object.location?.map((e) => Location.fromPartial(e)) || [];
1332
1291
  message.expirationTime = object.expirationTime ?? void 0;
1333
- message.appMetadata = object.appMetadata ?? new Uint8Array(0);
1292
+ message.appMetadata = object.appMetadata ?? /* @__PURE__ */ new Uint8Array(0);
1334
1293
  return message;
1335
1294
  }
1336
1295
  };
@@ -1388,7 +1347,7 @@ messageTypeRegistry.set(Location.$type, Location);
1388
1347
  function createBaseTicket() {
1389
1348
  return {
1390
1349
  $type: "arrow.flight.protocol.Ticket",
1391
- ticket: new Uint8Array(0)
1350
+ ticket: /* @__PURE__ */ new Uint8Array(0)
1392
1351
  };
1393
1352
  }
1394
1353
  const Ticket = {
@@ -1417,7 +1376,7 @@ const Ticket = {
1417
1376
  fromJSON(object) {
1418
1377
  return {
1419
1378
  $type: Ticket.$type,
1420
- ticket: isSet$2(object.ticket) ? bytesFromBase64$2(object.ticket) : new Uint8Array(0)
1379
+ ticket: isSet$2(object.ticket) ? bytesFromBase64$2(object.ticket) : /* @__PURE__ */ new Uint8Array(0)
1421
1380
  };
1422
1381
  },
1423
1382
  toJSON(message) {
@@ -1430,7 +1389,7 @@ const Ticket = {
1430
1389
  },
1431
1390
  fromPartial(object) {
1432
1391
  const message = createBaseTicket();
1433
- message.ticket = object.ticket ?? new Uint8Array(0);
1392
+ message.ticket = object.ticket ?? /* @__PURE__ */ new Uint8Array(0);
1434
1393
  return message;
1435
1394
  }
1436
1395
  };
@@ -1439,9 +1398,9 @@ function createBaseFlightData() {
1439
1398
  return {
1440
1399
  $type: "arrow.flight.protocol.FlightData",
1441
1400
  flightDescriptor: void 0,
1442
- dataHeader: new Uint8Array(0),
1443
- appMetadata: new Uint8Array(0),
1444
- dataBody: new Uint8Array(0)
1401
+ dataHeader: /* @__PURE__ */ new Uint8Array(0),
1402
+ appMetadata: /* @__PURE__ */ new Uint8Array(0),
1403
+ dataBody: /* @__PURE__ */ new Uint8Array(0)
1445
1404
  };
1446
1405
  }
1447
1406
  const FlightData = {
@@ -1486,9 +1445,9 @@ const FlightData = {
1486
1445
  return {
1487
1446
  $type: FlightData.$type,
1488
1447
  flightDescriptor: isSet$2(object.flightDescriptor) ? FlightDescriptor.fromJSON(object.flightDescriptor) : void 0,
1489
- dataHeader: isSet$2(object.dataHeader) ? bytesFromBase64$2(object.dataHeader) : new Uint8Array(0),
1490
- appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : new Uint8Array(0),
1491
- dataBody: isSet$2(object.dataBody) ? bytesFromBase64$2(object.dataBody) : new Uint8Array(0)
1448
+ dataHeader: isSet$2(object.dataHeader) ? bytesFromBase64$2(object.dataHeader) : /* @__PURE__ */ new Uint8Array(0),
1449
+ appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : /* @__PURE__ */ new Uint8Array(0),
1450
+ dataBody: isSet$2(object.dataBody) ? bytesFromBase64$2(object.dataBody) : /* @__PURE__ */ new Uint8Array(0)
1492
1451
  };
1493
1452
  },
1494
1453
  toJSON(message) {
@@ -1505,9 +1464,9 @@ const FlightData = {
1505
1464
  fromPartial(object) {
1506
1465
  const message = createBaseFlightData();
1507
1466
  message.flightDescriptor = object.flightDescriptor !== void 0 && object.flightDescriptor !== null ? FlightDescriptor.fromPartial(object.flightDescriptor) : void 0;
1508
- message.dataHeader = object.dataHeader ?? new Uint8Array(0);
1509
- message.appMetadata = object.appMetadata ?? new Uint8Array(0);
1510
- message.dataBody = object.dataBody ?? new Uint8Array(0);
1467
+ message.dataHeader = object.dataHeader ?? /* @__PURE__ */ new Uint8Array(0);
1468
+ message.appMetadata = object.appMetadata ?? /* @__PURE__ */ new Uint8Array(0);
1469
+ message.dataBody = object.dataBody ?? /* @__PURE__ */ new Uint8Array(0);
1511
1470
  return message;
1512
1471
  }
1513
1472
  };
@@ -1515,7 +1474,7 @@ messageTypeRegistry.set(FlightData.$type, FlightData);
1515
1474
  function createBasePutResult() {
1516
1475
  return {
1517
1476
  $type: "arrow.flight.protocol.PutResult",
1518
- appMetadata: new Uint8Array(0)
1477
+ appMetadata: /* @__PURE__ */ new Uint8Array(0)
1519
1478
  };
1520
1479
  }
1521
1480
  const PutResult = {
@@ -1544,7 +1503,7 @@ const PutResult = {
1544
1503
  fromJSON(object) {
1545
1504
  return {
1546
1505
  $type: PutResult.$type,
1547
- appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : new Uint8Array(0)
1506
+ appMetadata: isSet$2(object.appMetadata) ? bytesFromBase64$2(object.appMetadata) : /* @__PURE__ */ new Uint8Array(0)
1548
1507
  };
1549
1508
  },
1550
1509
  toJSON(message) {
@@ -1557,7 +1516,7 @@ const PutResult = {
1557
1516
  },
1558
1517
  fromPartial(object) {
1559
1518
  const message = createBasePutResult();
1560
- message.appMetadata = object.appMetadata ?? new Uint8Array(0);
1519
+ message.appMetadata = object.appMetadata ?? /* @__PURE__ */ new Uint8Array(0);
1561
1520
  return message;
1562
1521
  }
1563
1522
  };
@@ -1566,6 +1525,12 @@ const FlightServiceDefinition = {
1566
1525
  name: "FlightService",
1567
1526
  fullName: "arrow.flight.protocol.FlightService",
1568
1527
  methods: {
1528
+ /**
1529
+ * Handshake between client and server. Depending on the server, the
1530
+ * handshake may be required to determine the token that should be used for
1531
+ * future operations. Both request and response are streams to allow multiple
1532
+ * round-trips depending on auth mechanism.
1533
+ */
1569
1534
  handshake: {
1570
1535
  name: "Handshake",
1571
1536
  requestType: HandshakeRequest,
@@ -1574,6 +1539,14 @@ const FlightServiceDefinition = {
1574
1539
  responseStream: true,
1575
1540
  options: {}
1576
1541
  },
1542
+ /**
1543
+ * Get a list of available streams given a particular criteria. Most flight
1544
+ * services will expose one or more streams that are readily available for
1545
+ * retrieval. This api allows listing the streams available for
1546
+ * consumption. A user can also provide a criteria. The criteria can limit
1547
+ * the subset of streams that can be listed via this interface. Each flight
1548
+ * service allows its own definition of how to consume criteria.
1549
+ */
1577
1550
  listFlights: {
1578
1551
  name: "ListFlights",
1579
1552
  requestType: Criteria,
@@ -1582,6 +1555,18 @@ const FlightServiceDefinition = {
1582
1555
  responseStream: true,
1583
1556
  options: {}
1584
1557
  },
1558
+ /**
1559
+ * For a given FlightDescriptor, get information about how the flight can be
1560
+ * consumed. This is a useful interface if the consumer of the interface
1561
+ * already can identify the specific flight to consume. This interface can
1562
+ * also allow a consumer to generate a flight stream through a specified
1563
+ * descriptor. For example, a flight descriptor might be something that
1564
+ * includes a SQL statement or a Pickled Python operation that will be
1565
+ * executed. In those cases, the descriptor will not be previously available
1566
+ * within the list of available streams provided by ListFlights but will be
1567
+ * available for consumption for the duration defined by the specific flight
1568
+ * service.
1569
+ */
1585
1570
  getFlightInfo: {
1586
1571
  name: "GetFlightInfo",
1587
1572
  requestType: FlightDescriptor,
@@ -1590,6 +1575,30 @@ const FlightServiceDefinition = {
1590
1575
  responseStream: false,
1591
1576
  options: {}
1592
1577
  },
1578
+ /**
1579
+ * For a given FlightDescriptor, start a query and get information
1580
+ * to poll its execution status. This is a useful interface if the
1581
+ * query may be a long-running query. The first PollFlightInfo call
1582
+ * should return as quickly as possible. (GetFlightInfo doesn't
1583
+ * return until the query is complete.)
1584
+ *
1585
+ * A client can consume any available results before
1586
+ * the query is completed. See PollInfo.info for details.
1587
+ *
1588
+ * A client can poll the updated query status by calling
1589
+ * PollFlightInfo() with PollInfo.flight_descriptor. A server
1590
+ * should not respond until the result would be different from last
1591
+ * time. That way, the client can "long poll" for updates
1592
+ * without constantly making requests. Clients can set a short timeout
1593
+ * to avoid blocking calls if desired.
1594
+ *
1595
+ * A client can't use PollInfo.flight_descriptor after
1596
+ * PollInfo.expiration_time passes. A server might not accept the
1597
+ * retry descriptor anymore and the query may be cancelled.
1598
+ *
1599
+ * A client may use the CancelFlightInfo action with
1600
+ * PollInfo.info to cancel the running query.
1601
+ */
1593
1602
  pollFlightInfo: {
1594
1603
  name: "PollFlightInfo",
1595
1604
  requestType: FlightDescriptor,
@@ -1598,6 +1607,12 @@ const FlightServiceDefinition = {
1598
1607
  responseStream: false,
1599
1608
  options: {}
1600
1609
  },
1610
+ /**
1611
+ * For a given FlightDescriptor, get the Schema as described in Schema.fbs::Schema
1612
+ * This is used when a consumer needs the Schema of flight stream. Similar to
1613
+ * GetFlightInfo this interface may generate a new flight that was not previously
1614
+ * available in ListFlights.
1615
+ */
1601
1616
  getSchema: {
1602
1617
  name: "GetSchema",
1603
1618
  requestType: FlightDescriptor,
@@ -1606,6 +1621,12 @@ const FlightServiceDefinition = {
1606
1621
  responseStream: false,
1607
1622
  options: {}
1608
1623
  },
1624
+ /**
1625
+ * Retrieve a single stream associated with a particular descriptor
1626
+ * associated with the referenced ticket. A Flight can be composed of one or
1627
+ * more streams where each stream can be retrieved using a separate opaque
1628
+ * ticket that the flight service uses for managing a collection of streams.
1629
+ */
1609
1630
  doGet: {
1610
1631
  name: "DoGet",
1611
1632
  requestType: Ticket,
@@ -1614,6 +1635,14 @@ const FlightServiceDefinition = {
1614
1635
  responseStream: true,
1615
1636
  options: {}
1616
1637
  },
1638
+ /**
1639
+ * Push a stream to the flight service associated with a particular
1640
+ * flight stream. This allows a client of a flight service to upload a stream
1641
+ * of data. Depending on the particular flight service, a client consumer
1642
+ * could be allowed to upload a single stream per descriptor or an unlimited
1643
+ * number. In the latter, the service might implement a 'seal' action that
1644
+ * can be applied to a descriptor once all streams are uploaded.
1645
+ */
1617
1646
  doPut: {
1618
1647
  name: "DoPut",
1619
1648
  requestType: FlightData,
@@ -1622,6 +1651,13 @@ const FlightServiceDefinition = {
1622
1651
  responseStream: true,
1623
1652
  options: {}
1624
1653
  },
1654
+ /**
1655
+ * Open a bidirectional data channel for a given descriptor. This
1656
+ * allows clients to send and receive arbitrary Arrow data and
1657
+ * application-specific metadata in a single logical stream. In
1658
+ * contrast to DoGet/DoPut, this is more suited for clients
1659
+ * offloading computation (rather than storage) to a Flight service.
1660
+ */
1625
1661
  doExchange: {
1626
1662
  name: "DoExchange",
1627
1663
  requestType: FlightData,
@@ -1630,6 +1666,14 @@ const FlightServiceDefinition = {
1630
1666
  responseStream: true,
1631
1667
  options: {}
1632
1668
  },
1669
+ /**
1670
+ * Flight services can support an arbitrary number of simple actions in
1671
+ * addition to the possible ListFlights, GetFlightInfo, DoGet, DoPut
1672
+ * operations that are potentially available. DoAction allows a flight client
1673
+ * to do a specific action against a flight service. An action includes
1674
+ * opaque request and response objects that are specific to the type action
1675
+ * being undertaken.
1676
+ */
1633
1677
  doAction: {
1634
1678
  name: "DoAction",
1635
1679
  requestType: Action,
@@ -1638,6 +1682,11 @@ const FlightServiceDefinition = {
1638
1682
  responseStream: true,
1639
1683
  options: {}
1640
1684
  },
1685
+ /**
1686
+ * A flight service exposes all of the available action types that it has
1687
+ * along with descriptions. This allows different flight consumers to
1688
+ * understand the capabilities of the flight service.
1689
+ */
1641
1690
  listActions: {
1642
1691
  name: "ListActions",
1643
1692
  requestType: Empty,
@@ -1687,14 +1736,13 @@ function fromJsonTimestamp(o) {
1687
1736
  function isSet$2(value) {
1688
1737
  return value !== null && value !== void 0;
1689
1738
  }
1690
-
1691
1739
  //#endregion
1692
1740
  //#region src/arrow-flight-client.ts
1693
- var arrow_flight_client_exports = /* @__PURE__ */ __export({
1741
+ var arrow_flight_client_exports = /* @__PURE__ */ __exportAll({
1694
1742
  ArrowFlightClient: () => ArrowFlightClient,
1695
1743
  layer: () => layer$1,
1696
1744
  layerConfig: () => layerConfig$1,
1697
- make: () => make
1745
+ make: () => make$1
1698
1746
  });
1699
1747
  var ArrowFlightClient = class extends Context.Service()("@useairfoil/flight/ArrowFlightClient") {};
1700
1748
  const mapTransportError = (message, cause) => new FlightTransportError({
@@ -1706,7 +1754,7 @@ const mapDecodeError = (message, cause) => new FlightDecodeError({
1706
1754
  cause
1707
1755
  });
1708
1756
  const streamFromAsyncIterable = (iterable, message) => Stream.fromAsyncIterable(iterable, (cause) => mapTransportError(message, cause));
1709
- const make = Effect.fnUntraced(function* (options) {
1757
+ const make$1 = Effect.fnUntraced(function* (options) {
1710
1758
  const ownsChannel = "host" in options;
1711
1759
  const channel = createChannelFromConfig(options);
1712
1760
  const client = createClient(FlightServiceDefinition, channel, options.defaultCallOptions);
@@ -1716,41 +1764,41 @@ const make = Effect.fnUntraced(function* (options) {
1716
1764
  channel.close();
1717
1765
  }));
1718
1766
  }
1719
- const doGet = (request, options$1) => {
1720
- const { schema: expectedSchema } = options$1;
1721
- return Stream.fromAsyncIterable(decodeFlightDataStream(client.doGet(request, options$1), { expectedSchema }), (cause) => mapDecodeError("Flight batch decoding failed", cause));
1767
+ const doGet = (request, options) => {
1768
+ const { schema: expectedSchema } = options;
1769
+ return Stream.fromAsyncIterable(decodeFlightDataStream(client.doGet(request, options), { expectedSchema }), (cause) => mapDecodeError("Flight batch decoding failed", cause));
1722
1770
  };
1723
- const executeFlightInfo = (info, options$1) => {
1771
+ const executeFlightInfo = (info, options) => {
1724
1772
  const schema = decodeSchemaFromFlightInfo(info);
1725
1773
  if (!schema) return Stream.fail(new FlightProtocolError({ message: "FlightInfo must include a schema" }));
1726
1774
  return Stream.fromIterable(info.endpoint).pipe(Stream.flatMap((endpoint) => endpoint.ticket === void 0 ? Stream.empty : doGet(endpoint.ticket, {
1727
1775
  schema,
1728
- ...options$1
1776
+ ...options
1729
1777
  })));
1730
1778
  };
1731
1779
  return ArrowFlightClient.of({
1732
- handshake: (request, options$1) => streamFromAsyncIterable(client.handshake(request, options$1), "Flight handshake failed"),
1733
- getFlightInfo: (request, options$1) => Effect.tryPromise({
1734
- try: () => client.getFlightInfo(request, options$1),
1780
+ handshake: (request, options) => streamFromAsyncIterable(client.handshake(request, options), "Flight handshake failed"),
1781
+ getFlightInfo: (request, options) => Effect.tryPromise({
1782
+ try: () => client.getFlightInfo(request, options),
1735
1783
  catch: (cause) => mapTransportError("Flight getFlightInfo failed", cause)
1736
1784
  }),
1737
1785
  doGet,
1738
- doPut: (request, options$1) => client.doPut(request, options$1),
1786
+ doPut: (request, options) => client.doPut(request, options),
1739
1787
  executeFlightInfo
1740
1788
  });
1741
1789
  });
1742
- const layer$1 = (options) => Layer.effect(ArrowFlightClient, make(options));
1790
+ const layer$1 = (options) => Layer.effect(ArrowFlightClient, make$1(options));
1743
1791
  const layerConfig$1 = (options) => Layer.effect(ArrowFlightClient, Effect.gen(function* () {
1744
- return yield* make(yield* Config.unwrap(options));
1792
+ const resolved = yield* Config.unwrap(options);
1793
+ return yield* make$1(resolved);
1745
1794
  }));
1746
-
1747
1795
  //#endregion
1748
1796
  //#region src/proto/any.ts
1749
1797
  function createBaseAny() {
1750
1798
  return {
1751
1799
  $type: "google.protobuf.Any",
1752
1800
  typeUrl: "",
1753
- value: new Uint8Array(0)
1801
+ value: /* @__PURE__ */ new Uint8Array(0)
1754
1802
  };
1755
1803
  }
1756
1804
  const Any = {
@@ -1785,7 +1833,7 @@ const Any = {
1785
1833
  return {
1786
1834
  $type: Any.$type,
1787
1835
  typeUrl: isSet$1(object.typeUrl) ? globalThis.String(object.typeUrl) : "",
1788
- value: isSet$1(object.value) ? bytesFromBase64$1(object.value) : new Uint8Array(0)
1836
+ value: isSet$1(object.value) ? bytesFromBase64$1(object.value) : /* @__PURE__ */ new Uint8Array(0)
1789
1837
  };
1790
1838
  },
1791
1839
  toJSON(message) {
@@ -1800,7 +1848,7 @@ const Any = {
1800
1848
  fromPartial(object) {
1801
1849
  const message = createBaseAny();
1802
1850
  message.typeUrl = object.typeUrl ?? "";
1803
- message.value = object.value ?? new Uint8Array(0);
1851
+ message.value = object.value ?? /* @__PURE__ */ new Uint8Array(0);
1804
1852
  return message;
1805
1853
  }
1806
1854
  };
@@ -1827,189 +1875,106 @@ function base64FromBytes$1(arr) {
1827
1875
  function isSet$1(value) {
1828
1876
  return value !== null && value !== void 0;
1829
1877
  }
1830
-
1831
1878
  //#endregion
1832
1879
  //#region src/proto/FlightSql.ts
1833
- let ActionEndTransactionRequest_EndTransaction = /* @__PURE__ */ function(ActionEndTransactionRequest_EndTransaction$1) {
1834
- ActionEndTransactionRequest_EndTransaction$1[ActionEndTransactionRequest_EndTransaction$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
1835
- /** COMMIT - Commit the transaction. */
1836
- ActionEndTransactionRequest_EndTransaction$1[ActionEndTransactionRequest_EndTransaction$1["COMMIT"] = 1] = "COMMIT";
1837
- /** ROLLBACK - Roll back the transaction. */
1838
- ActionEndTransactionRequest_EndTransaction$1[ActionEndTransactionRequest_EndTransaction$1["ROLLBACK"] = 2] = "ROLLBACK";
1839
- ActionEndTransactionRequest_EndTransaction$1[ActionEndTransactionRequest_EndTransaction$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1840
- return ActionEndTransactionRequest_EndTransaction$1;
1841
- }({});
1842
1880
  function actionEndTransactionRequest_EndTransactionFromJSON(object) {
1843
1881
  switch (object) {
1844
1882
  case 0:
1845
- case "END_TRANSACTION_UNSPECIFIED": return ActionEndTransactionRequest_EndTransaction.UNSPECIFIED;
1883
+ case "END_TRANSACTION_UNSPECIFIED": return 0;
1846
1884
  case 1:
1847
- case "END_TRANSACTION_COMMIT": return ActionEndTransactionRequest_EndTransaction.COMMIT;
1885
+ case "END_TRANSACTION_COMMIT": return 1;
1848
1886
  case 2:
1849
- case "END_TRANSACTION_ROLLBACK": return ActionEndTransactionRequest_EndTransaction.ROLLBACK;
1850
- case -1:
1851
- case "UNRECOGNIZED":
1852
- default: return ActionEndTransactionRequest_EndTransaction.UNRECOGNIZED;
1887
+ case "END_TRANSACTION_ROLLBACK": return 2;
1888
+ default: return -1;
1853
1889
  }
1854
1890
  }
1855
1891
  function actionEndTransactionRequest_EndTransactionToJSON(object) {
1856
1892
  switch (object) {
1857
- case ActionEndTransactionRequest_EndTransaction.UNSPECIFIED: return "END_TRANSACTION_UNSPECIFIED";
1858
- case ActionEndTransactionRequest_EndTransaction.COMMIT: return "END_TRANSACTION_COMMIT";
1859
- case ActionEndTransactionRequest_EndTransaction.ROLLBACK: return "END_TRANSACTION_ROLLBACK";
1860
- case ActionEndTransactionRequest_EndTransaction.UNRECOGNIZED:
1893
+ case 0: return "END_TRANSACTION_UNSPECIFIED";
1894
+ case 1: return "END_TRANSACTION_COMMIT";
1895
+ case 2: return "END_TRANSACTION_ROLLBACK";
1861
1896
  default: return "UNRECOGNIZED";
1862
1897
  }
1863
1898
  }
1864
- let ActionEndSavepointRequest_EndSavepoint = /* @__PURE__ */ function(ActionEndSavepointRequest_EndSavepoint$1) {
1865
- ActionEndSavepointRequest_EndSavepoint$1[ActionEndSavepointRequest_EndSavepoint$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
1866
- /** RELEASE - Release the savepoint. */
1867
- ActionEndSavepointRequest_EndSavepoint$1[ActionEndSavepointRequest_EndSavepoint$1["RELEASE"] = 1] = "RELEASE";
1868
- /** ROLLBACK - Roll back to a savepoint. */
1869
- ActionEndSavepointRequest_EndSavepoint$1[ActionEndSavepointRequest_EndSavepoint$1["ROLLBACK"] = 2] = "ROLLBACK";
1870
- ActionEndSavepointRequest_EndSavepoint$1[ActionEndSavepointRequest_EndSavepoint$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1871
- return ActionEndSavepointRequest_EndSavepoint$1;
1872
- }({});
1873
1899
  function actionEndSavepointRequest_EndSavepointFromJSON(object) {
1874
1900
  switch (object) {
1875
1901
  case 0:
1876
- case "END_SAVEPOINT_UNSPECIFIED": return ActionEndSavepointRequest_EndSavepoint.UNSPECIFIED;
1902
+ case "END_SAVEPOINT_UNSPECIFIED": return 0;
1877
1903
  case 1:
1878
- case "END_SAVEPOINT_RELEASE": return ActionEndSavepointRequest_EndSavepoint.RELEASE;
1904
+ case "END_SAVEPOINT_RELEASE": return 1;
1879
1905
  case 2:
1880
- case "END_SAVEPOINT_ROLLBACK": return ActionEndSavepointRequest_EndSavepoint.ROLLBACK;
1881
- case -1:
1882
- case "UNRECOGNIZED":
1883
- default: return ActionEndSavepointRequest_EndSavepoint.UNRECOGNIZED;
1906
+ case "END_SAVEPOINT_ROLLBACK": return 2;
1907
+ default: return -1;
1884
1908
  }
1885
1909
  }
1886
1910
  function actionEndSavepointRequest_EndSavepointToJSON(object) {
1887
1911
  switch (object) {
1888
- case ActionEndSavepointRequest_EndSavepoint.UNSPECIFIED: return "END_SAVEPOINT_UNSPECIFIED";
1889
- case ActionEndSavepointRequest_EndSavepoint.RELEASE: return "END_SAVEPOINT_RELEASE";
1890
- case ActionEndSavepointRequest_EndSavepoint.ROLLBACK: return "END_SAVEPOINT_ROLLBACK";
1891
- case ActionEndSavepointRequest_EndSavepoint.UNRECOGNIZED:
1912
+ case 0: return "END_SAVEPOINT_UNSPECIFIED";
1913
+ case 1: return "END_SAVEPOINT_RELEASE";
1914
+ case 2: return "END_SAVEPOINT_ROLLBACK";
1892
1915
  default: return "UNRECOGNIZED";
1893
1916
  }
1894
1917
  }
1895
- /** The action to take if the target table does not exist */
1896
- let CommandStatementIngest_TableDefinitionOptions_TableNotExistOption = /* @__PURE__ */ function(CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1) {
1897
- /** UNSPECIFIED - Do not use. Servers should error if this is specified by a client. */
1898
- CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1[CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
1899
- /** CREATE - Create the table if it does not exist */
1900
- CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1[CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1["CREATE"] = 1] = "CREATE";
1901
- /** FAIL - Fail if the table does not exist */
1902
- CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1[CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1["FAIL"] = 2] = "FAIL";
1903
- CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1[CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1904
- return CommandStatementIngest_TableDefinitionOptions_TableNotExistOption$1;
1905
- }({});
1906
1918
  function commandStatementIngest_TableDefinitionOptions_TableNotExistOptionFromJSON(object) {
1907
1919
  switch (object) {
1908
1920
  case 0:
1909
- case "TABLE_NOT_EXIST_OPTION_UNSPECIFIED": return CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.UNSPECIFIED;
1921
+ case "TABLE_NOT_EXIST_OPTION_UNSPECIFIED": return 0;
1910
1922
  case 1:
1911
- case "TABLE_NOT_EXIST_OPTION_CREATE": return CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.CREATE;
1923
+ case "TABLE_NOT_EXIST_OPTION_CREATE": return 1;
1912
1924
  case 2:
1913
- case "TABLE_NOT_EXIST_OPTION_FAIL": return CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.FAIL;
1914
- case -1:
1915
- case "UNRECOGNIZED":
1916
- default: return CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.UNRECOGNIZED;
1925
+ case "TABLE_NOT_EXIST_OPTION_FAIL": return 2;
1926
+ default: return -1;
1917
1927
  }
1918
1928
  }
1919
1929
  function commandStatementIngest_TableDefinitionOptions_TableNotExistOptionToJSON(object) {
1920
1930
  switch (object) {
1921
- case CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.UNSPECIFIED: return "TABLE_NOT_EXIST_OPTION_UNSPECIFIED";
1922
- case CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.CREATE: return "TABLE_NOT_EXIST_OPTION_CREATE";
1923
- case CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.FAIL: return "TABLE_NOT_EXIST_OPTION_FAIL";
1924
- case CommandStatementIngest_TableDefinitionOptions_TableNotExistOption.UNRECOGNIZED:
1931
+ case 0: return "TABLE_NOT_EXIST_OPTION_UNSPECIFIED";
1932
+ case 1: return "TABLE_NOT_EXIST_OPTION_CREATE";
1933
+ case 2: return "TABLE_NOT_EXIST_OPTION_FAIL";
1925
1934
  default: return "UNRECOGNIZED";
1926
1935
  }
1927
1936
  }
1928
- /** The action to take if the target table already exists */
1929
- let CommandStatementIngest_TableDefinitionOptions_TableExistsOption = /* @__PURE__ */ function(CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1) {
1930
- /** UNSPECIFIED - Do not use. Servers should error if this is specified by a client. */
1931
- CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1[CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
1932
- /** FAIL - Fail if the table already exists */
1933
- CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1[CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1["FAIL"] = 1] = "FAIL";
1934
- /** APPEND - Append to the table if it already exists */
1935
- CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1[CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1["APPEND"] = 2] = "APPEND";
1936
- /** REPLACE - Drop and recreate the table if it already exists */
1937
- CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1[CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1["REPLACE"] = 3] = "REPLACE";
1938
- CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1[CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1939
- return CommandStatementIngest_TableDefinitionOptions_TableExistsOption$1;
1940
- }({});
1941
1937
  function commandStatementIngest_TableDefinitionOptions_TableExistsOptionFromJSON(object) {
1942
1938
  switch (object) {
1943
1939
  case 0:
1944
- case "TABLE_EXISTS_OPTION_UNSPECIFIED": return CommandStatementIngest_TableDefinitionOptions_TableExistsOption.UNSPECIFIED;
1940
+ case "TABLE_EXISTS_OPTION_UNSPECIFIED": return 0;
1945
1941
  case 1:
1946
- case "TABLE_EXISTS_OPTION_FAIL": return CommandStatementIngest_TableDefinitionOptions_TableExistsOption.FAIL;
1942
+ case "TABLE_EXISTS_OPTION_FAIL": return 1;
1947
1943
  case 2:
1948
- case "TABLE_EXISTS_OPTION_APPEND": return CommandStatementIngest_TableDefinitionOptions_TableExistsOption.APPEND;
1944
+ case "TABLE_EXISTS_OPTION_APPEND": return 2;
1949
1945
  case 3:
1950
- case "TABLE_EXISTS_OPTION_REPLACE": return CommandStatementIngest_TableDefinitionOptions_TableExistsOption.REPLACE;
1951
- case -1:
1952
- case "UNRECOGNIZED":
1953
- default: return CommandStatementIngest_TableDefinitionOptions_TableExistsOption.UNRECOGNIZED;
1946
+ case "TABLE_EXISTS_OPTION_REPLACE": return 3;
1947
+ default: return -1;
1954
1948
  }
1955
1949
  }
1956
1950
  function commandStatementIngest_TableDefinitionOptions_TableExistsOptionToJSON(object) {
1957
1951
  switch (object) {
1958
- case CommandStatementIngest_TableDefinitionOptions_TableExistsOption.UNSPECIFIED: return "TABLE_EXISTS_OPTION_UNSPECIFIED";
1959
- case CommandStatementIngest_TableDefinitionOptions_TableExistsOption.FAIL: return "TABLE_EXISTS_OPTION_FAIL";
1960
- case CommandStatementIngest_TableDefinitionOptions_TableExistsOption.APPEND: return "TABLE_EXISTS_OPTION_APPEND";
1961
- case CommandStatementIngest_TableDefinitionOptions_TableExistsOption.REPLACE: return "TABLE_EXISTS_OPTION_REPLACE";
1962
- case CommandStatementIngest_TableDefinitionOptions_TableExistsOption.UNRECOGNIZED:
1952
+ case 0: return "TABLE_EXISTS_OPTION_UNSPECIFIED";
1953
+ case 1: return "TABLE_EXISTS_OPTION_FAIL";
1954
+ case 2: return "TABLE_EXISTS_OPTION_APPEND";
1955
+ case 3: return "TABLE_EXISTS_OPTION_REPLACE";
1963
1956
  default: return "UNRECOGNIZED";
1964
1957
  }
1965
1958
  }
1966
- let ActionCancelQueryResult_CancelResult = /* @__PURE__ */ function(ActionCancelQueryResult_CancelResult$1) {
1967
- /**
1968
- * UNSPECIFIED - The cancellation status is unknown. Servers should avoid using
1969
- * this value (send a NOT_FOUND error if the requested query is
1970
- * not known). Clients can retry the request.
1971
- */
1972
- ActionCancelQueryResult_CancelResult$1[ActionCancelQueryResult_CancelResult$1["UNSPECIFIED"] = 0] = "UNSPECIFIED";
1973
- /**
1974
- * CANCELLED - The cancellation request is complete. Subsequent requests with
1975
- * the same payload may return CANCELLED or a NOT_FOUND error.
1976
- */
1977
- ActionCancelQueryResult_CancelResult$1[ActionCancelQueryResult_CancelResult$1["CANCELLED"] = 1] = "CANCELLED";
1978
- /**
1979
- * CANCELLING - The cancellation request is in progress. The client may retry
1980
- * the cancellation request.
1981
- */
1982
- ActionCancelQueryResult_CancelResult$1[ActionCancelQueryResult_CancelResult$1["CANCELLING"] = 2] = "CANCELLING";
1983
- /**
1984
- * NOT_CANCELLABLE - The query is not cancellable. The client should not retry the
1985
- * cancellation request.
1986
- */
1987
- ActionCancelQueryResult_CancelResult$1[ActionCancelQueryResult_CancelResult$1["NOT_CANCELLABLE"] = 3] = "NOT_CANCELLABLE";
1988
- ActionCancelQueryResult_CancelResult$1[ActionCancelQueryResult_CancelResult$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1989
- return ActionCancelQueryResult_CancelResult$1;
1990
- }({});
1991
1959
  function actionCancelQueryResult_CancelResultFromJSON(object) {
1992
1960
  switch (object) {
1993
1961
  case 0:
1994
- case "CANCEL_RESULT_UNSPECIFIED": return ActionCancelQueryResult_CancelResult.UNSPECIFIED;
1962
+ case "CANCEL_RESULT_UNSPECIFIED": return 0;
1995
1963
  case 1:
1996
- case "CANCEL_RESULT_CANCELLED": return ActionCancelQueryResult_CancelResult.CANCELLED;
1964
+ case "CANCEL_RESULT_CANCELLED": return 1;
1997
1965
  case 2:
1998
- case "CANCEL_RESULT_CANCELLING": return ActionCancelQueryResult_CancelResult.CANCELLING;
1966
+ case "CANCEL_RESULT_CANCELLING": return 2;
1999
1967
  case 3:
2000
- case "CANCEL_RESULT_NOT_CANCELLABLE": return ActionCancelQueryResult_CancelResult.NOT_CANCELLABLE;
2001
- case -1:
2002
- case "UNRECOGNIZED":
2003
- default: return ActionCancelQueryResult_CancelResult.UNRECOGNIZED;
1968
+ case "CANCEL_RESULT_NOT_CANCELLABLE": return 3;
1969
+ default: return -1;
2004
1970
  }
2005
1971
  }
2006
1972
  function actionCancelQueryResult_CancelResultToJSON(object) {
2007
1973
  switch (object) {
2008
- case ActionCancelQueryResult_CancelResult.UNSPECIFIED: return "CANCEL_RESULT_UNSPECIFIED";
2009
- case ActionCancelQueryResult_CancelResult.CANCELLED: return "CANCEL_RESULT_CANCELLED";
2010
- case ActionCancelQueryResult_CancelResult.CANCELLING: return "CANCEL_RESULT_CANCELLING";
2011
- case ActionCancelQueryResult_CancelResult.NOT_CANCELLABLE: return "CANCEL_RESULT_NOT_CANCELLABLE";
2012
- case ActionCancelQueryResult_CancelResult.UNRECOGNIZED:
1974
+ case 0: return "CANCEL_RESULT_UNSPECIFIED";
1975
+ case 1: return "CANCEL_RESULT_CANCELLED";
1976
+ case 2: return "CANCEL_RESULT_CANCELLING";
1977
+ case 3: return "CANCEL_RESULT_NOT_CANCELLABLE";
2013
1978
  default: return "UNRECOGNIZED";
2014
1979
  }
2015
1980
  }
@@ -2044,7 +2009,6 @@ const CommandGetSqlInfo = {
2044
2009
  while (reader.pos < end2) message.info.push(reader.uint32());
2045
2010
  continue;
2046
2011
  }
2047
- break;
2048
2012
  }
2049
2013
  if ((tag & 7) === 4 || tag === 0) break;
2050
2014
  reader.skip(tag & 7);
@@ -2136,7 +2100,7 @@ const CommandGetCatalogs = {
2136
2100
  const message = createBaseCommandGetCatalogs();
2137
2101
  while (reader.pos < end) {
2138
2102
  const tag = reader.uint32();
2139
- switch (tag >>> 3) {}
2103
+ tag >>> 3;
2140
2104
  if ((tag & 7) === 4 || tag === 0) break;
2141
2105
  reader.skip(tag & 7);
2142
2106
  }
@@ -2315,7 +2279,7 @@ const CommandGetTableTypes = {
2315
2279
  const message = createBaseCommandGetTableTypes();
2316
2280
  while (reader.pos < end) {
2317
2281
  const tag = reader.uint32();
2318
- switch (tag >>> 3) {}
2282
+ tag >>> 3;
2319
2283
  if ((tag & 7) === 4 || tag === 0) break;
2320
2284
  reader.skip(tag & 7);
2321
2285
  }
@@ -2696,7 +2660,7 @@ messageTypeRegistry.set(ActionCreatePreparedStatementRequest.$type, ActionCreate
2696
2660
  function createBaseSubstraitPlan() {
2697
2661
  return {
2698
2662
  $type: "arrow.flight.protocol.sql.SubstraitPlan",
2699
- plan: new Uint8Array(0),
2663
+ plan: /* @__PURE__ */ new Uint8Array(0),
2700
2664
  version: ""
2701
2665
  };
2702
2666
  }
@@ -2731,7 +2695,7 @@ const SubstraitPlan = {
2731
2695
  fromJSON(object) {
2732
2696
  return {
2733
2697
  $type: SubstraitPlan.$type,
2734
- plan: isSet(object.plan) ? bytesFromBase64(object.plan) : new Uint8Array(0),
2698
+ plan: isSet(object.plan) ? bytesFromBase64(object.plan) : /* @__PURE__ */ new Uint8Array(0),
2735
2699
  version: isSet(object.version) ? globalThis.String(object.version) : ""
2736
2700
  };
2737
2701
  },
@@ -2746,7 +2710,7 @@ const SubstraitPlan = {
2746
2710
  },
2747
2711
  fromPartial(object) {
2748
2712
  const message = createBaseSubstraitPlan();
2749
- message.plan = object.plan ?? new Uint8Array(0);
2713
+ message.plan = object.plan ?? /* @__PURE__ */ new Uint8Array(0);
2750
2714
  message.version = object.version ?? "";
2751
2715
  return message;
2752
2716
  }
@@ -2814,9 +2778,9 @@ messageTypeRegistry.set(ActionCreatePreparedSubstraitPlanRequest.$type, ActionCr
2814
2778
  function createBaseActionCreatePreparedStatementResult() {
2815
2779
  return {
2816
2780
  $type: "arrow.flight.protocol.sql.ActionCreatePreparedStatementResult",
2817
- preparedStatementHandle: new Uint8Array(0),
2818
- datasetSchema: new Uint8Array(0),
2819
- parameterSchema: new Uint8Array(0)
2781
+ preparedStatementHandle: /* @__PURE__ */ new Uint8Array(0),
2782
+ datasetSchema: /* @__PURE__ */ new Uint8Array(0),
2783
+ parameterSchema: /* @__PURE__ */ new Uint8Array(0)
2820
2784
  };
2821
2785
  }
2822
2786
  const ActionCreatePreparedStatementResult = {
@@ -2855,9 +2819,9 @@ const ActionCreatePreparedStatementResult = {
2855
2819
  fromJSON(object) {
2856
2820
  return {
2857
2821
  $type: ActionCreatePreparedStatementResult.$type,
2858
- preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : new Uint8Array(0),
2859
- datasetSchema: isSet(object.datasetSchema) ? bytesFromBase64(object.datasetSchema) : new Uint8Array(0),
2860
- parameterSchema: isSet(object.parameterSchema) ? bytesFromBase64(object.parameterSchema) : new Uint8Array(0)
2822
+ preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : /* @__PURE__ */ new Uint8Array(0),
2823
+ datasetSchema: isSet(object.datasetSchema) ? bytesFromBase64(object.datasetSchema) : /* @__PURE__ */ new Uint8Array(0),
2824
+ parameterSchema: isSet(object.parameterSchema) ? bytesFromBase64(object.parameterSchema) : /* @__PURE__ */ new Uint8Array(0)
2861
2825
  };
2862
2826
  },
2863
2827
  toJSON(message) {
@@ -2872,9 +2836,9 @@ const ActionCreatePreparedStatementResult = {
2872
2836
  },
2873
2837
  fromPartial(object) {
2874
2838
  const message = createBaseActionCreatePreparedStatementResult();
2875
- message.preparedStatementHandle = object.preparedStatementHandle ?? new Uint8Array(0);
2876
- message.datasetSchema = object.datasetSchema ?? new Uint8Array(0);
2877
- message.parameterSchema = object.parameterSchema ?? new Uint8Array(0);
2839
+ message.preparedStatementHandle = object.preparedStatementHandle ?? /* @__PURE__ */ new Uint8Array(0);
2840
+ message.datasetSchema = object.datasetSchema ?? /* @__PURE__ */ new Uint8Array(0);
2841
+ message.parameterSchema = object.parameterSchema ?? /* @__PURE__ */ new Uint8Array(0);
2878
2842
  return message;
2879
2843
  }
2880
2844
  };
@@ -2882,7 +2846,7 @@ messageTypeRegistry.set(ActionCreatePreparedStatementResult.$type, ActionCreateP
2882
2846
  function createBaseActionClosePreparedStatementRequest() {
2883
2847
  return {
2884
2848
  $type: "arrow.flight.protocol.sql.ActionClosePreparedStatementRequest",
2885
- preparedStatementHandle: new Uint8Array(0)
2849
+ preparedStatementHandle: /* @__PURE__ */ new Uint8Array(0)
2886
2850
  };
2887
2851
  }
2888
2852
  const ActionClosePreparedStatementRequest = {
@@ -2911,7 +2875,7 @@ const ActionClosePreparedStatementRequest = {
2911
2875
  fromJSON(object) {
2912
2876
  return {
2913
2877
  $type: ActionClosePreparedStatementRequest.$type,
2914
- preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : new Uint8Array(0)
2878
+ preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : /* @__PURE__ */ new Uint8Array(0)
2915
2879
  };
2916
2880
  },
2917
2881
  toJSON(message) {
@@ -2924,7 +2888,7 @@ const ActionClosePreparedStatementRequest = {
2924
2888
  },
2925
2889
  fromPartial(object) {
2926
2890
  const message = createBaseActionClosePreparedStatementRequest();
2927
- message.preparedStatementHandle = object.preparedStatementHandle ?? new Uint8Array(0);
2891
+ message.preparedStatementHandle = object.preparedStatementHandle ?? /* @__PURE__ */ new Uint8Array(0);
2928
2892
  return message;
2929
2893
  }
2930
2894
  };
@@ -2943,7 +2907,7 @@ const ActionBeginTransactionRequest = {
2943
2907
  const message = createBaseActionBeginTransactionRequest();
2944
2908
  while (reader.pos < end) {
2945
2909
  const tag = reader.uint32();
2946
- switch (tag >>> 3) {}
2910
+ tag >>> 3;
2947
2911
  if ((tag & 7) === 4 || tag === 0) break;
2948
2912
  reader.skip(tag & 7);
2949
2913
  }
@@ -2966,7 +2930,7 @@ messageTypeRegistry.set(ActionBeginTransactionRequest.$type, ActionBeginTransact
2966
2930
  function createBaseActionBeginSavepointRequest() {
2967
2931
  return {
2968
2932
  $type: "arrow.flight.protocol.sql.ActionBeginSavepointRequest",
2969
- transactionId: new Uint8Array(0),
2933
+ transactionId: /* @__PURE__ */ new Uint8Array(0),
2970
2934
  name: ""
2971
2935
  };
2972
2936
  }
@@ -3001,7 +2965,7 @@ const ActionBeginSavepointRequest = {
3001
2965
  fromJSON(object) {
3002
2966
  return {
3003
2967
  $type: ActionBeginSavepointRequest.$type,
3004
- transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : new Uint8Array(0),
2968
+ transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : /* @__PURE__ */ new Uint8Array(0),
3005
2969
  name: isSet(object.name) ? globalThis.String(object.name) : ""
3006
2970
  };
3007
2971
  },
@@ -3016,7 +2980,7 @@ const ActionBeginSavepointRequest = {
3016
2980
  },
3017
2981
  fromPartial(object) {
3018
2982
  const message = createBaseActionBeginSavepointRequest();
3019
- message.transactionId = object.transactionId ?? new Uint8Array(0);
2983
+ message.transactionId = object.transactionId ?? /* @__PURE__ */ new Uint8Array(0);
3020
2984
  message.name = object.name ?? "";
3021
2985
  return message;
3022
2986
  }
@@ -3025,7 +2989,7 @@ messageTypeRegistry.set(ActionBeginSavepointRequest.$type, ActionBeginSavepointR
3025
2989
  function createBaseActionBeginTransactionResult() {
3026
2990
  return {
3027
2991
  $type: "arrow.flight.protocol.sql.ActionBeginTransactionResult",
3028
- transactionId: new Uint8Array(0)
2992
+ transactionId: /* @__PURE__ */ new Uint8Array(0)
3029
2993
  };
3030
2994
  }
3031
2995
  const ActionBeginTransactionResult = {
@@ -3054,7 +3018,7 @@ const ActionBeginTransactionResult = {
3054
3018
  fromJSON(object) {
3055
3019
  return {
3056
3020
  $type: ActionBeginTransactionResult.$type,
3057
- transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : new Uint8Array(0)
3021
+ transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : /* @__PURE__ */ new Uint8Array(0)
3058
3022
  };
3059
3023
  },
3060
3024
  toJSON(message) {
@@ -3067,7 +3031,7 @@ const ActionBeginTransactionResult = {
3067
3031
  },
3068
3032
  fromPartial(object) {
3069
3033
  const message = createBaseActionBeginTransactionResult();
3070
- message.transactionId = object.transactionId ?? new Uint8Array(0);
3034
+ message.transactionId = object.transactionId ?? /* @__PURE__ */ new Uint8Array(0);
3071
3035
  return message;
3072
3036
  }
3073
3037
  };
@@ -3075,7 +3039,7 @@ messageTypeRegistry.set(ActionBeginTransactionResult.$type, ActionBeginTransacti
3075
3039
  function createBaseActionBeginSavepointResult() {
3076
3040
  return {
3077
3041
  $type: "arrow.flight.protocol.sql.ActionBeginSavepointResult",
3078
- savepointId: new Uint8Array(0)
3042
+ savepointId: /* @__PURE__ */ new Uint8Array(0)
3079
3043
  };
3080
3044
  }
3081
3045
  const ActionBeginSavepointResult = {
@@ -3104,7 +3068,7 @@ const ActionBeginSavepointResult = {
3104
3068
  fromJSON(object) {
3105
3069
  return {
3106
3070
  $type: ActionBeginSavepointResult.$type,
3107
- savepointId: isSet(object.savepointId) ? bytesFromBase64(object.savepointId) : new Uint8Array(0)
3071
+ savepointId: isSet(object.savepointId) ? bytesFromBase64(object.savepointId) : /* @__PURE__ */ new Uint8Array(0)
3108
3072
  };
3109
3073
  },
3110
3074
  toJSON(message) {
@@ -3117,7 +3081,7 @@ const ActionBeginSavepointResult = {
3117
3081
  },
3118
3082
  fromPartial(object) {
3119
3083
  const message = createBaseActionBeginSavepointResult();
3120
- message.savepointId = object.savepointId ?? new Uint8Array(0);
3084
+ message.savepointId = object.savepointId ?? /* @__PURE__ */ new Uint8Array(0);
3121
3085
  return message;
3122
3086
  }
3123
3087
  };
@@ -3125,7 +3089,7 @@ messageTypeRegistry.set(ActionBeginSavepointResult.$type, ActionBeginSavepointRe
3125
3089
  function createBaseActionEndTransactionRequest() {
3126
3090
  return {
3127
3091
  $type: "arrow.flight.protocol.sql.ActionEndTransactionRequest",
3128
- transactionId: new Uint8Array(0),
3092
+ transactionId: /* @__PURE__ */ new Uint8Array(0),
3129
3093
  action: 0
3130
3094
  };
3131
3095
  }
@@ -3160,7 +3124,7 @@ const ActionEndTransactionRequest = {
3160
3124
  fromJSON(object) {
3161
3125
  return {
3162
3126
  $type: ActionEndTransactionRequest.$type,
3163
- transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : new Uint8Array(0),
3127
+ transactionId: isSet(object.transactionId) ? bytesFromBase64(object.transactionId) : /* @__PURE__ */ new Uint8Array(0),
3164
3128
  action: isSet(object.action) ? actionEndTransactionRequest_EndTransactionFromJSON(object.action) : 0
3165
3129
  };
3166
3130
  },
@@ -3175,7 +3139,7 @@ const ActionEndTransactionRequest = {
3175
3139
  },
3176
3140
  fromPartial(object) {
3177
3141
  const message = createBaseActionEndTransactionRequest();
3178
- message.transactionId = object.transactionId ?? new Uint8Array(0);
3142
+ message.transactionId = object.transactionId ?? /* @__PURE__ */ new Uint8Array(0);
3179
3143
  message.action = object.action ?? 0;
3180
3144
  return message;
3181
3145
  }
@@ -3184,7 +3148,7 @@ messageTypeRegistry.set(ActionEndTransactionRequest.$type, ActionEndTransactionR
3184
3148
  function createBaseActionEndSavepointRequest() {
3185
3149
  return {
3186
3150
  $type: "arrow.flight.protocol.sql.ActionEndSavepointRequest",
3187
- savepointId: new Uint8Array(0),
3151
+ savepointId: /* @__PURE__ */ new Uint8Array(0),
3188
3152
  action: 0
3189
3153
  };
3190
3154
  }
@@ -3219,7 +3183,7 @@ const ActionEndSavepointRequest = {
3219
3183
  fromJSON(object) {
3220
3184
  return {
3221
3185
  $type: ActionEndSavepointRequest.$type,
3222
- savepointId: isSet(object.savepointId) ? bytesFromBase64(object.savepointId) : new Uint8Array(0),
3186
+ savepointId: isSet(object.savepointId) ? bytesFromBase64(object.savepointId) : /* @__PURE__ */ new Uint8Array(0),
3223
3187
  action: isSet(object.action) ? actionEndSavepointRequest_EndSavepointFromJSON(object.action) : 0
3224
3188
  };
3225
3189
  },
@@ -3234,7 +3198,7 @@ const ActionEndSavepointRequest = {
3234
3198
  },
3235
3199
  fromPartial(object) {
3236
3200
  const message = createBaseActionEndSavepointRequest();
3237
- message.savepointId = object.savepointId ?? new Uint8Array(0);
3201
+ message.savepointId = object.savepointId ?? /* @__PURE__ */ new Uint8Array(0);
3238
3202
  message.action = object.action ?? 0;
3239
3203
  return message;
3240
3204
  }
@@ -3361,7 +3325,7 @@ messageTypeRegistry.set(CommandStatementSubstraitPlan.$type, CommandStatementSub
3361
3325
  function createBaseTicketStatementQuery() {
3362
3326
  return {
3363
3327
  $type: "arrow.flight.protocol.sql.TicketStatementQuery",
3364
- statementHandle: new Uint8Array(0)
3328
+ statementHandle: /* @__PURE__ */ new Uint8Array(0)
3365
3329
  };
3366
3330
  }
3367
3331
  const TicketStatementQuery = {
@@ -3390,7 +3354,7 @@ const TicketStatementQuery = {
3390
3354
  fromJSON(object) {
3391
3355
  return {
3392
3356
  $type: TicketStatementQuery.$type,
3393
- statementHandle: isSet(object.statementHandle) ? bytesFromBase64(object.statementHandle) : new Uint8Array(0)
3357
+ statementHandle: isSet(object.statementHandle) ? bytesFromBase64(object.statementHandle) : /* @__PURE__ */ new Uint8Array(0)
3394
3358
  };
3395
3359
  },
3396
3360
  toJSON(message) {
@@ -3403,7 +3367,7 @@ const TicketStatementQuery = {
3403
3367
  },
3404
3368
  fromPartial(object) {
3405
3369
  const message = createBaseTicketStatementQuery();
3406
- message.statementHandle = object.statementHandle ?? new Uint8Array(0);
3370
+ message.statementHandle = object.statementHandle ?? /* @__PURE__ */ new Uint8Array(0);
3407
3371
  return message;
3408
3372
  }
3409
3373
  };
@@ -3411,7 +3375,7 @@ messageTypeRegistry.set(TicketStatementQuery.$type, TicketStatementQuery);
3411
3375
  function createBaseCommandPreparedStatementQuery() {
3412
3376
  return {
3413
3377
  $type: "arrow.flight.protocol.sql.CommandPreparedStatementQuery",
3414
- preparedStatementHandle: new Uint8Array(0)
3378
+ preparedStatementHandle: /* @__PURE__ */ new Uint8Array(0)
3415
3379
  };
3416
3380
  }
3417
3381
  const CommandPreparedStatementQuery = {
@@ -3440,7 +3404,7 @@ const CommandPreparedStatementQuery = {
3440
3404
  fromJSON(object) {
3441
3405
  return {
3442
3406
  $type: CommandPreparedStatementQuery.$type,
3443
- preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : new Uint8Array(0)
3407
+ preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : /* @__PURE__ */ new Uint8Array(0)
3444
3408
  };
3445
3409
  },
3446
3410
  toJSON(message) {
@@ -3453,7 +3417,7 @@ const CommandPreparedStatementQuery = {
3453
3417
  },
3454
3418
  fromPartial(object) {
3455
3419
  const message = createBaseCommandPreparedStatementQuery();
3456
- message.preparedStatementHandle = object.preparedStatementHandle ?? new Uint8Array(0);
3420
+ message.preparedStatementHandle = object.preparedStatementHandle ?? /* @__PURE__ */ new Uint8Array(0);
3457
3421
  return message;
3458
3422
  }
3459
3423
  };
@@ -3520,7 +3484,7 @@ messageTypeRegistry.set(CommandStatementUpdate.$type, CommandStatementUpdate);
3520
3484
  function createBaseCommandPreparedStatementUpdate() {
3521
3485
  return {
3522
3486
  $type: "arrow.flight.protocol.sql.CommandPreparedStatementUpdate",
3523
- preparedStatementHandle: new Uint8Array(0)
3487
+ preparedStatementHandle: /* @__PURE__ */ new Uint8Array(0)
3524
3488
  };
3525
3489
  }
3526
3490
  const CommandPreparedStatementUpdate = {
@@ -3549,7 +3513,7 @@ const CommandPreparedStatementUpdate = {
3549
3513
  fromJSON(object) {
3550
3514
  return {
3551
3515
  $type: CommandPreparedStatementUpdate.$type,
3552
- preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : new Uint8Array(0)
3516
+ preparedStatementHandle: isSet(object.preparedStatementHandle) ? bytesFromBase64(object.preparedStatementHandle) : /* @__PURE__ */ new Uint8Array(0)
3553
3517
  };
3554
3518
  },
3555
3519
  toJSON(message) {
@@ -3562,7 +3526,7 @@ const CommandPreparedStatementUpdate = {
3562
3526
  },
3563
3527
  fromPartial(object) {
3564
3528
  const message = createBaseCommandPreparedStatementUpdate();
3565
- message.preparedStatementHandle = object.preparedStatementHandle ?? new Uint8Array(0);
3529
+ message.preparedStatementHandle = object.preparedStatementHandle ?? /* @__PURE__ */ new Uint8Array(0);
3566
3530
  return message;
3567
3531
  }
3568
3532
  };
@@ -3917,7 +3881,7 @@ messageTypeRegistry.set(DoPutPreparedStatementResult.$type, DoPutPreparedStateme
3917
3881
  function createBaseActionCancelQueryRequest() {
3918
3882
  return {
3919
3883
  $type: "arrow.flight.protocol.sql.ActionCancelQueryRequest",
3920
- info: new Uint8Array(0)
3884
+ info: /* @__PURE__ */ new Uint8Array(0)
3921
3885
  };
3922
3886
  }
3923
3887
  const ActionCancelQueryRequest = {
@@ -3946,7 +3910,7 @@ const ActionCancelQueryRequest = {
3946
3910
  fromJSON(object) {
3947
3911
  return {
3948
3912
  $type: ActionCancelQueryRequest.$type,
3949
- info: isSet(object.info) ? bytesFromBase64(object.info) : new Uint8Array(0)
3913
+ info: isSet(object.info) ? bytesFromBase64(object.info) : /* @__PURE__ */ new Uint8Array(0)
3950
3914
  };
3951
3915
  },
3952
3916
  toJSON(message) {
@@ -3959,7 +3923,7 @@ const ActionCancelQueryRequest = {
3959
3923
  },
3960
3924
  fromPartial(object) {
3961
3925
  const message = createBaseActionCancelQueryRequest();
3962
- message.info = object.info ?? new Uint8Array(0);
3926
+ message.info = object.info ?? /* @__PURE__ */ new Uint8Array(0);
3963
3927
  return message;
3964
3928
  }
3965
3929
  };
@@ -4039,45 +4003,45 @@ function isObject(value) {
4039
4003
  function isSet(value) {
4040
4004
  return value !== null && value !== void 0;
4041
4005
  }
4042
-
4043
4006
  //#endregion
4044
4007
  //#region src/arrow-flight-sql-client.ts
4045
- var arrow_flight_sql_client_exports = /* @__PURE__ */ __export({
4008
+ var arrow_flight_sql_client_exports = /* @__PURE__ */ __exportAll({
4046
4009
  ArrowFlightSqlClient: () => ArrowFlightSqlClient,
4047
4010
  layer: () => layer,
4048
4011
  layerConfig: () => layerConfig,
4049
- make: () => make$1
4012
+ make: () => make
4050
4013
  });
4051
4014
  var ArrowFlightSqlClient = class extends Context.Service()("@useairfoil/flight/ArrowFlightSqlClient") {};
4052
- const make$1 = Effect.fnUntraced(function* (options) {
4053
- const inner = yield* make(options);
4015
+ const make = Effect.fnUntraced(function* (options) {
4016
+ const inner = yield* make$1(options);
4054
4017
  return ArrowFlightSqlClient.of({
4055
- executeFlightInfo: (info, options$1) => inner.executeFlightInfo(info, options$1),
4056
- getCatalogs: (request, options$1) => inner.getFlightInfo(createCommandDescriptor(CommandGetCatalogs.$type, CommandGetCatalogs.encode({
4018
+ executeFlightInfo: (info, options) => inner.executeFlightInfo(info, options),
4019
+ getCatalogs: (request, options) => inner.getFlightInfo(createCommandDescriptor(CommandGetCatalogs.$type, CommandGetCatalogs.encode({
4057
4020
  $type: CommandGetCatalogs.$type,
4058
4021
  ...request
4059
- }).finish()), options$1),
4060
- getDbSchemas: (request, options$1) => inner.getFlightInfo(createCommandDescriptor(CommandGetDbSchemas.$type, CommandGetDbSchemas.encode({
4022
+ }).finish()), options),
4023
+ getDbSchemas: (request, options) => inner.getFlightInfo(createCommandDescriptor(CommandGetDbSchemas.$type, CommandGetDbSchemas.encode({
4061
4024
  $type: CommandGetDbSchemas.$type,
4062
4025
  ...request
4063
- }).finish()), options$1),
4064
- getTables: (request, options$1) => inner.getFlightInfo(createCommandDescriptor(CommandGetTables.$type, CommandGetTables.encode({
4026
+ }).finish()), options),
4027
+ getTables: (request, options) => inner.getFlightInfo(createCommandDescriptor(CommandGetTables.$type, CommandGetTables.encode({
4065
4028
  $type: CommandGetTables.$type,
4066
4029
  ...request
4067
- }).finish()), options$1),
4068
- getTableTypes: (request, options$1) => inner.getFlightInfo(createCommandDescriptor(CommandGetTableTypes.$type, CommandGetTableTypes.encode({
4030
+ }).finish()), options),
4031
+ getTableTypes: (request, options) => inner.getFlightInfo(createCommandDescriptor(CommandGetTableTypes.$type, CommandGetTableTypes.encode({
4069
4032
  $type: CommandGetTableTypes.$type,
4070
4033
  ...request
4071
- }).finish()), options$1),
4072
- executeQuery: (request, options$1) => inner.getFlightInfo(createCommandDescriptor(CommandStatementQuery.$type, CommandStatementQuery.encode({
4034
+ }).finish()), options),
4035
+ executeQuery: (request, options) => inner.getFlightInfo(createCommandDescriptor(CommandStatementQuery.$type, CommandStatementQuery.encode({
4073
4036
  $type: CommandStatementQuery.$type,
4074
4037
  ...request
4075
- }).finish()), options$1)
4038
+ }).finish()), options)
4076
4039
  });
4077
4040
  });
4078
- const layer = (options) => Layer.effect(ArrowFlightSqlClient, make$1(options));
4041
+ const layer = (options) => Layer.effect(ArrowFlightSqlClient, make(options));
4079
4042
  const layerConfig = (options) => Layer.effect(ArrowFlightSqlClient, Effect.gen(function* () {
4080
- return yield* make$1(yield* Config.unwrap(options));
4043
+ const resolved = yield* Config.unwrap(options);
4044
+ return yield* make(resolved);
4081
4045
  }));
4082
4046
  function createCommandDescriptor(typeUrl, value) {
4083
4047
  const cmd = Any.create({
@@ -4085,11 +4049,10 @@ function createCommandDescriptor(typeUrl, value) {
4085
4049
  value
4086
4050
  });
4087
4051
  return FlightDescriptor.create({
4088
- type: FlightDescriptor_DescriptorType.CMD,
4052
+ type: 2,
4089
4053
  cmd: Any.encode(cmd).finish()
4090
4054
  });
4091
4055
  }
4092
-
4093
4056
  //#endregion
4094
4057
  //#region src/flight-data-encoder.ts
4095
4058
  const FlightDataEncoder = {
@@ -4139,7 +4102,7 @@ function encodeRecordBatchContent(buffers, byteLength, compression = null) {
4139
4102
  }
4140
4103
  return out;
4141
4104
  }
4142
-
4143
4105
  //#endregion
4144
- export { arrow_flight_client_exports as ArrowFlightClient, arrow_flight_sql_client_exports as ArrowFlightSqlClient, flight_client_error_exports as FlightClientError, FlightData, FlightDataEncoder, FlightDescriptor, FlightDescriptor_DescriptorType, FlightInfo, PutResult, Ticket, createChannelFromConfig };
4145
- //# sourceMappingURL=index.js.map
4106
+ export { Any, arrow_flight_client_exports as ArrowFlightClient, arrow_flight_sql_client_exports as ArrowFlightSqlClient, flight_client_error_exports as FlightClientError, FlightData, FlightDataEncoder, FlightDescriptor, FlightDescriptor_DescriptorType, FlightInfo, PutResult, Ticket, createChannelFromConfig };
4107
+
4108
+ //# sourceMappingURL=index.mjs.map