@loaders.gl/parquet 4.2.0-alpha.3 → 4.2.0-alpha.5
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/index.cjs +269 -616
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js +1 -2
- package/dist/lib/arrow/convert-row-group-to-columns.js +8 -6
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts +3 -3
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js +71 -82
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js +65 -35
- package/dist/lib/constants.js +15 -2
- package/dist/lib/parsers/get-parquet-schema.d.ts +1 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts.map +1 -1
- package/dist/lib/parsers/get-parquet-schema.js +9 -7
- package/dist/lib/parsers/parse-geoparquet.d.ts +1 -1
- package/dist/lib/parsers/parse-geoparquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-geoparquet.js +47 -45
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js +36 -25
- package/dist/lib/parsers/parse-parquet.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet.js +62 -50
- package/dist/lib/wasm/encode-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.js +49 -12
- package/dist/lib/wasm/load-wasm.js +13 -10
- package/dist/lib/wasm/parse-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.js +19 -15
- package/dist/parquet-loader.d.ts +1 -1
- package/dist/parquet-loader.d.ts.map +1 -1
- package/dist/parquet-loader.js +78 -65
- package/dist/parquet-wasm-loader.js +25 -28
- package/dist/parquet-wasm-writer.js +19 -23
- package/dist/parquet-writer.js +17 -13
- package/dist/parquetjs/codecs/declare.d.ts +1 -1
- package/dist/parquetjs/codecs/declare.d.ts.map +1 -1
- package/dist/parquetjs/codecs/declare.js +0 -1
- package/dist/parquetjs/codecs/dictionary.js +4 -8
- package/dist/parquetjs/codecs/index.d.ts +3 -3
- package/dist/parquetjs/codecs/index.d.ts.map +1 -1
- package/dist/parquetjs/codecs/index.js +20 -17
- package/dist/parquetjs/codecs/plain.d.ts +2 -2
- package/dist/parquetjs/codecs/plain.d.ts.map +1 -1
- package/dist/parquetjs/codecs/plain.js +166 -162
- package/dist/parquetjs/codecs/rle.d.ts +2 -2
- package/dist/parquetjs/codecs/rle.d.ts.map +1 -1
- package/dist/parquetjs/codecs/rle.js +124 -105
- package/dist/parquetjs/compression.d.ts +1 -1
- package/dist/parquetjs/compression.d.ts.map +1 -1
- package/dist/parquetjs/compression.js +157 -43
- package/dist/parquetjs/encoder/parquet-encoder.d.ts +3 -3
- package/dist/parquetjs/encoder/parquet-encoder.d.ts.map +1 -1
- package/dist/parquetjs/encoder/parquet-encoder.js +406 -275
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +12 -7
- package/dist/parquetjs/parquet-thrift/BsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js +175 -166
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js +178 -166
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +6 -6
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +359 -333
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js +73 -68
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js +17 -12
- package/dist/parquetjs/parquet-thrift/ConvertedType.js +31 -26
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js +136 -124
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +198 -181
- package/dist/parquetjs/parquet-thrift/DateType.js +31 -27
- package/dist/parquetjs/parquet-thrift/DecimalType.js +76 -69
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +93 -86
- package/dist/parquetjs/parquet-thrift/Encoding.js +17 -12
- package/dist/parquetjs/parquet-thrift/EnumType.js +31 -27
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +12 -7
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js +217 -205
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +31 -27
- package/dist/parquetjs/parquet-thrift/IntType.js +76 -69
- package/dist/parquetjs/parquet-thrift/JsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/KeyValue.js +73 -67
- package/dist/parquetjs/parquet-thrift/ListType.js +31 -27
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +13 -13
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js +325 -344
- package/dist/parquetjs/parquet-thrift/MapType.js +31 -27
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/NullType.js +31 -27
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js +66 -60
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +98 -88
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +5 -5
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js +185 -175
- package/dist/parquetjs/parquet-thrift/PageLocation.js +108 -96
- package/dist/parquetjs/parquet-thrift/PageType.js +13 -8
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js +145 -133
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js +211 -205
- package/dist/parquetjs/parquet-thrift/SortingColumn.js +98 -88
- package/dist/parquetjs/parquet-thrift/Statistics.js +143 -137
- package/dist/parquetjs/parquet-thrift/StringType.js +31 -27
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js +76 -69
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js +94 -91
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js +76 -69
- package/dist/parquetjs/parquet-thrift/Type.js +17 -12
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +31 -27
- package/dist/parquetjs/parquet-thrift/UUIDType.js +31 -27
- package/dist/parquetjs/parquet-thrift/index.d.ts +44 -44
- package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/index.js +6 -1
- package/dist/parquetjs/parser/decoders.d.ts +3 -3
- package/dist/parquetjs/parser/decoders.d.ts.map +1 -1
- package/dist/parquetjs/parser/decoders.js +306 -242
- package/dist/parquetjs/parser/parquet-reader.d.ts +3 -3
- package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -1
- package/dist/parquetjs/parser/parquet-reader.js +179 -157
- package/dist/parquetjs/schema/declare.d.ts +1 -1
- package/dist/parquetjs/schema/declare.d.ts.map +1 -1
- package/dist/parquetjs/schema/declare.js +6 -9
- package/dist/parquetjs/schema/schema.d.ts +1 -1
- package/dist/parquetjs/schema/schema.d.ts.map +1 -1
- package/dist/parquetjs/schema/schema.js +139 -120
- package/dist/parquetjs/schema/shred.d.ts +2 -2
- package/dist/parquetjs/schema/shred.d.ts.map +1 -1
- package/dist/parquetjs/schema/shred.js +301 -204
- package/dist/parquetjs/schema/types.d.ts +1 -1
- package/dist/parquetjs/schema/types.d.ts.map +1 -1
- package/dist/parquetjs/schema/types.js +328 -314
- package/dist/parquetjs/utils/file-utils.js +24 -23
- package/dist/parquetjs/utils/read-utils.d.ts +1 -1
- package/dist/parquetjs/utils/read-utils.d.ts.map +1 -1
- package/dist/parquetjs/utils/read-utils.js +79 -69
- package/dist/polyfills/buffer/buffer-polyfill.browser.js +8 -3
- package/dist/polyfills/buffer/buffer-polyfill.node.js +13 -8
- package/dist/polyfills/buffer/buffer.js +1750 -1367
- package/dist/polyfills/buffer/index.d.ts +3 -3
- package/dist/polyfills/buffer/index.d.ts.map +1 -1
- package/dist/polyfills/buffer/index.js +5 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js +2 -1
- package/dist/polyfills/util.js +4 -1
- package/dist/workers/parquet-worker.js +3 -1
- package/package.json +15 -13
- package/src/index.ts +1 -1
- package/src/lib/parsers/parse-parquet-to-columns.ts +1 -1
- package/src/lib/parsers/parse-parquet.ts +1 -1
- package/src/parquetjs/encoder/parquet-encoder.ts +2 -2
- package/src/parquetjs/parser/decoders.ts +2 -2
- package/src/parquetjs/parser/parquet-reader.ts +1 -1
- package/src/parquetjs/schema/schema.ts +1 -1
- package/src/parquetjs/utils/read-utils.ts +2 -2
- package/dist/index.js.map +0 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js.map +0 -1
- package/dist/lib/arrow/convert-row-group-to-columns.js.map +0 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js.map +0 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/parsers/get-parquet-schema.js.map +0 -1
- package/dist/lib/parsers/parse-geoparquet.js.map +0 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js.map +0 -1
- package/dist/lib/parsers/parse-parquet.js.map +0 -1
- package/dist/lib/wasm/encode-parquet-wasm.js.map +0 -1
- package/dist/lib/wasm/load-wasm.js.map +0 -1
- package/dist/lib/wasm/parse-parquet-wasm.js.map +0 -1
- package/dist/lib/wip/convert-schema-deep.java.disabled +0 -910
- package/dist/lib/wip/convert-schema-deep.rs.disabled +0 -976
- package/dist/parquet-loader.js.map +0 -1
- package/dist/parquet-wasm-loader.js.map +0 -1
- package/dist/parquet-wasm-writer.js.map +0 -1
- package/dist/parquet-writer.js.map +0 -1
- package/dist/parquetjs/LICENSE +0 -20
- package/dist/parquetjs/codecs/declare.js.map +0 -1
- package/dist/parquetjs/codecs/dictionary.js.map +0 -1
- package/dist/parquetjs/codecs/index.js.map +0 -1
- package/dist/parquetjs/codecs/plain.js.map +0 -1
- package/dist/parquetjs/codecs/rle.js.map +0 -1
- package/dist/parquetjs/compression.js.map +0 -1
- package/dist/parquetjs/encoder/parquet-encoder.js.map +0 -1
- package/dist/parquetjs/modules.d.ts +0 -21
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/BsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ConvertedType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DateType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Encoding.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/EnumType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IntType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/JsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ListType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MapType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/NullType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageLocation.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Statistics.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/StringType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Type.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/index.js.map +0 -1
- package/dist/parquetjs/parser/decoders.js.map +0 -1
- package/dist/parquetjs/parser/parquet-reader.js.map +0 -1
- package/dist/parquetjs/schema/declare.js.map +0 -1
- package/dist/parquetjs/schema/schema.js.map +0 -1
- package/dist/parquetjs/schema/shred.js.map +0 -1
- package/dist/parquetjs/schema/types.js.map +0 -1
- package/dist/parquetjs/utils/file-utils.js.map +0 -1
- package/dist/parquetjs/utils/read-utils.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.browser.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.node.js.map +0 -1
- package/dist/polyfills/buffer/buffer.js.map +0 -1
- package/dist/polyfills/buffer/index.js.map +0 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js.map +0 -1
- package/dist/polyfills/util.js.map +0 -1
- package/dist/workers/parquet-worker.js.map +0 -1
|
@@ -5,178 +5,200 @@ import { PARQUET_MAGIC, PARQUET_MAGIC_ENCRYPTED } from "../../lib/constants.js";
|
|
|
5
5
|
import { CompressionCodec, Type } from "../parquet-thrift/index.js";
|
|
6
6
|
import { decodeFileMetadata, getThriftEnum, fieldIndexOf } from "../utils/read-utils.js";
|
|
7
7
|
import { decodeDataPages, decodePage } from "./decoders.js";
|
|
8
|
+
/**
|
|
9
|
+
* The parquet envelope reader allows direct, unbuffered access to the individual
|
|
10
|
+
* sections of the parquet file, namely the header, footer and the row groups.
|
|
11
|
+
* This class is intended for advanced/internal users; if you just want to retrieve
|
|
12
|
+
* rows from a parquet file use the ParquetReader instead
|
|
13
|
+
*/
|
|
8
14
|
export class ParquetReader {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.file = file;
|
|
14
|
-
this.props = {
|
|
15
|
-
...ParquetReader.defaultProps,
|
|
16
|
-
...props
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
close() {
|
|
20
|
-
this.file.close();
|
|
21
|
-
}
|
|
22
|
-
async *rowIterator(props) {
|
|
23
|
-
for await (const rows of this.rowBatchIterator(props)) {
|
|
24
|
-
for (const row of rows) {
|
|
25
|
-
yield row;
|
|
26
|
-
}
|
|
15
|
+
constructor(file, props) {
|
|
16
|
+
this.metadata = null;
|
|
17
|
+
this.file = file;
|
|
18
|
+
this.props = { ...ParquetReader.defaultProps, ...props };
|
|
27
19
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
for await (const rowGroup of this.rowGroupIterator(props)) {
|
|
32
|
-
yield materializeRows(schema, rowGroup);
|
|
20
|
+
close() {
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
22
|
+
this.file.close();
|
|
33
23
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
24
|
+
// HIGH LEVEL METHODS
|
|
25
|
+
/** Yield one row at a time */
|
|
26
|
+
async *rowIterator(props) {
|
|
27
|
+
for await (const rows of this.rowBatchIterator(props)) {
|
|
28
|
+
// yield *rows
|
|
29
|
+
for (const row of rows) {
|
|
30
|
+
yield row;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
43
33
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const metadata = await this.getFileMetadata();
|
|
51
|
-
const root = metadata.schema[0];
|
|
52
|
-
const {
|
|
53
|
-
schema: schemaDefinition
|
|
54
|
-
} = decodeSchema(metadata.schema, 1, root.num_children);
|
|
55
|
-
const schema = new ParquetSchema(schemaDefinition);
|
|
56
|
-
return schema;
|
|
57
|
-
}
|
|
58
|
-
async getSchemaMetadata() {
|
|
59
|
-
const metadata = await this.getFileMetadata();
|
|
60
|
-
const md = {};
|
|
61
|
-
for (const kv of metadata.key_value_metadata) {
|
|
62
|
-
md[kv.key] = kv.value;
|
|
34
|
+
/** Yield one batch of rows at a time */
|
|
35
|
+
async *rowBatchIterator(props) {
|
|
36
|
+
const schema = await this.getSchema();
|
|
37
|
+
for await (const rowGroup of this.rowGroupIterator(props)) {
|
|
38
|
+
yield materializeRows(schema, rowGroup);
|
|
39
|
+
}
|
|
63
40
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
41
|
+
/** Iterate over the raw row groups */
|
|
42
|
+
async *rowGroupIterator(props) {
|
|
43
|
+
// Ensure strings are nested in arrays
|
|
44
|
+
const columnList = (props?.columnList || []).map((x) => Array.isArray(x) ? x : [x]);
|
|
45
|
+
const metadata = await this.getFileMetadata();
|
|
46
|
+
const schema = await this.getSchema();
|
|
47
|
+
const rowGroupCount = metadata?.row_groups.length || 0;
|
|
48
|
+
for (let rowGroupIndex = 0; rowGroupIndex < rowGroupCount; rowGroupIndex++) {
|
|
49
|
+
const rowGroup = await this.readRowGroup(schema, metadata.row_groups[rowGroupIndex], columnList);
|
|
50
|
+
yield rowGroup;
|
|
51
|
+
}
|
|
70
52
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const arrayBuffer = await this.file.read(0, PARQUET_MAGIC.length);
|
|
75
|
-
const buffer = Buffer.from(arrayBuffer);
|
|
76
|
-
const magic = buffer.toString();
|
|
77
|
-
switch (magic) {
|
|
78
|
-
case PARQUET_MAGIC:
|
|
79
|
-
break;
|
|
80
|
-
case PARQUET_MAGIC_ENCRYPTED:
|
|
81
|
-
throw new Error('Encrypted parquet file not supported');
|
|
82
|
-
default:
|
|
83
|
-
throw new Error(`Invalid parquet file (magic=${magic})`);
|
|
53
|
+
async getRowCount() {
|
|
54
|
+
const metadata = await this.getFileMetadata();
|
|
55
|
+
return Number(metadata.num_rows);
|
|
84
56
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (magic !== PARQUET_MAGIC) {
|
|
92
|
-
throw new Error(`Not a valid parquet file (magic="${magic})`);
|
|
57
|
+
async getSchema() {
|
|
58
|
+
const metadata = await this.getFileMetadata();
|
|
59
|
+
const root = metadata.schema[0];
|
|
60
|
+
const { schema: schemaDefinition } = decodeSchema(metadata.schema, 1, root.num_children);
|
|
61
|
+
const schema = new ParquetSchema(schemaDefinition);
|
|
62
|
+
return schema;
|
|
93
63
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Returns the user (key/value) metadata for this file
|
|
66
|
+
* In parquet this is not stored on the schema like it is in arrow
|
|
67
|
+
*/
|
|
68
|
+
async getSchemaMetadata() {
|
|
69
|
+
const metadata = await this.getFileMetadata();
|
|
70
|
+
const md = {};
|
|
71
|
+
for (const kv of metadata.key_value_metadata) {
|
|
72
|
+
md[kv.key] = kv.value;
|
|
73
|
+
}
|
|
74
|
+
return md;
|
|
98
75
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
async readRowGroup(schema, rowGroup, columnList) {
|
|
107
|
-
const buffer = {
|
|
108
|
-
rowCount: Number(rowGroup.num_rows),
|
|
109
|
-
columnData: {}
|
|
110
|
-
};
|
|
111
|
-
for (const colChunk of rowGroup.columns) {
|
|
112
|
-
const colMetadata = colChunk.meta_data;
|
|
113
|
-
const colKey = colMetadata === null || colMetadata === void 0 ? void 0 : colMetadata.path_in_schema;
|
|
114
|
-
if (columnList.length > 0 && fieldIndexOf(columnList, colKey) < 0) {
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
buffer.columnData[colKey.join()] = await this.readColumnChunk(schema, colChunk);
|
|
76
|
+
async getFileMetadata() {
|
|
77
|
+
if (!this.metadata) {
|
|
78
|
+
await this.readHeader();
|
|
79
|
+
this.metadata = this.readFooter();
|
|
80
|
+
}
|
|
81
|
+
return this.metadata;
|
|
118
82
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
83
|
+
// LOW LEVEL METHODS
|
|
84
|
+
/** Metadata is stored in the footer */
|
|
85
|
+
async readHeader() {
|
|
86
|
+
const arrayBuffer = await this.file.read(0, PARQUET_MAGIC.length);
|
|
87
|
+
const buffer = Buffer.from(arrayBuffer);
|
|
88
|
+
const magic = buffer.toString();
|
|
89
|
+
switch (magic) {
|
|
90
|
+
case PARQUET_MAGIC:
|
|
91
|
+
break;
|
|
92
|
+
case PARQUET_MAGIC_ENCRYPTED:
|
|
93
|
+
throw new Error('Encrypted parquet file not supported');
|
|
94
|
+
default:
|
|
95
|
+
throw new Error(`Invalid parquet file (magic=${magic})`);
|
|
96
|
+
}
|
|
125
97
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
98
|
+
/** Metadata is stored in the footer */
|
|
99
|
+
async readFooter() {
|
|
100
|
+
const trailerLen = PARQUET_MAGIC.length + 4;
|
|
101
|
+
const arrayBuffer = await this.file.read(this.file.size - trailerLen, trailerLen);
|
|
102
|
+
const trailerBuf = Buffer.from(arrayBuffer);
|
|
103
|
+
const magic = trailerBuf.slice(4).toString();
|
|
104
|
+
if (magic !== PARQUET_MAGIC) {
|
|
105
|
+
throw new Error(`Not a valid parquet file (magic="${magic})`);
|
|
106
|
+
}
|
|
107
|
+
const metadataSize = trailerBuf.readUInt32LE(0);
|
|
108
|
+
const metadataOffset = this.file.size - metadataSize - trailerLen;
|
|
109
|
+
if (metadataOffset < PARQUET_MAGIC.length) {
|
|
110
|
+
throw new Error(`Invalid metadata size ${metadataOffset}`);
|
|
111
|
+
}
|
|
112
|
+
const arrayBuffer2 = await this.file.read(metadataOffset, metadataSize);
|
|
113
|
+
const metadataBuf = Buffer.from(arrayBuffer2);
|
|
114
|
+
// let metadata = new parquet_thrift.FileMetaData();
|
|
115
|
+
// parquet_util.decodeThrift(metadata, metadataBuf);
|
|
116
|
+
const { metadata } = decodeFileMetadata(metadataBuf);
|
|
117
|
+
return metadata;
|
|
130
118
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
119
|
+
/** Data is stored in row groups (similar to Apache Arrow record batches) */
|
|
120
|
+
async readRowGroup(schema, rowGroup, columnList) {
|
|
121
|
+
const buffer = {
|
|
122
|
+
rowCount: Number(rowGroup.num_rows),
|
|
123
|
+
columnData: {}
|
|
124
|
+
};
|
|
125
|
+
for (const colChunk of rowGroup.columns) {
|
|
126
|
+
const colMetadata = colChunk.meta_data;
|
|
127
|
+
const colKey = colMetadata?.path_in_schema;
|
|
128
|
+
if (columnList.length > 0 && fieldIndexOf(columnList, colKey) < 0) {
|
|
129
|
+
continue; // eslint-disable-line no-continue
|
|
130
|
+
}
|
|
131
|
+
buffer.columnData[colKey.join()] = await this.readColumnChunk(schema, colChunk);
|
|
132
|
+
}
|
|
133
|
+
return buffer;
|
|
137
134
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Each row group contains column chunks for all the columns.
|
|
137
|
+
*/
|
|
138
|
+
async readColumnChunk(schema, colChunk) {
|
|
139
|
+
if (colChunk.file_path !== undefined && colChunk.file_path !== null) {
|
|
140
|
+
throw new Error('external references are not supported');
|
|
141
|
+
}
|
|
142
|
+
const field = schema.findField(colChunk.meta_data?.path_in_schema);
|
|
143
|
+
const type = getThriftEnum(Type, colChunk.meta_data?.type);
|
|
144
|
+
if (type !== field.primitiveType) {
|
|
145
|
+
throw new Error(`chunk type not matching schema: ${type}`);
|
|
146
|
+
}
|
|
147
|
+
const compression = getThriftEnum(CompressionCodec, colChunk.meta_data?.codec);
|
|
148
|
+
const pagesOffset = Number(colChunk.meta_data?.data_page_offset);
|
|
149
|
+
let pagesSize = Number(colChunk.meta_data?.total_compressed_size);
|
|
150
|
+
if (!colChunk.file_path) {
|
|
151
|
+
pagesSize = Math.min(this.file.size - pagesOffset, Number(colChunk.meta_data?.total_compressed_size));
|
|
152
|
+
}
|
|
153
|
+
const context = {
|
|
154
|
+
type,
|
|
155
|
+
rLevelMax: field.rLevelMax,
|
|
156
|
+
dLevelMax: field.dLevelMax,
|
|
157
|
+
compression,
|
|
158
|
+
column: field,
|
|
159
|
+
numValues: colChunk.meta_data?.num_values,
|
|
160
|
+
dictionary: [],
|
|
161
|
+
// Options - TBD is this the right place for these?
|
|
162
|
+
preserveBinary: this.props.preserveBinary
|
|
163
|
+
};
|
|
164
|
+
let dictionary;
|
|
165
|
+
const dictionaryPageOffset = colChunk?.meta_data?.dictionary_page_offset;
|
|
166
|
+
if (dictionaryPageOffset) {
|
|
167
|
+
const dictionaryOffset = Number(dictionaryPageOffset);
|
|
168
|
+
// Getting dictionary from column chunk to iterate all over indexes to get dataPage values.
|
|
169
|
+
dictionary = await this.getDictionary(dictionaryOffset, context, pagesOffset);
|
|
170
|
+
}
|
|
171
|
+
dictionary = context.dictionary?.length ? context.dictionary : dictionary;
|
|
172
|
+
const arrayBuffer = await this.file.read(pagesOffset, pagesSize);
|
|
173
|
+
const pagesBuf = Buffer.from(arrayBuffer);
|
|
174
|
+
return await decodeDataPages(pagesBuf, { ...context, dictionary });
|
|
153
175
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Getting dictionary for allows to flatten values by indices.
|
|
178
|
+
* @param dictionaryPageOffset
|
|
179
|
+
* @param context
|
|
180
|
+
* @param pagesOffset
|
|
181
|
+
* @returns
|
|
182
|
+
*/
|
|
183
|
+
async getDictionary(dictionaryPageOffset, context, pagesOffset) {
|
|
184
|
+
if (dictionaryPageOffset === 0) {
|
|
185
|
+
// dictionarySize = Math.min(this.fileSize - pagesOffset, this.defaultDictionarySize);
|
|
186
|
+
// pagesBuf = await this.read(pagesOffset, dictionarySize);
|
|
187
|
+
// In this case we are working with parquet-mr files format. Problem is described below:
|
|
188
|
+
// https://stackoverflow.com/questions/55225108/why-is-dictionary-page-offset-0-for-plain-dictionary-encoding
|
|
189
|
+
// We need to get dictionary page from column chunk if it exists.
|
|
190
|
+
// Now if we use code commented above we don't get DICTIONARY_PAGE we get DATA_PAGE instead.
|
|
191
|
+
return [];
|
|
192
|
+
}
|
|
193
|
+
const dictionarySize = Math.min(this.file.size - dictionaryPageOffset, this.props.defaultDictionarySize);
|
|
194
|
+
const arrayBuffer = await this.file.read(dictionaryPageOffset, dictionarySize);
|
|
195
|
+
const pagesBuf = Buffer.from(arrayBuffer);
|
|
196
|
+
const cursor = { buffer: pagesBuf, offset: 0, size: pagesBuf.length };
|
|
197
|
+
const decodedPage = await decodePage(cursor, context);
|
|
198
|
+
return decodedPage.dictionary;
|
|
165
199
|
}
|
|
166
|
-
const dictionarySize = Math.min(this.file.size - dictionaryPageOffset, this.props.defaultDictionarySize);
|
|
167
|
-
const arrayBuffer = await this.file.read(dictionaryPageOffset, dictionarySize);
|
|
168
|
-
const pagesBuf = Buffer.from(arrayBuffer);
|
|
169
|
-
const cursor = {
|
|
170
|
-
buffer: pagesBuf,
|
|
171
|
-
offset: 0,
|
|
172
|
-
size: pagesBuf.length
|
|
173
|
-
};
|
|
174
|
-
const decodedPage = await decodePage(cursor, context);
|
|
175
|
-
return decodedPage.dictionary;
|
|
176
|
-
}
|
|
177
200
|
}
|
|
178
201
|
ParquetReader.defaultProps = {
|
|
179
|
-
|
|
180
|
-
|
|
202
|
+
defaultDictionarySize: 1e6,
|
|
203
|
+
preserveBinary: false
|
|
181
204
|
};
|
|
182
|
-
//# sourceMappingURL=parquet-reader.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Int64 from 'node-int64';
|
|
2
|
-
import type { PageHeader } from
|
|
2
|
+
import type { PageHeader } from "../parquet-thrift.js";
|
|
3
3
|
export type ParquetCodec = 'PLAIN' | 'RLE' | 'PLAIN_DICTIONARY';
|
|
4
4
|
export type ParquetCompression = 'UNCOMPRESSED' | 'GZIP' | 'SNAPPY' | 'LZO' | 'BROTLI' | 'LZ4' | 'LZ4_RAW' | 'ZSTD';
|
|
5
5
|
export type RepetitionType = 'REQUIRED' | 'OPTIONAL' | 'REPEATED';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declare.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/schema/declare.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,EAAC,UAAU,EAAC,
|
|
1
|
+
{"version":3,"file":"declare.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/schema/declare.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
/** @
|
|
2
|
+
* Holds data for one row group (column chunks) */
|
|
1
3
|
export class ParquetRowGroup {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this.columnData = void 0;
|
|
7
|
-
this.rowCount = rowCount;
|
|
8
|
-
this.columnData = columnData;
|
|
9
|
-
}
|
|
4
|
+
constructor(rowCount = 0, columnData = {}) {
|
|
5
|
+
this.rowCount = rowCount;
|
|
6
|
+
this.columnData = columnData;
|
|
7
|
+
}
|
|
10
8
|
}
|
|
11
|
-
//# sourceMappingURL=declare.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldDefinition, ParquetRowGroup, ParquetCompression, ParquetField, ParquetRow, SchemaDefinition } from
|
|
1
|
+
import { FieldDefinition, ParquetRowGroup, ParquetCompression, ParquetField, ParquetRow, SchemaDefinition } from "./declare.js";
|
|
2
2
|
/**
|
|
3
3
|
* A parquet file schema
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/schema/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,UAAU,EAEV,gBAAgB,EACjB,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/schema/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,UAAU,EAEV,gBAAgB,EACjB,qBAAkB;AAInB;;GAEG;AACH,qBAAa,aAAa;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACrC,SAAS,EAAE,YAAY,EAAE,CAAC;IAEjC;;OAEG;gBACS,MAAM,EAAE,gBAAgB;IAMpC;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY;IAiBhD;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,EAAE;IAgBxD,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI;IAI7D,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,UAAU,EAAE;IAIxD,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAMxC,QAAQ,IAAI,eAAe;CAG5B"}
|