@gscdump/lakehouse 1.4.0 → 1.4.1
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/catalog-cache.d.mts +32 -0
- package/dist/catalog-cache.mjs +31 -0
- package/dist/{_chunks/catalog.d.mts → catalog.d.mts} +8 -66
- package/dist/{_chunks/catalog.mjs → catalog.mjs} +10 -89
- package/dist/dataset.d.mts +162 -0
- package/dist/dataset.mjs +364 -0
- package/dist/index.d.mts +5 -159
- package/dist/index.mjs +4 -360
- package/dist/maintenance.d.mts +2 -93
- package/dist/maintenance.mjs +2 -139
- package/dist/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/handler.d.mts +2 -0
- package/dist/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.bitreader.mjs +88 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.blocks.mjs +120 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.context.mjs +1805 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.contextmap.mjs +49 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.dictionary.mjs +984 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.huffman.mjs +266 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.mjs +340 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.prefix.mjs +109 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.streams.mjs +21 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.transform.mjs +190 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/compressors.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.huffman.mjs +121 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.mjs +176 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/lz4.mjs +52 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bloom.mjs +93 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs +91 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/column.mjs +186 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/datapage.mjs +113 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/delta.mjs +111 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dictionary.mjs +99 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dremel.mjs +116 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/encoding.mjs +51 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/geospatial.mjs +84 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/indexes.mjs +31 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/metadata.mjs +138 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/parquet-writer.mjs +139 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/plain.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/schema.mjs +254 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/snappy.mjs +125 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/splitstream.mjs +38 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/thrift.mjs +79 -0
- package/dist/{_chunks/libs/hyparquet-writer.d.mts → node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/types.d.mts} +2 -2
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/unconvert.mjs +247 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/variant.mjs +391 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/wkb.mjs +79 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write-rows.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs +46 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/bytewriter.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/parquet-writer.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/schema.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write-rows.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/assemble.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs +69 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/column.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/constants.mjs +80 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/convert.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/datapage.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/delta.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/encoding.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/filter.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/geoparquet.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/indexes.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/metadata.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plain.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plan.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/read.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/rowgroup.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/schema.mjs +54 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/snappy.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/thrift.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs +19 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/variant.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/wkb.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/index.d.mts +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/node.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/assemble.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/bloom.mjs +14 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/column.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/constants.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/convert.mjs +11 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/datapage.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/delta.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/encoding.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/filter.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/geoparquet.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/indexes.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/metadata.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs +4 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plain.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plan.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/read.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/rowgroup.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/schema.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/snappy.mjs +70 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/thrift.mjs +1 -0
- package/dist/{_chunks/libs/hyparquet.d.mts → node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/types.d.mts} +2 -3
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs +98 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/variant.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/wkb.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/xxhash.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/index.d.mts +9 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.metadata.mjs +53 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.read.mjs +136 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.write.mjs +148 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/file.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/loadTable.mjs +48 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/rest.mjs +159 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/create.mjs +67 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/delete.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/fetch.mjs +162 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/index.mjs +13 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/json.mjs +147 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/manifest.mjs +71 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/metadata.mjs +151 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/prune.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/deletion-vector.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/puffin.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/roaring.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/read.mjs +9 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/s3.mjs +91 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/schema.mjs +76 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sigv4.mjs +70 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergDataSource.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergQuery.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/whereFilter.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/types.d.mts +255 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/utils.mjs +26 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/commit.mjs +392 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/conversions.mjs +59 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/delete-file.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/geospatial.mjs +72 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest-list.mjs +152 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest.mjs +212 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/parquet.mjs +305 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/partition.mjs +178 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/rewrite.mjs +10 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/serde.mjs +148 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/snapshot.mjs +107 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/sort.mjs +47 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-deletion-vector.mjs +11 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-position-delete.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage.mjs +237 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stats.mjs +153 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/transform.mjs +220 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/write.mjs +247 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/file.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/rest.d.mts +76 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/create.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/fetch.d.mts +36 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/index.d.mts +13 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/manifest.d.mts +30 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/read.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/s3.d.mts +36 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/write/write.d.mts +79 -0
- package/dist/{_chunks/libs/ioredis.d.mts → node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Command.d.mts} +1 -1
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/DataHandler.d.mts +4 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Pipeline.d.mts +4 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Redis.d.mts +10 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/ScanStream.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/SubscriptionSet.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/ClusterOptions.d.mts +4 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/index.d.mts +9 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/util.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/AbstractConnector.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/ConnectorConstructor.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/SentinelConnector/SentinelIterator.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/SentinelConnector/index.d.mts +6 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/SentinelConnector/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/StandaloneConnector.d.mts +3 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/index.d.mts +13 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/redis/RedisOptions.d.mts +4 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/transaction.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/utils/Commander.d.mts +3 -0
- package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/utils/RedisCommander.d.mts +2 -0
- package/dist/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/perf.d.mts +1 -0
- package/dist/node_modules/.pnpm/readdirp@5.0.0/node_modules/readdirp/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/ast.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/backend/dataSource.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/accumulator.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/aggregates.mjs +10 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/execute.mjs +15 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/join.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/scanColumn.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/sort.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/streamingAggregate.mjs +9 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/utils.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/window.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/yield.mjs +17 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/alias.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/binary.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/date.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/evaluate.mjs +15 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/math.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/regexp.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/strings.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.mjs +9 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/expression.mjs +6 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/extractTables.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/functions.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/joins.mjs +7 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/parse.mjs +10 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/primary.mjs +8 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/state.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/tokenize.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/columns.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/plan.mjs +7 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/bbox.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/equality.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/operations.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/pointRelations.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/primitives.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/segments.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/spatial.mjs +6 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/wkt.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/types.d.mts +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/aggregates.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/executionErrors.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/functions.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/keywords.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/parseErrors.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/tables.mjs +2 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/index.d.mts +32 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/index2.d.mts +33 -0
- package/dist/{_chunks/libs/unstorage.d.mts → node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/shared/unstorage.DqlWKU2I.d.mts} +9 -13
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/shared/unstorage2.DqlWKU2I.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-app-configuration.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-cosmos.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-key-vault.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-storage-blob.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-storage-table.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/capacitor-preferences.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/cloudflare-kv-binding.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/cloudflare-kv-http.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/cloudflare-r2-binding.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/db0.d.mts +2 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/deno-kv-node.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/deno-kv.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/fs-lite.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/fs.d.mts +2 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/github.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/http.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/indexedb.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/localstorage.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/localstorage2.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/lru-cache.d.mts +2 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/mongodb.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/netlify-blobs.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/overlay.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/planetscale.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/redis.d.mts +2 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/s3.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/session-storage.d.mts +2 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/uploadthing.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/upstash.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/vercel-blob.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/vercel-kv.d.mts +1 -0
- package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/vercel-runtime-cache.d.mts +1 -0
- package/dist/orphan-sweep.d.mts +94 -0
- package/dist/orphan-sweep.mjs +141 -0
- package/dist/partition-prune.d.mts +35 -0
- package/dist/partition-prune.mjs +57 -0
- package/dist/provisioning/allocator.d.mts +44 -0
- package/dist/provisioning/allocator.mjs +24 -0
- package/dist/provisioning/index.d.mts +2 -44
- package/dist/provisioning/index.mjs +1 -23
- package/dist/schema.d.mts +73 -1
- package/dist/unsafe-raw.d.mts +6 -2
- package/dist/unsafe-raw.mjs +6 -2
- package/dist/vendor/hysnappy-purejs.mjs +10 -0
- package/package.json +1 -1
- package/dist/_chunks/libs/hyparquet-compressors.mjs +0 -2785
- package/dist/_chunks/libs/hyparquet-writer.mjs +0 -2516
- package/dist/_chunks/libs/hyparquet.mjs +0 -474
- package/dist/_chunks/libs/icebird.d.mts +0 -500
- package/dist/_chunks/libs/icebird.mjs +0 -3854
- package/dist/_chunks/schema.d.mts +0 -74
- /package/dist/{_chunks/libs/chokidar.d.mts → node_modules/.pnpm/db0@0.3.4_drizzle-orm@1.0.0-rc.3_@cloudflare_workers-types@5.20260722.1_valibot@1.4.2_typescript@7.0.2__zod@4.4.3_/node_modules/db0/dist/index.d.mts} +0 -0
- /package/dist/{_chunks/libs/db0.d.mts → node_modules/.pnpm/denque@2.1.0/node_modules/denque/index.d.mts} +0 -0
- /package/dist/{_chunks/libs/fzstd.mjs → node_modules/.pnpm/fzstd@0.1.1/node_modules/fzstd/esm/index.mjs} +0 -0
- /package/dist/{_chunks/libs/denque.d.mts → node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/wkb.d.mts} +0 -0
- /package/dist/{_chunks/libs/lru-cache.d.mts → node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/types.d.mts} +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { fetchAvroRecords } from "../fetch.mjs";
|
|
2
|
+
import { transformResultType } from "./transform.mjs";
|
|
3
|
+
import { writeManifestList } from "./manifest-list.mjs";
|
|
4
|
+
import { computeFieldSummary } from "./stats.mjs";
|
|
5
|
+
function currentSnapshot(metadata) {
|
|
6
|
+
const id = metadata["current-snapshot-id"];
|
|
7
|
+
if (id === void 0) return void 0;
|
|
8
|
+
return metadata.snapshots?.find((s) => s["snapshot-id"] === id);
|
|
9
|
+
}
|
|
10
|
+
async function loadPriorManifests(metadata, resolver) {
|
|
11
|
+
const snap = currentSnapshot(metadata);
|
|
12
|
+
if (!snap?.["manifest-list"]) return [];
|
|
13
|
+
return await fetchAvroRecords(snap["manifest-list"], resolver);
|
|
14
|
+
}
|
|
15
|
+
async function buildSnapshotUpdate({ tableUrl, metadata, resolver, snapshotId, sequenceNumber, manifestUuid, timestampMs, formatVersion, newManifests, summary, writtenFiles, priorManifests, skipPriorManifestPaths }) {
|
|
16
|
+
const writerFn = resolver.writer;
|
|
17
|
+
if (!writerFn) throw new Error("resolver.writer is required");
|
|
18
|
+
const rowLineage = formatVersion >= 3;
|
|
19
|
+
const firstRowId = rowLineage ? BigInt(metadata["next-row-id"] ?? 0) : 0n;
|
|
20
|
+
priorManifests ??= await loadPriorManifests(metadata, resolver);
|
|
21
|
+
if (skipPriorManifestPaths?.size) priorManifests = priorManifests.filter((manifest) => !skipPriorManifestPaths.has(manifest.manifest_path));
|
|
22
|
+
const allManifests = [...priorManifests, ...newManifests];
|
|
23
|
+
const addedRows = rowLineage ? assignFirstRowIds(allManifests, firstRowId) : 0n;
|
|
24
|
+
const manifestListPath = `${tableUrl}/metadata/snap-${snapshotId}-1-${manifestUuid}.avro`;
|
|
25
|
+
await writeManifestList({
|
|
26
|
+
writer: writerFn(manifestListPath),
|
|
27
|
+
snapshotId,
|
|
28
|
+
sequenceNumber,
|
|
29
|
+
manifests: allManifests,
|
|
30
|
+
formatVersion
|
|
31
|
+
});
|
|
32
|
+
const snapshot = {
|
|
33
|
+
"snapshot-id": Number(snapshotId),
|
|
34
|
+
"sequence-number": Number(sequenceNumber),
|
|
35
|
+
"timestamp-ms": timestampMs,
|
|
36
|
+
"manifest-list": manifestListPath,
|
|
37
|
+
summary,
|
|
38
|
+
"schema-id": metadata["current-schema-id"]
|
|
39
|
+
};
|
|
40
|
+
if (rowLineage) {
|
|
41
|
+
snapshot["first-row-id"] = toMetadataLong(firstRowId);
|
|
42
|
+
snapshot["added-rows"] = toMetadataLong(addedRows);
|
|
43
|
+
}
|
|
44
|
+
const rawCurrentSnapshotId = metadata["current-snapshot-id"];
|
|
45
|
+
const currentSnapshotId = rawCurrentSnapshotId === void 0 || rawCurrentSnapshotId === null || rawCurrentSnapshotId === -1 ? null : rawCurrentSnapshotId;
|
|
46
|
+
if (currentSnapshotId !== null) snapshot["parent-snapshot-id"] = currentSnapshotId;
|
|
47
|
+
const requirements = [{
|
|
48
|
+
type: "assert-table-uuid",
|
|
49
|
+
uuid: metadata["table-uuid"]
|
|
50
|
+
}, {
|
|
51
|
+
type: "assert-ref-snapshot-id",
|
|
52
|
+
ref: "main",
|
|
53
|
+
"snapshot-id": currentSnapshotId
|
|
54
|
+
}];
|
|
55
|
+
if (rowLineage) requirements.push({
|
|
56
|
+
type: "assert-next-row-id",
|
|
57
|
+
"next-row-id": toMetadataLong(metadata["next-row-id"] ?? 0)
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
snapshot,
|
|
61
|
+
requirements,
|
|
62
|
+
updates: [{
|
|
63
|
+
action: "add-snapshot",
|
|
64
|
+
snapshot
|
|
65
|
+
}, {
|
|
66
|
+
action: "set-snapshot-ref",
|
|
67
|
+
"ref-name": "main",
|
|
68
|
+
type: "branch",
|
|
69
|
+
"snapshot-id": snapshot["snapshot-id"]
|
|
70
|
+
}],
|
|
71
|
+
writtenFiles: [...writtenFiles, manifestListPath]
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function buildPartitionSummaries(partitions, schema, partitionSpec) {
|
|
75
|
+
return partitionSpec.fields.map((pf) => {
|
|
76
|
+
const sourceField = schema.fields.find((f) => f.id === pf["source-id"]);
|
|
77
|
+
if (!sourceField) throw new Error(`partition source field id ${pf["source-id"]} not found`);
|
|
78
|
+
const resultType = transformResultType(pf.transform, sourceField.type);
|
|
79
|
+
return computeFieldSummary(partitions.map((p) => p[pf.name]), resultType);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function assignFirstRowIds(manifests, firstRowId) {
|
|
83
|
+
let nextFirstRowId = firstRowId;
|
|
84
|
+
let assignedRows = 0n;
|
|
85
|
+
for (const manifest of manifests) {
|
|
86
|
+
if (manifest.content !== 0) {
|
|
87
|
+
manifest.first_row_id = void 0;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
const rowIdRange = BigInt(manifest.added_rows_count ?? 0) + BigInt(manifest.existing_rows_count ?? 0);
|
|
91
|
+
if (manifest.first_row_id == null) {
|
|
92
|
+
manifest.first_row_id = nextFirstRowId;
|
|
93
|
+
nextFirstRowId += rowIdRange;
|
|
94
|
+
assignedRows += rowIdRange;
|
|
95
|
+
} else {
|
|
96
|
+
const manifestEnd = BigInt(manifest.first_row_id) + rowIdRange;
|
|
97
|
+
if (manifestEnd > nextFirstRowId) nextFirstRowId = manifestEnd;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return assignedRows;
|
|
101
|
+
}
|
|
102
|
+
function toMetadataLong(value) {
|
|
103
|
+
const out = Number(value);
|
|
104
|
+
if (!Number.isSafeInteger(out)) throw new Error(`metadata long exceeds JavaScript safe integer range: ${value}`);
|
|
105
|
+
return out;
|
|
106
|
+
}
|
|
107
|
+
export { buildPartitionSummaries, buildSnapshotUpdate, currentSnapshot, loadPriorManifests };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { applyTransform, transformResultType } from "./transform.mjs";
|
|
2
|
+
import { compare } from "./serde.mjs";
|
|
3
|
+
function buildSortComparator(sortOrder, schema) {
|
|
4
|
+
if (!sortOrder?.fields?.length) return void 0;
|
|
5
|
+
const fields = sortOrder.fields.map((sf) => {
|
|
6
|
+
const sourceId = sf["source-id"] ?? sf["source-ids"]?.[0];
|
|
7
|
+
const sourceField = schema.fields.find((f) => f.id === sourceId);
|
|
8
|
+
if (!sourceField) throw new Error(`sort source field id ${sourceId} not found in schema`);
|
|
9
|
+
return {
|
|
10
|
+
name: sourceField.name,
|
|
11
|
+
transform: sf.transform,
|
|
12
|
+
sourceType: sourceField.type,
|
|
13
|
+
resultType: transformResultType(sf.transform, sourceField.type),
|
|
14
|
+
desc: sf.direction === "desc",
|
|
15
|
+
nullsFirst: sf["null-order"] === "nulls-first"
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
return (a, b) => {
|
|
19
|
+
for (const f of fields) {
|
|
20
|
+
const c = compareKeys(sortKey(a[f.name], f.transform, f.sourceType), sortKey(b[f.name], f.transform, f.sourceType), f.resultType, f.desc, f.nullsFirst);
|
|
21
|
+
if (c !== 0) return c;
|
|
22
|
+
}
|
|
23
|
+
return 0;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function sortKey(value, transform, sourceType) {
|
|
27
|
+
if (value === null || value === void 0) return null;
|
|
28
|
+
if (transform === "identity") return value;
|
|
29
|
+
return applyTransform(transform, value, sourceType);
|
|
30
|
+
}
|
|
31
|
+
function compareKeys(ka, kb, resultType, desc, nullsFirst) {
|
|
32
|
+
const aNull = ka === null || ka === void 0;
|
|
33
|
+
const bNull = kb === null || kb === void 0;
|
|
34
|
+
if (aNull && bNull) return 0;
|
|
35
|
+
if (aNull) return nullsFirst ? -1 : 1;
|
|
36
|
+
if (bNull) return nullsFirst ? 1 : -1;
|
|
37
|
+
const aNaN = typeof ka === "number" && Number.isNaN(ka);
|
|
38
|
+
const bNaN = typeof kb === "number" && Number.isNaN(kb);
|
|
39
|
+
if (aNaN || bNaN) {
|
|
40
|
+
if (aNaN && bNaN) return 0;
|
|
41
|
+
const c = aNaN ? 1 : -1;
|
|
42
|
+
return desc ? -c : c;
|
|
43
|
+
}
|
|
44
|
+
const c = compare(ka, kb, resultType);
|
|
45
|
+
return desc ? -c : c;
|
|
46
|
+
}
|
|
47
|
+
export { buildSortComparator };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../puffin/deletion-vector.mjs";
|
|
2
|
+
import "../puffin/puffin.mjs";
|
|
3
|
+
import "../utils.mjs";
|
|
4
|
+
import "../fetch.mjs";
|
|
5
|
+
import "../schema.mjs";
|
|
6
|
+
import "../delete.mjs";
|
|
7
|
+
import "./manifest.mjs";
|
|
8
|
+
import "./snapshot.mjs";
|
|
9
|
+
import "./stage.mjs";
|
|
10
|
+
import "./stage-position-delete.mjs";
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { uuid4 } from "../utils.mjs";
|
|
2
|
+
import { validateSchemaForVersion } from "../schema.mjs";
|
|
3
|
+
import { groupByPartition } from "./partition.mjs";
|
|
4
|
+
import "./commit.mjs";
|
|
5
|
+
import { writeDataManifest } from "./manifest.mjs";
|
|
6
|
+
import { computeColumnStats } from "./stats.mjs";
|
|
7
|
+
import { buildPartitionSummaries, buildSnapshotUpdate, currentSnapshot } from "./snapshot.mjs";
|
|
8
|
+
import { writeParquet } from "./parquet.mjs";
|
|
9
|
+
import { buildSortComparator } from "./sort.mjs";
|
|
10
|
+
async function prepareAppend({ tableUrl, metadata, records, resolver, sortOrderId, snapshotId }) {
|
|
11
|
+
if (!tableUrl) throw new Error("tableUrl is required");
|
|
12
|
+
if (!resolver?.writer) throw new Error("resolver.writer is required");
|
|
13
|
+
const writerFn = resolver.writer;
|
|
14
|
+
if (metadata["format-version"] !== 2 && metadata["format-version"] !== 3) throw new Error(`unsupported format-version: ${metadata["format-version"]}`);
|
|
15
|
+
const formatVersion = metadata["format-version"];
|
|
16
|
+
const partitionSpec = metadata["partition-specs"].find((s) => s["spec-id"] === metadata["default-spec-id"]);
|
|
17
|
+
if (!partitionSpec) throw new Error("default partition spec not found in metadata");
|
|
18
|
+
const schema = metadata.schemas.find((s) => s["schema-id"] === metadata["current-schema-id"]);
|
|
19
|
+
if (!schema) throw new Error("current schema not found in metadata");
|
|
20
|
+
validateSchemaForVersion(schema, formatVersion);
|
|
21
|
+
const appendSnapshotId = snapshotId ?? newSnapshotId(metadata);
|
|
22
|
+
const manifestUuid = uuid4();
|
|
23
|
+
checkWriteFormat(metadata.properties?.["write.format.default"]);
|
|
24
|
+
const codec = resolveParquetCodec(metadata.properties?.["write.parquet.compression-codec"]);
|
|
25
|
+
const orderId = sortOrderId ?? metadata["default-sort-order-id"] ?? 0;
|
|
26
|
+
const sortOrder = (metadata["sort-orders"] ?? []).find((o) => o["order-id"] === orderId);
|
|
27
|
+
if (sortOrderId !== void 0 && !sortOrder) throw new Error(`sort order ${sortOrderId} not found in metadata`);
|
|
28
|
+
const comparator = buildSortComparator(sortOrder, schema);
|
|
29
|
+
const appliedSortOrderId = comparator ? orderId : 0;
|
|
30
|
+
const groups = partitionSpec.fields.length ? groupByPartition(records, schema, partitionSpec) : [{
|
|
31
|
+
partition: {},
|
|
32
|
+
records
|
|
33
|
+
}];
|
|
34
|
+
const writtenDataFiles = await Promise.all(groups.map(async (group) => {
|
|
35
|
+
const sortedRecords = comparator ? [...group.records].sort(comparator) : group.records;
|
|
36
|
+
const dataPath = `${tableUrl}/data/${uuid4()}.parquet`;
|
|
37
|
+
const dataWriter = writerFn(dataPath);
|
|
38
|
+
await writeParquet({
|
|
39
|
+
writer: dataWriter,
|
|
40
|
+
schema,
|
|
41
|
+
records: sortedRecords,
|
|
42
|
+
codec
|
|
43
|
+
});
|
|
44
|
+
const stats = computeColumnStats(sortedRecords, schema);
|
|
45
|
+
return {
|
|
46
|
+
partition: group.partition,
|
|
47
|
+
records: sortedRecords,
|
|
48
|
+
dataFile: {
|
|
49
|
+
content: 0,
|
|
50
|
+
file_path: dataPath,
|
|
51
|
+
file_format: "parquet",
|
|
52
|
+
partition: group.partition,
|
|
53
|
+
record_count: BigInt(sortedRecords.length),
|
|
54
|
+
file_size_in_bytes: BigInt(dataWriter.offset),
|
|
55
|
+
value_counts: stats.value_counts,
|
|
56
|
+
null_value_counts: stats.null_value_counts,
|
|
57
|
+
nan_value_counts: stats.nan_value_counts,
|
|
58
|
+
lower_bounds: stats.lower_bounds,
|
|
59
|
+
upper_bounds: stats.upper_bounds,
|
|
60
|
+
sort_order_id: appliedSortOrderId
|
|
61
|
+
},
|
|
62
|
+
path: dataPath
|
|
63
|
+
};
|
|
64
|
+
}));
|
|
65
|
+
const manifestPath = `${tableUrl}/metadata/${manifestUuid}-m0.avro`;
|
|
66
|
+
const manifestWriter = writerFn(manifestPath);
|
|
67
|
+
await writeDataManifest({
|
|
68
|
+
writer: manifestWriter,
|
|
69
|
+
schema,
|
|
70
|
+
partitionSpec,
|
|
71
|
+
snapshotId: appendSnapshotId,
|
|
72
|
+
dataFiles: writtenDataFiles.map((f) => f.dataFile),
|
|
73
|
+
formatVersion
|
|
74
|
+
});
|
|
75
|
+
const manifestLength = BigInt(manifestWriter.offset);
|
|
76
|
+
const addedRowCount = writtenDataFiles.reduce((sum, f) => sum + BigInt(f.records.length), 0n);
|
|
77
|
+
const addedFilesSize = writtenDataFiles.reduce((sum, f) => sum + f.dataFile.file_size_in_bytes, 0n);
|
|
78
|
+
const partitions = buildPartitionSummaries(writtenDataFiles.map((f) => f.dataFile.partition), schema, partitionSpec);
|
|
79
|
+
return {
|
|
80
|
+
snapshotId: appendSnapshotId,
|
|
81
|
+
manifestUuid,
|
|
82
|
+
formatVersion,
|
|
83
|
+
manifestPath,
|
|
84
|
+
manifestLength,
|
|
85
|
+
partitionSpecId: partitionSpec["spec-id"],
|
|
86
|
+
partitions,
|
|
87
|
+
addedDataFilesCount: writtenDataFiles.length,
|
|
88
|
+
addedRowCount,
|
|
89
|
+
addedFilesSize,
|
|
90
|
+
recordsCount: records.length,
|
|
91
|
+
writtenFiles: [...writtenDataFiles.map((f) => f.path), manifestPath]
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
async function stageSnapshotForAppend({ tableUrl, metadata, prepared, resolver, snapshotProperties }) {
|
|
95
|
+
if (!tableUrl) throw new Error("tableUrl is required");
|
|
96
|
+
if (!resolver?.writer) throw new Error("resolver.writer is required");
|
|
97
|
+
const sequenceNumber = BigInt(metadata["last-sequence-number"] ?? 0) + 1n;
|
|
98
|
+
const timestampMs = Date.now();
|
|
99
|
+
const newManifest = {
|
|
100
|
+
manifest_path: prepared.manifestPath,
|
|
101
|
+
manifest_length: prepared.manifestLength,
|
|
102
|
+
partition_spec_id: prepared.partitionSpecId,
|
|
103
|
+
content: 0,
|
|
104
|
+
sequence_number: sequenceNumber,
|
|
105
|
+
min_sequence_number: sequenceNumber,
|
|
106
|
+
added_snapshot_id: prepared.snapshotId,
|
|
107
|
+
added_files_count: prepared.addedDataFilesCount,
|
|
108
|
+
existing_files_count: 0,
|
|
109
|
+
deleted_files_count: 0,
|
|
110
|
+
added_rows_count: prepared.addedRowCount,
|
|
111
|
+
existing_rows_count: 0n,
|
|
112
|
+
deleted_rows_count: 0n,
|
|
113
|
+
partitions: prepared.partitions
|
|
114
|
+
};
|
|
115
|
+
const prevSummary = currentSnapshot(metadata)?.summary;
|
|
116
|
+
const prevTotals = {
|
|
117
|
+
records: BigInt(prevSummary?.["total-records"] ?? "0"),
|
|
118
|
+
size: BigInt(prevSummary?.["total-files-size"] ?? "0"),
|
|
119
|
+
files: BigInt(prevSummary?.["total-data-files"] ?? "0")
|
|
120
|
+
};
|
|
121
|
+
const summary = {
|
|
122
|
+
operation: "append",
|
|
123
|
+
"added-data-files": String(prepared.addedDataFilesCount),
|
|
124
|
+
"added-records": String(prepared.recordsCount),
|
|
125
|
+
"added-files-size": String(prepared.addedFilesSize),
|
|
126
|
+
"changed-partition-count": String(prepared.addedDataFilesCount),
|
|
127
|
+
"total-records": String(prevTotals.records + BigInt(prepared.recordsCount)),
|
|
128
|
+
"total-files-size": String(prevTotals.size + prepared.addedFilesSize),
|
|
129
|
+
"total-data-files": String(prevTotals.files + BigInt(prepared.addedDataFilesCount)),
|
|
130
|
+
"total-delete-files": "0",
|
|
131
|
+
"total-position-deletes": "0",
|
|
132
|
+
"total-equality-deletes": "0",
|
|
133
|
+
...snapshotProperties ?? {}
|
|
134
|
+
};
|
|
135
|
+
return await buildSnapshotUpdate({
|
|
136
|
+
tableUrl,
|
|
137
|
+
metadata,
|
|
138
|
+
resolver,
|
|
139
|
+
snapshotId: prepared.snapshotId,
|
|
140
|
+
sequenceNumber,
|
|
141
|
+
manifestUuid: prepared.manifestUuid,
|
|
142
|
+
timestampMs,
|
|
143
|
+
formatVersion: prepared.formatVersion,
|
|
144
|
+
newManifests: [newManifest],
|
|
145
|
+
summary,
|
|
146
|
+
writtenFiles: []
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
async function stageSnapshotForAppendBatches({ tableUrl, metadata, prepared, resolver, snapshotProperties }) {
|
|
150
|
+
if (!tableUrl) throw new Error("tableUrl is required");
|
|
151
|
+
if (!resolver?.writer) throw new Error("resolver.writer is required");
|
|
152
|
+
if (prepared.length === 0) throw new Error("prepared batches must not be empty");
|
|
153
|
+
const first = prepared[0];
|
|
154
|
+
for (const batch of prepared) {
|
|
155
|
+
if (batch.snapshotId !== first.snapshotId) throw new Error("prepared batches must share one snapshot id");
|
|
156
|
+
if (batch.formatVersion !== first.formatVersion) throw new Error("prepared batches must share one format version");
|
|
157
|
+
}
|
|
158
|
+
const sequenceNumber = BigInt(metadata["last-sequence-number"] ?? 0) + 1n;
|
|
159
|
+
const timestampMs = Date.now();
|
|
160
|
+
const newManifests = prepared.map((batch) => ({
|
|
161
|
+
manifest_path: batch.manifestPath,
|
|
162
|
+
manifest_length: batch.manifestLength,
|
|
163
|
+
partition_spec_id: batch.partitionSpecId,
|
|
164
|
+
content: 0,
|
|
165
|
+
sequence_number: sequenceNumber,
|
|
166
|
+
min_sequence_number: sequenceNumber,
|
|
167
|
+
added_snapshot_id: first.snapshotId,
|
|
168
|
+
added_files_count: batch.addedDataFilesCount,
|
|
169
|
+
existing_files_count: 0,
|
|
170
|
+
deleted_files_count: 0,
|
|
171
|
+
added_rows_count: batch.addedRowCount,
|
|
172
|
+
existing_rows_count: 0n,
|
|
173
|
+
deleted_rows_count: 0n,
|
|
174
|
+
partitions: batch.partitions
|
|
175
|
+
}));
|
|
176
|
+
const addedDataFilesCount = prepared.reduce((sum, batch) => sum + batch.addedDataFilesCount, 0);
|
|
177
|
+
const recordsCount = prepared.reduce((sum, batch) => sum + batch.recordsCount, 0);
|
|
178
|
+
const addedFilesSize = prepared.reduce((sum, batch) => sum + batch.addedFilesSize, 0n);
|
|
179
|
+
const prevSummary = currentSnapshot(metadata)?.summary;
|
|
180
|
+
const prevTotals = {
|
|
181
|
+
records: BigInt(prevSummary?.["total-records"] ?? "0"),
|
|
182
|
+
size: BigInt(prevSummary?.["total-files-size"] ?? "0"),
|
|
183
|
+
files: BigInt(prevSummary?.["total-data-files"] ?? "0")
|
|
184
|
+
};
|
|
185
|
+
const summary = {
|
|
186
|
+
operation: "append",
|
|
187
|
+
"added-data-files": String(addedDataFilesCount),
|
|
188
|
+
"added-records": String(recordsCount),
|
|
189
|
+
"added-files-size": String(addedFilesSize),
|
|
190
|
+
"changed-partition-count": String(addedDataFilesCount),
|
|
191
|
+
"total-records": String(prevTotals.records + BigInt(recordsCount)),
|
|
192
|
+
"total-files-size": String(prevTotals.size + addedFilesSize),
|
|
193
|
+
"total-data-files": String(prevTotals.files + BigInt(addedDataFilesCount)),
|
|
194
|
+
"total-delete-files": "0",
|
|
195
|
+
"total-position-deletes": "0",
|
|
196
|
+
"total-equality-deletes": "0",
|
|
197
|
+
...snapshotProperties ?? {}
|
|
198
|
+
};
|
|
199
|
+
return await buildSnapshotUpdate({
|
|
200
|
+
tableUrl,
|
|
201
|
+
metadata,
|
|
202
|
+
resolver,
|
|
203
|
+
snapshotId: first.snapshotId,
|
|
204
|
+
sequenceNumber,
|
|
205
|
+
manifestUuid: first.manifestUuid,
|
|
206
|
+
timestampMs,
|
|
207
|
+
formatVersion: first.formatVersion,
|
|
208
|
+
newManifests,
|
|
209
|
+
summary,
|
|
210
|
+
writtenFiles: []
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function checkWriteFormat(value) {
|
|
214
|
+
if (value === void 0) return;
|
|
215
|
+
if (value.toLowerCase() !== "parquet") throw new Error(`unsupported write.format.default: ${value}`);
|
|
216
|
+
}
|
|
217
|
+
function resolveParquetCodec(value) {
|
|
218
|
+
if (value === void 0) return void 0;
|
|
219
|
+
switch (value.toLowerCase()) {
|
|
220
|
+
case "snappy": return "SNAPPY";
|
|
221
|
+
case "none":
|
|
222
|
+
case "uncompressed": return "UNCOMPRESSED";
|
|
223
|
+
default: throw new Error(`unsupported write.parquet.compression-codec: ${value}`);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function newSnapshotId(metadata) {
|
|
227
|
+
const used = new Set((metadata?.snapshots ?? []).map((s) => BigInt(s["snapshot-id"])));
|
|
228
|
+
const arr = /* @__PURE__ */ new BigInt64Array(1);
|
|
229
|
+
for (let attempt = 0; attempt < 32; attempt++) {
|
|
230
|
+
globalThis.crypto.getRandomValues(arr);
|
|
231
|
+
const masked = arr[0] & 9007199254740991n;
|
|
232
|
+
const id = masked === 0n ? 1n : masked;
|
|
233
|
+
if (!used.has(id)) return id;
|
|
234
|
+
}
|
|
235
|
+
throw new Error("newSnapshotId: failed to find an unused id after 32 attempts");
|
|
236
|
+
}
|
|
237
|
+
export { checkWriteFormat, newSnapshotId, prepareAppend, resolveParquetCodec, stageSnapshotForAppend, stageSnapshotForAppendBatches };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { typeName } from "../schema.mjs";
|
|
2
|
+
import { computeGeoBounds, isGeoType } from "./geospatial.mjs";
|
|
3
|
+
import { compare, serializeValue } from "./serde.mjs";
|
|
4
|
+
const TRUNCATE_LIMIT = 16;
|
|
5
|
+
function computeColumnStats(records, schema) {
|
|
6
|
+
const value_counts = {};
|
|
7
|
+
const null_value_counts = {};
|
|
8
|
+
const nan_value_counts = {};
|
|
9
|
+
const lower_bounds = {};
|
|
10
|
+
const upper_bounds = {};
|
|
11
|
+
for (const field of schema.fields) {
|
|
12
|
+
const type = typeName(field.type);
|
|
13
|
+
if (type === "unknown") continue;
|
|
14
|
+
if (type === "list" || type === "map" || type === "struct") continue;
|
|
15
|
+
if (isGeoType(type)) {
|
|
16
|
+
const { value_count, null_count, lower, upper } = computeGeoBounds(records, field);
|
|
17
|
+
value_counts[field.id] = value_count;
|
|
18
|
+
null_value_counts[field.id] = null_count;
|
|
19
|
+
if (lower) lower_bounds[field.id] = lower;
|
|
20
|
+
if (upper) upper_bounds[field.id] = upper;
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
let nulls = 0n;
|
|
24
|
+
let nans = 0n;
|
|
25
|
+
let min;
|
|
26
|
+
let max;
|
|
27
|
+
const isFloat = type === "float" || type === "double";
|
|
28
|
+
const trackBounds = hasComparableBounds(field.type);
|
|
29
|
+
const writeDefault = field["write-default"];
|
|
30
|
+
for (const record of records) {
|
|
31
|
+
let v = record[field.name];
|
|
32
|
+
if (v === void 0 && writeDefault !== void 0) v = writeDefault;
|
|
33
|
+
if (v === null || v === void 0) {
|
|
34
|
+
nulls++;
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (isFloat && Number.isNaN(v)) {
|
|
38
|
+
nans++;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (trackBounds) {
|
|
42
|
+
if (min === void 0 || compare(v, min, field.type) < 0) min = v;
|
|
43
|
+
if (max === void 0 || compare(v, max, field.type) > 0) max = v;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
value_counts[field.id] = BigInt(records.length);
|
|
47
|
+
null_value_counts[field.id] = nulls;
|
|
48
|
+
if (isFloat) nan_value_counts[field.id] = nans;
|
|
49
|
+
if (min !== void 0) {
|
|
50
|
+
const lo = serializeValue(truncateLower(min, field.type), field.type);
|
|
51
|
+
if (lo) lower_bounds[field.id] = lo;
|
|
52
|
+
}
|
|
53
|
+
if (max !== void 0) {
|
|
54
|
+
const truncated = truncateUpper(max, field.type);
|
|
55
|
+
if (truncated !== void 0) {
|
|
56
|
+
const hi = serializeValue(truncated, field.type);
|
|
57
|
+
if (hi) upper_bounds[field.id] = hi;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
value_counts,
|
|
63
|
+
null_value_counts,
|
|
64
|
+
nan_value_counts,
|
|
65
|
+
lower_bounds,
|
|
66
|
+
upper_bounds
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function hasComparableBounds(type) {
|
|
70
|
+
const name = typeName(type);
|
|
71
|
+
if (isGeoType(name)) return false;
|
|
72
|
+
return name !== "unknown" && name !== "variant";
|
|
73
|
+
}
|
|
74
|
+
function computeFieldSummary(values, type) {
|
|
75
|
+
const name = typeName(type);
|
|
76
|
+
const isFloat = name === "float" || name === "double";
|
|
77
|
+
const trackBounds = hasComparableBounds(type);
|
|
78
|
+
let containsNull = false;
|
|
79
|
+
let containsNan = false;
|
|
80
|
+
let min;
|
|
81
|
+
let max;
|
|
82
|
+
for (const v of values) {
|
|
83
|
+
if (v === null || v === void 0) {
|
|
84
|
+
containsNull = true;
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (isFloat && Number.isNaN(v)) {
|
|
88
|
+
containsNan = true;
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (trackBounds) {
|
|
92
|
+
if (min === void 0 || compare(v, min, type) < 0) min = v;
|
|
93
|
+
if (max === void 0 || compare(v, max, type) > 0) max = v;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const summary = { contains_null: containsNull };
|
|
97
|
+
if (isFloat) summary.contains_nan = containsNan;
|
|
98
|
+
if (min !== void 0) {
|
|
99
|
+
const lo = serializeValue(truncateLower(min, type), type);
|
|
100
|
+
if (lo) summary.lower_bound = lo;
|
|
101
|
+
}
|
|
102
|
+
if (max !== void 0) {
|
|
103
|
+
const truncated = truncateUpper(max, type);
|
|
104
|
+
if (truncated !== void 0) {
|
|
105
|
+
const hi = serializeValue(truncated, type);
|
|
106
|
+
if (hi) summary.upper_bound = hi;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return summary;
|
|
110
|
+
}
|
|
111
|
+
function truncateLower(value, type) {
|
|
112
|
+
const name = typeName(type);
|
|
113
|
+
if (name === "string" && typeof value === "string") {
|
|
114
|
+
const cps = Array.from(value);
|
|
115
|
+
if (cps.length <= TRUNCATE_LIMIT) return value;
|
|
116
|
+
return cps.slice(0, TRUNCATE_LIMIT).join("");
|
|
117
|
+
}
|
|
118
|
+
if ((name === "binary" || name.startsWith("fixed[")) && value instanceof Uint8Array) {
|
|
119
|
+
if (value.length <= TRUNCATE_LIMIT) return value;
|
|
120
|
+
return value.slice(0, TRUNCATE_LIMIT);
|
|
121
|
+
}
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
function truncateUpper(value, type) {
|
|
125
|
+
const name = typeName(type);
|
|
126
|
+
if (name === "string" && typeof value === "string") {
|
|
127
|
+
const cps = Array.from(value);
|
|
128
|
+
if (cps.length <= TRUNCATE_LIMIT) return value;
|
|
129
|
+
const prefix = cps.slice(0, TRUNCATE_LIMIT);
|
|
130
|
+
while (prefix.length > 0) {
|
|
131
|
+
const cp = prefix[prefix.length - 1].codePointAt(0);
|
|
132
|
+
const next = cp + 1 === 55296 ? 57344 : cp + 1;
|
|
133
|
+
if (next <= 1114111) {
|
|
134
|
+
prefix[prefix.length - 1] = String.fromCodePoint(next);
|
|
135
|
+
return prefix.join("");
|
|
136
|
+
}
|
|
137
|
+
prefix.pop();
|
|
138
|
+
}
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if ((name === "binary" || name.startsWith("fixed[")) && value instanceof Uint8Array) {
|
|
142
|
+
if (value.length <= TRUNCATE_LIMIT) return value;
|
|
143
|
+
const prefix = value.slice(0, TRUNCATE_LIMIT);
|
|
144
|
+
for (let i = prefix.length - 1; i >= 0; i--) if (prefix[i] < 255) {
|
|
145
|
+
const out = prefix.slice(0, i + 1);
|
|
146
|
+
out[i]++;
|
|
147
|
+
return out;
|
|
148
|
+
}
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
export { computeColumnStats, computeFieldSummary };
|