@loaders.gl/parquet 5.0.0-alpha.8 → 5.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/delta-source-loader-types.js +1 -1
- package/dist/delta-source.js +1 -1
- package/dist/geoparquet-loader.js +1 -1
- package/dist/index.cjs +27 -8
- package/dist/index.cjs.map +1 -1
- package/dist/lib/constants.js +1 -1
- package/dist/lib/parsers/parse-parquet-to-arrow-js.js +6 -2
- package/dist/lib/parsers/parse-parquet-to-arrow-js.js.map +1 -1
- package/dist/parquet-dataset-source.cjs +29 -4
- package/dist/parquet-dataset-source.cjs.map +2 -2
- package/dist/parquet-js-loader-types.js +1 -1
- package/dist/parquet-js-writer.js +1 -1
- package/dist/parquet-loader-base.js +1 -1
- package/dist/parquet-source-loader-types.js +1 -1
- package/dist/parquet-source-loader.cjs +29 -4
- package/dist/parquet-source-loader.cjs.map +2 -2
- package/dist/parquet-source-loader.js +14 -1
- package/dist/parquet-source-loader.js.map +1 -1
- package/dist/parquet-source-worker.js +3 -2
- package/dist/parquet-source-worker.js.map +2 -2
- package/dist/parquet-worker-node.cjs +229 -15
- package/dist/parquet-worker-node.cjs.map +4 -4
- package/dist/parquet-worker.js +1 -1
- package/dist/parquet-worker.js.map +2 -2
- package/dist/parquetjs/codecs/rle.js +4 -0
- package/dist/parquetjs/codecs/rle.js.map +1 -1
- package/package.json +12 -12
- package/src/lib/parsers/parse-parquet-to-arrow-js.ts +6 -2
- package/src/parquet-source-loader.ts +18 -1
- package/src/parquetjs/codecs/rle.ts +3 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { DeltaFormat } from "./delta-format.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "5.0.0-alpha.
|
|
7
|
+
const VERSION = typeof "5.0.0-alpha.9" !== 'undefined' ? "5.0.0-alpha.9" : 'latest';
|
|
8
8
|
/** Loads the parser-bearing Delta source implementation on demand. */
|
|
9
9
|
async function preloadDeltaSourceLoader() {
|
|
10
10
|
const { DeltaSourceLoaderWithParser } = await import('@loaders.gl/parquet/delta-source');
|
package/dist/delta-source.js
CHANGED
|
@@ -7,7 +7,7 @@ import { PARQUET_TABLE_QUERY_CAPABILITIES } from "./parquet-source-capabilities.
|
|
|
7
7
|
import { DeltaFormat } from "./delta-format.js";
|
|
8
8
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
9
9
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
10
|
-
const VERSION = typeof "5.0.0-alpha.
|
|
10
|
+
const VERSION = typeof "5.0.0-alpha.9" !== 'undefined' ? "5.0.0-alpha.9" : 'latest';
|
|
11
11
|
/** Lightweight Delta Lake snapshot source backed by a newline-delimited commit log. */
|
|
12
12
|
export class DeltaTableSource extends DataSource {
|
|
13
13
|
actionsPromises = new Map();
|
|
@@ -5,7 +5,7 @@ import { ParquetFormat } from "./parquet-format.js";
|
|
|
5
5
|
import { PARQUET_LOADER_DEFAULT_OPTIONS } from "./parquet-loader-options.js";
|
|
6
6
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
7
7
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
8
|
-
const VERSION = typeof "5.0.0-alpha.
|
|
8
|
+
const VERSION = typeof "5.0.0-alpha.9" !== 'undefined' ? "5.0.0-alpha.9" : 'latest';
|
|
9
9
|
/** Preloads the parser-bearing GeoParquet loader implementation. */
|
|
10
10
|
async function preloadGeoParquetLoader() {
|
|
11
11
|
const { GeoParquetLoaderWithParser } = await import("./geoparquet-loader-with-parser.js");
|
package/dist/index.cjs
CHANGED
|
@@ -73,7 +73,7 @@ var init_parquet_loader_base = __esm({
|
|
|
73
73
|
"use strict";
|
|
74
74
|
init_parquet_format();
|
|
75
75
|
init_parquet_loader_options();
|
|
76
|
-
VERSION = true ? "5.0.0-alpha.
|
|
76
|
+
VERSION = true ? "5.0.0-alpha.9" : "latest";
|
|
77
77
|
PARQUET_LOADER_BASE = {
|
|
78
78
|
...ParquetFormat,
|
|
79
79
|
dataType: null,
|
|
@@ -7472,7 +7472,7 @@ var init_geoparquet_loader = __esm({
|
|
|
7472
7472
|
"use strict";
|
|
7473
7473
|
init_parquet_format();
|
|
7474
7474
|
init_parquet_loader_options();
|
|
7475
|
-
VERSION5 = true ? "5.0.0-alpha.
|
|
7475
|
+
VERSION5 = true ? "5.0.0-alpha.9" : "latest";
|
|
7476
7476
|
GeoParquetLoader = {
|
|
7477
7477
|
...ParquetFormat,
|
|
7478
7478
|
dataType: null,
|
|
@@ -8168,6 +8168,7 @@ function fillParquetValueBuffer(output, value, start, end) {
|
|
|
8168
8168
|
return;
|
|
8169
8169
|
}
|
|
8170
8170
|
if (Array.isArray(output)) {
|
|
8171
|
+
if (output.length < end) output.length = end;
|
|
8171
8172
|
output.fill(value, start, end);
|
|
8172
8173
|
return;
|
|
8173
8174
|
}
|
|
@@ -24376,7 +24377,10 @@ function hasStandardNestedCollection(field) {
|
|
|
24376
24377
|
}
|
|
24377
24378
|
function normalizeNestedParquetValue(value, field) {
|
|
24378
24379
|
var _a, _b, _c, _d, _e;
|
|
24379
|
-
if (value === void 0 || value === null
|
|
24380
|
+
if (value === void 0 || value === null) {
|
|
24381
|
+
return null;
|
|
24382
|
+
}
|
|
24383
|
+
if (!field.fields) {
|
|
24380
24384
|
return value;
|
|
24381
24385
|
}
|
|
24382
24386
|
if (((_a = field.logicalType) == null ? void 0 : _a.type) === "LIST") {
|
|
@@ -27179,7 +27183,20 @@ async function filterParquetRowGroupsWithBloomFilters(initialization, rowGroupIn
|
|
|
27179
27183
|
let filtersRead = 0;
|
|
27180
27184
|
let bytesRead = 0;
|
|
27181
27185
|
for (const rowGroupIndex of rowGroupIndices) {
|
|
27182
|
-
|
|
27186
|
+
let rowGroup = initialization.metadata.rowGroups[rowGroupIndex];
|
|
27187
|
+
const rawRowGroup = initialization.fileMetadata.row_groups[rowGroupIndex];
|
|
27188
|
+
if (rawRowGroup.columns.some((columnChunk) => columnChunk.encrypted_column_metadata)) {
|
|
27189
|
+
await initialization.reader.resolveColumnMetadata(
|
|
27190
|
+
rawRowGroup,
|
|
27191
|
+
rowGroupIndex,
|
|
27192
|
+
getParquetPredicateColumns(predicate).map((column) => [column])
|
|
27193
|
+
);
|
|
27194
|
+
throwIfAborted4(signal);
|
|
27195
|
+
rowGroup = {
|
|
27196
|
+
...rowGroup,
|
|
27197
|
+
columns: rawRowGroup.columns.filter((columnChunk) => Boolean(columnChunk.meta_data)).map((columnChunk) => createColumnChunkMetadata(columnChunk, initialization.parquetSchema))
|
|
27198
|
+
};
|
|
27199
|
+
}
|
|
27183
27200
|
const probes = getParquetBloomFilterProbes(predicate, rowGroup);
|
|
27184
27201
|
let keepRowGroup = true;
|
|
27185
27202
|
for (const probe of probes) {
|
|
@@ -28313,7 +28330,7 @@ init_geoparquet_loader();
|
|
|
28313
28330
|
|
|
28314
28331
|
// dist/parquet-js-loader-types.js
|
|
28315
28332
|
init_parquet_format();
|
|
28316
|
-
var VERSION8 = true ? "5.0.0-alpha.
|
|
28333
|
+
var VERSION8 = true ? "5.0.0-alpha.9" : "latest";
|
|
28317
28334
|
var DEFAULT_PARQUET_JS_OPTIONS3 = {
|
|
28318
28335
|
columns: void 0,
|
|
28319
28336
|
preserveBinary: false,
|
|
@@ -28340,7 +28357,7 @@ var ParquetJSLoader2 = {
|
|
|
28340
28357
|
|
|
28341
28358
|
// dist/parquet-source-loader-types.js
|
|
28342
28359
|
init_parquet_format();
|
|
28343
|
-
var VERSION10 = true ? "5.0.0-alpha.
|
|
28360
|
+
var VERSION10 = true ? "5.0.0-alpha.9" : "latest";
|
|
28344
28361
|
async function preloadParquetSourceLoader2() {
|
|
28345
28362
|
const { ParquetSourceLoaderWithParser: ParquetSourceLoaderWithParser2 } = await Promise.resolve().then(() => (init_parquet_source_loader(), parquet_source_loader_exports));
|
|
28346
28363
|
return ParquetSourceLoaderWithParser2;
|
|
@@ -28464,7 +28481,7 @@ init_normalize_parquet_options2();
|
|
|
28464
28481
|
init_parquet_format();
|
|
28465
28482
|
|
|
28466
28483
|
// dist/lib/constants.js
|
|
28467
|
-
var VERSION11 = true ? "5.0.0-alpha.
|
|
28484
|
+
var VERSION11 = true ? "5.0.0-alpha.9" : "latest";
|
|
28468
28485
|
var PARQUET_MAGIC2 = "PAR1";
|
|
28469
28486
|
var PARQUET_MAGIC_ENCRYPTED2 = "PARE";
|
|
28470
28487
|
var PARQUET_RDLVL_TYPE2 = "INT32";
|
|
@@ -29124,6 +29141,8 @@ function fillParquetValueBuffer2(output, value, start, end) {
|
|
|
29124
29141
|
return;
|
|
29125
29142
|
}
|
|
29126
29143
|
if (Array.isArray(output)) {
|
|
29144
|
+
if (output.length < end)
|
|
29145
|
+
output.length = end;
|
|
29127
29146
|
output.fill(value, start, end);
|
|
29128
29147
|
return;
|
|
29129
29148
|
}
|
|
@@ -39335,7 +39354,7 @@ function formatDataType(dataType) {
|
|
|
39335
39354
|
|
|
39336
39355
|
// dist/parquet-js-writer.js
|
|
39337
39356
|
init_parquet_format();
|
|
39338
|
-
var VERSION12 = true ? "5.0.0-alpha.
|
|
39357
|
+
var VERSION12 = true ? "5.0.0-alpha.9" : "latest";
|
|
39339
39358
|
var DEFAULT_PARQUET_JS_OPTIONS4 = {};
|
|
39340
39359
|
var ParquetJSWriter = {
|
|
39341
39360
|
...ParquetFormat,
|