@uwdata/mosaic-core 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mosaic-core.js +620 -464
- package/dist/mosaic-core.min.js +7 -7
- package/package.json +9 -6
- package/src/Coordinator.js +10 -4
- package/src/DataCubeIndexer.js +32 -16
- package/src/FilterGroup.js +7 -1
- package/src/MosaicClient.js +13 -5
- package/src/Param.js +4 -2
- package/src/QueryConsolidator.js +6 -0
- package/src/Selection.js +7 -6
- package/src/connectors/wasm.js +2 -2
- package/src/util/AsyncDispatch.js +15 -12
- package/src/util/convert-arrow.js +20 -32
- package/src/util/js-type.js +1 -0
- package/src/util/query-result.js +4 -3
package/dist/mosaic-core.js
CHANGED
|
@@ -81,40 +81,46 @@ var MosaicClient = class {
|
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Return an array of fields queried by this client.
|
|
84
|
+
* @returns {object[]|null} The fields to retrieve info for.
|
|
84
85
|
*/
|
|
85
86
|
fields() {
|
|
86
87
|
return null;
|
|
87
88
|
}
|
|
88
89
|
/**
|
|
89
90
|
* Called by the coordinator to set the field info for this client.
|
|
91
|
+
* @param {*} info The field info result.
|
|
90
92
|
* @returns {this}
|
|
91
93
|
*/
|
|
92
|
-
fieldInfo() {
|
|
94
|
+
fieldInfo(info) {
|
|
93
95
|
return this;
|
|
94
96
|
}
|
|
95
97
|
/**
|
|
96
98
|
* Return a query specifying the data needed by this client.
|
|
99
|
+
* @param {*} [filter] The filtering criteria to apply in the query.
|
|
100
|
+
* @returns {*} The client query
|
|
97
101
|
*/
|
|
98
|
-
query() {
|
|
102
|
+
query(filter) {
|
|
99
103
|
return null;
|
|
100
104
|
}
|
|
101
105
|
/**
|
|
102
106
|
* Called by the coordinator to inform the client that a query is pending.
|
|
107
|
+
* @returns {this}
|
|
103
108
|
*/
|
|
104
109
|
queryPending() {
|
|
105
110
|
return this;
|
|
106
111
|
}
|
|
107
112
|
/**
|
|
108
113
|
* Called by the coordinator to return a query result.
|
|
109
|
-
*
|
|
110
|
-
* @param {*} data the query result
|
|
114
|
+
* @param {*} data The query result.
|
|
111
115
|
* @returns {this}
|
|
112
116
|
*/
|
|
113
|
-
queryResult() {
|
|
117
|
+
queryResult(data) {
|
|
114
118
|
return this;
|
|
115
119
|
}
|
|
116
120
|
/**
|
|
117
121
|
* Called by the coordinator to report a query execution error.
|
|
122
|
+
* @param {*} error
|
|
123
|
+
* @returns {this}
|
|
118
124
|
*/
|
|
119
125
|
queryError(error) {
|
|
120
126
|
console.error(error);
|
|
@@ -141,6 +147,8 @@ var MosaicClient = class {
|
|
|
141
147
|
/**
|
|
142
148
|
* Requests a client update.
|
|
143
149
|
* For example to (re-)render an interface component.
|
|
150
|
+
*
|
|
151
|
+
* @returns {this | Promise<any>}
|
|
144
152
|
*/
|
|
145
153
|
update() {
|
|
146
154
|
return this;
|
|
@@ -150,9 +158,8 @@ var MosaicClient = class {
|
|
|
150
158
|
// ../../node_modules/tslib/tslib.es6.mjs
|
|
151
159
|
function __rest(s, e) {
|
|
152
160
|
var t = {};
|
|
153
|
-
for (var p2 in s)
|
|
154
|
-
|
|
155
|
-
t[p2] = s[p2];
|
|
161
|
+
for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
|
|
162
|
+
t[p2] = s[p2];
|
|
156
163
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
157
164
|
for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
|
|
158
165
|
if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
|
|
@@ -189,35 +196,30 @@ function __awaiter(thisArg, _arguments, P2, generator) {
|
|
|
189
196
|
}
|
|
190
197
|
function __values(o) {
|
|
191
198
|
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s && o[s], i = 0;
|
|
192
|
-
if (m2)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return { value: o && o[i++], done: !o };
|
|
200
|
-
}
|
|
201
|
-
};
|
|
199
|
+
if (m2) return m2.call(o);
|
|
200
|
+
if (o && typeof o.length === "number") return {
|
|
201
|
+
next: function() {
|
|
202
|
+
if (o && i >= o.length) o = void 0;
|
|
203
|
+
return { value: o && o[i++], done: !o };
|
|
204
|
+
}
|
|
205
|
+
};
|
|
202
206
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
203
207
|
}
|
|
204
208
|
function __await(v2) {
|
|
205
209
|
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
206
210
|
}
|
|
207
211
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
208
|
-
if (!Symbol.asyncIterator)
|
|
209
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
212
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
210
213
|
var g2 = generator.apply(thisArg, _arguments || []), i, q2 = [];
|
|
211
214
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
212
215
|
return this;
|
|
213
216
|
}, i;
|
|
214
217
|
function verb(n) {
|
|
215
|
-
if (g2[n])
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
};
|
|
218
|
+
if (g2[n]) i[n] = function(v2) {
|
|
219
|
+
return new Promise(function(a2, b2) {
|
|
220
|
+
q2.push([n, v2, a2, b2]) > 1 || resume(n, v2);
|
|
221
|
+
});
|
|
222
|
+
};
|
|
221
223
|
}
|
|
222
224
|
function resume(n, v2) {
|
|
223
225
|
try {
|
|
@@ -236,8 +238,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
236
238
|
resume("throw", value);
|
|
237
239
|
}
|
|
238
240
|
function settle(f2, v2) {
|
|
239
|
-
if (f2(v2), q2.shift(), q2.length)
|
|
240
|
-
resume(q2[0][0], q2[0][1]);
|
|
241
|
+
if (f2(v2), q2.shift(), q2.length) resume(q2[0][0], q2[0][1]);
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
244
|
function __asyncDelegator(o) {
|
|
@@ -254,8 +255,7 @@ function __asyncDelegator(o) {
|
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
function __asyncValues(o) {
|
|
257
|
-
if (!Symbol.asyncIterator)
|
|
258
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
258
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
259
259
|
var m2 = o[Symbol.asyncIterator], i;
|
|
260
260
|
return m2 ? m2.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
261
261
|
return this;
|
|
@@ -274,7 +274,7 @@ function __asyncValues(o) {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
// node_modules/apache-arrow/util/buffer.mjs
|
|
277
|
+
// ../../node_modules/apache-arrow/util/buffer.mjs
|
|
278
278
|
var buffer_exports = {};
|
|
279
279
|
__export(buffer_exports, {
|
|
280
280
|
compareArrayLike: () => compareArrayLike,
|
|
@@ -315,13 +315,13 @@ __export(buffer_exports, {
|
|
|
315
315
|
toUint8ClampedArrayIterator: () => toUint8ClampedArrayIterator
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
// node_modules/apache-arrow/util/utf8.mjs
|
|
318
|
+
// ../../node_modules/apache-arrow/util/utf8.mjs
|
|
319
319
|
var decoder = new TextDecoder("utf-8");
|
|
320
320
|
var decodeUtf8 = (buffer) => decoder.decode(buffer);
|
|
321
321
|
var encoder = new TextEncoder();
|
|
322
322
|
var encodeUtf8 = (value) => encoder.encode(value);
|
|
323
323
|
|
|
324
|
-
// node_modules/apache-arrow/util/compat.mjs
|
|
324
|
+
// ../../node_modules/apache-arrow/util/compat.mjs
|
|
325
325
|
var isNumber = (x3) => typeof x3 === "number";
|
|
326
326
|
var isBoolean = (x3) => typeof x3 === "boolean";
|
|
327
327
|
var isFunction = (x3) => typeof x3 === "function";
|
|
@@ -364,7 +364,7 @@ var isFlatbuffersByteBuffer = (x3) => {
|
|
|
364
364
|
return isObject(x3) && isFunction(x3["clear"]) && isFunction(x3["bytes"]) && isFunction(x3["position"]) && isFunction(x3["setPosition"]) && isFunction(x3["capacity"]) && isFunction(x3["getBufferIdentifier"]) && isFunction(x3["createLong"]);
|
|
365
365
|
};
|
|
366
366
|
|
|
367
|
-
// node_modules/apache-arrow/util/buffer.mjs
|
|
367
|
+
// ../../node_modules/apache-arrow/util/buffer.mjs
|
|
368
368
|
var SharedArrayBuf = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : ArrayBuffer;
|
|
369
369
|
function collapseContiguousByteRanges(chunks) {
|
|
370
370
|
const result = chunks[0] ? [chunks[0]] : [];
|
|
@@ -547,7 +547,7 @@ function compareArrayLike(a2, b2) {
|
|
|
547
547
|
return true;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
// node_modules/apache-arrow/io/adapters.mjs
|
|
550
|
+
// ../../node_modules/apache-arrow/io/adapters.mjs
|
|
551
551
|
var adapters_default = {
|
|
552
552
|
fromIterable(source) {
|
|
553
553
|
return pump2(fromIterable(source));
|
|
@@ -791,7 +791,7 @@ function fromNodeStream(stream) {
|
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
-
// node_modules/apache-arrow/fb/metadata-version.mjs
|
|
794
|
+
// ../../node_modules/apache-arrow/fb/metadata-version.mjs
|
|
795
795
|
var MetadataVersion;
|
|
796
796
|
(function(MetadataVersion4) {
|
|
797
797
|
MetadataVersion4[MetadataVersion4["V1"] = 0] = "V1";
|
|
@@ -801,14 +801,14 @@ var MetadataVersion;
|
|
|
801
801
|
MetadataVersion4[MetadataVersion4["V5"] = 4] = "V5";
|
|
802
802
|
})(MetadataVersion || (MetadataVersion = {}));
|
|
803
803
|
|
|
804
|
-
// node_modules/apache-arrow/fb/union-mode.mjs
|
|
804
|
+
// ../../node_modules/apache-arrow/fb/union-mode.mjs
|
|
805
805
|
var UnionMode;
|
|
806
806
|
(function(UnionMode4) {
|
|
807
807
|
UnionMode4[UnionMode4["Sparse"] = 0] = "Sparse";
|
|
808
808
|
UnionMode4[UnionMode4["Dense"] = 1] = "Dense";
|
|
809
809
|
})(UnionMode || (UnionMode = {}));
|
|
810
810
|
|
|
811
|
-
// node_modules/apache-arrow/fb/precision.mjs
|
|
811
|
+
// ../../node_modules/apache-arrow/fb/precision.mjs
|
|
812
812
|
var Precision;
|
|
813
813
|
(function(Precision4) {
|
|
814
814
|
Precision4[Precision4["HALF"] = 0] = "HALF";
|
|
@@ -816,14 +816,14 @@ var Precision;
|
|
|
816
816
|
Precision4[Precision4["DOUBLE"] = 2] = "DOUBLE";
|
|
817
817
|
})(Precision || (Precision = {}));
|
|
818
818
|
|
|
819
|
-
// node_modules/apache-arrow/fb/date-unit.mjs
|
|
819
|
+
// ../../node_modules/apache-arrow/fb/date-unit.mjs
|
|
820
820
|
var DateUnit;
|
|
821
821
|
(function(DateUnit4) {
|
|
822
822
|
DateUnit4[DateUnit4["DAY"] = 0] = "DAY";
|
|
823
823
|
DateUnit4[DateUnit4["MILLISECOND"] = 1] = "MILLISECOND";
|
|
824
824
|
})(DateUnit || (DateUnit = {}));
|
|
825
825
|
|
|
826
|
-
// node_modules/apache-arrow/fb/time-unit.mjs
|
|
826
|
+
// ../../node_modules/apache-arrow/fb/time-unit.mjs
|
|
827
827
|
var TimeUnit;
|
|
828
828
|
(function(TimeUnit4) {
|
|
829
829
|
TimeUnit4[TimeUnit4["SECOND"] = 0] = "SECOND";
|
|
@@ -832,7 +832,7 @@ var TimeUnit;
|
|
|
832
832
|
TimeUnit4[TimeUnit4["NANOSECOND"] = 3] = "NANOSECOND";
|
|
833
833
|
})(TimeUnit || (TimeUnit = {}));
|
|
834
834
|
|
|
835
|
-
// node_modules/apache-arrow/fb/interval-unit.mjs
|
|
835
|
+
// ../../node_modules/apache-arrow/fb/interval-unit.mjs
|
|
836
836
|
var IntervalUnit;
|
|
837
837
|
(function(IntervalUnit4) {
|
|
838
838
|
IntervalUnit4[IntervalUnit4["YEAR_MONTH"] = 0] = "YEAR_MONTH";
|
|
@@ -1414,19 +1414,18 @@ var Builder = class _Builder {
|
|
|
1414
1414
|
this.addInt16(len);
|
|
1415
1415
|
let existing_vtable = 0;
|
|
1416
1416
|
const vt1 = this.space;
|
|
1417
|
-
outer_loop:
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
continue outer_loop;
|
|
1424
|
-
}
|
|
1417
|
+
outer_loop: for (i = 0; i < this.vtables.length; i++) {
|
|
1418
|
+
const vt2 = this.bb.capacity() - this.vtables[i];
|
|
1419
|
+
if (len == this.bb.readInt16(vt2)) {
|
|
1420
|
+
for (let j2 = SIZEOF_SHORT; j2 < len; j2 += SIZEOF_SHORT) {
|
|
1421
|
+
if (this.bb.readInt16(vt1 + j2) != this.bb.readInt16(vt2 + j2)) {
|
|
1422
|
+
continue outer_loop;
|
|
1425
1423
|
}
|
|
1426
|
-
existing_vtable = this.vtables[i];
|
|
1427
|
-
break;
|
|
1428
1424
|
}
|
|
1425
|
+
existing_vtable = this.vtables[i];
|
|
1426
|
+
break;
|
|
1429
1427
|
}
|
|
1428
|
+
}
|
|
1430
1429
|
if (existing_vtable) {
|
|
1431
1430
|
this.space = this.bb.capacity() - vtableloc;
|
|
1432
1431
|
this.bb.writeInt32(this.space, existing_vtable - vtableloc);
|
|
@@ -1588,20 +1587,20 @@ var Builder = class _Builder {
|
|
|
1588
1587
|
}
|
|
1589
1588
|
};
|
|
1590
1589
|
|
|
1591
|
-
// node_modules/apache-arrow/fb/body-compression-method.mjs
|
|
1590
|
+
// ../../node_modules/apache-arrow/fb/body-compression-method.mjs
|
|
1592
1591
|
var BodyCompressionMethod;
|
|
1593
1592
|
(function(BodyCompressionMethod3) {
|
|
1594
1593
|
BodyCompressionMethod3[BodyCompressionMethod3["BUFFER"] = 0] = "BUFFER";
|
|
1595
1594
|
})(BodyCompressionMethod || (BodyCompressionMethod = {}));
|
|
1596
1595
|
|
|
1597
|
-
// node_modules/apache-arrow/fb/compression-type.mjs
|
|
1596
|
+
// ../../node_modules/apache-arrow/fb/compression-type.mjs
|
|
1598
1597
|
var CompressionType;
|
|
1599
1598
|
(function(CompressionType3) {
|
|
1600
1599
|
CompressionType3[CompressionType3["LZ4_FRAME"] = 0] = "LZ4_FRAME";
|
|
1601
1600
|
CompressionType3[CompressionType3["ZSTD"] = 1] = "ZSTD";
|
|
1602
1601
|
})(CompressionType || (CompressionType = {}));
|
|
1603
1602
|
|
|
1604
|
-
// node_modules/apache-arrow/fb/body-compression.mjs
|
|
1603
|
+
// ../../node_modules/apache-arrow/fb/body-compression.mjs
|
|
1605
1604
|
var BodyCompression = class _BodyCompression {
|
|
1606
1605
|
constructor() {
|
|
1607
1606
|
this.bb = null;
|
|
@@ -1655,7 +1654,7 @@ var BodyCompression = class _BodyCompression {
|
|
|
1655
1654
|
}
|
|
1656
1655
|
};
|
|
1657
1656
|
|
|
1658
|
-
// node_modules/apache-arrow/fb/buffer.mjs
|
|
1657
|
+
// ../../node_modules/apache-arrow/fb/buffer.mjs
|
|
1659
1658
|
var Buffer2 = class {
|
|
1660
1659
|
constructor() {
|
|
1661
1660
|
this.bb = null;
|
|
@@ -1694,7 +1693,7 @@ var Buffer2 = class {
|
|
|
1694
1693
|
}
|
|
1695
1694
|
};
|
|
1696
1695
|
|
|
1697
|
-
// node_modules/apache-arrow/fb/field-node.mjs
|
|
1696
|
+
// ../../node_modules/apache-arrow/fb/field-node.mjs
|
|
1698
1697
|
var FieldNode = class {
|
|
1699
1698
|
constructor() {
|
|
1700
1699
|
this.bb = null;
|
|
@@ -1731,7 +1730,7 @@ var FieldNode = class {
|
|
|
1731
1730
|
}
|
|
1732
1731
|
};
|
|
1733
1732
|
|
|
1734
|
-
// node_modules/apache-arrow/fb/record-batch.mjs
|
|
1733
|
+
// ../../node_modules/apache-arrow/fb/record-batch.mjs
|
|
1735
1734
|
var RecordBatch = class _RecordBatch {
|
|
1736
1735
|
constructor() {
|
|
1737
1736
|
this.bb = null;
|
|
@@ -1818,7 +1817,7 @@ var RecordBatch = class _RecordBatch {
|
|
|
1818
1817
|
}
|
|
1819
1818
|
};
|
|
1820
1819
|
|
|
1821
|
-
// node_modules/apache-arrow/fb/dictionary-batch.mjs
|
|
1820
|
+
// ../../node_modules/apache-arrow/fb/dictionary-batch.mjs
|
|
1822
1821
|
var DictionaryBatch = class _DictionaryBatch {
|
|
1823
1822
|
constructor() {
|
|
1824
1823
|
this.bb = null;
|
|
@@ -1871,20 +1870,20 @@ var DictionaryBatch = class _DictionaryBatch {
|
|
|
1871
1870
|
}
|
|
1872
1871
|
};
|
|
1873
1872
|
|
|
1874
|
-
// node_modules/apache-arrow/fb/endianness.mjs
|
|
1873
|
+
// ../../node_modules/apache-arrow/fb/endianness.mjs
|
|
1875
1874
|
var Endianness;
|
|
1876
1875
|
(function(Endianness3) {
|
|
1877
1876
|
Endianness3[Endianness3["Little"] = 0] = "Little";
|
|
1878
1877
|
Endianness3[Endianness3["Big"] = 1] = "Big";
|
|
1879
1878
|
})(Endianness || (Endianness = {}));
|
|
1880
1879
|
|
|
1881
|
-
// node_modules/apache-arrow/fb/dictionary-kind.mjs
|
|
1880
|
+
// ../../node_modules/apache-arrow/fb/dictionary-kind.mjs
|
|
1882
1881
|
var DictionaryKind;
|
|
1883
1882
|
(function(DictionaryKind3) {
|
|
1884
1883
|
DictionaryKind3[DictionaryKind3["DenseArray"] = 0] = "DenseArray";
|
|
1885
1884
|
})(DictionaryKind || (DictionaryKind = {}));
|
|
1886
1885
|
|
|
1887
|
-
// node_modules/apache-arrow/fb/int.mjs
|
|
1886
|
+
// ../../node_modules/apache-arrow/fb/int.mjs
|
|
1888
1887
|
var Int = class _Int {
|
|
1889
1888
|
constructor() {
|
|
1890
1889
|
this.bb = null;
|
|
@@ -1931,7 +1930,7 @@ var Int = class _Int {
|
|
|
1931
1930
|
}
|
|
1932
1931
|
};
|
|
1933
1932
|
|
|
1934
|
-
// node_modules/apache-arrow/fb/dictionary-encoding.mjs
|
|
1933
|
+
// ../../node_modules/apache-arrow/fb/dictionary-encoding.mjs
|
|
1935
1934
|
var DictionaryEncoding = class _DictionaryEncoding {
|
|
1936
1935
|
constructor() {
|
|
1937
1936
|
this.bb = null;
|
|
@@ -2004,7 +2003,7 @@ var DictionaryEncoding = class _DictionaryEncoding {
|
|
|
2004
2003
|
}
|
|
2005
2004
|
};
|
|
2006
2005
|
|
|
2007
|
-
// node_modules/apache-arrow/fb/key-value.mjs
|
|
2006
|
+
// ../../node_modules/apache-arrow/fb/key-value.mjs
|
|
2008
2007
|
var KeyValue = class _KeyValue {
|
|
2009
2008
|
constructor() {
|
|
2010
2009
|
this.bb = null;
|
|
@@ -2051,7 +2050,7 @@ var KeyValue = class _KeyValue {
|
|
|
2051
2050
|
}
|
|
2052
2051
|
};
|
|
2053
2052
|
|
|
2054
|
-
// node_modules/apache-arrow/fb/binary.mjs
|
|
2053
|
+
// ../../node_modules/apache-arrow/fb/binary.mjs
|
|
2055
2054
|
var Binary = class _Binary {
|
|
2056
2055
|
constructor() {
|
|
2057
2056
|
this.bb = null;
|
|
@@ -2082,7 +2081,7 @@ var Binary = class _Binary {
|
|
|
2082
2081
|
}
|
|
2083
2082
|
};
|
|
2084
2083
|
|
|
2085
|
-
// node_modules/apache-arrow/fb/bool.mjs
|
|
2084
|
+
// ../../node_modules/apache-arrow/fb/bool.mjs
|
|
2086
2085
|
var Bool = class _Bool {
|
|
2087
2086
|
constructor() {
|
|
2088
2087
|
this.bb = null;
|
|
@@ -2113,7 +2112,7 @@ var Bool = class _Bool {
|
|
|
2113
2112
|
}
|
|
2114
2113
|
};
|
|
2115
2114
|
|
|
2116
|
-
// node_modules/apache-arrow/fb/date.mjs
|
|
2115
|
+
// ../../node_modules/apache-arrow/fb/date.mjs
|
|
2117
2116
|
var Date2 = class _Date {
|
|
2118
2117
|
constructor() {
|
|
2119
2118
|
this.bb = null;
|
|
@@ -2152,7 +2151,7 @@ var Date2 = class _Date {
|
|
|
2152
2151
|
}
|
|
2153
2152
|
};
|
|
2154
2153
|
|
|
2155
|
-
// node_modules/apache-arrow/fb/decimal.mjs
|
|
2154
|
+
// ../../node_modules/apache-arrow/fb/decimal.mjs
|
|
2156
2155
|
var Decimal = class _Decimal {
|
|
2157
2156
|
constructor() {
|
|
2158
2157
|
this.bb = null;
|
|
@@ -2217,7 +2216,7 @@ var Decimal = class _Decimal {
|
|
|
2217
2216
|
}
|
|
2218
2217
|
};
|
|
2219
2218
|
|
|
2220
|
-
// node_modules/apache-arrow/fb/duration.mjs
|
|
2219
|
+
// ../../node_modules/apache-arrow/fb/duration.mjs
|
|
2221
2220
|
var Duration = class _Duration {
|
|
2222
2221
|
constructor() {
|
|
2223
2222
|
this.bb = null;
|
|
@@ -2256,7 +2255,7 @@ var Duration = class _Duration {
|
|
|
2256
2255
|
}
|
|
2257
2256
|
};
|
|
2258
2257
|
|
|
2259
|
-
// node_modules/apache-arrow/fb/fixed-size-binary.mjs
|
|
2258
|
+
// ../../node_modules/apache-arrow/fb/fixed-size-binary.mjs
|
|
2260
2259
|
var FixedSizeBinary = class _FixedSizeBinary {
|
|
2261
2260
|
constructor() {
|
|
2262
2261
|
this.bb = null;
|
|
@@ -2298,7 +2297,7 @@ var FixedSizeBinary = class _FixedSizeBinary {
|
|
|
2298
2297
|
}
|
|
2299
2298
|
};
|
|
2300
2299
|
|
|
2301
|
-
// node_modules/apache-arrow/fb/fixed-size-list.mjs
|
|
2300
|
+
// ../../node_modules/apache-arrow/fb/fixed-size-list.mjs
|
|
2302
2301
|
var FixedSizeList = class _FixedSizeList {
|
|
2303
2302
|
constructor() {
|
|
2304
2303
|
this.bb = null;
|
|
@@ -2340,7 +2339,7 @@ var FixedSizeList = class _FixedSizeList {
|
|
|
2340
2339
|
}
|
|
2341
2340
|
};
|
|
2342
2341
|
|
|
2343
|
-
// node_modules/apache-arrow/fb/floating-point.mjs
|
|
2342
|
+
// ../../node_modules/apache-arrow/fb/floating-point.mjs
|
|
2344
2343
|
var FloatingPoint = class _FloatingPoint {
|
|
2345
2344
|
constructor() {
|
|
2346
2345
|
this.bb = null;
|
|
@@ -2379,7 +2378,7 @@ var FloatingPoint = class _FloatingPoint {
|
|
|
2379
2378
|
}
|
|
2380
2379
|
};
|
|
2381
2380
|
|
|
2382
|
-
// node_modules/apache-arrow/fb/interval.mjs
|
|
2381
|
+
// ../../node_modules/apache-arrow/fb/interval.mjs
|
|
2383
2382
|
var Interval = class _Interval {
|
|
2384
2383
|
constructor() {
|
|
2385
2384
|
this.bb = null;
|
|
@@ -2418,7 +2417,7 @@ var Interval = class _Interval {
|
|
|
2418
2417
|
}
|
|
2419
2418
|
};
|
|
2420
2419
|
|
|
2421
|
-
// node_modules/apache-arrow/fb/large-binary.mjs
|
|
2420
|
+
// ../../node_modules/apache-arrow/fb/large-binary.mjs
|
|
2422
2421
|
var LargeBinary = class _LargeBinary {
|
|
2423
2422
|
constructor() {
|
|
2424
2423
|
this.bb = null;
|
|
@@ -2449,7 +2448,7 @@ var LargeBinary = class _LargeBinary {
|
|
|
2449
2448
|
}
|
|
2450
2449
|
};
|
|
2451
2450
|
|
|
2452
|
-
// node_modules/apache-arrow/fb/large-utf8.mjs
|
|
2451
|
+
// ../../node_modules/apache-arrow/fb/large-utf8.mjs
|
|
2453
2452
|
var LargeUtf8 = class _LargeUtf8 {
|
|
2454
2453
|
constructor() {
|
|
2455
2454
|
this.bb = null;
|
|
@@ -2480,7 +2479,7 @@ var LargeUtf8 = class _LargeUtf8 {
|
|
|
2480
2479
|
}
|
|
2481
2480
|
};
|
|
2482
2481
|
|
|
2483
|
-
// node_modules/apache-arrow/fb/list.mjs
|
|
2482
|
+
// ../../node_modules/apache-arrow/fb/list.mjs
|
|
2484
2483
|
var List = class _List {
|
|
2485
2484
|
constructor() {
|
|
2486
2485
|
this.bb = null;
|
|
@@ -2511,7 +2510,7 @@ var List = class _List {
|
|
|
2511
2510
|
}
|
|
2512
2511
|
};
|
|
2513
2512
|
|
|
2514
|
-
// node_modules/apache-arrow/fb/map.mjs
|
|
2513
|
+
// ../../node_modules/apache-arrow/fb/map.mjs
|
|
2515
2514
|
var Map2 = class _Map {
|
|
2516
2515
|
constructor() {
|
|
2517
2516
|
this.bb = null;
|
|
@@ -2553,7 +2552,7 @@ var Map2 = class _Map {
|
|
|
2553
2552
|
}
|
|
2554
2553
|
};
|
|
2555
2554
|
|
|
2556
|
-
// node_modules/apache-arrow/fb/null.mjs
|
|
2555
|
+
// ../../node_modules/apache-arrow/fb/null.mjs
|
|
2557
2556
|
var Null = class _Null {
|
|
2558
2557
|
constructor() {
|
|
2559
2558
|
this.bb = null;
|
|
@@ -2584,7 +2583,7 @@ var Null = class _Null {
|
|
|
2584
2583
|
}
|
|
2585
2584
|
};
|
|
2586
2585
|
|
|
2587
|
-
// node_modules/apache-arrow/fb/struct-.mjs
|
|
2586
|
+
// ../../node_modules/apache-arrow/fb/struct-.mjs
|
|
2588
2587
|
var Struct_ = class _Struct_ {
|
|
2589
2588
|
constructor() {
|
|
2590
2589
|
this.bb = null;
|
|
@@ -2615,7 +2614,7 @@ var Struct_ = class _Struct_ {
|
|
|
2615
2614
|
}
|
|
2616
2615
|
};
|
|
2617
2616
|
|
|
2618
|
-
// node_modules/apache-arrow/fb/time.mjs
|
|
2617
|
+
// ../../node_modules/apache-arrow/fb/time.mjs
|
|
2619
2618
|
var Time = class _Time {
|
|
2620
2619
|
constructor() {
|
|
2621
2620
|
this.bb = null;
|
|
@@ -2662,7 +2661,7 @@ var Time = class _Time {
|
|
|
2662
2661
|
}
|
|
2663
2662
|
};
|
|
2664
2663
|
|
|
2665
|
-
// node_modules/apache-arrow/fb/timestamp.mjs
|
|
2664
|
+
// ../../node_modules/apache-arrow/fb/timestamp.mjs
|
|
2666
2665
|
var Timestamp = class _Timestamp {
|
|
2667
2666
|
constructor() {
|
|
2668
2667
|
this.bb = null;
|
|
@@ -2709,7 +2708,7 @@ var Timestamp = class _Timestamp {
|
|
|
2709
2708
|
}
|
|
2710
2709
|
};
|
|
2711
2710
|
|
|
2712
|
-
// node_modules/apache-arrow/fb/union.mjs
|
|
2711
|
+
// ../../node_modules/apache-arrow/fb/union.mjs
|
|
2713
2712
|
var Union = class _Union {
|
|
2714
2713
|
constructor() {
|
|
2715
2714
|
this.bb = null;
|
|
@@ -2774,7 +2773,7 @@ var Union = class _Union {
|
|
|
2774
2773
|
}
|
|
2775
2774
|
};
|
|
2776
2775
|
|
|
2777
|
-
// node_modules/apache-arrow/fb/utf8.mjs
|
|
2776
|
+
// ../../node_modules/apache-arrow/fb/utf8.mjs
|
|
2778
2777
|
var Utf8 = class _Utf8 {
|
|
2779
2778
|
constructor() {
|
|
2780
2779
|
this.bb = null;
|
|
@@ -2805,7 +2804,7 @@ var Utf8 = class _Utf8 {
|
|
|
2805
2804
|
}
|
|
2806
2805
|
};
|
|
2807
2806
|
|
|
2808
|
-
// node_modules/apache-arrow/fb/type.mjs
|
|
2807
|
+
// ../../node_modules/apache-arrow/fb/type.mjs
|
|
2809
2808
|
var Type;
|
|
2810
2809
|
(function(Type5) {
|
|
2811
2810
|
Type5[Type5["NONE"] = 0] = "NONE";
|
|
@@ -2833,7 +2832,7 @@ var Type;
|
|
|
2833
2832
|
Type5[Type5["RunEndEncoded"] = 22] = "RunEndEncoded";
|
|
2834
2833
|
})(Type || (Type = {}));
|
|
2835
2834
|
|
|
2836
|
-
// node_modules/apache-arrow/fb/field.mjs
|
|
2835
|
+
// ../../node_modules/apache-arrow/fb/field.mjs
|
|
2837
2836
|
var Field = class _Field {
|
|
2838
2837
|
constructor() {
|
|
2839
2838
|
this.bb = null;
|
|
@@ -2953,7 +2952,7 @@ var Field = class _Field {
|
|
|
2953
2952
|
}
|
|
2954
2953
|
};
|
|
2955
2954
|
|
|
2956
|
-
// node_modules/apache-arrow/fb/schema.mjs
|
|
2955
|
+
// ../../node_modules/apache-arrow/fb/schema.mjs
|
|
2957
2956
|
var Schema = class _Schema {
|
|
2958
2957
|
constructor() {
|
|
2959
2958
|
this.bb = null;
|
|
@@ -3072,7 +3071,7 @@ var Schema = class _Schema {
|
|
|
3072
3071
|
}
|
|
3073
3072
|
};
|
|
3074
3073
|
|
|
3075
|
-
// node_modules/apache-arrow/fb/message-header.mjs
|
|
3074
|
+
// ../../node_modules/apache-arrow/fb/message-header.mjs
|
|
3076
3075
|
var MessageHeader;
|
|
3077
3076
|
(function(MessageHeader4) {
|
|
3078
3077
|
MessageHeader4[MessageHeader4["NONE"] = 0] = "NONE";
|
|
@@ -3083,7 +3082,7 @@ var MessageHeader;
|
|
|
3083
3082
|
MessageHeader4[MessageHeader4["SparseTensor"] = 5] = "SparseTensor";
|
|
3084
3083
|
})(MessageHeader || (MessageHeader = {}));
|
|
3085
3084
|
|
|
3086
|
-
// node_modules/apache-arrow/enum.mjs
|
|
3085
|
+
// ../../node_modules/apache-arrow/enum.mjs
|
|
3087
3086
|
var Type2;
|
|
3088
3087
|
(function(Type5) {
|
|
3089
3088
|
Type5[Type5["NONE"] = 0] = "NONE";
|
|
@@ -3146,7 +3145,7 @@ var BufferType;
|
|
|
3146
3145
|
BufferType3[BufferType3["TYPE"] = 3] = "TYPE";
|
|
3147
3146
|
})(BufferType || (BufferType = {}));
|
|
3148
3147
|
|
|
3149
|
-
// node_modules/apache-arrow/util/vector.mjs
|
|
3148
|
+
// ../../node_modules/apache-arrow/util/vector.mjs
|
|
3150
3149
|
var vector_exports = {};
|
|
3151
3150
|
__export(vector_exports, {
|
|
3152
3151
|
clampIndex: () => clampIndex,
|
|
@@ -3154,7 +3153,7 @@ __export(vector_exports, {
|
|
|
3154
3153
|
createElementComparator: () => createElementComparator
|
|
3155
3154
|
});
|
|
3156
3155
|
|
|
3157
|
-
// node_modules/apache-arrow/util/pretty.mjs
|
|
3156
|
+
// ../../node_modules/apache-arrow/util/pretty.mjs
|
|
3158
3157
|
var pretty_exports = {};
|
|
3159
3158
|
__export(pretty_exports, {
|
|
3160
3159
|
valueToString: () => valueToString
|
|
@@ -3187,7 +3186,7 @@ function valueToString(x3) {
|
|
|
3187
3186
|
return ArrayBuffer.isView(x3) ? `[${x3}]` : JSON.stringify(x3, (_2, y3) => typeof y3 === "bigint" ? `${y3}` : y3);
|
|
3188
3187
|
}
|
|
3189
3188
|
|
|
3190
|
-
// node_modules/apache-arrow/util/bn.mjs
|
|
3189
|
+
// ../../node_modules/apache-arrow/util/bn.mjs
|
|
3191
3190
|
var bn_exports = {};
|
|
3192
3191
|
__export(bn_exports, {
|
|
3193
3192
|
BN: () => BN,
|
|
@@ -3344,7 +3343,7 @@ var BN = class _BN {
|
|
|
3344
3343
|
}
|
|
3345
3344
|
};
|
|
3346
3345
|
|
|
3347
|
-
// node_modules/apache-arrow/util/bigint.mjs
|
|
3346
|
+
// ../../node_modules/apache-arrow/util/bigint.mjs
|
|
3348
3347
|
function bigIntToNumber(number) {
|
|
3349
3348
|
if (typeof number === "bigint" && (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER)) {
|
|
3350
3349
|
throw new TypeError(`${number} is not safe to convert to a number.`);
|
|
@@ -3352,7 +3351,7 @@ function bigIntToNumber(number) {
|
|
|
3352
3351
|
return Number(number);
|
|
3353
3352
|
}
|
|
3354
3353
|
|
|
3355
|
-
// node_modules/apache-arrow/type.mjs
|
|
3354
|
+
// ../../node_modules/apache-arrow/type.mjs
|
|
3356
3355
|
var _a;
|
|
3357
3356
|
var _b;
|
|
3358
3357
|
var _c;
|
|
@@ -3992,7 +3991,7 @@ function strideForType(type) {
|
|
|
3992
3991
|
}
|
|
3993
3992
|
}
|
|
3994
3993
|
|
|
3995
|
-
// node_modules/apache-arrow/visitor.mjs
|
|
3994
|
+
// ../../node_modules/apache-arrow/visitor.mjs
|
|
3996
3995
|
var Visitor = class {
|
|
3997
3996
|
visitMany(nodes, ...args) {
|
|
3998
3997
|
return nodes.map((node, i) => this.visit(node, ...args.map((x3) => x3[i])));
|
|
@@ -4391,7 +4390,7 @@ Visitor.prototype.visitDurationMillisecond = null;
|
|
|
4391
4390
|
Visitor.prototype.visitDurationMicrosecond = null;
|
|
4392
4391
|
Visitor.prototype.visitDurationNanosecond = null;
|
|
4393
4392
|
|
|
4394
|
-
// node_modules/apache-arrow/util/math.mjs
|
|
4393
|
+
// ../../node_modules/apache-arrow/util/math.mjs
|
|
4395
4394
|
var math_exports = {};
|
|
4396
4395
|
__export(math_exports, {
|
|
4397
4396
|
float64ToUint16: () => float64ToUint16,
|
|
@@ -4436,7 +4435,7 @@ function float64ToUint16(d) {
|
|
|
4436
4435
|
return sign | expo | sigf & 65535;
|
|
4437
4436
|
}
|
|
4438
4437
|
|
|
4439
|
-
// node_modules/apache-arrow/visitor/set.mjs
|
|
4438
|
+
// ../../node_modules/apache-arrow/visitor/set.mjs
|
|
4440
4439
|
var SetVisitor = class extends Visitor {
|
|
4441
4440
|
};
|
|
4442
4441
|
function wrapSet(fn) {
|
|
@@ -4697,7 +4696,7 @@ SetVisitor.prototype.visitFixedSizeList = wrapSet(setFixedSizeList);
|
|
|
4697
4696
|
SetVisitor.prototype.visitMap = wrapSet(setMap);
|
|
4698
4697
|
var instance = new SetVisitor();
|
|
4699
4698
|
|
|
4700
|
-
// node_modules/apache-arrow/row/struct.mjs
|
|
4699
|
+
// ../../node_modules/apache-arrow/row/struct.mjs
|
|
4701
4700
|
var kParent = Symbol.for("parent");
|
|
4702
4701
|
var kRowIndex = Symbol.for("rowIndex");
|
|
4703
4702
|
var StructRow = class {
|
|
@@ -4805,7 +4804,7 @@ var StructRowProxyHandler = class {
|
|
|
4805
4804
|
}
|
|
4806
4805
|
};
|
|
4807
4806
|
|
|
4808
|
-
// node_modules/apache-arrow/visitor/get.mjs
|
|
4807
|
+
// ../../node_modules/apache-arrow/visitor/get.mjs
|
|
4809
4808
|
var GetVisitor = class extends Visitor {
|
|
4810
4809
|
};
|
|
4811
4810
|
function wrapGet(fn) {
|
|
@@ -4995,7 +4994,7 @@ GetVisitor.prototype.visitFixedSizeList = wrapGet(getFixedSizeList);
|
|
|
4995
4994
|
GetVisitor.prototype.visitMap = wrapGet(getMap);
|
|
4996
4995
|
var instance2 = new GetVisitor();
|
|
4997
4996
|
|
|
4998
|
-
// node_modules/apache-arrow/row/map.mjs
|
|
4997
|
+
// ../../node_modules/apache-arrow/row/map.mjs
|
|
4999
4998
|
var kKeys = Symbol.for("keys");
|
|
5000
4999
|
var kVals = Symbol.for("vals");
|
|
5001
5000
|
var MapRow = class {
|
|
@@ -5105,7 +5104,7 @@ Object.defineProperties(MapRow.prototype, {
|
|
|
5105
5104
|
[kVals]: { writable: true, enumerable: false, configurable: false, value: null }
|
|
5106
5105
|
});
|
|
5107
5106
|
|
|
5108
|
-
// node_modules/apache-arrow/util/vector.mjs
|
|
5107
|
+
// ../../node_modules/apache-arrow/util/vector.mjs
|
|
5109
5108
|
function clampIndex(source, index, then) {
|
|
5110
5109
|
const length2 = source.length;
|
|
5111
5110
|
const adjust = index > -1 ? index : length2 + index % length2;
|
|
@@ -5247,7 +5246,7 @@ function compareObject(comparators, obj, keys) {
|
|
|
5247
5246
|
return false;
|
|
5248
5247
|
}
|
|
5249
5248
|
|
|
5250
|
-
// node_modules/apache-arrow/util/bit.mjs
|
|
5249
|
+
// ../../node_modules/apache-arrow/util/bit.mjs
|
|
5251
5250
|
var bit_exports = {};
|
|
5252
5251
|
__export(bit_exports, {
|
|
5253
5252
|
BitIterator: () => BitIterator,
|
|
@@ -5370,7 +5369,7 @@ function popcnt_uint32(uint32) {
|
|
|
5370
5369
|
return (i + (i >>> 4) & 252645135) * 16843009 >>> 24;
|
|
5371
5370
|
}
|
|
5372
5371
|
|
|
5373
|
-
// node_modules/apache-arrow/data.mjs
|
|
5372
|
+
// ../../node_modules/apache-arrow/data.mjs
|
|
5374
5373
|
var kUnknownNullCount = -1;
|
|
5375
5374
|
var Data = class _Data {
|
|
5376
5375
|
get typeId() {
|
|
@@ -5689,7 +5688,7 @@ function makeData(props) {
|
|
|
5689
5688
|
return makeDataVisitor.visit(props);
|
|
5690
5689
|
}
|
|
5691
5690
|
|
|
5692
|
-
// node_modules/apache-arrow/util/chunk.mjs
|
|
5691
|
+
// ../../node_modules/apache-arrow/util/chunk.mjs
|
|
5693
5692
|
var ChunkedIterator = class {
|
|
5694
5693
|
constructor(numChunks = 0, getChunkIterator) {
|
|
5695
5694
|
this.numChunks = numChunks;
|
|
@@ -5808,7 +5807,7 @@ function wrapChunkedIndexOf(indexOf) {
|
|
|
5808
5807
|
};
|
|
5809
5808
|
}
|
|
5810
5809
|
|
|
5811
|
-
// node_modules/apache-arrow/visitor/indexof.mjs
|
|
5810
|
+
// ../../node_modules/apache-arrow/visitor/indexof.mjs
|
|
5812
5811
|
var IndexOfVisitor = class extends Visitor {
|
|
5813
5812
|
};
|
|
5814
5813
|
function nullIndexOf(data, searchElement) {
|
|
@@ -5913,7 +5912,7 @@ IndexOfVisitor.prototype.visitFixedSizeList = indexOfValue;
|
|
|
5913
5912
|
IndexOfVisitor.prototype.visitMap = indexOfValue;
|
|
5914
5913
|
var instance3 = new IndexOfVisitor();
|
|
5915
5914
|
|
|
5916
|
-
// node_modules/apache-arrow/visitor/iterator.mjs
|
|
5915
|
+
// ../../node_modules/apache-arrow/visitor/iterator.mjs
|
|
5917
5916
|
var IteratorVisitor = class extends Visitor {
|
|
5918
5917
|
};
|
|
5919
5918
|
function vectorIterator(vector) {
|
|
@@ -6002,7 +6001,7 @@ IteratorVisitor.prototype.visitFixedSizeList = vectorIterator;
|
|
|
6002
6001
|
IteratorVisitor.prototype.visitMap = vectorIterator;
|
|
6003
6002
|
var instance4 = new IteratorVisitor();
|
|
6004
6003
|
|
|
6005
|
-
// node_modules/apache-arrow/vector.mjs
|
|
6004
|
+
// ../../node_modules/apache-arrow/vector.mjs
|
|
6006
6005
|
var _a2;
|
|
6007
6006
|
var visitorsByTypeId = {};
|
|
6008
6007
|
var vectorPrototypesByTypeId = {};
|
|
@@ -6306,7 +6305,7 @@ var MemoizedVector = class _MemoizedVector extends Vector {
|
|
|
6306
6305
|
}
|
|
6307
6306
|
};
|
|
6308
6307
|
|
|
6309
|
-
// node_modules/apache-arrow/builder/valid.mjs
|
|
6308
|
+
// ../../node_modules/apache-arrow/builder/valid.mjs
|
|
6310
6309
|
function createIsValidFunction(nullValues) {
|
|
6311
6310
|
if (!nullValues || nullValues.length <= 0) {
|
|
6312
6311
|
return function isValid(value) {
|
|
@@ -6336,7 +6335,7 @@ function valueToCase(x3) {
|
|
|
6336
6335
|
return `${valueToString(x3)}n`;
|
|
6337
6336
|
}
|
|
6338
6337
|
|
|
6339
|
-
// node_modules/apache-arrow/builder/buffer.mjs
|
|
6338
|
+
// ../../node_modules/apache-arrow/builder/buffer.mjs
|
|
6340
6339
|
function roundLengthUpToNearest64Bytes(len, BPE) {
|
|
6341
6340
|
const bytesMinus1 = Math.ceil(len) * BPE - 1;
|
|
6342
6341
|
return (bytesMinus1 - bytesMinus1 % 64 + 64 || 64) / BPE;
|
|
@@ -6454,7 +6453,7 @@ var OffsetsBufferBuilder = class extends DataBufferBuilder {
|
|
|
6454
6453
|
}
|
|
6455
6454
|
};
|
|
6456
6455
|
|
|
6457
|
-
// node_modules/apache-arrow/builder.mjs
|
|
6456
|
+
// ../../node_modules/apache-arrow/builder.mjs
|
|
6458
6457
|
var Builder2 = class {
|
|
6459
6458
|
/** @nocollapse */
|
|
6460
6459
|
// @ts-ignore
|
|
@@ -6721,7 +6720,7 @@ var VariableWidthBuilder = class extends Builder2 {
|
|
|
6721
6720
|
}
|
|
6722
6721
|
};
|
|
6723
6722
|
|
|
6724
|
-
// node_modules/apache-arrow/fb/block.mjs
|
|
6723
|
+
// ../../node_modules/apache-arrow/fb/block.mjs
|
|
6725
6724
|
var Block = class {
|
|
6726
6725
|
constructor() {
|
|
6727
6726
|
this.bb = null;
|
|
@@ -6764,7 +6763,7 @@ var Block = class {
|
|
|
6764
6763
|
}
|
|
6765
6764
|
};
|
|
6766
6765
|
|
|
6767
|
-
// node_modules/apache-arrow/fb/footer.mjs
|
|
6766
|
+
// ../../node_modules/apache-arrow/fb/footer.mjs
|
|
6768
6767
|
var Footer = class _Footer {
|
|
6769
6768
|
constructor() {
|
|
6770
6769
|
this.bb = null;
|
|
@@ -6863,7 +6862,7 @@ var Footer = class _Footer {
|
|
|
6863
6862
|
}
|
|
6864
6863
|
};
|
|
6865
6864
|
|
|
6866
|
-
// node_modules/apache-arrow/schema.mjs
|
|
6865
|
+
// ../../node_modules/apache-arrow/schema.mjs
|
|
6867
6866
|
var Schema2 = class _Schema {
|
|
6868
6867
|
constructor(fields = [], metadata, dictionaries, metadataVersion = MetadataVersion.V5) {
|
|
6869
6868
|
this.fields = fields || [];
|
|
@@ -6979,7 +6978,7 @@ function generateDictionaryMap(fields, dictionaries = /* @__PURE__ */ new Map())
|
|
|
6979
6978
|
return dictionaries;
|
|
6980
6979
|
}
|
|
6981
6980
|
|
|
6982
|
-
// node_modules/apache-arrow/ipc/metadata/file.mjs
|
|
6981
|
+
// ../../node_modules/apache-arrow/ipc/metadata/file.mjs
|
|
6983
6982
|
var Builder3 = Builder;
|
|
6984
6983
|
var ByteBuffer2 = ByteBuffer;
|
|
6985
6984
|
var Footer_ = class {
|
|
@@ -7094,7 +7093,7 @@ var FileBlock = class _FileBlock {
|
|
|
7094
7093
|
}
|
|
7095
7094
|
};
|
|
7096
7095
|
|
|
7097
|
-
// node_modules/apache-arrow/io/interfaces.mjs
|
|
7096
|
+
// ../../node_modules/apache-arrow/io/interfaces.mjs
|
|
7098
7097
|
var ITERATOR_DONE = Object.freeze({ done: true, value: void 0 });
|
|
7099
7098
|
var ArrowJSON = class {
|
|
7100
7099
|
constructor(_json) {
|
|
@@ -7217,7 +7216,7 @@ var AsyncQueue = class extends ReadableInterop {
|
|
|
7217
7216
|
}
|
|
7218
7217
|
};
|
|
7219
7218
|
|
|
7220
|
-
// node_modules/apache-arrow/io/stream.mjs
|
|
7219
|
+
// ../../node_modules/apache-arrow/io/stream.mjs
|
|
7221
7220
|
var AsyncByteQueue = class extends AsyncQueue {
|
|
7222
7221
|
write(value) {
|
|
7223
7222
|
if ((value = toUint8Array(value)).byteLength > 0) {
|
|
@@ -7244,11 +7243,9 @@ var AsyncByteQueue = class extends AsyncQueue {
|
|
|
7244
7243
|
e_1 = { error: e_1_1 };
|
|
7245
7244
|
} finally {
|
|
7246
7245
|
try {
|
|
7247
|
-
if (!_d3 && !_a9 && (_b3 = _e3.return))
|
|
7248
|
-
yield _b3.call(_e3);
|
|
7246
|
+
if (!_d3 && !_a9 && (_b3 = _e3.return)) yield _b3.call(_e3);
|
|
7249
7247
|
} finally {
|
|
7250
|
-
if (e_1)
|
|
7251
|
-
throw e_1.error;
|
|
7248
|
+
if (e_1) throw e_1.error;
|
|
7252
7249
|
}
|
|
7253
7250
|
}
|
|
7254
7251
|
return joinUint8Arrays(buffers, byteLength)[0];
|
|
@@ -7394,7 +7391,7 @@ var AsyncByteStreamSource = class {
|
|
|
7394
7391
|
}
|
|
7395
7392
|
};
|
|
7396
7393
|
|
|
7397
|
-
// node_modules/apache-arrow/io/file.mjs
|
|
7394
|
+
// ../../node_modules/apache-arrow/io/file.mjs
|
|
7398
7395
|
var RandomAccessFile = class extends ByteStream {
|
|
7399
7396
|
constructor(buffer, byteLength) {
|
|
7400
7397
|
super();
|
|
@@ -7517,7 +7514,7 @@ var AsyncRandomAccessFile = class extends AsyncByteStream {
|
|
|
7517
7514
|
}
|
|
7518
7515
|
};
|
|
7519
7516
|
|
|
7520
|
-
// node_modules/apache-arrow/util/int.mjs
|
|
7517
|
+
// ../../node_modules/apache-arrow/util/int.mjs
|
|
7521
7518
|
var int_exports = {};
|
|
7522
7519
|
__export(int_exports, {
|
|
7523
7520
|
BaseInt64: () => BaseInt64,
|
|
@@ -7833,7 +7830,7 @@ var Int128 = class _Int128 {
|
|
|
7833
7830
|
}
|
|
7834
7831
|
};
|
|
7835
7832
|
|
|
7836
|
-
// node_modules/apache-arrow/visitor/vectorloader.mjs
|
|
7833
|
+
// ../../node_modules/apache-arrow/visitor/vectorloader.mjs
|
|
7837
7834
|
var VectorLoader = class extends Visitor {
|
|
7838
7835
|
constructor(bytes, nodes, buffers, dictionaries, metadataVersion = MetadataVersion.V5) {
|
|
7839
7836
|
super();
|
|
@@ -7985,7 +7982,7 @@ function binaryDataFromJSON(values) {
|
|
|
7985
7982
|
return data;
|
|
7986
7983
|
}
|
|
7987
7984
|
|
|
7988
|
-
// node_modules/apache-arrow/builder/binary.mjs
|
|
7985
|
+
// ../../node_modules/apache-arrow/builder/binary.mjs
|
|
7989
7986
|
var BinaryBuilder = class extends VariableWidthBuilder {
|
|
7990
7987
|
constructor(opts) {
|
|
7991
7988
|
super(opts);
|
|
@@ -8018,7 +8015,7 @@ var BinaryBuilder = class extends VariableWidthBuilder {
|
|
|
8018
8015
|
}
|
|
8019
8016
|
};
|
|
8020
8017
|
|
|
8021
|
-
// node_modules/apache-arrow/builder/largebinary.mjs
|
|
8018
|
+
// ../../node_modules/apache-arrow/builder/largebinary.mjs
|
|
8022
8019
|
var LargeBinaryBuilder = class extends VariableWidthBuilder {
|
|
8023
8020
|
constructor(opts) {
|
|
8024
8021
|
super(opts);
|
|
@@ -8051,7 +8048,7 @@ var LargeBinaryBuilder = class extends VariableWidthBuilder {
|
|
|
8051
8048
|
}
|
|
8052
8049
|
};
|
|
8053
8050
|
|
|
8054
|
-
// node_modules/apache-arrow/builder/bool.mjs
|
|
8051
|
+
// ../../node_modules/apache-arrow/builder/bool.mjs
|
|
8055
8052
|
var BoolBuilder = class extends Builder2 {
|
|
8056
8053
|
constructor(options) {
|
|
8057
8054
|
super(options);
|
|
@@ -8062,7 +8059,7 @@ var BoolBuilder = class extends Builder2 {
|
|
|
8062
8059
|
}
|
|
8063
8060
|
};
|
|
8064
8061
|
|
|
8065
|
-
// node_modules/apache-arrow/builder/date.mjs
|
|
8062
|
+
// ../../node_modules/apache-arrow/builder/date.mjs
|
|
8066
8063
|
var DateBuilder = class extends FixedWidthBuilder {
|
|
8067
8064
|
};
|
|
8068
8065
|
DateBuilder.prototype._setValue = setDate;
|
|
@@ -8073,12 +8070,12 @@ var DateMillisecondBuilder = class extends DateBuilder {
|
|
|
8073
8070
|
};
|
|
8074
8071
|
DateMillisecondBuilder.prototype._setValue = setDateMillisecond;
|
|
8075
8072
|
|
|
8076
|
-
// node_modules/apache-arrow/builder/decimal.mjs
|
|
8073
|
+
// ../../node_modules/apache-arrow/builder/decimal.mjs
|
|
8077
8074
|
var DecimalBuilder = class extends FixedWidthBuilder {
|
|
8078
8075
|
};
|
|
8079
8076
|
DecimalBuilder.prototype._setValue = setDecimal;
|
|
8080
8077
|
|
|
8081
|
-
// node_modules/apache-arrow/builder/dictionary.mjs
|
|
8078
|
+
// ../../node_modules/apache-arrow/builder/dictionary.mjs
|
|
8082
8079
|
var DictionaryBuilder = class extends Builder2 {
|
|
8083
8080
|
constructor({ "type": type, "nullValues": nulls, "dictionaryHashFunction": hashFn }) {
|
|
8084
8081
|
super({ type: new Dictionary(type.dictionary, type.indices, type.id, type.isOrdered) });
|
|
@@ -8155,12 +8152,12 @@ var DictionaryBuilder = class extends Builder2 {
|
|
|
8155
8152
|
}
|
|
8156
8153
|
};
|
|
8157
8154
|
|
|
8158
|
-
// node_modules/apache-arrow/builder/fixedsizebinary.mjs
|
|
8155
|
+
// ../../node_modules/apache-arrow/builder/fixedsizebinary.mjs
|
|
8159
8156
|
var FixedSizeBinaryBuilder = class extends FixedWidthBuilder {
|
|
8160
8157
|
};
|
|
8161
8158
|
FixedSizeBinaryBuilder.prototype._setValue = setFixedSizeBinary;
|
|
8162
8159
|
|
|
8163
|
-
// node_modules/apache-arrow/builder/fixedsizelist.mjs
|
|
8160
|
+
// ../../node_modules/apache-arrow/builder/fixedsizelist.mjs
|
|
8164
8161
|
var FixedSizeListBuilder = class extends Builder2 {
|
|
8165
8162
|
setValue(index, value) {
|
|
8166
8163
|
const [child] = this.children;
|
|
@@ -8179,7 +8176,7 @@ var FixedSizeListBuilder = class extends Builder2 {
|
|
|
8179
8176
|
}
|
|
8180
8177
|
};
|
|
8181
8178
|
|
|
8182
|
-
// node_modules/apache-arrow/builder/float.mjs
|
|
8179
|
+
// ../../node_modules/apache-arrow/builder/float.mjs
|
|
8183
8180
|
var FloatBuilder = class extends FixedWidthBuilder {
|
|
8184
8181
|
setValue(index, value) {
|
|
8185
8182
|
this._values.set(index, value);
|
|
@@ -8195,7 +8192,7 @@ var Float32Builder = class extends FloatBuilder {
|
|
|
8195
8192
|
var Float64Builder = class extends FloatBuilder {
|
|
8196
8193
|
};
|
|
8197
8194
|
|
|
8198
|
-
// node_modules/apache-arrow/builder/interval.mjs
|
|
8195
|
+
// ../../node_modules/apache-arrow/builder/interval.mjs
|
|
8199
8196
|
var IntervalBuilder = class extends FixedWidthBuilder {
|
|
8200
8197
|
};
|
|
8201
8198
|
IntervalBuilder.prototype._setValue = setIntervalValue;
|
|
@@ -8206,7 +8203,7 @@ var IntervalYearMonthBuilder = class extends IntervalBuilder {
|
|
|
8206
8203
|
};
|
|
8207
8204
|
IntervalYearMonthBuilder.prototype._setValue = setIntervalYearMonth;
|
|
8208
8205
|
|
|
8209
|
-
// node_modules/apache-arrow/builder/duration.mjs
|
|
8206
|
+
// ../../node_modules/apache-arrow/builder/duration.mjs
|
|
8210
8207
|
var DurationBuilder = class extends FixedWidthBuilder {
|
|
8211
8208
|
};
|
|
8212
8209
|
DurationBuilder.prototype._setValue = setDuration;
|
|
@@ -8223,7 +8220,7 @@ var DurationNanosecondBuilder = class extends DurationBuilder {
|
|
|
8223
8220
|
};
|
|
8224
8221
|
DurationNanosecondBuilder.prototype._setValue = setDurationNanosecond;
|
|
8225
8222
|
|
|
8226
|
-
// node_modules/apache-arrow/builder/int.mjs
|
|
8223
|
+
// ../../node_modules/apache-arrow/builder/int.mjs
|
|
8227
8224
|
var IntBuilder = class extends FixedWidthBuilder {
|
|
8228
8225
|
setValue(index, value) {
|
|
8229
8226
|
this._values.set(index, value);
|
|
@@ -8246,7 +8243,7 @@ var Uint32Builder = class extends IntBuilder {
|
|
|
8246
8243
|
var Uint64Builder = class extends IntBuilder {
|
|
8247
8244
|
};
|
|
8248
8245
|
|
|
8249
|
-
// node_modules/apache-arrow/builder/list.mjs
|
|
8246
|
+
// ../../node_modules/apache-arrow/builder/list.mjs
|
|
8250
8247
|
var ListBuilder = class extends VariableWidthBuilder {
|
|
8251
8248
|
constructor(opts) {
|
|
8252
8249
|
super(opts);
|
|
@@ -8278,7 +8275,7 @@ var ListBuilder = class extends VariableWidthBuilder {
|
|
|
8278
8275
|
}
|
|
8279
8276
|
};
|
|
8280
8277
|
|
|
8281
|
-
// node_modules/apache-arrow/builder/map.mjs
|
|
8278
|
+
// ../../node_modules/apache-arrow/builder/map.mjs
|
|
8282
8279
|
var MapBuilder = class extends VariableWidthBuilder {
|
|
8283
8280
|
set(index, value) {
|
|
8284
8281
|
return super.set(index, value);
|
|
@@ -8317,7 +8314,7 @@ var MapBuilder = class extends VariableWidthBuilder {
|
|
|
8317
8314
|
}
|
|
8318
8315
|
};
|
|
8319
8316
|
|
|
8320
|
-
// node_modules/apache-arrow/builder/null.mjs
|
|
8317
|
+
// ../../node_modules/apache-arrow/builder/null.mjs
|
|
8321
8318
|
var NullBuilder = class extends Builder2 {
|
|
8322
8319
|
// @ts-ignore
|
|
8323
8320
|
setValue(index, value) {
|
|
@@ -8328,7 +8325,7 @@ var NullBuilder = class extends Builder2 {
|
|
|
8328
8325
|
}
|
|
8329
8326
|
};
|
|
8330
8327
|
|
|
8331
|
-
// node_modules/apache-arrow/builder/struct.mjs
|
|
8328
|
+
// ../../node_modules/apache-arrow/builder/struct.mjs
|
|
8332
8329
|
var StructBuilder = class extends Builder2 {
|
|
8333
8330
|
setValue(index, value) {
|
|
8334
8331
|
const { children, type } = this;
|
|
@@ -8355,7 +8352,7 @@ var StructBuilder = class extends Builder2 {
|
|
|
8355
8352
|
}
|
|
8356
8353
|
};
|
|
8357
8354
|
|
|
8358
|
-
// node_modules/apache-arrow/builder/timestamp.mjs
|
|
8355
|
+
// ../../node_modules/apache-arrow/builder/timestamp.mjs
|
|
8359
8356
|
var TimestampBuilder = class extends FixedWidthBuilder {
|
|
8360
8357
|
};
|
|
8361
8358
|
TimestampBuilder.prototype._setValue = setTimestamp;
|
|
@@ -8372,7 +8369,7 @@ var TimestampNanosecondBuilder = class extends TimestampBuilder {
|
|
|
8372
8369
|
};
|
|
8373
8370
|
TimestampNanosecondBuilder.prototype._setValue = setTimestampNanosecond;
|
|
8374
8371
|
|
|
8375
|
-
// node_modules/apache-arrow/builder/time.mjs
|
|
8372
|
+
// ../../node_modules/apache-arrow/builder/time.mjs
|
|
8376
8373
|
var TimeBuilder = class extends FixedWidthBuilder {
|
|
8377
8374
|
};
|
|
8378
8375
|
TimeBuilder.prototype._setValue = setTime;
|
|
@@ -8389,7 +8386,7 @@ var TimeNanosecondBuilder = class extends TimeBuilder {
|
|
|
8389
8386
|
};
|
|
8390
8387
|
TimeNanosecondBuilder.prototype._setValue = setTimeNanosecond;
|
|
8391
8388
|
|
|
8392
|
-
// node_modules/apache-arrow/builder/union.mjs
|
|
8389
|
+
// ../../node_modules/apache-arrow/builder/union.mjs
|
|
8393
8390
|
var UnionBuilder = class extends Builder2 {
|
|
8394
8391
|
constructor(options) {
|
|
8395
8392
|
super(options);
|
|
@@ -8446,7 +8443,7 @@ var DenseUnionBuilder = class extends UnionBuilder {
|
|
|
8446
8443
|
}
|
|
8447
8444
|
};
|
|
8448
8445
|
|
|
8449
|
-
// node_modules/apache-arrow/builder/utf8.mjs
|
|
8446
|
+
// ../../node_modules/apache-arrow/builder/utf8.mjs
|
|
8450
8447
|
var Utf8Builder = class extends VariableWidthBuilder {
|
|
8451
8448
|
constructor(opts) {
|
|
8452
8449
|
super(opts);
|
|
@@ -8468,7 +8465,7 @@ var Utf8Builder = class extends VariableWidthBuilder {
|
|
|
8468
8465
|
};
|
|
8469
8466
|
Utf8Builder.prototype._flushPending = BinaryBuilder.prototype._flushPending;
|
|
8470
8467
|
|
|
8471
|
-
// node_modules/apache-arrow/builder/largeutf8.mjs
|
|
8468
|
+
// ../../node_modules/apache-arrow/builder/largeutf8.mjs
|
|
8472
8469
|
var LargeUtf8Builder = class extends VariableWidthBuilder {
|
|
8473
8470
|
constructor(opts) {
|
|
8474
8471
|
super(opts);
|
|
@@ -8490,7 +8487,7 @@ var LargeUtf8Builder = class extends VariableWidthBuilder {
|
|
|
8490
8487
|
};
|
|
8491
8488
|
LargeUtf8Builder.prototype._flushPending = LargeBinaryBuilder.prototype._flushPending;
|
|
8492
8489
|
|
|
8493
|
-
// node_modules/apache-arrow/visitor/builderctor.mjs
|
|
8490
|
+
// ../../node_modules/apache-arrow/visitor/builderctor.mjs
|
|
8494
8491
|
var GetBuilderCtor = class extends Visitor {
|
|
8495
8492
|
visitNull() {
|
|
8496
8493
|
return NullBuilder;
|
|
@@ -8645,7 +8642,7 @@ var GetBuilderCtor = class extends Visitor {
|
|
|
8645
8642
|
};
|
|
8646
8643
|
var instance5 = new GetBuilderCtor();
|
|
8647
8644
|
|
|
8648
|
-
// node_modules/apache-arrow/visitor/typecomparator.mjs
|
|
8645
|
+
// ../../node_modules/apache-arrow/visitor/typecomparator.mjs
|
|
8649
8646
|
var TypeComparator = class extends Visitor {
|
|
8650
8647
|
compareSchemas(schema, other) {
|
|
8651
8648
|
return schema === other || other instanceof schema.constructor && this.compareManyFields(schema.fields, other.fields);
|
|
@@ -8766,7 +8763,7 @@ function compareTypes(type, other) {
|
|
|
8766
8763
|
return instance6.visit(type, other);
|
|
8767
8764
|
}
|
|
8768
8765
|
|
|
8769
|
-
// node_modules/apache-arrow/factories.mjs
|
|
8766
|
+
// ../../node_modules/apache-arrow/factories.mjs
|
|
8770
8767
|
function makeBuilder(options) {
|
|
8771
8768
|
const type = options.type;
|
|
8772
8769
|
const builder = new (instance5.getVisitFn(type)())(options);
|
|
@@ -8783,7 +8780,7 @@ function makeBuilder(options) {
|
|
|
8783
8780
|
return builder;
|
|
8784
8781
|
}
|
|
8785
8782
|
|
|
8786
|
-
// node_modules/apache-arrow/util/recordbatch.mjs
|
|
8783
|
+
// ../../node_modules/apache-arrow/util/recordbatch.mjs
|
|
8787
8784
|
function distributeVectorsIntoRecordBatches(schema, vecs) {
|
|
8788
8785
|
return uniformlyDistributeChunksAcrossRecordBatches(schema, vecs.map((v2) => v2.data.concat()));
|
|
8789
8786
|
}
|
|
@@ -8844,7 +8841,7 @@ function distributeChildren(fields, batchLength, children, columns, memo) {
|
|
|
8844
8841
|
return children;
|
|
8845
8842
|
}
|
|
8846
8843
|
|
|
8847
|
-
// node_modules/apache-arrow/table.mjs
|
|
8844
|
+
// ../../node_modules/apache-arrow/table.mjs
|
|
8848
8845
|
var _a3;
|
|
8849
8846
|
var Table = class _Table {
|
|
8850
8847
|
constructor(...args) {
|
|
@@ -9119,7 +9116,7 @@ Table[_a3] = ((proto) => {
|
|
|
9119
9116
|
return "Table";
|
|
9120
9117
|
})(Table.prototype);
|
|
9121
9118
|
|
|
9122
|
-
// node_modules/apache-arrow/recordbatch.mjs
|
|
9119
|
+
// ../../node_modules/apache-arrow/recordbatch.mjs
|
|
9123
9120
|
var _a4;
|
|
9124
9121
|
var RecordBatch2 = class _RecordBatch {
|
|
9125
9122
|
constructor(...args) {
|
|
@@ -9377,7 +9374,7 @@ var _InternalEmptyPlaceholderRecordBatch = class extends RecordBatch2 {
|
|
|
9377
9374
|
}
|
|
9378
9375
|
};
|
|
9379
9376
|
|
|
9380
|
-
// node_modules/apache-arrow/fb/message.mjs
|
|
9377
|
+
// ../../node_modules/apache-arrow/fb/message.mjs
|
|
9381
9378
|
var Message = class _Message {
|
|
9382
9379
|
constructor() {
|
|
9383
9380
|
this.bb = null;
|
|
@@ -9468,7 +9465,7 @@ var Message = class _Message {
|
|
|
9468
9465
|
}
|
|
9469
9466
|
};
|
|
9470
9467
|
|
|
9471
|
-
// node_modules/apache-arrow/visitor/typeassembler.mjs
|
|
9468
|
+
// ../../node_modules/apache-arrow/visitor/typeassembler.mjs
|
|
9472
9469
|
var TypeAssembler = class extends Visitor {
|
|
9473
9470
|
visit(node, builder) {
|
|
9474
9471
|
return node == null || builder == null ? void 0 : super.visit(node, builder);
|
|
@@ -9589,7 +9586,7 @@ var TypeAssembler = class extends Visitor {
|
|
|
9589
9586
|
};
|
|
9590
9587
|
var instance7 = new TypeAssembler();
|
|
9591
9588
|
|
|
9592
|
-
// node_modules/apache-arrow/ipc/metadata/json.mjs
|
|
9589
|
+
// ../../node_modules/apache-arrow/ipc/metadata/json.mjs
|
|
9593
9590
|
function schemaFromJSON(_schema, dictionaries = /* @__PURE__ */ new Map()) {
|
|
9594
9591
|
return new Schema2(schemaFieldsFromJSON(_schema, dictionaries), customMetadataFromJSON(_schema["metadata"]), dictionaries);
|
|
9595
9592
|
}
|
|
@@ -9733,7 +9730,7 @@ function typeFromJSON(f2, children) {
|
|
|
9733
9730
|
throw new Error(`Unrecognized type: "${typeId}"`);
|
|
9734
9731
|
}
|
|
9735
9732
|
|
|
9736
|
-
// node_modules/apache-arrow/ipc/metadata/message.mjs
|
|
9733
|
+
// ../../node_modules/apache-arrow/ipc/metadata/message.mjs
|
|
9737
9734
|
var Builder4 = Builder;
|
|
9738
9735
|
var ByteBuffer3 = ByteBuffer;
|
|
9739
9736
|
var Message2 = class _Message {
|
|
@@ -10185,7 +10182,7 @@ var platformIsLittleEndian = (() => {
|
|
|
10185
10182
|
return new Int16Array(buffer)[0] === 256;
|
|
10186
10183
|
})();
|
|
10187
10184
|
|
|
10188
|
-
// node_modules/apache-arrow/ipc/message.mjs
|
|
10185
|
+
// ../../node_modules/apache-arrow/ipc/message.mjs
|
|
10189
10186
|
var invalidMessageType = (type) => `Expected ${MessageHeader[type]} Message in stream, but was null or length 0.`;
|
|
10190
10187
|
var nullMessage = (type) => `Header pointer of flatbuffer-encoded ${MessageHeader[type]} Message is null or length 0.`;
|
|
10191
10188
|
var invalidMessageMetadata = (expected, actual) => `Expected to read ${expected} metadata bytes, but only read ${actual}.`;
|
|
@@ -10440,7 +10437,7 @@ var magicLength = MAGIC.length;
|
|
|
10440
10437
|
var magicAndPadding = magicLength + PADDING;
|
|
10441
10438
|
var magicX2AndPadding = magicLength * 2 + PADDING;
|
|
10442
10439
|
|
|
10443
|
-
// node_modules/apache-arrow/ipc/reader.mjs
|
|
10440
|
+
// ../../node_modules/apache-arrow/ipc/reader.mjs
|
|
10444
10441
|
var RecordBatchReader = class _RecordBatchReader extends ReadableInterop {
|
|
10445
10442
|
constructor(impl) {
|
|
10446
10443
|
super();
|
|
@@ -10589,11 +10586,9 @@ var AsyncRecordBatchStreamReader = class extends RecordBatchReader {
|
|
|
10589
10586
|
e_1 = { error: e_1_1 };
|
|
10590
10587
|
} finally {
|
|
10591
10588
|
try {
|
|
10592
|
-
if (!_d3 && !_a9 && (_b3 = _e3.return))
|
|
10593
|
-
yield _b3.call(_e3);
|
|
10589
|
+
if (!_d3 && !_a9 && (_b3 = _e3.return)) yield _b3.call(_e3);
|
|
10594
10590
|
} finally {
|
|
10595
|
-
if (e_1)
|
|
10596
|
-
throw e_1.error;
|
|
10591
|
+
if (e_1) throw e_1.error;
|
|
10597
10592
|
}
|
|
10598
10593
|
}
|
|
10599
10594
|
return batches;
|
|
@@ -11077,7 +11072,7 @@ function fromFileHandle(source) {
|
|
|
11077
11072
|
});
|
|
11078
11073
|
}
|
|
11079
11074
|
|
|
11080
|
-
// node_modules/apache-arrow/visitor/vectorassembler.mjs
|
|
11075
|
+
// ../../node_modules/apache-arrow/visitor/vectorassembler.mjs
|
|
11081
11076
|
var VectorAssembler = class _VectorAssembler extends Visitor {
|
|
11082
11077
|
/** @nocollapse */
|
|
11083
11078
|
static assemble(...args) {
|
|
@@ -11230,7 +11225,7 @@ VectorAssembler.prototype.visitDuration = assembleFlatVector;
|
|
|
11230
11225
|
VectorAssembler.prototype.visitFixedSizeList = assembleListVector;
|
|
11231
11226
|
VectorAssembler.prototype.visitMap = assembleListVector;
|
|
11232
11227
|
|
|
11233
|
-
// node_modules/apache-arrow/ipc/writer.mjs
|
|
11228
|
+
// ../../node_modules/apache-arrow/ipc/writer.mjs
|
|
11234
11229
|
var RecordBatchWriter = class extends ReadableInterop {
|
|
11235
11230
|
/** @nocollapse */
|
|
11236
11231
|
// @ts-ignore
|
|
@@ -11493,18 +11488,16 @@ function writeAllAsync(writer, batches) {
|
|
|
11493
11488
|
e_1 = { error: e_1_1 };
|
|
11494
11489
|
} finally {
|
|
11495
11490
|
try {
|
|
11496
|
-
if (!_a9 && !_b3 && (_c3 = batches_1.return))
|
|
11497
|
-
yield _c3.call(batches_1);
|
|
11491
|
+
if (!_a9 && !_b3 && (_c3 = batches_1.return)) yield _c3.call(batches_1);
|
|
11498
11492
|
} finally {
|
|
11499
|
-
if (e_1)
|
|
11500
|
-
throw e_1.error;
|
|
11493
|
+
if (e_1) throw e_1.error;
|
|
11501
11494
|
}
|
|
11502
11495
|
}
|
|
11503
11496
|
return writer.finish();
|
|
11504
11497
|
});
|
|
11505
11498
|
}
|
|
11506
11499
|
|
|
11507
|
-
// node_modules/apache-arrow/io/whatwg/iterable.mjs
|
|
11500
|
+
// ../../node_modules/apache-arrow/io/whatwg/iterable.mjs
|
|
11508
11501
|
function toDOMStream(source, options) {
|
|
11509
11502
|
if (isAsyncIterable(source)) {
|
|
11510
11503
|
return asyncIterableAsReadableDOMStream(source, options);
|
|
@@ -11587,7 +11580,7 @@ function asyncIterableAsReadableDOMStream(source, options) {
|
|
|
11587
11580
|
}
|
|
11588
11581
|
}
|
|
11589
11582
|
|
|
11590
|
-
// node_modules/apache-arrow/io/whatwg/builder.mjs
|
|
11583
|
+
// ../../node_modules/apache-arrow/io/whatwg/builder.mjs
|
|
11591
11584
|
function builderThroughDOMStream(options) {
|
|
11592
11585
|
return new BuilderTransform(options);
|
|
11593
11586
|
}
|
|
@@ -11667,7 +11660,7 @@ var chunkByteLength = (chunk) => {
|
|
|
11667
11660
|
return (_a9 = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a9 !== void 0 ? _a9 : 0;
|
|
11668
11661
|
};
|
|
11669
11662
|
|
|
11670
|
-
// node_modules/apache-arrow/io/whatwg/reader.mjs
|
|
11663
|
+
// ../../node_modules/apache-arrow/io/whatwg/reader.mjs
|
|
11671
11664
|
function recordBatchReaderThroughDOMStream(writableStrategy, readableStrategy) {
|
|
11672
11665
|
const queue = new AsyncByteQueue();
|
|
11673
11666
|
let reader = null;
|
|
@@ -11709,7 +11702,7 @@ function recordBatchReaderThroughDOMStream(writableStrategy, readableStrategy) {
|
|
|
11709
11702
|
}
|
|
11710
11703
|
}
|
|
11711
11704
|
|
|
11712
|
-
// node_modules/apache-arrow/io/whatwg/writer.mjs
|
|
11705
|
+
// ../../node_modules/apache-arrow/io/whatwg/writer.mjs
|
|
11713
11706
|
function recordBatchWriterThroughDOMStream(writableStrategy, readableStrategy) {
|
|
11714
11707
|
const writer = new this(writableStrategy);
|
|
11715
11708
|
const reader = new AsyncByteStream(writer);
|
|
@@ -11747,7 +11740,7 @@ function recordBatchWriterThroughDOMStream(writableStrategy, readableStrategy) {
|
|
|
11747
11740
|
}
|
|
11748
11741
|
}
|
|
11749
11742
|
|
|
11750
|
-
// node_modules/apache-arrow/ipc/serialization.mjs
|
|
11743
|
+
// ../../node_modules/apache-arrow/ipc/serialization.mjs
|
|
11751
11744
|
function tableFromIPC(input) {
|
|
11752
11745
|
const reader = RecordBatchReader.from(input);
|
|
11753
11746
|
if (isPromise(reader)) {
|
|
@@ -11759,14 +11752,14 @@ function tableFromIPC(input) {
|
|
|
11759
11752
|
return new Table(reader.readAll());
|
|
11760
11753
|
}
|
|
11761
11754
|
|
|
11762
|
-
// node_modules/apache-arrow/Arrow.mjs
|
|
11755
|
+
// ../../node_modules/apache-arrow/Arrow.mjs
|
|
11763
11756
|
var util = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, bn_exports), int_exports), bit_exports), math_exports), buffer_exports), vector_exports), pretty_exports), {
|
|
11764
11757
|
compareSchemas,
|
|
11765
11758
|
compareFields,
|
|
11766
11759
|
compareTypes
|
|
11767
11760
|
});
|
|
11768
11761
|
|
|
11769
|
-
// node_modules/apache-arrow/Arrow.dom.mjs
|
|
11762
|
+
// ../../node_modules/apache-arrow/Arrow.dom.mjs
|
|
11770
11763
|
adapters_default.toDOMStream = toDOMStream;
|
|
11771
11764
|
Builder2["throughDOM"] = builderThroughDOMStream;
|
|
11772
11765
|
RecordBatchReader["throughDOM"] = recordBatchReaderThroughDOMStream;
|
|
@@ -11832,11 +11825,9 @@ function socketConnector(uri = "ws://localhost:3000/") {
|
|
|
11832
11825
|
}
|
|
11833
11826
|
}
|
|
11834
11827
|
function enqueue(query, resolve, reject) {
|
|
11835
|
-
if (ws == null)
|
|
11836
|
-
init();
|
|
11828
|
+
if (ws == null) init();
|
|
11837
11829
|
queue.push({ query, resolve, reject });
|
|
11838
|
-
if (connected && !request)
|
|
11839
|
-
next();
|
|
11830
|
+
if (connected && !request) next();
|
|
11840
11831
|
}
|
|
11841
11832
|
function next() {
|
|
11842
11833
|
if (queue.length) {
|
|
@@ -11861,13 +11852,11 @@ var Ref = class {
|
|
|
11861
11852
|
/**
|
|
11862
11853
|
* Create a new Ref instance.
|
|
11863
11854
|
* @param {string|Ref|null} table The table name.
|
|
11864
|
-
* @param {string|null} column The column name.
|
|
11855
|
+
* @param {string|null} [column] The column name.
|
|
11865
11856
|
*/
|
|
11866
11857
|
constructor(table, column2) {
|
|
11867
|
-
if (table)
|
|
11868
|
-
|
|
11869
|
-
if (column2)
|
|
11870
|
-
this.column = column2;
|
|
11858
|
+
if (table) this.table = String(table);
|
|
11859
|
+
if (column2) this.column = column2;
|
|
11871
11860
|
}
|
|
11872
11861
|
/**
|
|
11873
11862
|
* Get the list of referenced columns. Either a single element array
|
|
@@ -11906,7 +11895,7 @@ function asRelation(value) {
|
|
|
11906
11895
|
function relation(name) {
|
|
11907
11896
|
return new Ref(name);
|
|
11908
11897
|
}
|
|
11909
|
-
function column(table, column2) {
|
|
11898
|
+
function column(table, column2 = null) {
|
|
11910
11899
|
if (arguments.length === 1) {
|
|
11911
11900
|
column2 = table;
|
|
11912
11901
|
table = null;
|
|
@@ -11928,8 +11917,7 @@ function literalToSQL(value) {
|
|
|
11928
11917
|
return "NULL";
|
|
11929
11918
|
} else if (value instanceof Date) {
|
|
11930
11919
|
const ts = +value;
|
|
11931
|
-
if (Number.isNaN(ts))
|
|
11932
|
-
return "NULL";
|
|
11920
|
+
if (Number.isNaN(ts)) return "NULL";
|
|
11933
11921
|
const y3 = value.getUTCFullYear();
|
|
11934
11922
|
const m2 = value.getUTCMonth();
|
|
11935
11923
|
const d = value.getUTCDate();
|
|
@@ -11950,7 +11938,7 @@ function isSQLExpression(value) {
|
|
|
11950
11938
|
var SQLExpression = class {
|
|
11951
11939
|
/**
|
|
11952
11940
|
* Create a new SQL expression instance.
|
|
11953
|
-
* @param {(string|SQLExpression|Ref)[]} parts The parts of the expression.
|
|
11941
|
+
* @param {(string | ParamLike | SQLExpression | import('./ref.js').Ref)[]} parts The parts of the expression.
|
|
11954
11942
|
* @param {string[]} [columns=[]] The column dependencies
|
|
11955
11943
|
* @param {object} [props] Additional properties for this expression.
|
|
11956
11944
|
*/
|
|
@@ -12129,6 +12117,16 @@ var isInfinite = functionCall("ISINF");
|
|
|
12129
12117
|
|
|
12130
12118
|
// ../sql/src/windows.js
|
|
12131
12119
|
var WindowFunction = class _WindowFunction extends SQLExpression {
|
|
12120
|
+
/**
|
|
12121
|
+
* Create a new WindowFunction instance.
|
|
12122
|
+
* @param {string} op The window operation indicator.
|
|
12123
|
+
* @param {*} func The window function expression.
|
|
12124
|
+
* @param {*} [type] The SQL data type to cast to.
|
|
12125
|
+
* @param {string} [name] The window definition name.
|
|
12126
|
+
* @param {*} [group] Grouping (partition by) expressions.
|
|
12127
|
+
* @param {*} [order] Sorting (order by) expressions.
|
|
12128
|
+
* @param {*} [frame] The window frame definition.
|
|
12129
|
+
*/
|
|
12132
12130
|
constructor(op, func, type, name, group = "", order = "", frame = "") {
|
|
12133
12131
|
let expr;
|
|
12134
12132
|
const noWindowParams = !(group || order || frame);
|
|
@@ -12143,7 +12141,14 @@ var WindowFunction = class _WindowFunction extends SQLExpression {
|
|
|
12143
12141
|
expr = sql`(${expr})::${type}`;
|
|
12144
12142
|
}
|
|
12145
12143
|
const { _expr, _deps } = expr;
|
|
12146
|
-
super(_expr, _deps
|
|
12144
|
+
super(_expr, _deps);
|
|
12145
|
+
this.window = op;
|
|
12146
|
+
this.func = func;
|
|
12147
|
+
this.type = type;
|
|
12148
|
+
this.name = name;
|
|
12149
|
+
this.group = group;
|
|
12150
|
+
this.order = order;
|
|
12151
|
+
this.frame = frame;
|
|
12147
12152
|
}
|
|
12148
12153
|
get basis() {
|
|
12149
12154
|
return this.column;
|
|
@@ -12152,10 +12157,20 @@ var WindowFunction = class _WindowFunction extends SQLExpression {
|
|
|
12152
12157
|
const { func } = this;
|
|
12153
12158
|
return func.label ?? func.toString();
|
|
12154
12159
|
}
|
|
12160
|
+
/**
|
|
12161
|
+
* Return an updated window function over a named window definition.
|
|
12162
|
+
* @param {string} name The window definition name.
|
|
12163
|
+
* @returns {WindowFunction} A new window function.
|
|
12164
|
+
*/
|
|
12155
12165
|
over(name) {
|
|
12156
12166
|
const { window: op, func, type, group, order, frame } = this;
|
|
12157
12167
|
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
12158
12168
|
}
|
|
12169
|
+
/**
|
|
12170
|
+
* Return an updated window function with the given partitioning.
|
|
12171
|
+
* @param {*} expr The grouping (partition by) criteria for the window function.
|
|
12172
|
+
* @returns {WindowFunction} A new window function.
|
|
12173
|
+
*/
|
|
12159
12174
|
partitionby(...expr) {
|
|
12160
12175
|
const exprs = expr.flat().filter((x3) => x3).map(asColumn);
|
|
12161
12176
|
const group = sql(
|
|
@@ -12165,6 +12180,11 @@ var WindowFunction = class _WindowFunction extends SQLExpression {
|
|
|
12165
12180
|
const { window: op, func, type, name, order, frame } = this;
|
|
12166
12181
|
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
12167
12182
|
}
|
|
12183
|
+
/**
|
|
12184
|
+
* Return an updated window function with the given ordering.
|
|
12185
|
+
* @param {*} expr The sorting (order by) criteria for the window function.
|
|
12186
|
+
* @returns {WindowFunction} A new window function.
|
|
12187
|
+
*/
|
|
12168
12188
|
orderby(...expr) {
|
|
12169
12189
|
const exprs = expr.flat().filter((x3) => x3).map(asColumn);
|
|
12170
12190
|
const order = sql(
|
|
@@ -12174,11 +12194,21 @@ var WindowFunction = class _WindowFunction extends SQLExpression {
|
|
|
12174
12194
|
const { window: op, func, type, name, group, frame } = this;
|
|
12175
12195
|
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
12176
12196
|
}
|
|
12197
|
+
/**
|
|
12198
|
+
* Return an updated window function with the given rows frame.
|
|
12199
|
+
* @param {(number|null)[] | import('./expression.js').ParamLike} expr The row-based window frame.
|
|
12200
|
+
* @returns {WindowFunction} A new window function.
|
|
12201
|
+
*/
|
|
12177
12202
|
rows(expr) {
|
|
12178
12203
|
const frame = windowFrame("ROWS", expr);
|
|
12179
12204
|
const { window: op, func, type, name, group, order } = this;
|
|
12180
12205
|
return new _WindowFunction(op, func, type, name, group, order, frame);
|
|
12181
12206
|
}
|
|
12207
|
+
/**
|
|
12208
|
+
* Return an updated window function with the given range frame.
|
|
12209
|
+
* @param {(number|null)[] | import('./expression.js').ParamLike} expr The range-based window frame.
|
|
12210
|
+
* @returns {WindowFunction} A new window function.
|
|
12211
|
+
*/
|
|
12182
12212
|
range(expr) {
|
|
12183
12213
|
const frame = windowFrame("RANGE", expr);
|
|
12184
12214
|
const { window: op, func, type, name, group, order } = this;
|
|
@@ -12219,11 +12249,24 @@ var nth_value = winf("NTH_VALUE");
|
|
|
12219
12249
|
|
|
12220
12250
|
// ../sql/src/aggregates.js
|
|
12221
12251
|
var AggregateFunction = class _AggregateFunction extends SQLExpression {
|
|
12252
|
+
/**
|
|
12253
|
+
* Create a new AggregateFunction instance.
|
|
12254
|
+
* @param {*} op The aggregate operation.
|
|
12255
|
+
* @param {*} [args] The aggregate function arguments.
|
|
12256
|
+
* @param {*} [type] The SQL data type to cast to.
|
|
12257
|
+
* @param {boolean} [isDistinct] Flag indicating if this is a distinct value aggregate.
|
|
12258
|
+
* @param {*} [filter] Filtering expression to apply prior to aggregation.
|
|
12259
|
+
*/
|
|
12222
12260
|
constructor(op, args, type, isDistinct2, filter) {
|
|
12223
12261
|
args = (args || []).map(asColumn);
|
|
12224
12262
|
const { strings, exprs } = aggExpr(op, args, type, isDistinct2, filter);
|
|
12225
12263
|
const { spans, cols } = parseSQL(strings, exprs);
|
|
12226
|
-
super(spans, cols
|
|
12264
|
+
super(spans, cols);
|
|
12265
|
+
this.aggregate = op;
|
|
12266
|
+
this.args = args;
|
|
12267
|
+
this.type = type;
|
|
12268
|
+
this.isDistinct = isDistinct2;
|
|
12269
|
+
this.filter = filter;
|
|
12227
12270
|
}
|
|
12228
12271
|
get basis() {
|
|
12229
12272
|
return this.column;
|
|
@@ -12234,30 +12277,63 @@ var AggregateFunction = class _AggregateFunction extends SQLExpression {
|
|
|
12234
12277
|
const tail = args.length ? `(${dist}${args.map(unquoted).join(", ")})` : "";
|
|
12235
12278
|
return `${op.toLowerCase()}${tail}`;
|
|
12236
12279
|
}
|
|
12280
|
+
/**
|
|
12281
|
+
* Return a new derived aggregate function over distinct values.
|
|
12282
|
+
* @returns {AggregateFunction} A new aggregate function.
|
|
12283
|
+
*/
|
|
12237
12284
|
distinct() {
|
|
12238
12285
|
const { aggregate: op, args, type, filter } = this;
|
|
12239
12286
|
return new _AggregateFunction(op, args, type, true, filter);
|
|
12240
12287
|
}
|
|
12288
|
+
/**
|
|
12289
|
+
* Return a new derived aggregate function that filters values.
|
|
12290
|
+
* @param {*} filter The filter expresion.
|
|
12291
|
+
* @returns {AggregateFunction} A new aggregate function.
|
|
12292
|
+
*/
|
|
12241
12293
|
where(filter) {
|
|
12242
12294
|
const { aggregate: op, args, type, isDistinct: isDistinct2 } = this;
|
|
12243
12295
|
return new _AggregateFunction(op, args, type, isDistinct2, filter);
|
|
12244
12296
|
}
|
|
12297
|
+
/**
|
|
12298
|
+
* Return a new window function over this aggregate.
|
|
12299
|
+
* @returns {WindowFunction} A new aggregate function.
|
|
12300
|
+
*/
|
|
12245
12301
|
window() {
|
|
12246
12302
|
const { aggregate: op, args, type, isDistinct: isDistinct2 } = this;
|
|
12247
12303
|
const func = new _AggregateFunction(op, args, null, isDistinct2);
|
|
12248
12304
|
return new WindowFunction(op, func, type);
|
|
12249
12305
|
}
|
|
12306
|
+
/**
|
|
12307
|
+
* Return a window function over this aggregate with the given partitioning.
|
|
12308
|
+
* @param {*} expr The grouping (partition by) criteria for the window function.
|
|
12309
|
+
* @returns {WindowFunction} A new window function.
|
|
12310
|
+
*/
|
|
12250
12311
|
partitionby(...expr) {
|
|
12251
12312
|
return this.window().partitionby(...expr);
|
|
12252
12313
|
}
|
|
12314
|
+
/**
|
|
12315
|
+
* Return a window function over this aggregate with the given ordering.
|
|
12316
|
+
* @param {*} expr The sorting (order by) criteria for the window function.
|
|
12317
|
+
* @returns {WindowFunction} A new window function.
|
|
12318
|
+
*/
|
|
12253
12319
|
orderby(...expr) {
|
|
12254
12320
|
return this.window().orderby(...expr);
|
|
12255
12321
|
}
|
|
12256
|
-
|
|
12257
|
-
|
|
12322
|
+
/**
|
|
12323
|
+
* Return a window function over this aggregate with the given row frame.
|
|
12324
|
+
* @param {(number|null)[] | import('./expression.js').ParamLike} frame The row-based window frame.
|
|
12325
|
+
* @returns {WindowFunction} A new window function.
|
|
12326
|
+
*/
|
|
12327
|
+
rows(frame) {
|
|
12328
|
+
return this.window().rows(frame);
|
|
12258
12329
|
}
|
|
12259
|
-
|
|
12260
|
-
|
|
12330
|
+
/**
|
|
12331
|
+
* Return a window function over this aggregate with the given range frame.
|
|
12332
|
+
* @param {(number|null)[] | import('./expression.js').ParamLike} frame The range-based window frame.
|
|
12333
|
+
* @returns {WindowFunction} A new window function.
|
|
12334
|
+
*/
|
|
12335
|
+
range(frame) {
|
|
12336
|
+
return this.window().range(frame);
|
|
12261
12337
|
}
|
|
12262
12338
|
};
|
|
12263
12339
|
function aggExpr(op, args, type, isDistinct2, filter) {
|
|
@@ -12374,12 +12450,22 @@ var Query = class _Query {
|
|
|
12374
12450
|
qualify: [],
|
|
12375
12451
|
orderby: []
|
|
12376
12452
|
};
|
|
12453
|
+
this.cteFor = null;
|
|
12377
12454
|
}
|
|
12378
12455
|
clone() {
|
|
12379
12456
|
const q2 = new _Query();
|
|
12380
12457
|
q2.query = { ...this.query };
|
|
12381
12458
|
return q2;
|
|
12382
12459
|
}
|
|
12460
|
+
/**
|
|
12461
|
+
* Retrieve current WITH common table expressions (CTEs).
|
|
12462
|
+
* @returns {any[]}
|
|
12463
|
+
*/
|
|
12464
|
+
/**
|
|
12465
|
+
* Add WITH common table expressions (CTEs).
|
|
12466
|
+
* @param {...any} expr Expressions to add.
|
|
12467
|
+
* @returns {this}
|
|
12468
|
+
*/
|
|
12383
12469
|
with(...expr) {
|
|
12384
12470
|
const { query } = this;
|
|
12385
12471
|
if (expr.length === 0) {
|
|
@@ -12405,6 +12491,15 @@ var Query = class _Query {
|
|
|
12405
12491
|
return this;
|
|
12406
12492
|
}
|
|
12407
12493
|
}
|
|
12494
|
+
/**
|
|
12495
|
+
* Retrieve current SELECT expressions.
|
|
12496
|
+
* @returns {any[]}
|
|
12497
|
+
*/
|
|
12498
|
+
/**
|
|
12499
|
+
* Add SELECT expressions.
|
|
12500
|
+
* @param {...any} expr Expressions to add.
|
|
12501
|
+
* @returns {this}
|
|
12502
|
+
*/
|
|
12408
12503
|
select(...expr) {
|
|
12409
12504
|
const { query } = this;
|
|
12410
12505
|
if (expr.length === 0) {
|
|
@@ -12437,6 +12532,15 @@ var Query = class _Query {
|
|
|
12437
12532
|
this.query.distinct = !!value;
|
|
12438
12533
|
return this;
|
|
12439
12534
|
}
|
|
12535
|
+
/**
|
|
12536
|
+
* Retrieve current from expressions.
|
|
12537
|
+
* @returns {any[]}
|
|
12538
|
+
*/
|
|
12539
|
+
/**
|
|
12540
|
+
* Provide table from expressions.
|
|
12541
|
+
* @param {...any} expr
|
|
12542
|
+
* @returns {this}
|
|
12543
|
+
*/
|
|
12440
12544
|
from(...expr) {
|
|
12441
12545
|
const { query } = this;
|
|
12442
12546
|
if (expr.length === 0) {
|
|
@@ -12467,6 +12571,16 @@ var Query = class _Query {
|
|
|
12467
12571
|
this.query.from = [];
|
|
12468
12572
|
return this.from(...expr);
|
|
12469
12573
|
}
|
|
12574
|
+
/**
|
|
12575
|
+
* Retrieve current SAMPLE settings.
|
|
12576
|
+
* @returns {any[]}
|
|
12577
|
+
*/
|
|
12578
|
+
/**
|
|
12579
|
+
* Set SAMPLE settings.
|
|
12580
|
+
* @param {number|object} value The percentage or number of rows to sample.
|
|
12581
|
+
* @param {string} [method] The sampling method to use.
|
|
12582
|
+
* @returns {this}
|
|
12583
|
+
*/
|
|
12470
12584
|
sample(value, method) {
|
|
12471
12585
|
const { query } = this;
|
|
12472
12586
|
if (arguments.length === 0) {
|
|
@@ -12480,6 +12594,15 @@ var Query = class _Query {
|
|
|
12480
12594
|
return this;
|
|
12481
12595
|
}
|
|
12482
12596
|
}
|
|
12597
|
+
/**
|
|
12598
|
+
* Retrieve current WHERE expressions.
|
|
12599
|
+
* @returns {any[]}
|
|
12600
|
+
*/
|
|
12601
|
+
/**
|
|
12602
|
+
* Add WHERE expressions.
|
|
12603
|
+
* @param {...any} expr Expressions to add.
|
|
12604
|
+
* @returns {this}
|
|
12605
|
+
*/
|
|
12483
12606
|
where(...expr) {
|
|
12484
12607
|
const { query } = this;
|
|
12485
12608
|
if (expr.length === 0) {
|
|
@@ -12495,6 +12618,15 @@ var Query = class _Query {
|
|
|
12495
12618
|
this.query.where = [];
|
|
12496
12619
|
return this.where(...expr);
|
|
12497
12620
|
}
|
|
12621
|
+
/**
|
|
12622
|
+
* Retrieve current GROUP BY expressions.
|
|
12623
|
+
* @returns {any[]}
|
|
12624
|
+
*/
|
|
12625
|
+
/**
|
|
12626
|
+
* Add GROUP BY expressions.
|
|
12627
|
+
* @param {...any} expr Expressions to add.
|
|
12628
|
+
* @returns {this}
|
|
12629
|
+
*/
|
|
12498
12630
|
groupby(...expr) {
|
|
12499
12631
|
const { query } = this;
|
|
12500
12632
|
if (expr.length === 0) {
|
|
@@ -12510,6 +12642,15 @@ var Query = class _Query {
|
|
|
12510
12642
|
this.query.groupby = [];
|
|
12511
12643
|
return this.groupby(...expr);
|
|
12512
12644
|
}
|
|
12645
|
+
/**
|
|
12646
|
+
* Retrieve current HAVING expressions.
|
|
12647
|
+
* @returns {any[]}
|
|
12648
|
+
*/
|
|
12649
|
+
/**
|
|
12650
|
+
* Add HAVING expressions.
|
|
12651
|
+
* @param {...any} expr Expressions to add.
|
|
12652
|
+
* @returns {this}
|
|
12653
|
+
*/
|
|
12513
12654
|
having(...expr) {
|
|
12514
12655
|
const { query } = this;
|
|
12515
12656
|
if (expr.length === 0) {
|
|
@@ -12521,6 +12662,15 @@ var Query = class _Query {
|
|
|
12521
12662
|
return this;
|
|
12522
12663
|
}
|
|
12523
12664
|
}
|
|
12665
|
+
/**
|
|
12666
|
+
* Retrieve current WINDOW definitions.
|
|
12667
|
+
* @returns {any[]}
|
|
12668
|
+
*/
|
|
12669
|
+
/**
|
|
12670
|
+
* Add WINDOW definitions.
|
|
12671
|
+
* @param {...any} expr Expressions to add.
|
|
12672
|
+
* @returns {this}
|
|
12673
|
+
*/
|
|
12524
12674
|
window(...expr) {
|
|
12525
12675
|
const { query } = this;
|
|
12526
12676
|
if (expr.length === 0) {
|
|
@@ -12539,6 +12689,15 @@ var Query = class _Query {
|
|
|
12539
12689
|
return this;
|
|
12540
12690
|
}
|
|
12541
12691
|
}
|
|
12692
|
+
/**
|
|
12693
|
+
* Retrieve current QUALIFY expressions.
|
|
12694
|
+
* @returns {any[]}
|
|
12695
|
+
*/
|
|
12696
|
+
/**
|
|
12697
|
+
* Add QUALIFY expressions.
|
|
12698
|
+
* @param {...any} expr Expressions to add.
|
|
12699
|
+
* @returns {this}
|
|
12700
|
+
*/
|
|
12542
12701
|
qualify(...expr) {
|
|
12543
12702
|
const { query } = this;
|
|
12544
12703
|
if (expr.length === 0) {
|
|
@@ -12550,6 +12709,15 @@ var Query = class _Query {
|
|
|
12550
12709
|
return this;
|
|
12551
12710
|
}
|
|
12552
12711
|
}
|
|
12712
|
+
/**
|
|
12713
|
+
* Retrieve current ORDER BY expressions.
|
|
12714
|
+
* @returns {any[]}
|
|
12715
|
+
*/
|
|
12716
|
+
/**
|
|
12717
|
+
* Add ORDER BY expressions.
|
|
12718
|
+
* @param {...any} expr Expressions to add.
|
|
12719
|
+
* @returns {this}
|
|
12720
|
+
*/
|
|
12553
12721
|
orderby(...expr) {
|
|
12554
12722
|
const { query } = this;
|
|
12555
12723
|
if (expr.length === 0) {
|
|
@@ -12561,6 +12729,15 @@ var Query = class _Query {
|
|
|
12561
12729
|
return this;
|
|
12562
12730
|
}
|
|
12563
12731
|
}
|
|
12732
|
+
/**
|
|
12733
|
+
* Retrieve current LIMIT value.
|
|
12734
|
+
* @returns {number|null}
|
|
12735
|
+
*/
|
|
12736
|
+
/**
|
|
12737
|
+
* Set the query result LIMIT.
|
|
12738
|
+
* @param {number} value The limit value.
|
|
12739
|
+
* @returns {this}
|
|
12740
|
+
*/
|
|
12564
12741
|
limit(value) {
|
|
12565
12742
|
const { query } = this;
|
|
12566
12743
|
if (arguments.length === 0) {
|
|
@@ -12570,6 +12747,15 @@ var Query = class _Query {
|
|
|
12570
12747
|
return this;
|
|
12571
12748
|
}
|
|
12572
12749
|
}
|
|
12750
|
+
/**
|
|
12751
|
+
* Retrieve current OFFSET value.
|
|
12752
|
+
* @returns {number|null}
|
|
12753
|
+
*/
|
|
12754
|
+
/**
|
|
12755
|
+
* Set the query result OFFSET.
|
|
12756
|
+
* @param {number} value The offset value.
|
|
12757
|
+
* @returns {this}
|
|
12758
|
+
*/
|
|
12573
12759
|
offset(value) {
|
|
12574
12760
|
const { query } = this;
|
|
12575
12761
|
if (arguments.length === 0) {
|
|
@@ -12628,8 +12814,7 @@ var Query = class _Query {
|
|
|
12628
12814
|
}
|
|
12629
12815
|
if (where.length) {
|
|
12630
12816
|
const clauses = where.map(String).filter((x3) => x3).join(" AND ");
|
|
12631
|
-
if (clauses)
|
|
12632
|
-
sql2.push(`WHERE ${clauses}`);
|
|
12817
|
+
if (clauses) sql2.push(`WHERE ${clauses}`);
|
|
12633
12818
|
}
|
|
12634
12819
|
if (sample) {
|
|
12635
12820
|
const { rows, perc, method, seed } = sample;
|
|
@@ -12642,8 +12827,7 @@ var Query = class _Query {
|
|
|
12642
12827
|
}
|
|
12643
12828
|
if (having.length) {
|
|
12644
12829
|
const clauses = having.map(String).filter((x3) => x3).join(" AND ");
|
|
12645
|
-
if (clauses)
|
|
12646
|
-
sql2.push(`HAVING ${clauses}`);
|
|
12830
|
+
if (clauses) sql2.push(`HAVING ${clauses}`);
|
|
12647
12831
|
}
|
|
12648
12832
|
if (window.length) {
|
|
12649
12833
|
const windows = window.map(({ as, expr }) => `"${as}" AS (${expr})`);
|
|
@@ -12651,8 +12835,7 @@ var Query = class _Query {
|
|
|
12651
12835
|
}
|
|
12652
12836
|
if (qualify.length) {
|
|
12653
12837
|
const clauses = qualify.map(String).filter((x3) => x3).join(" AND ");
|
|
12654
|
-
if (clauses)
|
|
12655
|
-
sql2.push(`QUALIFY ${clauses}`);
|
|
12838
|
+
if (clauses) sql2.push(`QUALIFY ${clauses}`);
|
|
12656
12839
|
}
|
|
12657
12840
|
if (orderby.length) {
|
|
12658
12841
|
sql2.push(`ORDER BY ${orderby.join(", ")}`);
|
|
@@ -12671,6 +12854,7 @@ var SetOperation = class _SetOperation {
|
|
|
12671
12854
|
this.op = op;
|
|
12672
12855
|
this.queries = queries.map((q2) => q2.clone());
|
|
12673
12856
|
this.query = { orderby: [] };
|
|
12857
|
+
this.cteFor = null;
|
|
12674
12858
|
}
|
|
12675
12859
|
clone() {
|
|
12676
12860
|
const q2 = new _SetOperation(this.op, this.queries);
|
|
@@ -12708,8 +12892,7 @@ var SetOperation = class _SetOperation {
|
|
|
12708
12892
|
}
|
|
12709
12893
|
get subqueries() {
|
|
12710
12894
|
const { queries, cteFor } = this;
|
|
12711
|
-
if (cteFor)
|
|
12712
|
-
queries.forEach((q2) => q2.cteFor = cteFor);
|
|
12895
|
+
if (cteFor) queries.forEach((q2) => q2.cteFor = cteFor);
|
|
12713
12896
|
return queries;
|
|
12714
12897
|
}
|
|
12715
12898
|
toString() {
|
|
@@ -12750,7 +12933,7 @@ function scaleLinear() {
|
|
|
12750
12933
|
sqlInvert: identity
|
|
12751
12934
|
};
|
|
12752
12935
|
}
|
|
12753
|
-
function scaleLog({ base } = {}) {
|
|
12936
|
+
function scaleLog({ base = null } = {}) {
|
|
12754
12937
|
if (base == null || base === Math.E) {
|
|
12755
12938
|
return {
|
|
12756
12939
|
apply: Math.log,
|
|
@@ -12838,8 +13021,7 @@ function fnv_hash(v2) {
|
|
|
12838
13021
|
for (let i = 0, n = v2.length; i < n; ++i) {
|
|
12839
13022
|
const c = v2.charCodeAt(i);
|
|
12840
13023
|
const d = c & 65280;
|
|
12841
|
-
if (d)
|
|
12842
|
-
a2 = fnv_multiply(a2 ^ d >> 8);
|
|
13024
|
+
if (d) a2 = fnv_multiply(a2 ^ d >> 8);
|
|
12843
13025
|
a2 = fnv_multiply(a2 ^ c & 255);
|
|
12844
13026
|
}
|
|
12845
13027
|
return fnv_mix(a2);
|
|
@@ -12890,27 +13072,22 @@ var DataCubeIndexer = class {
|
|
|
12890
13072
|
this.activeView = null;
|
|
12891
13073
|
this.clear();
|
|
12892
13074
|
}
|
|
12893
|
-
if (!this.enabled)
|
|
12894
|
-
return false;
|
|
13075
|
+
if (!this.enabled) return false;
|
|
12895
13076
|
active = active || this.selection.active;
|
|
12896
13077
|
const { source } = active;
|
|
12897
|
-
if (source && source === this.activeView?.source)
|
|
12898
|
-
return true;
|
|
13078
|
+
if (source && source === this.activeView?.source) return true;
|
|
12899
13079
|
this.clear();
|
|
12900
|
-
if (!source)
|
|
12901
|
-
return false;
|
|
13080
|
+
if (!source) return false;
|
|
12902
13081
|
const activeView = this.activeView = getActiveView(active);
|
|
12903
|
-
if (!activeView)
|
|
12904
|
-
return false;
|
|
13082
|
+
if (!activeView) return false;
|
|
12905
13083
|
this.mc.logger().warn("DATA CUBE INDEX CONSTRUCTION");
|
|
12906
13084
|
const sel = this.selection.remove(source);
|
|
12907
13085
|
const indices = this.indices = /* @__PURE__ */ new Map();
|
|
12908
13086
|
const { mc, temp } = this;
|
|
12909
13087
|
for (const client of clients) {
|
|
12910
|
-
if (sel.skip(client, active))
|
|
12911
|
-
continue;
|
|
13088
|
+
if (sel.skip(client, active)) continue;
|
|
12912
13089
|
const index = getIndexColumns(client);
|
|
12913
|
-
const query = client.query(sel.predicate(client)).select({ ...activeView.columns, ...index.
|
|
13090
|
+
const query = client.query(sel.predicate(client)).select({ ...activeView.columns, ...index.aux }).groupby(Object.keys(activeView.columns));
|
|
12914
13091
|
const [subq] = query.subqueries;
|
|
12915
13092
|
if (subq) {
|
|
12916
13093
|
const cols = Object.values(activeView.columns).map((c) => c.columns[0]);
|
|
@@ -12924,6 +13101,7 @@ var DataCubeIndexer = class {
|
|
|
12924
13101
|
const result = mc.exec(create(table, sql2, { temp }));
|
|
12925
13102
|
indices.set(client, { table, result, order, ...index });
|
|
12926
13103
|
}
|
|
13104
|
+
return true;
|
|
12927
13105
|
}
|
|
12928
13106
|
async update() {
|
|
12929
13107
|
const { clients, selection, activeView } = this;
|
|
@@ -12934,8 +13112,7 @@ var DataCubeIndexer = class {
|
|
|
12934
13112
|
}
|
|
12935
13113
|
async updateClient(client, filter) {
|
|
12936
13114
|
const index = this.indices.get(client);
|
|
12937
|
-
if (!index)
|
|
12938
|
-
return;
|
|
13115
|
+
if (!index) return;
|
|
12939
13116
|
if (!filter) {
|
|
12940
13117
|
filter = this.activeView.predicate(this.selection.active.predicate);
|
|
12941
13118
|
}
|
|
@@ -12947,14 +13124,12 @@ var DataCubeIndexer = class {
|
|
|
12947
13124
|
function getActiveView(clause) {
|
|
12948
13125
|
const { source, schema } = clause;
|
|
12949
13126
|
let columns = clause.predicate?.columns;
|
|
12950
|
-
if (!schema || !columns)
|
|
12951
|
-
return null;
|
|
13127
|
+
if (!schema || !columns) return null;
|
|
12952
13128
|
const { type, scales: scales2, pixelSize = 1 } = schema;
|
|
12953
13129
|
let predicate;
|
|
12954
13130
|
if (type === "interval" && scales2) {
|
|
12955
13131
|
const bins = scales2.map((s) => binInterval(s, pixelSize));
|
|
12956
|
-
if (bins.some((b2) => b2 == null))
|
|
12957
|
-
return null;
|
|
13132
|
+
if (bins.some((b2) => b2 == null)) return null;
|
|
12958
13133
|
if (bins.length === 1) {
|
|
12959
13134
|
predicate = (p2) => p2 ? isBetween("active0", p2.range.map(bins[0])) : [];
|
|
12960
13135
|
columns = { active0: bins[0](clause.predicate.field) };
|
|
@@ -12985,70 +13160,71 @@ function binInterval(scale, pixelSize) {
|
|
|
12985
13160
|
}
|
|
12986
13161
|
var NO_INDEX = { from: NaN };
|
|
12987
13162
|
function getIndexColumns(client) {
|
|
12988
|
-
if (!client.filterIndexable)
|
|
12989
|
-
return NO_INDEX;
|
|
13163
|
+
if (!client.filterIndexable) return NO_INDEX;
|
|
12990
13164
|
const q2 = client.query();
|
|
12991
13165
|
const from = getBaseTable(q2);
|
|
12992
|
-
if (!from || !q2.groupby)
|
|
12993
|
-
return NO_INDEX;
|
|
13166
|
+
if (!from || !q2.groupby) return NO_INDEX;
|
|
12994
13167
|
const g2 = new Set(q2.groupby().map((c) => c.column));
|
|
12995
13168
|
const aggr = [];
|
|
12996
13169
|
const dims = [];
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13170
|
+
const aux = {};
|
|
13171
|
+
let auxAs;
|
|
13172
|
+
for (const entry of q2.select()) {
|
|
13173
|
+
const { as, expr: { aggregate, args } } = entry;
|
|
13174
|
+
const op = aggregate?.toUpperCase?.();
|
|
13175
|
+
switch (op) {
|
|
13000
13176
|
case "COUNT":
|
|
13001
13177
|
case "SUM":
|
|
13002
13178
|
aggr.push({ [as]: sql`SUM("${as}")::DOUBLE` });
|
|
13003
13179
|
break;
|
|
13004
13180
|
case "AVG":
|
|
13005
|
-
|
|
13006
|
-
aggr.push({ [as]: sql`(SUM("${as}" * ${
|
|
13181
|
+
aux[auxAs = "__count__"] = sql`COUNT(*)`;
|
|
13182
|
+
aggr.push({ [as]: sql`(SUM("${as}" * ${auxAs}) / SUM(${auxAs}))::DOUBLE` });
|
|
13007
13183
|
break;
|
|
13008
|
-
case "
|
|
13009
|
-
|
|
13184
|
+
case "ARG_MAX":
|
|
13185
|
+
aux[auxAs = `__max_${as}__`] = sql`MAX(${args[1]})`;
|
|
13186
|
+
aggr.push({ [as]: sql`ARG_MAX("${as}", ${auxAs})` });
|
|
13187
|
+
break;
|
|
13188
|
+
case "ARG_MIN":
|
|
13189
|
+
aux[auxAs = `__min_${as}__`] = sql`MIN(${args[1]})`;
|
|
13190
|
+
aggr.push({ [as]: sql`ARG_MIN("${as}", ${auxAs})` });
|
|
13010
13191
|
break;
|
|
13192
|
+
case "MAX":
|
|
13011
13193
|
case "MIN":
|
|
13012
|
-
|
|
13194
|
+
case "BIT_AND":
|
|
13195
|
+
case "BIT_OR":
|
|
13196
|
+
case "BIT_XOR":
|
|
13197
|
+
case "BOOL_AND":
|
|
13198
|
+
case "BOOL_OR":
|
|
13199
|
+
case "PRODUCT":
|
|
13200
|
+
aggr.push({ [as]: sql`${op}("${as}")` });
|
|
13013
13201
|
break;
|
|
13014
13202
|
default:
|
|
13015
|
-
if (g2.has(as))
|
|
13016
|
-
|
|
13017
|
-
else
|
|
13018
|
-
return null;
|
|
13203
|
+
if (g2.has(as)) dims.push(as);
|
|
13204
|
+
else return null;
|
|
13019
13205
|
}
|
|
13020
13206
|
}
|
|
13021
|
-
return {
|
|
13022
|
-
aggr,
|
|
13023
|
-
dims,
|
|
13024
|
-
count: count2 ? { [count2]: sql`COUNT(*)` } : {},
|
|
13025
|
-
from
|
|
13026
|
-
};
|
|
13207
|
+
return { aggr, dims, aux, from };
|
|
13027
13208
|
}
|
|
13028
13209
|
function getBaseTable(query) {
|
|
13029
13210
|
const subq = query.subqueries;
|
|
13030
13211
|
if (query.select) {
|
|
13031
13212
|
const from = query.from();
|
|
13032
|
-
if (!from.length)
|
|
13033
|
-
|
|
13034
|
-
if (subq.length === 0)
|
|
13035
|
-
return from[0].from.table;
|
|
13213
|
+
if (!from.length) return void 0;
|
|
13214
|
+
if (subq.length === 0) return from[0].from.table;
|
|
13036
13215
|
}
|
|
13037
13216
|
const base = getBaseTable(subq[0]);
|
|
13038
13217
|
for (let i = 1; i < subq.length; ++i) {
|
|
13039
13218
|
const from = getBaseTable(subq[i]);
|
|
13040
|
-
if (from === void 0)
|
|
13041
|
-
|
|
13042
|
-
if (from !== base)
|
|
13043
|
-
return NaN;
|
|
13219
|
+
if (from === void 0) continue;
|
|
13220
|
+
if (from !== base) return NaN;
|
|
13044
13221
|
}
|
|
13045
13222
|
return base;
|
|
13046
13223
|
}
|
|
13047
13224
|
function subqueryPushdown(query, cols) {
|
|
13048
13225
|
const memo = /* @__PURE__ */ new Set();
|
|
13049
13226
|
const pushdown = (q2) => {
|
|
13050
|
-
if (memo.has(q2))
|
|
13051
|
-
return;
|
|
13227
|
+
if (memo.has(q2)) return;
|
|
13052
13228
|
memo.add(q2);
|
|
13053
13229
|
if (q2.select && q2.from().length) {
|
|
13054
13230
|
q2.select(cols);
|
|
@@ -13096,9 +13272,15 @@ var FilterGroup = class {
|
|
|
13096
13272
|
}
|
|
13097
13273
|
return this;
|
|
13098
13274
|
}
|
|
13275
|
+
/**
|
|
13276
|
+
* Internal method to process a selection update.
|
|
13277
|
+
* The return value is passed as a selection callback value.
|
|
13278
|
+
* @returns {Promise} A Promise that resolves when the update completes.
|
|
13279
|
+
*/
|
|
13099
13280
|
update() {
|
|
13100
13281
|
const { mc, indexer, clients, selection } = this;
|
|
13101
|
-
|
|
13282
|
+
const hasIndex = indexer?.index(clients);
|
|
13283
|
+
return hasIndex ? indexer.update() : defaultUpdate(mc, clients, selection);
|
|
13102
13284
|
}
|
|
13103
13285
|
};
|
|
13104
13286
|
function defaultUpdate(mc, clients, selection) {
|
|
@@ -13118,9 +13300,10 @@ function queryResult() {
|
|
|
13118
13300
|
resolve = r;
|
|
13119
13301
|
reject = e;
|
|
13120
13302
|
});
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13303
|
+
return Object.assign(p2, {
|
|
13304
|
+
fulfill: (value) => (resolve(value), p2),
|
|
13305
|
+
reject: (err) => (reject(err), p2)
|
|
13306
|
+
});
|
|
13124
13307
|
}
|
|
13125
13308
|
|
|
13126
13309
|
// src/QueryConsolidator.js
|
|
@@ -13169,7 +13352,11 @@ function entryGroups(entries, cache) {
|
|
|
13169
13352
|
function consolidationKey(query, cache) {
|
|
13170
13353
|
const sql2 = `${query}`;
|
|
13171
13354
|
if (query instanceof Query && !cache.get(sql2)) {
|
|
13172
|
-
if (
|
|
13355
|
+
if (
|
|
13356
|
+
// @ts-ignore
|
|
13357
|
+
query.orderby().length || query.where().length || // @ts-ignore
|
|
13358
|
+
query.qualify().length || query.having().length
|
|
13359
|
+
) {
|
|
13173
13360
|
return sql2;
|
|
13174
13361
|
}
|
|
13175
13362
|
const q2 = query.clone().$select("*");
|
|
@@ -13240,8 +13427,7 @@ function consolidatedQuery(group, record) {
|
|
|
13240
13427
|
}
|
|
13241
13428
|
async function processResults(group, cache) {
|
|
13242
13429
|
const { maps, query, result } = group;
|
|
13243
|
-
if (!maps)
|
|
13244
|
-
return;
|
|
13430
|
+
if (!maps) return;
|
|
13245
13431
|
let data;
|
|
13246
13432
|
try {
|
|
13247
13433
|
data = await result;
|
|
@@ -13323,8 +13509,7 @@ function lruCache({
|
|
|
13323
13509
|
},
|
|
13324
13510
|
set(key, value) {
|
|
13325
13511
|
cache.set(key, { last: performance.now(), value });
|
|
13326
|
-
if (cache.size > max2)
|
|
13327
|
-
requestIdle(evict);
|
|
13512
|
+
if (cache.size > max2) requestIdle(evict);
|
|
13328
13513
|
return value;
|
|
13329
13514
|
},
|
|
13330
13515
|
clear() {
|
|
@@ -13382,8 +13567,7 @@ function priorityQueue(ranks) {
|
|
|
13382
13567
|
} else {
|
|
13383
13568
|
prev.next = curr.next;
|
|
13384
13569
|
}
|
|
13385
|
-
if (curr === tail)
|
|
13386
|
-
tail = prev || head;
|
|
13570
|
+
if (curr === tail) tail = prev || head;
|
|
13387
13571
|
}
|
|
13388
13572
|
}
|
|
13389
13573
|
list.head = head;
|
|
@@ -13421,8 +13605,7 @@ function QueryManager() {
|
|
|
13421
13605
|
let pending = null;
|
|
13422
13606
|
let consolidate2;
|
|
13423
13607
|
function next() {
|
|
13424
|
-
if (pending || queue.isEmpty())
|
|
13425
|
-
return;
|
|
13608
|
+
if (pending || queue.isEmpty()) return;
|
|
13426
13609
|
const { request, result } = queue.next();
|
|
13427
13610
|
pending = submit(request, result);
|
|
13428
13611
|
pending.finally(() => {
|
|
@@ -13456,8 +13639,7 @@ function QueryManager() {
|
|
|
13456
13639
|
}
|
|
13457
13640
|
const t0 = performance.now();
|
|
13458
13641
|
const data = await db.query({ type, sql: sql2, ...options });
|
|
13459
|
-
if (cache)
|
|
13460
|
-
clientCache.set(sql2, data);
|
|
13642
|
+
if (cache) clientCache.set(sql2, data);
|
|
13461
13643
|
logger.debug(`Request: ${(performance.now() - t0).toFixed(1)}`);
|
|
13462
13644
|
result.fulfill(data);
|
|
13463
13645
|
} catch (err) {
|
|
@@ -13551,6 +13733,7 @@ function jsType(type) {
|
|
|
13551
13733
|
return "boolean";
|
|
13552
13734
|
case "VARCHAR":
|
|
13553
13735
|
case "UUID":
|
|
13736
|
+
case "JSON":
|
|
13554
13737
|
return "string";
|
|
13555
13738
|
case "ARRAY":
|
|
13556
13739
|
case "LIST":
|
|
@@ -13573,32 +13756,20 @@ function jsType(type) {
|
|
|
13573
13756
|
}
|
|
13574
13757
|
|
|
13575
13758
|
// src/util/convert-arrow.js
|
|
13576
|
-
var INTEGER = 2;
|
|
13577
|
-
var FLOAT = 3;
|
|
13578
|
-
var DECIMAL = 7;
|
|
13579
|
-
var TIMESTAMP = 10;
|
|
13580
13759
|
function isArrowTable(values) {
|
|
13581
13760
|
return typeof values?.getChild === "function";
|
|
13582
13761
|
}
|
|
13583
13762
|
function convertArrowArrayType(type) {
|
|
13584
|
-
|
|
13585
|
-
case INTEGER:
|
|
13586
|
-
case FLOAT:
|
|
13587
|
-
case DECIMAL:
|
|
13588
|
-
return Float64Array;
|
|
13589
|
-
default:
|
|
13590
|
-
return Array;
|
|
13591
|
-
}
|
|
13763
|
+
return DataType.isInt(type) || DataType.isFloat(type) || DataType.isDecimal(type) ? Float64Array : Array;
|
|
13592
13764
|
}
|
|
13593
13765
|
function convertArrowValue(type) {
|
|
13594
|
-
|
|
13595
|
-
if (typeId === TIMESTAMP) {
|
|
13766
|
+
if (DataType.isTimestamp(type)) {
|
|
13596
13767
|
return (v2) => v2 == null ? v2 : new Date(v2);
|
|
13597
13768
|
}
|
|
13598
|
-
if (
|
|
13769
|
+
if (DataType.isInt(type) && type.bitWidth >= 64) {
|
|
13599
13770
|
return (v2) => v2 == null ? v2 : Number(v2);
|
|
13600
13771
|
}
|
|
13601
|
-
if (
|
|
13772
|
+
if (DataType.isDecimal(type)) {
|
|
13602
13773
|
const scale = 1 / Math.pow(10, type.scale);
|
|
13603
13774
|
return (v2) => v2 == null ? v2 : decimalToNumber(v2, scale);
|
|
13604
13775
|
}
|
|
@@ -13606,8 +13777,7 @@ function convertArrowValue(type) {
|
|
|
13606
13777
|
}
|
|
13607
13778
|
function convertArrowColumn(column2) {
|
|
13608
13779
|
const { type } = column2;
|
|
13609
|
-
|
|
13610
|
-
if (typeId === TIMESTAMP) {
|
|
13780
|
+
if (DataType.isTimestamp(type)) {
|
|
13611
13781
|
const size = column2.length;
|
|
13612
13782
|
const array = new Array(size);
|
|
13613
13783
|
for (let row = 0; row < size; ++row) {
|
|
@@ -13616,7 +13786,7 @@ function convertArrowColumn(column2) {
|
|
|
13616
13786
|
}
|
|
13617
13787
|
return array;
|
|
13618
13788
|
}
|
|
13619
|
-
if (
|
|
13789
|
+
if (DataType.isInt(type) && type.bitWidth >= 64) {
|
|
13620
13790
|
const size = column2.length;
|
|
13621
13791
|
const array = new Float64Array(size);
|
|
13622
13792
|
for (let row = 0; row < size; ++row) {
|
|
@@ -13625,7 +13795,7 @@ function convertArrowColumn(column2) {
|
|
|
13625
13795
|
}
|
|
13626
13796
|
return array;
|
|
13627
13797
|
}
|
|
13628
|
-
if (
|
|
13798
|
+
if (DataType.isDecimal(type)) {
|
|
13629
13799
|
const scale = 1 / Math.pow(10, type.scale);
|
|
13630
13800
|
const size = column2.length;
|
|
13631
13801
|
const array = new Float64Array(size);
|
|
@@ -13646,7 +13816,7 @@ function decimalToNumber(v2, scale) {
|
|
|
13646
13816
|
let x3 = 0;
|
|
13647
13817
|
if (v2.signed && (v2[n - 1] | 0) < 0) {
|
|
13648
13818
|
for (let i = 0; i < n; ++i) {
|
|
13649
|
-
x3 += ~
|
|
13819
|
+
x3 += ~v2[i] * BASE32[i];
|
|
13650
13820
|
}
|
|
13651
13821
|
x3 = -(x3 + 1);
|
|
13652
13822
|
} else {
|
|
@@ -13690,8 +13860,7 @@ async function getFieldInfo(mc, { table, column: column2, stats }) {
|
|
|
13690
13860
|
type: jsType(desc2.column_type),
|
|
13691
13861
|
nullable: desc2.null === "YES"
|
|
13692
13862
|
};
|
|
13693
|
-
if (!(stats?.length || stats?.size))
|
|
13694
|
-
return info;
|
|
13863
|
+
if (!(stats?.length || stats?.size)) return info;
|
|
13695
13864
|
const result = await mc.query(
|
|
13696
13865
|
summarize(table, column2, stats),
|
|
13697
13866
|
{ persist: true }
|
|
@@ -13760,7 +13929,15 @@ var Coordinator = class {
|
|
|
13760
13929
|
}
|
|
13761
13930
|
return this._logger;
|
|
13762
13931
|
}
|
|
13763
|
-
|
|
13932
|
+
/**
|
|
13933
|
+
* Set configuration options for this coordinator.
|
|
13934
|
+
* @param {object} [options] Configration options.
|
|
13935
|
+
* @param {boolean} [options.cache=true] Boolean flag to enable/disable query caching.
|
|
13936
|
+
* @param {boolean} [options.consolidate=true] Boolean flag to enable/disable query consolidation.
|
|
13937
|
+
* @param {boolean|object} [options.indexes=true] Boolean flag to enable/disable
|
|
13938
|
+
* automatic data cube indexes or an index options object.
|
|
13939
|
+
*/
|
|
13940
|
+
configure({ cache = true, consolidate: consolidate2 = true, indexes = true } = {}) {
|
|
13764
13941
|
this.manager.cache(cache);
|
|
13765
13942
|
this.manager.consolidate(consolidate2);
|
|
13766
13943
|
this.indexes = indexes;
|
|
@@ -13773,8 +13950,7 @@ var Coordinator = class {
|
|
|
13773
13950
|
this.clients = /* @__PURE__ */ new Set();
|
|
13774
13951
|
this.filterGroups = /* @__PURE__ */ new Map();
|
|
13775
13952
|
}
|
|
13776
|
-
if (cache)
|
|
13777
|
-
this.manager.cache().clear();
|
|
13953
|
+
if (cache) this.manager.cache().clear();
|
|
13778
13954
|
}
|
|
13779
13955
|
databaseConnector(db) {
|
|
13780
13956
|
return this.manager.connector(db);
|
|
@@ -13823,7 +13999,6 @@ var Coordinator = class {
|
|
|
13823
13999
|
}
|
|
13824
14000
|
/**
|
|
13825
14001
|
* Connect a client to the coordinator.
|
|
13826
|
-
*
|
|
13827
14002
|
* @param {import('./MosaicClient.js').MosaicClient} client the client to disconnect
|
|
13828
14003
|
*/
|
|
13829
14004
|
async connect(client) {
|
|
@@ -13855,8 +14030,7 @@ var Coordinator = class {
|
|
|
13855
14030
|
*/
|
|
13856
14031
|
disconnect(client) {
|
|
13857
14032
|
const { clients, filterGroups } = this;
|
|
13858
|
-
if (!clients.has(client))
|
|
13859
|
-
return;
|
|
14033
|
+
if (!clients.has(client)) return;
|
|
13860
14034
|
clients.delete(client);
|
|
13861
14035
|
filterGroups.get(client.filterBy)?.remove(client);
|
|
13862
14036
|
client.coordinator = null;
|
|
@@ -13874,7 +14048,7 @@ var AsyncDispatch = class {
|
|
|
13874
14048
|
/**
|
|
13875
14049
|
* Add an event listener callback for the provided event type.
|
|
13876
14050
|
* @param {string} type The event type.
|
|
13877
|
-
* @param {(value: *) => Promise
|
|
14051
|
+
* @param {(value: *) => void | Promise} callback The event handler
|
|
13878
14052
|
* callback function to add. If the callback has already been
|
|
13879
14053
|
* added for the event type, this method has no effect.
|
|
13880
14054
|
*/
|
|
@@ -13892,7 +14066,7 @@ var AsyncDispatch = class {
|
|
|
13892
14066
|
/**
|
|
13893
14067
|
* Remove an event listener callback for the provided event type.
|
|
13894
14068
|
* @param {string} type The event type.
|
|
13895
|
-
* @param {(value: *) => Promise
|
|
14069
|
+
* @param {(value: *) => void | Promise} callback The event handler
|
|
13896
14070
|
* callback function to remove.
|
|
13897
14071
|
*/
|
|
13898
14072
|
removeEventListener(type, callback) {
|
|
@@ -13919,11 +14093,12 @@ var AsyncDispatch = class {
|
|
|
13919
14093
|
* This default implementation simply returns null, indicating that
|
|
13920
14094
|
* any other unemitted event values should be dropped (that is, all
|
|
13921
14095
|
* queued events are filtered)
|
|
14096
|
+
* @param {string} type The event type.
|
|
13922
14097
|
* @param {*} value The new event value that will be enqueued.
|
|
13923
14098
|
* @returns {(value: *) => boolean|null} A dispatch queue filter
|
|
13924
14099
|
* function, or null if all unemitted event values should be filtered.
|
|
13925
14100
|
*/
|
|
13926
|
-
emitQueueFilter() {
|
|
14101
|
+
emitQueueFilter(type, value) {
|
|
13927
14102
|
return null;
|
|
13928
14103
|
}
|
|
13929
14104
|
/**
|
|
@@ -13951,13 +14126,13 @@ var AsyncDispatch = class {
|
|
|
13951
14126
|
const event = this.willEmit(type, value);
|
|
13952
14127
|
const { callbacks, queue } = entry;
|
|
13953
14128
|
if (callbacks?.size) {
|
|
13954
|
-
const
|
|
14129
|
+
const callbackValues = Array.from(callbacks, (cb) => cb(event));
|
|
14130
|
+
entry.pending = Promise.allSettled(callbackValues).then(() => {
|
|
13955
14131
|
entry.pending = null;
|
|
13956
14132
|
if (!queue.isEmpty()) {
|
|
13957
14133
|
this.emit(type, queue.dequeue());
|
|
13958
14134
|
}
|
|
13959
14135
|
});
|
|
13960
|
-
entry.pending = promise;
|
|
13961
14136
|
}
|
|
13962
14137
|
}
|
|
13963
14138
|
}
|
|
@@ -14025,11 +14200,9 @@ function distinct(a2, b2) {
|
|
|
14025
14200
|
return a2 === b2 ? false : a2 instanceof Date && b2 instanceof Date ? +a2 !== +b2 : Array.isArray(a2) && Array.isArray(b2) ? distinctArray(a2, b2) : true;
|
|
14026
14201
|
}
|
|
14027
14202
|
function distinctArray(a2, b2) {
|
|
14028
|
-
if (a2.length !== b2.length)
|
|
14029
|
-
return true;
|
|
14203
|
+
if (a2.length !== b2.length) return true;
|
|
14030
14204
|
for (let i = 0; i < a2.length; ++i) {
|
|
14031
|
-
if (a2[i] !== b2[i])
|
|
14032
|
-
return true;
|
|
14205
|
+
if (a2[i] !== b2[i]) return true;
|
|
14033
14206
|
}
|
|
14034
14207
|
return false;
|
|
14035
14208
|
}
|
|
@@ -14064,7 +14237,9 @@ var Param = class _Param extends AsyncDispatch {
|
|
|
14064
14237
|
static array(values) {
|
|
14065
14238
|
if (values.some((v2) => isParam(v2))) {
|
|
14066
14239
|
const p2 = new _Param();
|
|
14067
|
-
const update2 = () =>
|
|
14240
|
+
const update2 = () => {
|
|
14241
|
+
p2.update(values.map((v2) => isParam(v2) ? v2.value : v2));
|
|
14242
|
+
};
|
|
14068
14243
|
update2();
|
|
14069
14244
|
values.forEach((v2) => isParam(v2) ? v2.addEventListener("value", update2) : 0);
|
|
14070
14245
|
return p2;
|
|
@@ -14170,7 +14345,7 @@ var Selection = class _Selection extends Param {
|
|
|
14170
14345
|
}
|
|
14171
14346
|
/**
|
|
14172
14347
|
* Create a cloned copy of this Selection instance.
|
|
14173
|
-
* @returns {
|
|
14348
|
+
* @returns {Selection} A clone of this selection.
|
|
14174
14349
|
*/
|
|
14175
14350
|
clone() {
|
|
14176
14351
|
const s = new _Selection(this._resolver);
|
|
@@ -14181,7 +14356,7 @@ var Selection = class _Selection extends Param {
|
|
|
14181
14356
|
* Create a clone of this Selection with clauses corresponding
|
|
14182
14357
|
* to the provided source removed.
|
|
14183
14358
|
* @param {*} source The clause source to remove.
|
|
14184
|
-
* @returns {
|
|
14359
|
+
* @returns {Selection} A cloned and updated Selection.
|
|
14185
14360
|
*/
|
|
14186
14361
|
remove(source) {
|
|
14187
14362
|
const s = this.clone();
|
|
@@ -14250,9 +14425,9 @@ var Selection = class _Selection extends Param {
|
|
|
14250
14425
|
* Upon value-typed updates, returns a dispatch queue filter function.
|
|
14251
14426
|
* The return value depends on the selection resolution strategy.
|
|
14252
14427
|
* @param {string} type The event type.
|
|
14253
|
-
* @param {*} value The
|
|
14254
|
-
* @returns {*} For value-typed events,
|
|
14255
|
-
* function. Otherwise returns null.
|
|
14428
|
+
* @param {*} value The new event value that will be enqueued.
|
|
14429
|
+
* @returns {(value: *) => boolean|null} For value-typed events,
|
|
14430
|
+
* returns a dispatch queue filter function. Otherwise returns null.
|
|
14256
14431
|
*/
|
|
14257
14432
|
emitQueueFilter(type, value) {
|
|
14258
14433
|
return type === "value" ? this._resolver.queueFilter(value) : null;
|
|
@@ -14306,10 +14481,8 @@ var SelectionResolver = class {
|
|
|
14306
14481
|
const { source, predicate } = clause;
|
|
14307
14482
|
const filtered = clauseList.filter((c) => source !== c.source);
|
|
14308
14483
|
const clauses = this.single ? [] : filtered;
|
|
14309
|
-
if (this.single && reset)
|
|
14310
|
-
|
|
14311
|
-
if (predicate)
|
|
14312
|
-
clauses.push(clause);
|
|
14484
|
+
if (this.single && reset) filtered.forEach((c) => c.source?.reset?.());
|
|
14485
|
+
if (predicate) clauses.push(clause);
|
|
14313
14486
|
return clauses;
|
|
14314
14487
|
}
|
|
14315
14488
|
/**
|
|
@@ -14332,8 +14505,7 @@ var SelectionResolver = class {
|
|
|
14332
14505
|
*/
|
|
14333
14506
|
predicate(clauseList, active, client) {
|
|
14334
14507
|
const { union } = this;
|
|
14335
|
-
if (this.skip(client, active))
|
|
14336
|
-
return void 0;
|
|
14508
|
+
if (this.skip(client, active)) return void 0;
|
|
14337
14509
|
const predicates = clauseList.filter((clause) => !this.skip(client, clause)).map((clause) => clause.predicate);
|
|
14338
14510
|
return union && predicates.length > 1 ? or(predicates) : predicates;
|
|
14339
14511
|
}
|
|
@@ -14348,6 +14520,7 @@ var SelectionResolver = class {
|
|
|
14348
14520
|
const source = value.active?.source;
|
|
14349
14521
|
return (clauses) => clauses.active?.source !== source;
|
|
14350
14522
|
}
|
|
14523
|
+
return null;
|
|
14351
14524
|
}
|
|
14352
14525
|
};
|
|
14353
14526
|
|
|
@@ -14368,7 +14541,7 @@ function restConnector(uri = "http://localhost:3000/") {
|
|
|
14368
14541
|
};
|
|
14369
14542
|
}
|
|
14370
14543
|
|
|
14371
|
-
// ../../node_modules/apache-arrow/util/buffer.mjs
|
|
14544
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/buffer.mjs
|
|
14372
14545
|
var buffer_exports2 = {};
|
|
14373
14546
|
__export(buffer_exports2, {
|
|
14374
14547
|
compareArrayLike: () => compareArrayLike2,
|
|
@@ -14409,13 +14582,13 @@ __export(buffer_exports2, {
|
|
|
14409
14582
|
toUint8ClampedArrayIterator: () => toUint8ClampedArrayIterator2
|
|
14410
14583
|
});
|
|
14411
14584
|
|
|
14412
|
-
// ../../node_modules/apache-arrow/util/utf8.mjs
|
|
14585
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/utf8.mjs
|
|
14413
14586
|
var decoder2 = new TextDecoder("utf-8");
|
|
14414
14587
|
var decodeUtf82 = (buffer) => decoder2.decode(buffer);
|
|
14415
14588
|
var encoder2 = new TextEncoder();
|
|
14416
14589
|
var encodeUtf82 = (value) => encoder2.encode(value);
|
|
14417
14590
|
|
|
14418
|
-
// ../../node_modules/apache-arrow/util/compat.mjs
|
|
14591
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/compat.mjs
|
|
14419
14592
|
var isNumber2 = (x3) => typeof x3 === "number";
|
|
14420
14593
|
var isBoolean2 = (x3) => typeof x3 === "boolean";
|
|
14421
14594
|
var isFunction2 = (x3) => typeof x3 === "function";
|
|
@@ -14458,7 +14631,7 @@ var isFlatbuffersByteBuffer2 = (x3) => {
|
|
|
14458
14631
|
return isObject2(x3) && isFunction2(x3["clear"]) && isFunction2(x3["bytes"]) && isFunction2(x3["position"]) && isFunction2(x3["setPosition"]) && isFunction2(x3["capacity"]) && isFunction2(x3["getBufferIdentifier"]) && isFunction2(x3["createLong"]);
|
|
14459
14632
|
};
|
|
14460
14633
|
|
|
14461
|
-
// ../../node_modules/apache-arrow/util/buffer.mjs
|
|
14634
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/buffer.mjs
|
|
14462
14635
|
var SharedArrayBuf2 = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : ArrayBuffer;
|
|
14463
14636
|
function collapseContiguousByteRanges2(chunks) {
|
|
14464
14637
|
const result = chunks[0] ? [chunks[0]] : [];
|
|
@@ -14641,7 +14814,7 @@ function compareArrayLike2(a2, b2) {
|
|
|
14641
14814
|
return true;
|
|
14642
14815
|
}
|
|
14643
14816
|
|
|
14644
|
-
// ../../node_modules/apache-arrow/io/adapters.mjs
|
|
14817
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/adapters.mjs
|
|
14645
14818
|
var adapters_default2 = {
|
|
14646
14819
|
fromIterable(source) {
|
|
14647
14820
|
return pump4(fromIterable2(source));
|
|
@@ -14885,7 +15058,7 @@ function fromNodeStream2(stream) {
|
|
|
14885
15058
|
});
|
|
14886
15059
|
}
|
|
14887
15060
|
|
|
14888
|
-
// ../../node_modules/apache-arrow/enum.mjs
|
|
15061
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/enum.mjs
|
|
14889
15062
|
var MetadataVersion2;
|
|
14890
15063
|
(function(MetadataVersion4) {
|
|
14891
15064
|
MetadataVersion4[MetadataVersion4["V1"] = 0] = "V1";
|
|
@@ -14992,7 +15165,7 @@ var BufferType2;
|
|
|
14992
15165
|
BufferType3[BufferType3["TYPE"] = 3] = "TYPE";
|
|
14993
15166
|
})(BufferType2 || (BufferType2 = {}));
|
|
14994
15167
|
|
|
14995
|
-
// ../../node_modules/apache-arrow/util/vector.mjs
|
|
15168
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/vector.mjs
|
|
14996
15169
|
var vector_exports2 = {};
|
|
14997
15170
|
__export(vector_exports2, {
|
|
14998
15171
|
clampIndex: () => clampIndex2,
|
|
@@ -15000,7 +15173,7 @@ __export(vector_exports2, {
|
|
|
15000
15173
|
createElementComparator: () => createElementComparator2
|
|
15001
15174
|
});
|
|
15002
15175
|
|
|
15003
|
-
// ../../node_modules/apache-arrow/util/pretty.mjs
|
|
15176
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/pretty.mjs
|
|
15004
15177
|
var pretty_exports2 = {};
|
|
15005
15178
|
__export(pretty_exports2, {
|
|
15006
15179
|
valueToString: () => valueToString2
|
|
@@ -15033,7 +15206,7 @@ function valueToString2(x3) {
|
|
|
15033
15206
|
return ArrayBuffer.isView(x3) ? `[${x3}]` : JSON.stringify(x3, (_2, y3) => typeof y3 === "bigint" ? `${y3}` : y3);
|
|
15034
15207
|
}
|
|
15035
15208
|
|
|
15036
|
-
// ../../node_modules/apache-arrow/util/bn.mjs
|
|
15209
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/bn.mjs
|
|
15037
15210
|
var bn_exports2 = {};
|
|
15038
15211
|
__export(bn_exports2, {
|
|
15039
15212
|
BN: () => BN2,
|
|
@@ -15190,7 +15363,7 @@ var BN2 = class _BN {
|
|
|
15190
15363
|
}
|
|
15191
15364
|
};
|
|
15192
15365
|
|
|
15193
|
-
// ../../node_modules/apache-arrow/util/bigint.mjs
|
|
15366
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/bigint.mjs
|
|
15194
15367
|
function bigIntToNumber2(number) {
|
|
15195
15368
|
if (typeof number === "bigint" && (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER)) {
|
|
15196
15369
|
throw new TypeError(`${number} is not safe to convert to a number.`);
|
|
@@ -15198,7 +15371,7 @@ function bigIntToNumber2(number) {
|
|
|
15198
15371
|
return Number(number);
|
|
15199
15372
|
}
|
|
15200
15373
|
|
|
15201
|
-
// ../../node_modules/apache-arrow/type.mjs
|
|
15374
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/type.mjs
|
|
15202
15375
|
var _a5;
|
|
15203
15376
|
var _b2;
|
|
15204
15377
|
var _c2;
|
|
@@ -15853,7 +16026,7 @@ function strideForType2(type) {
|
|
|
15853
16026
|
}
|
|
15854
16027
|
}
|
|
15855
16028
|
|
|
15856
|
-
// ../../node_modules/apache-arrow/visitor.mjs
|
|
16029
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor.mjs
|
|
15857
16030
|
var Visitor2 = class {
|
|
15858
16031
|
visitMany(nodes, ...args) {
|
|
15859
16032
|
return nodes.map((node, i) => this.visit(node, ...args.map((x3) => x3[i])));
|
|
@@ -16236,7 +16409,7 @@ Visitor2.prototype.visitDurationMillisecond = null;
|
|
|
16236
16409
|
Visitor2.prototype.visitDurationMicrosecond = null;
|
|
16237
16410
|
Visitor2.prototype.visitDurationNanosecond = null;
|
|
16238
16411
|
|
|
16239
|
-
// ../../node_modules/apache-arrow/util/math.mjs
|
|
16412
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/math.mjs
|
|
16240
16413
|
var math_exports2 = {};
|
|
16241
16414
|
__export(math_exports2, {
|
|
16242
16415
|
float64ToUint16: () => float64ToUint162,
|
|
@@ -16281,7 +16454,7 @@ function float64ToUint162(d) {
|
|
|
16281
16454
|
return sign | expo | sigf & 65535;
|
|
16282
16455
|
}
|
|
16283
16456
|
|
|
16284
|
-
// ../../node_modules/apache-arrow/visitor/set.mjs
|
|
16457
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/set.mjs
|
|
16285
16458
|
var SetVisitor2 = class extends Visitor2 {
|
|
16286
16459
|
};
|
|
16287
16460
|
function wrapSet2(fn) {
|
|
@@ -16541,7 +16714,7 @@ SetVisitor2.prototype.visitFixedSizeList = wrapSet2(setFixedSizeList2);
|
|
|
16541
16714
|
SetVisitor2.prototype.visitMap = wrapSet2(setMap2);
|
|
16542
16715
|
var instance8 = new SetVisitor2();
|
|
16543
16716
|
|
|
16544
|
-
// ../../node_modules/apache-arrow/row/struct.mjs
|
|
16717
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/row/struct.mjs
|
|
16545
16718
|
var kParent2 = Symbol.for("parent");
|
|
16546
16719
|
var kRowIndex2 = Symbol.for("rowIndex");
|
|
16547
16720
|
var StructRow2 = class {
|
|
@@ -16649,7 +16822,7 @@ var StructRowProxyHandler2 = class {
|
|
|
16649
16822
|
}
|
|
16650
16823
|
};
|
|
16651
16824
|
|
|
16652
|
-
// ../../node_modules/apache-arrow/visitor/get.mjs
|
|
16825
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/get.mjs
|
|
16653
16826
|
var GetVisitor2 = class extends Visitor2 {
|
|
16654
16827
|
};
|
|
16655
16828
|
function wrapGet2(fn) {
|
|
@@ -16837,7 +17010,7 @@ GetVisitor2.prototype.visitFixedSizeList = wrapGet2(getFixedSizeList2);
|
|
|
16837
17010
|
GetVisitor2.prototype.visitMap = wrapGet2(getMap2);
|
|
16838
17011
|
var instance9 = new GetVisitor2();
|
|
16839
17012
|
|
|
16840
|
-
// ../../node_modules/apache-arrow/row/map.mjs
|
|
17013
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/row/map.mjs
|
|
16841
17014
|
var kKeys2 = Symbol.for("keys");
|
|
16842
17015
|
var kVals2 = Symbol.for("vals");
|
|
16843
17016
|
var MapRow2 = class {
|
|
@@ -16947,7 +17120,7 @@ Object.defineProperties(MapRow2.prototype, {
|
|
|
16947
17120
|
[kVals2]: { writable: true, enumerable: false, configurable: false, value: null }
|
|
16948
17121
|
});
|
|
16949
17122
|
|
|
16950
|
-
// ../../node_modules/apache-arrow/util/vector.mjs
|
|
17123
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/vector.mjs
|
|
16951
17124
|
function clampIndex2(source, index, then) {
|
|
16952
17125
|
const length2 = source.length;
|
|
16953
17126
|
const adjust = index > -1 ? index : length2 + index % length2;
|
|
@@ -17089,7 +17262,7 @@ function compareObject2(comparators, obj, keys) {
|
|
|
17089
17262
|
return false;
|
|
17090
17263
|
}
|
|
17091
17264
|
|
|
17092
|
-
// ../../node_modules/apache-arrow/util/bit.mjs
|
|
17265
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/bit.mjs
|
|
17093
17266
|
var bit_exports2 = {};
|
|
17094
17267
|
__export(bit_exports2, {
|
|
17095
17268
|
BitIterator: () => BitIterator2,
|
|
@@ -17212,7 +17385,7 @@ function popcnt_uint322(uint32) {
|
|
|
17212
17385
|
return (i + (i >>> 4) & 252645135) * 16843009 >>> 24;
|
|
17213
17386
|
}
|
|
17214
17387
|
|
|
17215
|
-
// ../../node_modules/apache-arrow/data.mjs
|
|
17388
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/data.mjs
|
|
17216
17389
|
var kUnknownNullCount2 = -1;
|
|
17217
17390
|
var Data2 = class _Data {
|
|
17218
17391
|
get typeId() {
|
|
@@ -17515,7 +17688,7 @@ function makeData2(props) {
|
|
|
17515
17688
|
return makeDataVisitor2.visit(props);
|
|
17516
17689
|
}
|
|
17517
17690
|
|
|
17518
|
-
// ../../node_modules/apache-arrow/util/chunk.mjs
|
|
17691
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/chunk.mjs
|
|
17519
17692
|
var ChunkedIterator2 = class {
|
|
17520
17693
|
constructor(numChunks = 0, getChunkIterator) {
|
|
17521
17694
|
this.numChunks = numChunks;
|
|
@@ -17631,7 +17804,7 @@ function wrapChunkedIndexOf2(indexOf) {
|
|
|
17631
17804
|
};
|
|
17632
17805
|
}
|
|
17633
17806
|
|
|
17634
|
-
// ../../node_modules/apache-arrow/visitor/indexof.mjs
|
|
17807
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/indexof.mjs
|
|
17635
17808
|
var IndexOfVisitor2 = class extends Visitor2 {
|
|
17636
17809
|
};
|
|
17637
17810
|
function nullIndexOf2(data, searchElement) {
|
|
@@ -17734,7 +17907,7 @@ IndexOfVisitor2.prototype.visitFixedSizeList = indexOfValue2;
|
|
|
17734
17907
|
IndexOfVisitor2.prototype.visitMap = indexOfValue2;
|
|
17735
17908
|
var instance10 = new IndexOfVisitor2();
|
|
17736
17909
|
|
|
17737
|
-
// ../../node_modules/apache-arrow/visitor/iterator.mjs
|
|
17910
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/iterator.mjs
|
|
17738
17911
|
var IteratorVisitor2 = class extends Visitor2 {
|
|
17739
17912
|
};
|
|
17740
17913
|
function vectorIterator2(vector) {
|
|
@@ -17821,7 +17994,7 @@ IteratorVisitor2.prototype.visitFixedSizeList = vectorIterator2;
|
|
|
17821
17994
|
IteratorVisitor2.prototype.visitMap = vectorIterator2;
|
|
17822
17995
|
var instance11 = new IteratorVisitor2();
|
|
17823
17996
|
|
|
17824
|
-
// ../../node_modules/apache-arrow/visitor/bytelength.mjs
|
|
17997
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/bytelength.mjs
|
|
17825
17998
|
var sum2 = (x3, y3) => x3 + y3;
|
|
17826
17999
|
var GetByteLengthVisitor = class extends Visitor2 {
|
|
17827
18000
|
visitNull(____, _2) {
|
|
@@ -17915,7 +18088,7 @@ GetByteLengthVisitor.prototype.visitDenseUnion = getDenseUnionByteLength;
|
|
|
17915
18088
|
GetByteLengthVisitor.prototype.visitSparseUnion = getSparseUnionByteLength;
|
|
17916
18089
|
var instance12 = new GetByteLengthVisitor();
|
|
17917
18090
|
|
|
17918
|
-
// ../../node_modules/apache-arrow/vector.mjs
|
|
18091
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/vector.mjs
|
|
17919
18092
|
var _a6;
|
|
17920
18093
|
var visitorsByTypeId2 = {};
|
|
17921
18094
|
var vectorPrototypesByTypeId2 = {};
|
|
@@ -18224,7 +18397,7 @@ var MemoizedVector2 = class _MemoizedVector extends Vector2 {
|
|
|
18224
18397
|
}
|
|
18225
18398
|
};
|
|
18226
18399
|
|
|
18227
|
-
// ../../node_modules/apache-arrow/builder/valid.mjs
|
|
18400
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/valid.mjs
|
|
18228
18401
|
function createIsValidFunction2(nullValues) {
|
|
18229
18402
|
if (!nullValues || nullValues.length <= 0) {
|
|
18230
18403
|
return function isValid(value) {
|
|
@@ -18254,7 +18427,7 @@ function valueToCase2(x3) {
|
|
|
18254
18427
|
return `${valueToString2(x3)}n`;
|
|
18255
18428
|
}
|
|
18256
18429
|
|
|
18257
|
-
// ../../node_modules/apache-arrow/builder/buffer.mjs
|
|
18430
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/buffer.mjs
|
|
18258
18431
|
var roundLengthUpToNearest64Bytes2 = (len, BPE) => (Math.ceil(len) * BPE + 63 & ~63 || 64) / BPE;
|
|
18259
18432
|
var sliceOrExtendArray = (arr, len = 0) => arr.length >= len ? arr.subarray(0, len) : memcpy2(new arr.constructor(len), arr, 0);
|
|
18260
18433
|
var BufferBuilder2 = class {
|
|
@@ -18368,7 +18541,7 @@ var OffsetsBufferBuilder2 = class extends DataBufferBuilder2 {
|
|
|
18368
18541
|
}
|
|
18369
18542
|
};
|
|
18370
18543
|
|
|
18371
|
-
// ../../node_modules/apache-arrow/builder.mjs
|
|
18544
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder.mjs
|
|
18372
18545
|
var Builder5 = class {
|
|
18373
18546
|
/** @nocollapse */
|
|
18374
18547
|
// @ts-ignore
|
|
@@ -18635,7 +18808,7 @@ var VariableWidthBuilder2 = class extends Builder5 {
|
|
|
18635
18808
|
}
|
|
18636
18809
|
};
|
|
18637
18810
|
|
|
18638
|
-
// ../../node_modules/apache-arrow/fb/block.mjs
|
|
18811
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/block.mjs
|
|
18639
18812
|
var Block2 = class {
|
|
18640
18813
|
constructor() {
|
|
18641
18814
|
this.bb = null;
|
|
@@ -18678,7 +18851,7 @@ var Block2 = class {
|
|
|
18678
18851
|
}
|
|
18679
18852
|
};
|
|
18680
18853
|
|
|
18681
|
-
// ../../node_modules/apache-arrow/fb/key-value.mjs
|
|
18854
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/key-value.mjs
|
|
18682
18855
|
var KeyValue2 = class _KeyValue {
|
|
18683
18856
|
constructor() {
|
|
18684
18857
|
this.bb = null;
|
|
@@ -18725,7 +18898,7 @@ var KeyValue2 = class _KeyValue {
|
|
|
18725
18898
|
}
|
|
18726
18899
|
};
|
|
18727
18900
|
|
|
18728
|
-
// ../../node_modules/apache-arrow/fb/metadata-version.mjs
|
|
18901
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/metadata-version.mjs
|
|
18729
18902
|
var MetadataVersion3;
|
|
18730
18903
|
(function(MetadataVersion4) {
|
|
18731
18904
|
MetadataVersion4[MetadataVersion4["V1"] = 0] = "V1";
|
|
@@ -18735,20 +18908,20 @@ var MetadataVersion3;
|
|
|
18735
18908
|
MetadataVersion4[MetadataVersion4["V5"] = 4] = "V5";
|
|
18736
18909
|
})(MetadataVersion3 || (MetadataVersion3 = {}));
|
|
18737
18910
|
|
|
18738
|
-
// ../../node_modules/apache-arrow/fb/endianness.mjs
|
|
18911
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/endianness.mjs
|
|
18739
18912
|
var Endianness2;
|
|
18740
18913
|
(function(Endianness3) {
|
|
18741
18914
|
Endianness3[Endianness3["Little"] = 0] = "Little";
|
|
18742
18915
|
Endianness3[Endianness3["Big"] = 1] = "Big";
|
|
18743
18916
|
})(Endianness2 || (Endianness2 = {}));
|
|
18744
18917
|
|
|
18745
|
-
// ../../node_modules/apache-arrow/fb/dictionary-kind.mjs
|
|
18918
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/dictionary-kind.mjs
|
|
18746
18919
|
var DictionaryKind2;
|
|
18747
18920
|
(function(DictionaryKind3) {
|
|
18748
18921
|
DictionaryKind3[DictionaryKind3["DenseArray"] = 0] = "DenseArray";
|
|
18749
18922
|
})(DictionaryKind2 || (DictionaryKind2 = {}));
|
|
18750
18923
|
|
|
18751
|
-
// ../../node_modules/apache-arrow/fb/int.mjs
|
|
18924
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/int.mjs
|
|
18752
18925
|
var Int2 = class _Int {
|
|
18753
18926
|
constructor() {
|
|
18754
18927
|
this.bb = null;
|
|
@@ -18795,7 +18968,7 @@ var Int2 = class _Int {
|
|
|
18795
18968
|
}
|
|
18796
18969
|
};
|
|
18797
18970
|
|
|
18798
|
-
// ../../node_modules/apache-arrow/fb/dictionary-encoding.mjs
|
|
18971
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/dictionary-encoding.mjs
|
|
18799
18972
|
var DictionaryEncoding2 = class _DictionaryEncoding {
|
|
18800
18973
|
constructor() {
|
|
18801
18974
|
this.bb = null;
|
|
@@ -18868,7 +19041,7 @@ var DictionaryEncoding2 = class _DictionaryEncoding {
|
|
|
18868
19041
|
}
|
|
18869
19042
|
};
|
|
18870
19043
|
|
|
18871
|
-
// ../../node_modules/apache-arrow/fb/binary.mjs
|
|
19044
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/binary.mjs
|
|
18872
19045
|
var Binary4 = class _Binary {
|
|
18873
19046
|
constructor() {
|
|
18874
19047
|
this.bb = null;
|
|
@@ -18899,7 +19072,7 @@ var Binary4 = class _Binary {
|
|
|
18899
19072
|
}
|
|
18900
19073
|
};
|
|
18901
19074
|
|
|
18902
|
-
// ../../node_modules/apache-arrow/fb/bool.mjs
|
|
19075
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/bool.mjs
|
|
18903
19076
|
var Bool4 = class _Bool {
|
|
18904
19077
|
constructor() {
|
|
18905
19078
|
this.bb = null;
|
|
@@ -18930,14 +19103,14 @@ var Bool4 = class _Bool {
|
|
|
18930
19103
|
}
|
|
18931
19104
|
};
|
|
18932
19105
|
|
|
18933
|
-
// ../../node_modules/apache-arrow/fb/date-unit.mjs
|
|
19106
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/date-unit.mjs
|
|
18934
19107
|
var DateUnit3;
|
|
18935
19108
|
(function(DateUnit4) {
|
|
18936
19109
|
DateUnit4[DateUnit4["DAY"] = 0] = "DAY";
|
|
18937
19110
|
DateUnit4[DateUnit4["MILLISECOND"] = 1] = "MILLISECOND";
|
|
18938
19111
|
})(DateUnit3 || (DateUnit3 = {}));
|
|
18939
19112
|
|
|
18940
|
-
// ../../node_modules/apache-arrow/fb/date.mjs
|
|
19113
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/date.mjs
|
|
18941
19114
|
var Date3 = class _Date {
|
|
18942
19115
|
constructor() {
|
|
18943
19116
|
this.bb = null;
|
|
@@ -18976,7 +19149,7 @@ var Date3 = class _Date {
|
|
|
18976
19149
|
}
|
|
18977
19150
|
};
|
|
18978
19151
|
|
|
18979
|
-
// ../../node_modules/apache-arrow/fb/decimal.mjs
|
|
19152
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/decimal.mjs
|
|
18980
19153
|
var Decimal4 = class _Decimal {
|
|
18981
19154
|
constructor() {
|
|
18982
19155
|
this.bb = null;
|
|
@@ -19041,7 +19214,7 @@ var Decimal4 = class _Decimal {
|
|
|
19041
19214
|
}
|
|
19042
19215
|
};
|
|
19043
19216
|
|
|
19044
|
-
// ../../node_modules/apache-arrow/fb/time-unit.mjs
|
|
19217
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/time-unit.mjs
|
|
19045
19218
|
var TimeUnit3;
|
|
19046
19219
|
(function(TimeUnit4) {
|
|
19047
19220
|
TimeUnit4[TimeUnit4["SECOND"] = 0] = "SECOND";
|
|
@@ -19050,7 +19223,7 @@ var TimeUnit3;
|
|
|
19050
19223
|
TimeUnit4[TimeUnit4["NANOSECOND"] = 3] = "NANOSECOND";
|
|
19051
19224
|
})(TimeUnit3 || (TimeUnit3 = {}));
|
|
19052
19225
|
|
|
19053
|
-
// ../../node_modules/apache-arrow/fb/duration.mjs
|
|
19226
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/duration.mjs
|
|
19054
19227
|
var Duration4 = class _Duration {
|
|
19055
19228
|
constructor() {
|
|
19056
19229
|
this.bb = null;
|
|
@@ -19089,7 +19262,7 @@ var Duration4 = class _Duration {
|
|
|
19089
19262
|
}
|
|
19090
19263
|
};
|
|
19091
19264
|
|
|
19092
|
-
// ../../node_modules/apache-arrow/fb/fixed-size-binary.mjs
|
|
19265
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/fixed-size-binary.mjs
|
|
19093
19266
|
var FixedSizeBinary4 = class _FixedSizeBinary {
|
|
19094
19267
|
constructor() {
|
|
19095
19268
|
this.bb = null;
|
|
@@ -19131,7 +19304,7 @@ var FixedSizeBinary4 = class _FixedSizeBinary {
|
|
|
19131
19304
|
}
|
|
19132
19305
|
};
|
|
19133
19306
|
|
|
19134
|
-
// ../../node_modules/apache-arrow/fb/fixed-size-list.mjs
|
|
19307
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/fixed-size-list.mjs
|
|
19135
19308
|
var FixedSizeList4 = class _FixedSizeList {
|
|
19136
19309
|
constructor() {
|
|
19137
19310
|
this.bb = null;
|
|
@@ -19173,7 +19346,7 @@ var FixedSizeList4 = class _FixedSizeList {
|
|
|
19173
19346
|
}
|
|
19174
19347
|
};
|
|
19175
19348
|
|
|
19176
|
-
// ../../node_modules/apache-arrow/fb/precision.mjs
|
|
19349
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/precision.mjs
|
|
19177
19350
|
var Precision3;
|
|
19178
19351
|
(function(Precision4) {
|
|
19179
19352
|
Precision4[Precision4["HALF"] = 0] = "HALF";
|
|
@@ -19181,7 +19354,7 @@ var Precision3;
|
|
|
19181
19354
|
Precision4[Precision4["DOUBLE"] = 2] = "DOUBLE";
|
|
19182
19355
|
})(Precision3 || (Precision3 = {}));
|
|
19183
19356
|
|
|
19184
|
-
// ../../node_modules/apache-arrow/fb/floating-point.mjs
|
|
19357
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/floating-point.mjs
|
|
19185
19358
|
var FloatingPoint2 = class _FloatingPoint {
|
|
19186
19359
|
constructor() {
|
|
19187
19360
|
this.bb = null;
|
|
@@ -19220,7 +19393,7 @@ var FloatingPoint2 = class _FloatingPoint {
|
|
|
19220
19393
|
}
|
|
19221
19394
|
};
|
|
19222
19395
|
|
|
19223
|
-
// ../../node_modules/apache-arrow/fb/interval-unit.mjs
|
|
19396
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/interval-unit.mjs
|
|
19224
19397
|
var IntervalUnit3;
|
|
19225
19398
|
(function(IntervalUnit4) {
|
|
19226
19399
|
IntervalUnit4[IntervalUnit4["YEAR_MONTH"] = 0] = "YEAR_MONTH";
|
|
@@ -19228,7 +19401,7 @@ var IntervalUnit3;
|
|
|
19228
19401
|
IntervalUnit4[IntervalUnit4["MONTH_DAY_NANO"] = 2] = "MONTH_DAY_NANO";
|
|
19229
19402
|
})(IntervalUnit3 || (IntervalUnit3 = {}));
|
|
19230
19403
|
|
|
19231
|
-
// ../../node_modules/apache-arrow/fb/interval.mjs
|
|
19404
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/interval.mjs
|
|
19232
19405
|
var Interval2 = class _Interval {
|
|
19233
19406
|
constructor() {
|
|
19234
19407
|
this.bb = null;
|
|
@@ -19267,7 +19440,7 @@ var Interval2 = class _Interval {
|
|
|
19267
19440
|
}
|
|
19268
19441
|
};
|
|
19269
19442
|
|
|
19270
|
-
// ../../node_modules/apache-arrow/fb/list.mjs
|
|
19443
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/list.mjs
|
|
19271
19444
|
var List4 = class _List {
|
|
19272
19445
|
constructor() {
|
|
19273
19446
|
this.bb = null;
|
|
@@ -19298,7 +19471,7 @@ var List4 = class _List {
|
|
|
19298
19471
|
}
|
|
19299
19472
|
};
|
|
19300
19473
|
|
|
19301
|
-
// ../../node_modules/apache-arrow/fb/map.mjs
|
|
19474
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/map.mjs
|
|
19302
19475
|
var Map3 = class _Map {
|
|
19303
19476
|
constructor() {
|
|
19304
19477
|
this.bb = null;
|
|
@@ -19340,7 +19513,7 @@ var Map3 = class _Map {
|
|
|
19340
19513
|
}
|
|
19341
19514
|
};
|
|
19342
19515
|
|
|
19343
|
-
// ../../node_modules/apache-arrow/fb/null.mjs
|
|
19516
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/null.mjs
|
|
19344
19517
|
var Null4 = class _Null {
|
|
19345
19518
|
constructor() {
|
|
19346
19519
|
this.bb = null;
|
|
@@ -19371,7 +19544,7 @@ var Null4 = class _Null {
|
|
|
19371
19544
|
}
|
|
19372
19545
|
};
|
|
19373
19546
|
|
|
19374
|
-
// ../../node_modules/apache-arrow/fb/struct-.mjs
|
|
19547
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/struct-.mjs
|
|
19375
19548
|
var Struct_2 = class _Struct_ {
|
|
19376
19549
|
constructor() {
|
|
19377
19550
|
this.bb = null;
|
|
@@ -19402,7 +19575,7 @@ var Struct_2 = class _Struct_ {
|
|
|
19402
19575
|
}
|
|
19403
19576
|
};
|
|
19404
19577
|
|
|
19405
|
-
// ../../node_modules/apache-arrow/fb/time.mjs
|
|
19578
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/time.mjs
|
|
19406
19579
|
var Time2 = class _Time {
|
|
19407
19580
|
constructor() {
|
|
19408
19581
|
this.bb = null;
|
|
@@ -19449,7 +19622,7 @@ var Time2 = class _Time {
|
|
|
19449
19622
|
}
|
|
19450
19623
|
};
|
|
19451
19624
|
|
|
19452
|
-
// ../../node_modules/apache-arrow/fb/timestamp.mjs
|
|
19625
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/timestamp.mjs
|
|
19453
19626
|
var Timestamp2 = class _Timestamp {
|
|
19454
19627
|
constructor() {
|
|
19455
19628
|
this.bb = null;
|
|
@@ -19496,14 +19669,14 @@ var Timestamp2 = class _Timestamp {
|
|
|
19496
19669
|
}
|
|
19497
19670
|
};
|
|
19498
19671
|
|
|
19499
|
-
// ../../node_modules/apache-arrow/fb/union-mode.mjs
|
|
19672
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/union-mode.mjs
|
|
19500
19673
|
var UnionMode3;
|
|
19501
19674
|
(function(UnionMode4) {
|
|
19502
19675
|
UnionMode4[UnionMode4["Sparse"] = 0] = "Sparse";
|
|
19503
19676
|
UnionMode4[UnionMode4["Dense"] = 1] = "Dense";
|
|
19504
19677
|
})(UnionMode3 || (UnionMode3 = {}));
|
|
19505
19678
|
|
|
19506
|
-
// ../../node_modules/apache-arrow/fb/union.mjs
|
|
19679
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/union.mjs
|
|
19507
19680
|
var Union2 = class _Union {
|
|
19508
19681
|
constructor() {
|
|
19509
19682
|
this.bb = null;
|
|
@@ -19568,7 +19741,7 @@ var Union2 = class _Union {
|
|
|
19568
19741
|
}
|
|
19569
19742
|
};
|
|
19570
19743
|
|
|
19571
|
-
// ../../node_modules/apache-arrow/fb/utf8.mjs
|
|
19744
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/utf8.mjs
|
|
19572
19745
|
var Utf84 = class _Utf8 {
|
|
19573
19746
|
constructor() {
|
|
19574
19747
|
this.bb = null;
|
|
@@ -19599,7 +19772,7 @@ var Utf84 = class _Utf8 {
|
|
|
19599
19772
|
}
|
|
19600
19773
|
};
|
|
19601
19774
|
|
|
19602
|
-
// ../../node_modules/apache-arrow/fb/type.mjs
|
|
19775
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/type.mjs
|
|
19603
19776
|
var Type4;
|
|
19604
19777
|
(function(Type5) {
|
|
19605
19778
|
Type5[Type5["NONE"] = 0] = "NONE";
|
|
@@ -19627,7 +19800,7 @@ var Type4;
|
|
|
19627
19800
|
Type5[Type5["RunEndEncoded"] = 22] = "RunEndEncoded";
|
|
19628
19801
|
})(Type4 || (Type4 = {}));
|
|
19629
19802
|
|
|
19630
|
-
// ../../node_modules/apache-arrow/fb/field.mjs
|
|
19803
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/field.mjs
|
|
19631
19804
|
var Field3 = class _Field {
|
|
19632
19805
|
constructor() {
|
|
19633
19806
|
this.bb = null;
|
|
@@ -19747,7 +19920,7 @@ var Field3 = class _Field {
|
|
|
19747
19920
|
}
|
|
19748
19921
|
};
|
|
19749
19922
|
|
|
19750
|
-
// ../../node_modules/apache-arrow/fb/schema.mjs
|
|
19923
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/schema.mjs
|
|
19751
19924
|
var Schema3 = class _Schema {
|
|
19752
19925
|
constructor() {
|
|
19753
19926
|
this.bb = null;
|
|
@@ -19866,7 +20039,7 @@ var Schema3 = class _Schema {
|
|
|
19866
20039
|
}
|
|
19867
20040
|
};
|
|
19868
20041
|
|
|
19869
|
-
// ../../node_modules/apache-arrow/fb/footer.mjs
|
|
20042
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/footer.mjs
|
|
19870
20043
|
var Footer2 = class _Footer {
|
|
19871
20044
|
constructor() {
|
|
19872
20045
|
this.bb = null;
|
|
@@ -19965,7 +20138,7 @@ var Footer2 = class _Footer {
|
|
|
19965
20138
|
}
|
|
19966
20139
|
};
|
|
19967
20140
|
|
|
19968
|
-
// ../../node_modules/apache-arrow/schema.mjs
|
|
20141
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/schema.mjs
|
|
19969
20142
|
var Schema4 = class _Schema {
|
|
19970
20143
|
constructor(fields = [], metadata, dictionaries, metadataVersion = MetadataVersion2.V5) {
|
|
19971
20144
|
this.fields = fields || [];
|
|
@@ -20081,7 +20254,7 @@ function generateDictionaryMap2(fields, dictionaries = /* @__PURE__ */ new Map()
|
|
|
20081
20254
|
return dictionaries;
|
|
20082
20255
|
}
|
|
20083
20256
|
|
|
20084
|
-
// ../../node_modules/apache-arrow/ipc/metadata/file.mjs
|
|
20257
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/metadata/file.mjs
|
|
20085
20258
|
var Builder6 = Builder;
|
|
20086
20259
|
var ByteBuffer4 = ByteBuffer;
|
|
20087
20260
|
var Footer_2 = class {
|
|
@@ -20196,7 +20369,7 @@ var FileBlock2 = class _FileBlock {
|
|
|
20196
20369
|
}
|
|
20197
20370
|
};
|
|
20198
20371
|
|
|
20199
|
-
// ../../node_modules/apache-arrow/io/interfaces.mjs
|
|
20372
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/interfaces.mjs
|
|
20200
20373
|
var ITERATOR_DONE2 = Object.freeze({ done: true, value: void 0 });
|
|
20201
20374
|
var ArrowJSON2 = class {
|
|
20202
20375
|
constructor(_json) {
|
|
@@ -20319,7 +20492,7 @@ var AsyncQueue2 = class extends ReadableInterop2 {
|
|
|
20319
20492
|
}
|
|
20320
20493
|
};
|
|
20321
20494
|
|
|
20322
|
-
// ../../node_modules/apache-arrow/io/stream.mjs
|
|
20495
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/stream.mjs
|
|
20323
20496
|
var AsyncByteQueue2 = class extends AsyncQueue2 {
|
|
20324
20497
|
write(value) {
|
|
20325
20498
|
if ((value = toUint8Array2(value)).byteLength > 0) {
|
|
@@ -20346,11 +20519,9 @@ var AsyncByteQueue2 = class extends AsyncQueue2 {
|
|
|
20346
20519
|
e_1 = { error: e_1_1 };
|
|
20347
20520
|
} finally {
|
|
20348
20521
|
try {
|
|
20349
|
-
if (!_d3 && !_a9 && (_b3 = _e3.return))
|
|
20350
|
-
yield _b3.call(_e3);
|
|
20522
|
+
if (!_d3 && !_a9 && (_b3 = _e3.return)) yield _b3.call(_e3);
|
|
20351
20523
|
} finally {
|
|
20352
|
-
if (e_1)
|
|
20353
|
-
throw e_1.error;
|
|
20524
|
+
if (e_1) throw e_1.error;
|
|
20354
20525
|
}
|
|
20355
20526
|
}
|
|
20356
20527
|
return joinUint8Arrays2(buffers, byteLength)[0];
|
|
@@ -20496,7 +20667,7 @@ var AsyncByteStreamSource2 = class {
|
|
|
20496
20667
|
}
|
|
20497
20668
|
};
|
|
20498
20669
|
|
|
20499
|
-
// ../../node_modules/apache-arrow/io/file.mjs
|
|
20670
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/file.mjs
|
|
20500
20671
|
var RandomAccessFile2 = class extends ByteStream2 {
|
|
20501
20672
|
constructor(buffer, byteLength) {
|
|
20502
20673
|
super();
|
|
@@ -20619,7 +20790,7 @@ var AsyncRandomAccessFile2 = class extends AsyncByteStream2 {
|
|
|
20619
20790
|
}
|
|
20620
20791
|
};
|
|
20621
20792
|
|
|
20622
|
-
// ../../node_modules/apache-arrow/util/int.mjs
|
|
20793
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/int.mjs
|
|
20623
20794
|
var int_exports2 = {};
|
|
20624
20795
|
__export(int_exports2, {
|
|
20625
20796
|
BaseInt64: () => BaseInt642,
|
|
@@ -20935,7 +21106,7 @@ var Int1282 = class _Int128 {
|
|
|
20935
21106
|
}
|
|
20936
21107
|
};
|
|
20937
21108
|
|
|
20938
|
-
// ../../node_modules/apache-arrow/visitor/vectorloader.mjs
|
|
21109
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/vectorloader.mjs
|
|
20939
21110
|
var VectorLoader2 = class extends Visitor2 {
|
|
20940
21111
|
constructor(bytes, nodes, buffers, dictionaries, metadataVersion = MetadataVersion2.V5) {
|
|
20941
21112
|
super();
|
|
@@ -21081,7 +21252,7 @@ function binaryDataFromJSON2(values) {
|
|
|
21081
21252
|
return data;
|
|
21082
21253
|
}
|
|
21083
21254
|
|
|
21084
|
-
// ../../node_modules/apache-arrow/builder/binary.mjs
|
|
21255
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/binary.mjs
|
|
21085
21256
|
var BinaryBuilder2 = class extends VariableWidthBuilder2 {
|
|
21086
21257
|
constructor(opts) {
|
|
21087
21258
|
super(opts);
|
|
@@ -21114,7 +21285,7 @@ var BinaryBuilder2 = class extends VariableWidthBuilder2 {
|
|
|
21114
21285
|
}
|
|
21115
21286
|
};
|
|
21116
21287
|
|
|
21117
|
-
// ../../node_modules/apache-arrow/builder/bool.mjs
|
|
21288
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/bool.mjs
|
|
21118
21289
|
var BoolBuilder2 = class extends Builder5 {
|
|
21119
21290
|
constructor(options) {
|
|
21120
21291
|
super(options);
|
|
@@ -21125,7 +21296,7 @@ var BoolBuilder2 = class extends Builder5 {
|
|
|
21125
21296
|
}
|
|
21126
21297
|
};
|
|
21127
21298
|
|
|
21128
|
-
// ../../node_modules/apache-arrow/builder/date.mjs
|
|
21299
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/date.mjs
|
|
21129
21300
|
var DateBuilder2 = class extends FixedWidthBuilder2 {
|
|
21130
21301
|
};
|
|
21131
21302
|
DateBuilder2.prototype._setValue = setDate2;
|
|
@@ -21136,12 +21307,12 @@ var DateMillisecondBuilder2 = class extends DateBuilder2 {
|
|
|
21136
21307
|
};
|
|
21137
21308
|
DateMillisecondBuilder2.prototype._setValue = setDateMillisecond2;
|
|
21138
21309
|
|
|
21139
|
-
// ../../node_modules/apache-arrow/builder/decimal.mjs
|
|
21310
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/decimal.mjs
|
|
21140
21311
|
var DecimalBuilder2 = class extends FixedWidthBuilder2 {
|
|
21141
21312
|
};
|
|
21142
21313
|
DecimalBuilder2.prototype._setValue = setDecimal2;
|
|
21143
21314
|
|
|
21144
|
-
// ../../node_modules/apache-arrow/builder/dictionary.mjs
|
|
21315
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/dictionary.mjs
|
|
21145
21316
|
var DictionaryBuilder2 = class extends Builder5 {
|
|
21146
21317
|
constructor({ "type": type, "nullValues": nulls, "dictionaryHashFunction": hashFn }) {
|
|
21147
21318
|
super({ type: new Dictionary2(type.dictionary, type.indices, type.id, type.isOrdered) });
|
|
@@ -21218,12 +21389,12 @@ var DictionaryBuilder2 = class extends Builder5 {
|
|
|
21218
21389
|
}
|
|
21219
21390
|
};
|
|
21220
21391
|
|
|
21221
|
-
// ../../node_modules/apache-arrow/builder/fixedsizebinary.mjs
|
|
21392
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/fixedsizebinary.mjs
|
|
21222
21393
|
var FixedSizeBinaryBuilder2 = class extends FixedWidthBuilder2 {
|
|
21223
21394
|
};
|
|
21224
21395
|
FixedSizeBinaryBuilder2.prototype._setValue = setFixedSizeBinary2;
|
|
21225
21396
|
|
|
21226
|
-
// ../../node_modules/apache-arrow/builder/fixedsizelist.mjs
|
|
21397
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/fixedsizelist.mjs
|
|
21227
21398
|
var FixedSizeListBuilder2 = class extends Builder5 {
|
|
21228
21399
|
setValue(index, value) {
|
|
21229
21400
|
const [child] = this.children;
|
|
@@ -21242,7 +21413,7 @@ var FixedSizeListBuilder2 = class extends Builder5 {
|
|
|
21242
21413
|
}
|
|
21243
21414
|
};
|
|
21244
21415
|
|
|
21245
|
-
// ../../node_modules/apache-arrow/builder/float.mjs
|
|
21416
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/float.mjs
|
|
21246
21417
|
var FloatBuilder2 = class extends FixedWidthBuilder2 {
|
|
21247
21418
|
setValue(index, value) {
|
|
21248
21419
|
this._values.set(index, value);
|
|
@@ -21258,7 +21429,7 @@ var Float32Builder2 = class extends FloatBuilder2 {
|
|
|
21258
21429
|
var Float64Builder2 = class extends FloatBuilder2 {
|
|
21259
21430
|
};
|
|
21260
21431
|
|
|
21261
|
-
// ../../node_modules/apache-arrow/builder/interval.mjs
|
|
21432
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/interval.mjs
|
|
21262
21433
|
var IntervalBuilder2 = class extends FixedWidthBuilder2 {
|
|
21263
21434
|
};
|
|
21264
21435
|
IntervalBuilder2.prototype._setValue = setIntervalValue2;
|
|
@@ -21269,7 +21440,7 @@ var IntervalYearMonthBuilder2 = class extends IntervalBuilder2 {
|
|
|
21269
21440
|
};
|
|
21270
21441
|
IntervalYearMonthBuilder2.prototype._setValue = setIntervalYearMonth2;
|
|
21271
21442
|
|
|
21272
|
-
// ../../node_modules/apache-arrow/builder/duration.mjs
|
|
21443
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/duration.mjs
|
|
21273
21444
|
var DurationBuilder2 = class extends FixedWidthBuilder2 {
|
|
21274
21445
|
};
|
|
21275
21446
|
DurationBuilder2.prototype._setValue = setDuration2;
|
|
@@ -21286,7 +21457,7 @@ var DurationNanosecondBuilder2 = class extends DurationBuilder2 {
|
|
|
21286
21457
|
};
|
|
21287
21458
|
DurationNanosecondBuilder2.prototype._setValue = setDurationNanosecond2;
|
|
21288
21459
|
|
|
21289
|
-
// ../../node_modules/apache-arrow/builder/int.mjs
|
|
21460
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/int.mjs
|
|
21290
21461
|
var IntBuilder2 = class extends FixedWidthBuilder2 {
|
|
21291
21462
|
setValue(index, value) {
|
|
21292
21463
|
this._values.set(index, value);
|
|
@@ -21309,7 +21480,7 @@ var Uint32Builder2 = class extends IntBuilder2 {
|
|
|
21309
21480
|
var Uint64Builder2 = class extends IntBuilder2 {
|
|
21310
21481
|
};
|
|
21311
21482
|
|
|
21312
|
-
// ../../node_modules/apache-arrow/builder/list.mjs
|
|
21483
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/list.mjs
|
|
21313
21484
|
var ListBuilder2 = class extends VariableWidthBuilder2 {
|
|
21314
21485
|
constructor(opts) {
|
|
21315
21486
|
super(opts);
|
|
@@ -21341,7 +21512,7 @@ var ListBuilder2 = class extends VariableWidthBuilder2 {
|
|
|
21341
21512
|
}
|
|
21342
21513
|
};
|
|
21343
21514
|
|
|
21344
|
-
// ../../node_modules/apache-arrow/builder/map.mjs
|
|
21515
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/map.mjs
|
|
21345
21516
|
var MapBuilder2 = class extends VariableWidthBuilder2 {
|
|
21346
21517
|
set(index, value) {
|
|
21347
21518
|
return super.set(index, value);
|
|
@@ -21380,7 +21551,7 @@ var MapBuilder2 = class extends VariableWidthBuilder2 {
|
|
|
21380
21551
|
}
|
|
21381
21552
|
};
|
|
21382
21553
|
|
|
21383
|
-
// ../../node_modules/apache-arrow/builder/null.mjs
|
|
21554
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/null.mjs
|
|
21384
21555
|
var NullBuilder2 = class extends Builder5 {
|
|
21385
21556
|
// @ts-ignore
|
|
21386
21557
|
setValue(index, value) {
|
|
@@ -21391,7 +21562,7 @@ var NullBuilder2 = class extends Builder5 {
|
|
|
21391
21562
|
}
|
|
21392
21563
|
};
|
|
21393
21564
|
|
|
21394
|
-
// ../../node_modules/apache-arrow/builder/struct.mjs
|
|
21565
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/struct.mjs
|
|
21395
21566
|
var StructBuilder2 = class extends Builder5 {
|
|
21396
21567
|
setValue(index, value) {
|
|
21397
21568
|
const { children, type } = this;
|
|
@@ -21418,7 +21589,7 @@ var StructBuilder2 = class extends Builder5 {
|
|
|
21418
21589
|
}
|
|
21419
21590
|
};
|
|
21420
21591
|
|
|
21421
|
-
// ../../node_modules/apache-arrow/builder/timestamp.mjs
|
|
21592
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/timestamp.mjs
|
|
21422
21593
|
var TimestampBuilder2 = class extends FixedWidthBuilder2 {
|
|
21423
21594
|
};
|
|
21424
21595
|
TimestampBuilder2.prototype._setValue = setTimestamp2;
|
|
@@ -21435,7 +21606,7 @@ var TimestampNanosecondBuilder2 = class extends TimestampBuilder2 {
|
|
|
21435
21606
|
};
|
|
21436
21607
|
TimestampNanosecondBuilder2.prototype._setValue = setTimestampNanosecond2;
|
|
21437
21608
|
|
|
21438
|
-
// ../../node_modules/apache-arrow/builder/time.mjs
|
|
21609
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/time.mjs
|
|
21439
21610
|
var TimeBuilder2 = class extends FixedWidthBuilder2 {
|
|
21440
21611
|
};
|
|
21441
21612
|
TimeBuilder2.prototype._setValue = setTime2;
|
|
@@ -21452,7 +21623,7 @@ var TimeNanosecondBuilder2 = class extends TimeBuilder2 {
|
|
|
21452
21623
|
};
|
|
21453
21624
|
TimeNanosecondBuilder2.prototype._setValue = setTimeNanosecond2;
|
|
21454
21625
|
|
|
21455
|
-
// ../../node_modules/apache-arrow/builder/union.mjs
|
|
21626
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/union.mjs
|
|
21456
21627
|
var UnionBuilder2 = class extends Builder5 {
|
|
21457
21628
|
constructor(options) {
|
|
21458
21629
|
super(options);
|
|
@@ -21509,7 +21680,7 @@ var DenseUnionBuilder2 = class extends UnionBuilder2 {
|
|
|
21509
21680
|
}
|
|
21510
21681
|
};
|
|
21511
21682
|
|
|
21512
|
-
// ../../node_modules/apache-arrow/builder/utf8.mjs
|
|
21683
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/builder/utf8.mjs
|
|
21513
21684
|
var Utf8Builder2 = class extends VariableWidthBuilder2 {
|
|
21514
21685
|
constructor(opts) {
|
|
21515
21686
|
super(opts);
|
|
@@ -21531,7 +21702,7 @@ var Utf8Builder2 = class extends VariableWidthBuilder2 {
|
|
|
21531
21702
|
};
|
|
21532
21703
|
Utf8Builder2.prototype._flushPending = BinaryBuilder2.prototype._flushPending;
|
|
21533
21704
|
|
|
21534
|
-
// ../../node_modules/apache-arrow/visitor/builderctor.mjs
|
|
21705
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/builderctor.mjs
|
|
21535
21706
|
var GetBuilderCtor2 = class extends Visitor2 {
|
|
21536
21707
|
visitNull() {
|
|
21537
21708
|
return NullBuilder2;
|
|
@@ -21680,7 +21851,7 @@ var GetBuilderCtor2 = class extends Visitor2 {
|
|
|
21680
21851
|
};
|
|
21681
21852
|
var instance13 = new GetBuilderCtor2();
|
|
21682
21853
|
|
|
21683
|
-
// ../../node_modules/apache-arrow/visitor/typecomparator.mjs
|
|
21854
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/typecomparator.mjs
|
|
21684
21855
|
var TypeComparator2 = class extends Visitor2 {
|
|
21685
21856
|
compareSchemas(schema, other) {
|
|
21686
21857
|
return schema === other || other instanceof schema.constructor && this.compareManyFields(schema.fields, other.fields);
|
|
@@ -21799,7 +21970,7 @@ function compareTypes2(type, other) {
|
|
|
21799
21970
|
return instance14.visit(type, other);
|
|
21800
21971
|
}
|
|
21801
21972
|
|
|
21802
|
-
// ../../node_modules/apache-arrow/factories.mjs
|
|
21973
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/factories.mjs
|
|
21803
21974
|
function makeBuilder2(options) {
|
|
21804
21975
|
const type = options.type;
|
|
21805
21976
|
const builder = new (instance13.getVisitFn(type)())(options);
|
|
@@ -21816,7 +21987,7 @@ function makeBuilder2(options) {
|
|
|
21816
21987
|
return builder;
|
|
21817
21988
|
}
|
|
21818
21989
|
|
|
21819
|
-
// ../../node_modules/apache-arrow/util/recordbatch.mjs
|
|
21990
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/util/recordbatch.mjs
|
|
21820
21991
|
function distributeVectorsIntoRecordBatches2(schema, vecs) {
|
|
21821
21992
|
return uniformlyDistributeChunksAcrossRecordBatches2(schema, vecs.map((v2) => v2.data.concat()));
|
|
21822
21993
|
}
|
|
@@ -21877,7 +22048,7 @@ function distributeChildren2(fields, batchLength, children, columns, memo) {
|
|
|
21877
22048
|
return children;
|
|
21878
22049
|
}
|
|
21879
22050
|
|
|
21880
|
-
// ../../node_modules/apache-arrow/table.mjs
|
|
22051
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/table.mjs
|
|
21881
22052
|
var _a7;
|
|
21882
22053
|
var Table2 = class _Table {
|
|
21883
22054
|
constructor(...args) {
|
|
@@ -22161,7 +22332,7 @@ Table2[_a7] = ((proto) => {
|
|
|
22161
22332
|
return "Table";
|
|
22162
22333
|
})(Table2.prototype);
|
|
22163
22334
|
|
|
22164
|
-
// ../../node_modules/apache-arrow/recordbatch.mjs
|
|
22335
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/recordbatch.mjs
|
|
22165
22336
|
var _a8;
|
|
22166
22337
|
var RecordBatch4 = class _RecordBatch {
|
|
22167
22338
|
constructor(...args) {
|
|
@@ -22426,20 +22597,20 @@ var _InternalEmptyPlaceholderRecordBatch2 = class extends RecordBatch4 {
|
|
|
22426
22597
|
}
|
|
22427
22598
|
};
|
|
22428
22599
|
|
|
22429
|
-
// ../../node_modules/apache-arrow/fb/body-compression-method.mjs
|
|
22600
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/body-compression-method.mjs
|
|
22430
22601
|
var BodyCompressionMethod2;
|
|
22431
22602
|
(function(BodyCompressionMethod3) {
|
|
22432
22603
|
BodyCompressionMethod3[BodyCompressionMethod3["BUFFER"] = 0] = "BUFFER";
|
|
22433
22604
|
})(BodyCompressionMethod2 || (BodyCompressionMethod2 = {}));
|
|
22434
22605
|
|
|
22435
|
-
// ../../node_modules/apache-arrow/fb/compression-type.mjs
|
|
22606
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/compression-type.mjs
|
|
22436
22607
|
var CompressionType2;
|
|
22437
22608
|
(function(CompressionType3) {
|
|
22438
22609
|
CompressionType3[CompressionType3["LZ4_FRAME"] = 0] = "LZ4_FRAME";
|
|
22439
22610
|
CompressionType3[CompressionType3["ZSTD"] = 1] = "ZSTD";
|
|
22440
22611
|
})(CompressionType2 || (CompressionType2 = {}));
|
|
22441
22612
|
|
|
22442
|
-
// ../../node_modules/apache-arrow/fb/body-compression.mjs
|
|
22613
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/body-compression.mjs
|
|
22443
22614
|
var BodyCompression2 = class _BodyCompression {
|
|
22444
22615
|
constructor() {
|
|
22445
22616
|
this.bb = null;
|
|
@@ -22493,7 +22664,7 @@ var BodyCompression2 = class _BodyCompression {
|
|
|
22493
22664
|
}
|
|
22494
22665
|
};
|
|
22495
22666
|
|
|
22496
|
-
// ../../node_modules/apache-arrow/fb/buffer.mjs
|
|
22667
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/buffer.mjs
|
|
22497
22668
|
var Buffer3 = class {
|
|
22498
22669
|
constructor() {
|
|
22499
22670
|
this.bb = null;
|
|
@@ -22532,7 +22703,7 @@ var Buffer3 = class {
|
|
|
22532
22703
|
}
|
|
22533
22704
|
};
|
|
22534
22705
|
|
|
22535
|
-
// ../../node_modules/apache-arrow/fb/field-node.mjs
|
|
22706
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/field-node.mjs
|
|
22536
22707
|
var FieldNode3 = class {
|
|
22537
22708
|
constructor() {
|
|
22538
22709
|
this.bb = null;
|
|
@@ -22569,7 +22740,7 @@ var FieldNode3 = class {
|
|
|
22569
22740
|
}
|
|
22570
22741
|
};
|
|
22571
22742
|
|
|
22572
|
-
// ../../node_modules/apache-arrow/fb/record-batch.mjs
|
|
22743
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/record-batch.mjs
|
|
22573
22744
|
var RecordBatch5 = class _RecordBatch {
|
|
22574
22745
|
constructor() {
|
|
22575
22746
|
this.bb = null;
|
|
@@ -22656,7 +22827,7 @@ var RecordBatch5 = class _RecordBatch {
|
|
|
22656
22827
|
}
|
|
22657
22828
|
};
|
|
22658
22829
|
|
|
22659
|
-
// ../../node_modules/apache-arrow/fb/dictionary-batch.mjs
|
|
22830
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/dictionary-batch.mjs
|
|
22660
22831
|
var DictionaryBatch3 = class _DictionaryBatch {
|
|
22661
22832
|
constructor() {
|
|
22662
22833
|
this.bb = null;
|
|
@@ -22709,7 +22880,7 @@ var DictionaryBatch3 = class _DictionaryBatch {
|
|
|
22709
22880
|
}
|
|
22710
22881
|
};
|
|
22711
22882
|
|
|
22712
|
-
// ../../node_modules/apache-arrow/fb/message-header.mjs
|
|
22883
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/message-header.mjs
|
|
22713
22884
|
var MessageHeader3;
|
|
22714
22885
|
(function(MessageHeader4) {
|
|
22715
22886
|
MessageHeader4[MessageHeader4["NONE"] = 0] = "NONE";
|
|
@@ -22720,7 +22891,7 @@ var MessageHeader3;
|
|
|
22720
22891
|
MessageHeader4[MessageHeader4["SparseTensor"] = 5] = "SparseTensor";
|
|
22721
22892
|
})(MessageHeader3 || (MessageHeader3 = {}));
|
|
22722
22893
|
|
|
22723
|
-
// ../../node_modules/apache-arrow/fb/message.mjs
|
|
22894
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/fb/message.mjs
|
|
22724
22895
|
var Message3 = class _Message {
|
|
22725
22896
|
constructor() {
|
|
22726
22897
|
this.bb = null;
|
|
@@ -22811,7 +22982,7 @@ var Message3 = class _Message {
|
|
|
22811
22982
|
}
|
|
22812
22983
|
};
|
|
22813
22984
|
|
|
22814
|
-
// ../../node_modules/apache-arrow/visitor/typeassembler.mjs
|
|
22985
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/typeassembler.mjs
|
|
22815
22986
|
var TypeAssembler2 = class extends Visitor2 {
|
|
22816
22987
|
visit(node, builder) {
|
|
22817
22988
|
return node == null || builder == null ? void 0 : super.visit(node, builder);
|
|
@@ -22924,7 +23095,7 @@ var TypeAssembler2 = class extends Visitor2 {
|
|
|
22924
23095
|
};
|
|
22925
23096
|
var instance15 = new TypeAssembler2();
|
|
22926
23097
|
|
|
22927
|
-
// ../../node_modules/apache-arrow/ipc/metadata/json.mjs
|
|
23098
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/metadata/json.mjs
|
|
22928
23099
|
function schemaFromJSON2(_schema, dictionaries = /* @__PURE__ */ new Map()) {
|
|
22929
23100
|
return new Schema4(schemaFieldsFromJSON2(_schema, dictionaries), customMetadataFromJSON2(_schema["metadata"]), dictionaries);
|
|
22930
23101
|
}
|
|
@@ -23064,7 +23235,7 @@ function typeFromJSON2(f2, children) {
|
|
|
23064
23235
|
throw new Error(`Unrecognized type: "${typeId}"`);
|
|
23065
23236
|
}
|
|
23066
23237
|
|
|
23067
|
-
// ../../node_modules/apache-arrow/ipc/metadata/message.mjs
|
|
23238
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/metadata/message.mjs
|
|
23068
23239
|
var Builder7 = Builder;
|
|
23069
23240
|
var ByteBuffer5 = ByteBuffer;
|
|
23070
23241
|
var Message4 = class _Message {
|
|
@@ -23512,7 +23683,7 @@ var platformIsLittleEndian2 = (() => {
|
|
|
23512
23683
|
return new Int16Array(buffer)[0] === 256;
|
|
23513
23684
|
})();
|
|
23514
23685
|
|
|
23515
|
-
// ../../node_modules/apache-arrow/ipc/message.mjs
|
|
23686
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/message.mjs
|
|
23516
23687
|
var invalidMessageType2 = (type) => `Expected ${MessageHeader2[type]} Message in stream, but was null or length 0.`;
|
|
23517
23688
|
var nullMessage2 = (type) => `Header pointer of flatbuffer-encoded ${MessageHeader2[type]} Message is null or length 0.`;
|
|
23518
23689
|
var invalidMessageMetadata2 = (expected, actual) => `Expected to read ${expected} metadata bytes, but only read ${actual}.`;
|
|
@@ -23767,7 +23938,7 @@ var magicLength2 = MAGIC2.length;
|
|
|
23767
23938
|
var magicAndPadding2 = magicLength2 + PADDING2;
|
|
23768
23939
|
var magicX2AndPadding2 = magicLength2 * 2 + PADDING2;
|
|
23769
23940
|
|
|
23770
|
-
// ../../node_modules/apache-arrow/ipc/reader.mjs
|
|
23941
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/reader.mjs
|
|
23771
23942
|
var RecordBatchReader2 = class _RecordBatchReader extends ReadableInterop2 {
|
|
23772
23943
|
constructor(impl) {
|
|
23773
23944
|
super();
|
|
@@ -23916,11 +24087,9 @@ var AsyncRecordBatchStreamReader2 = class extends RecordBatchReader2 {
|
|
|
23916
24087
|
e_1 = { error: e_1_1 };
|
|
23917
24088
|
} finally {
|
|
23918
24089
|
try {
|
|
23919
|
-
if (!_d3 && !_a9 && (_b3 = _e3.return))
|
|
23920
|
-
yield _b3.call(_e3);
|
|
24090
|
+
if (!_d3 && !_a9 && (_b3 = _e3.return)) yield _b3.call(_e3);
|
|
23921
24091
|
} finally {
|
|
23922
|
-
if (e_1)
|
|
23923
|
-
throw e_1.error;
|
|
24092
|
+
if (e_1) throw e_1.error;
|
|
23924
24093
|
}
|
|
23925
24094
|
}
|
|
23926
24095
|
return batches;
|
|
@@ -24404,7 +24573,7 @@ function fromFileHandle2(source) {
|
|
|
24404
24573
|
});
|
|
24405
24574
|
}
|
|
24406
24575
|
|
|
24407
|
-
// ../../node_modules/apache-arrow/visitor/vectorassembler.mjs
|
|
24576
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/visitor/vectorassembler.mjs
|
|
24408
24577
|
var VectorAssembler2 = class _VectorAssembler extends Visitor2 {
|
|
24409
24578
|
/** @nocollapse */
|
|
24410
24579
|
static assemble(...args) {
|
|
@@ -24554,7 +24723,7 @@ VectorAssembler2.prototype.visitDuration = assembleFlatVector2;
|
|
|
24554
24723
|
VectorAssembler2.prototype.visitFixedSizeList = assembleListVector2;
|
|
24555
24724
|
VectorAssembler2.prototype.visitMap = assembleListVector2;
|
|
24556
24725
|
|
|
24557
|
-
// ../../node_modules/apache-arrow/ipc/writer.mjs
|
|
24726
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/writer.mjs
|
|
24558
24727
|
var RecordBatchWriter2 = class extends ReadableInterop2 {
|
|
24559
24728
|
/** @nocollapse */
|
|
24560
24729
|
// @ts-ignore
|
|
@@ -24817,18 +24986,16 @@ function writeAllAsync2(writer, batches) {
|
|
|
24817
24986
|
e_1 = { error: e_1_1 };
|
|
24818
24987
|
} finally {
|
|
24819
24988
|
try {
|
|
24820
|
-
if (!_a9 && !_b3 && (_c3 = batches_1.return))
|
|
24821
|
-
yield _c3.call(batches_1);
|
|
24989
|
+
if (!_a9 && !_b3 && (_c3 = batches_1.return)) yield _c3.call(batches_1);
|
|
24822
24990
|
} finally {
|
|
24823
|
-
if (e_1)
|
|
24824
|
-
throw e_1.error;
|
|
24991
|
+
if (e_1) throw e_1.error;
|
|
24825
24992
|
}
|
|
24826
24993
|
}
|
|
24827
24994
|
return writer.finish();
|
|
24828
24995
|
});
|
|
24829
24996
|
}
|
|
24830
24997
|
|
|
24831
|
-
// ../../node_modules/apache-arrow/io/whatwg/iterable.mjs
|
|
24998
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/whatwg/iterable.mjs
|
|
24832
24999
|
function toDOMStream2(source, options) {
|
|
24833
25000
|
if (isAsyncIterable2(source)) {
|
|
24834
25001
|
return asyncIterableAsReadableDOMStream2(source, options);
|
|
@@ -24911,7 +25078,7 @@ function asyncIterableAsReadableDOMStream2(source, options) {
|
|
|
24911
25078
|
}
|
|
24912
25079
|
}
|
|
24913
25080
|
|
|
24914
|
-
// ../../node_modules/apache-arrow/io/whatwg/builder.mjs
|
|
25081
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/whatwg/builder.mjs
|
|
24915
25082
|
function builderThroughDOMStream2(options) {
|
|
24916
25083
|
return new BuilderTransform2(options);
|
|
24917
25084
|
}
|
|
@@ -24991,7 +25158,7 @@ var chunkByteLength2 = (chunk) => {
|
|
|
24991
25158
|
return (_a9 = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a9 !== void 0 ? _a9 : 0;
|
|
24992
25159
|
};
|
|
24993
25160
|
|
|
24994
|
-
// ../../node_modules/apache-arrow/io/whatwg/reader.mjs
|
|
25161
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/whatwg/reader.mjs
|
|
24995
25162
|
function recordBatchReaderThroughDOMStream2(writableStrategy, readableStrategy) {
|
|
24996
25163
|
const queue = new AsyncByteQueue2();
|
|
24997
25164
|
let reader = null;
|
|
@@ -25033,7 +25200,7 @@ function recordBatchReaderThroughDOMStream2(writableStrategy, readableStrategy)
|
|
|
25033
25200
|
}
|
|
25034
25201
|
}
|
|
25035
25202
|
|
|
25036
|
-
// ../../node_modules/apache-arrow/io/whatwg/writer.mjs
|
|
25203
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/io/whatwg/writer.mjs
|
|
25037
25204
|
function recordBatchWriterThroughDOMStream2(writableStrategy, readableStrategy) {
|
|
25038
25205
|
const writer = new this(writableStrategy);
|
|
25039
25206
|
const reader = new AsyncByteStream2(writer);
|
|
@@ -25071,19 +25238,19 @@ function recordBatchWriterThroughDOMStream2(writableStrategy, readableStrategy)
|
|
|
25071
25238
|
}
|
|
25072
25239
|
}
|
|
25073
25240
|
|
|
25074
|
-
// ../../node_modules/apache-arrow/ipc/serialization.mjs
|
|
25241
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/ipc/serialization.mjs
|
|
25075
25242
|
function tableToIPC2(table, type = "stream") {
|
|
25076
25243
|
return (type === "stream" ? RecordBatchStreamWriter2 : RecordBatchFileWriter2).writeAll(table).toUint8Array(true);
|
|
25077
25244
|
}
|
|
25078
25245
|
|
|
25079
|
-
// ../../node_modules/apache-arrow/Arrow.mjs
|
|
25246
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/Arrow.mjs
|
|
25080
25247
|
var util2 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, bn_exports2), int_exports2), bit_exports2), math_exports2), buffer_exports2), vector_exports2), pretty_exports2), {
|
|
25081
25248
|
compareSchemas: compareSchemas2,
|
|
25082
25249
|
compareFields: compareFields2,
|
|
25083
25250
|
compareTypes: compareTypes2
|
|
25084
25251
|
});
|
|
25085
25252
|
|
|
25086
|
-
// ../../node_modules/apache-arrow/Arrow.dom.mjs
|
|
25253
|
+
// ../../node_modules/@duckdb/duckdb-wasm/node_modules/apache-arrow/Arrow.dom.mjs
|
|
25087
25254
|
adapters_default2.toDOMStream = toDOMStream2;
|
|
25088
25255
|
Builder5["throughDOM"] = builderThroughDOMStream2;
|
|
25089
25256
|
RecordBatchReader2["throughDOM"] = recordBatchReaderThroughDOMStream2;
|
|
@@ -25102,9 +25269,7 @@ var K = Object.getPrototypeOf;
|
|
|
25102
25269
|
var V = Object.prototype.hasOwnProperty;
|
|
25103
25270
|
var z = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports);
|
|
25104
25271
|
var J = (s, e, r, t) => {
|
|
25105
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
25106
|
-
for (let o of j(e))
|
|
25107
|
-
!V.call(s, o) && o !== r && N(s, o, { get: () => e[o], enumerable: !(t = H(e, o)) || t.enumerable });
|
|
25272
|
+
if (e && typeof e == "object" || typeof e == "function") for (let o of j(e)) !V.call(s, o) && o !== r && N(s, o, { get: () => e[o], enumerable: !(t = H(e, o)) || t.enumerable });
|
|
25108
25273
|
return s;
|
|
25109
25274
|
};
|
|
25110
25275
|
var $ = (s, e, r) => (r = s != null ? Y(K(s)) : {}, J(e || !s || !s.__esModule ? N(r, "default", { value: s, enumerable: true }) : r, s));
|
|
@@ -25151,8 +25316,7 @@ var E = class {
|
|
|
25151
25316
|
async send(e) {
|
|
25152
25317
|
this._bindings.logger.log({ timestamp: /* @__PURE__ */ new Date(), level: 2, origin: 4, topic: 4, event: 4, value: e });
|
|
25153
25318
|
let r = await this._bindings.startPendingQuery(this._conn, e);
|
|
25154
|
-
for (; r == null; )
|
|
25155
|
-
r = await this._bindings.pollPendingQuery(this._conn);
|
|
25319
|
+
for (; r == null; ) r = await this._bindings.pollPendingQuery(this._conn);
|
|
25156
25320
|
let t = new p(this._bindings, this._conn, r), o = await RecordBatchReader2.from(t);
|
|
25157
25321
|
return console.assert(o.isAsync()), console.assert(o.isStream()), o;
|
|
25158
25322
|
}
|
|
@@ -25188,10 +25352,8 @@ var p = class {
|
|
|
25188
25352
|
this._first = true, this._depleted = false, this._inFlight = null;
|
|
25189
25353
|
}
|
|
25190
25354
|
async next() {
|
|
25191
|
-
if (this._first)
|
|
25192
|
-
|
|
25193
|
-
if (this._depleted)
|
|
25194
|
-
return { done: true, value: null };
|
|
25355
|
+
if (this._first) return this._first = false, { done: false, value: this.header };
|
|
25356
|
+
if (this._depleted) return { done: true, value: null };
|
|
25195
25357
|
let e;
|
|
25196
25358
|
return this._inFlight != null ? (e = await this._inFlight, this._inFlight = null) : e = await this.db.fetchQueryResults(this.conn), this._depleted = e.length == 0, this._depleted || (this._inFlight = this.db.fetchQueryResults(this.conn)), { done: this._depleted, value: e };
|
|
25197
25359
|
}
|
|
@@ -25358,8 +25520,7 @@ var O = class {
|
|
|
25358
25520
|
return;
|
|
25359
25521
|
}
|
|
25360
25522
|
case "INSTANTIATE_PROGRESS": {
|
|
25361
|
-
for (let i of this._onInstantiationProgress)
|
|
25362
|
-
i(r.data);
|
|
25523
|
+
for (let i of this._onInstantiationProgress) i(r.data);
|
|
25363
25524
|
return;
|
|
25364
25525
|
}
|
|
25365
25526
|
}
|
|
@@ -25641,8 +25802,7 @@ var O = class {
|
|
|
25641
25802
|
await this.postTask(t);
|
|
25642
25803
|
}
|
|
25643
25804
|
async insertArrowFromIPCStream(e, r, t) {
|
|
25644
|
-
if (r.length == 0)
|
|
25645
|
-
return;
|
|
25805
|
+
if (r.length == 0) return;
|
|
25646
25806
|
let o = new a("INSERT_ARROW_FROM_IPC_STREAM", [e, r, t]);
|
|
25647
25807
|
await this.postTask(o, [r.buffer]);
|
|
25648
25808
|
}
|
|
@@ -25704,10 +25864,8 @@ async function de() {
|
|
|
25704
25864
|
async function xe(s) {
|
|
25705
25865
|
let e = await de();
|
|
25706
25866
|
if (e.wasmExceptions) {
|
|
25707
|
-
if (e.wasmSIMD && e.wasmThreads && e.crossOriginIsolated && s.coi)
|
|
25708
|
-
|
|
25709
|
-
if (s.eh)
|
|
25710
|
-
return { mainModule: s.eh.mainModule, mainWorker: s.eh.mainWorker, pthreadWorker: null };
|
|
25867
|
+
if (e.wasmSIMD && e.wasmThreads && e.crossOriginIsolated && s.coi) return { mainModule: s.coi.mainModule, mainWorker: s.coi.mainWorker, pthreadWorker: s.coi.pthreadWorker };
|
|
25868
|
+
if (s.eh) return { mainModule: s.eh.mainModule, mainWorker: s.eh.mainWorker, pthreadWorker: null };
|
|
25711
25869
|
}
|
|
25712
25870
|
return { mainModule: s.mvp.mainModule, mainWorker: s.mvp.mainWorker, pthreadWorker: null };
|
|
25713
25871
|
}
|
|
@@ -25732,13 +25890,11 @@ function wasmConnector(options = {}) {
|
|
|
25732
25890
|
return loadPromise;
|
|
25733
25891
|
}
|
|
25734
25892
|
async function getDuckDB() {
|
|
25735
|
-
if (!db)
|
|
25736
|
-
await load();
|
|
25893
|
+
if (!db) await load();
|
|
25737
25894
|
return db;
|
|
25738
25895
|
}
|
|
25739
25896
|
async function getConnection() {
|
|
25740
|
-
if (!con)
|
|
25741
|
-
await load();
|
|
25897
|
+
if (!con) await load();
|
|
25742
25898
|
return con;
|
|
25743
25899
|
}
|
|
25744
25900
|
return {
|