@gscdump/lakehouse 1.3.2 → 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,305 @@
|
|
|
1
|
+
import { parquetWrite } from "../../../../../hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs";
|
|
2
|
+
import "../../../../../hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs";
|
|
3
|
+
import { sanitize } from "../utils.mjs";
|
|
4
|
+
import { typeName } from "../schema.mjs";
|
|
5
|
+
import { decimalRequiredBytes, parseDecimalType } from "./conversions.mjs";
|
|
6
|
+
function writeParquet({ writer, schema, records, codec }) {
|
|
7
|
+
const columnData = [];
|
|
8
|
+
const parquetFields = [];
|
|
9
|
+
let rootChildren = 0;
|
|
10
|
+
for (const field of schema.fields) {
|
|
11
|
+
const name = sanitize(field.name);
|
|
12
|
+
const fieldElements = icebergTypeToParquetFields(name, field.type, field.required, field.id);
|
|
13
|
+
if (!fieldElements.length) continue;
|
|
14
|
+
columnData.push({
|
|
15
|
+
name,
|
|
16
|
+
data: extractColumn(records, field)
|
|
17
|
+
});
|
|
18
|
+
parquetFields.push(...fieldElements);
|
|
19
|
+
rootChildren++;
|
|
20
|
+
}
|
|
21
|
+
return parquetWrite({
|
|
22
|
+
writer,
|
|
23
|
+
columnData,
|
|
24
|
+
schema: [{
|
|
25
|
+
name: "root",
|
|
26
|
+
num_children: rootChildren
|
|
27
|
+
}, ...parquetFields],
|
|
28
|
+
kvMetadata: [{
|
|
29
|
+
key: "iceberg.schema",
|
|
30
|
+
value: JSON.stringify(schema)
|
|
31
|
+
}],
|
|
32
|
+
codec
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function extractColumn(records, field) {
|
|
36
|
+
const out = new Array(records.length);
|
|
37
|
+
for (let i = 0; i < records.length; i++) out[i] = materializeFieldValue(records[i][field.name], field);
|
|
38
|
+
return out;
|
|
39
|
+
}
|
|
40
|
+
function materializeFieldValue(value, field) {
|
|
41
|
+
const writeDefault = field["write-default"];
|
|
42
|
+
return materializeNestedDefaults(value !== void 0 ? value : writeDefault !== void 0 ? writeDefault : null, field.type);
|
|
43
|
+
}
|
|
44
|
+
function materializeNestedDefaults(value, type) {
|
|
45
|
+
if (value === null || value === void 0 || typeof type !== "object") return value;
|
|
46
|
+
if (type.type === "struct") {
|
|
47
|
+
if (typeof value !== "object" || Array.isArray(value)) return value;
|
|
48
|
+
const out = { ...value };
|
|
49
|
+
for (const child of type.fields) out[child.name] = materializeFieldValue(value[child.name], child);
|
|
50
|
+
return out;
|
|
51
|
+
}
|
|
52
|
+
if (type.type === "list") {
|
|
53
|
+
if (!Array.isArray(value)) return value;
|
|
54
|
+
return value.map((v) => materializeNestedDefaults(v, type.element));
|
|
55
|
+
}
|
|
56
|
+
if (type.type === "map") return materializeMapDefaults(value, type);
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
function materializeMapDefaults(value, type) {
|
|
60
|
+
if (typeof type.key !== "object" && typeof type.value !== "object") return value;
|
|
61
|
+
if (value instanceof Map) return Array.from(value.entries(), ([key, entryValue]) => ({
|
|
62
|
+
key: materializeNestedDefaults(key, type.key),
|
|
63
|
+
value: materializeNestedDefaults(entryValue, type.value)
|
|
64
|
+
}));
|
|
65
|
+
if (Array.isArray(value)) return value.map((entry) => {
|
|
66
|
+
if (entry && typeof entry === "object" && "key" in entry && "value" in entry) return {
|
|
67
|
+
key: materializeNestedDefaults(entry.key, type.key),
|
|
68
|
+
value: materializeNestedDefaults(entry.value, type.value)
|
|
69
|
+
};
|
|
70
|
+
if (Array.isArray(entry) && entry.length === 2) return {
|
|
71
|
+
key: materializeNestedDefaults(entry[0], type.key),
|
|
72
|
+
value: materializeNestedDefaults(entry[1], type.value)
|
|
73
|
+
};
|
|
74
|
+
return entry;
|
|
75
|
+
});
|
|
76
|
+
if (typeof value === "object") return Object.fromEntries(Object.entries(value).map(([key, entryValue]) => [key, materializeNestedDefaults(entryValue, type.value)]));
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
function icebergTypeToParquetFields(name, type, required, fieldId) {
|
|
80
|
+
const repetition_type = required ? "REQUIRED" : "OPTIONAL";
|
|
81
|
+
if (typeof type === "object") {
|
|
82
|
+
if (type.type === "list") {
|
|
83
|
+
const elementFields = icebergTypeToParquetFields("element", type.element, type["element-required"], type["element-id"]);
|
|
84
|
+
if (!elementFields.length) throw new Error(`unsupported iceberg list element type: ${typeName(type.element)}`);
|
|
85
|
+
return [
|
|
86
|
+
{
|
|
87
|
+
name,
|
|
88
|
+
converted_type: "LIST",
|
|
89
|
+
logical_type: { type: "LIST" },
|
|
90
|
+
repetition_type,
|
|
91
|
+
num_children: 1,
|
|
92
|
+
field_id: fieldId
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "list",
|
|
96
|
+
repetition_type: "REPEATED",
|
|
97
|
+
num_children: 1
|
|
98
|
+
},
|
|
99
|
+
...elementFields
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
if (type.type === "struct") {
|
|
103
|
+
const allChildren = [];
|
|
104
|
+
let directChildren = 0;
|
|
105
|
+
for (const child of type.fields) {
|
|
106
|
+
const sub = icebergTypeToParquetFields(child.name, child.type, child.required, child.id);
|
|
107
|
+
if (!sub.length) continue;
|
|
108
|
+
allChildren.push(...sub);
|
|
109
|
+
directChildren++;
|
|
110
|
+
}
|
|
111
|
+
if (!directChildren) throw new Error(`struct ${name} has no writable children`);
|
|
112
|
+
return [{
|
|
113
|
+
name,
|
|
114
|
+
repetition_type,
|
|
115
|
+
num_children: directChildren,
|
|
116
|
+
field_id: fieldId
|
|
117
|
+
}, ...allChildren];
|
|
118
|
+
}
|
|
119
|
+
if (type.type === "map") {
|
|
120
|
+
if (type.key !== "string" && type.key !== "int") throw new Error(`unsupported iceberg map key type: ${typeName(type.key)}`);
|
|
121
|
+
const keyFields = icebergTypeToParquetFields("key", type.key, true, type["key-id"]);
|
|
122
|
+
const valueFields = icebergTypeToParquetFields("value", type.value, type["value-required"], type["value-id"]);
|
|
123
|
+
if (!keyFields.length) throw new Error(`unsupported iceberg map key type: ${typeName(type.key)}`);
|
|
124
|
+
if (!valueFields.length) throw new Error(`unsupported iceberg map value type: ${typeName(type.value)}`);
|
|
125
|
+
return [
|
|
126
|
+
{
|
|
127
|
+
name,
|
|
128
|
+
converted_type: "MAP",
|
|
129
|
+
logical_type: { type: "MAP" },
|
|
130
|
+
repetition_type,
|
|
131
|
+
num_children: 1,
|
|
132
|
+
field_id: fieldId
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "key_value",
|
|
136
|
+
repetition_type: "REPEATED",
|
|
137
|
+
num_children: 2
|
|
138
|
+
},
|
|
139
|
+
...keyFields,
|
|
140
|
+
...valueFields
|
|
141
|
+
];
|
|
142
|
+
}
|
|
143
|
+
throw new Error(`unsupported iceberg nested type: ${JSON.stringify(type)}`);
|
|
144
|
+
}
|
|
145
|
+
if (type.startsWith("geometry")) return [{
|
|
146
|
+
name,
|
|
147
|
+
type: "BYTE_ARRAY",
|
|
148
|
+
logical_type: { type: "GEOMETRY" },
|
|
149
|
+
repetition_type,
|
|
150
|
+
field_id: fieldId
|
|
151
|
+
}];
|
|
152
|
+
if (type.startsWith("geography")) return [{
|
|
153
|
+
name,
|
|
154
|
+
type: "BYTE_ARRAY",
|
|
155
|
+
logical_type: { type: "GEOGRAPHY" },
|
|
156
|
+
repetition_type,
|
|
157
|
+
field_id: fieldId
|
|
158
|
+
}];
|
|
159
|
+
const decimal = parseDecimalType(type);
|
|
160
|
+
if (decimal) {
|
|
161
|
+
const { precision, scale } = decimal;
|
|
162
|
+
return [{
|
|
163
|
+
name,
|
|
164
|
+
type: "FIXED_LEN_BYTE_ARRAY",
|
|
165
|
+
type_length: decimalRequiredBytes(precision),
|
|
166
|
+
converted_type: "DECIMAL",
|
|
167
|
+
logical_type: {
|
|
168
|
+
type: "DECIMAL",
|
|
169
|
+
precision,
|
|
170
|
+
scale
|
|
171
|
+
},
|
|
172
|
+
precision,
|
|
173
|
+
scale,
|
|
174
|
+
repetition_type,
|
|
175
|
+
field_id: fieldId
|
|
176
|
+
}];
|
|
177
|
+
}
|
|
178
|
+
const fixedLen = parseFixedType(type);
|
|
179
|
+
if (fixedLen !== void 0) return [{
|
|
180
|
+
name,
|
|
181
|
+
type: "FIXED_LEN_BYTE_ARRAY",
|
|
182
|
+
type_length: fixedLen,
|
|
183
|
+
repetition_type,
|
|
184
|
+
field_id: fieldId
|
|
185
|
+
}];
|
|
186
|
+
switch (type) {
|
|
187
|
+
case "unknown":
|
|
188
|
+
if (required) throw new Error("unsupported required iceberg type: unknown");
|
|
189
|
+
return [];
|
|
190
|
+
case "variant": return [
|
|
191
|
+
{
|
|
192
|
+
name,
|
|
193
|
+
repetition_type,
|
|
194
|
+
num_children: 2,
|
|
195
|
+
logical_type: { type: "VARIANT" },
|
|
196
|
+
field_id: fieldId
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "metadata",
|
|
200
|
+
type: "BYTE_ARRAY",
|
|
201
|
+
repetition_type: "REQUIRED"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "value",
|
|
205
|
+
type: "BYTE_ARRAY",
|
|
206
|
+
repetition_type: "OPTIONAL"
|
|
207
|
+
}
|
|
208
|
+
];
|
|
209
|
+
case "boolean": return [{
|
|
210
|
+
name,
|
|
211
|
+
type: "BOOLEAN",
|
|
212
|
+
repetition_type,
|
|
213
|
+
field_id: fieldId
|
|
214
|
+
}];
|
|
215
|
+
case "int": return [{
|
|
216
|
+
name,
|
|
217
|
+
type: "INT32",
|
|
218
|
+
repetition_type,
|
|
219
|
+
field_id: fieldId
|
|
220
|
+
}];
|
|
221
|
+
case "long": return [{
|
|
222
|
+
name,
|
|
223
|
+
type: "INT64",
|
|
224
|
+
repetition_type,
|
|
225
|
+
field_id: fieldId
|
|
226
|
+
}];
|
|
227
|
+
case "float": return [{
|
|
228
|
+
name,
|
|
229
|
+
type: "FLOAT",
|
|
230
|
+
repetition_type,
|
|
231
|
+
field_id: fieldId
|
|
232
|
+
}];
|
|
233
|
+
case "double": return [{
|
|
234
|
+
name,
|
|
235
|
+
type: "DOUBLE",
|
|
236
|
+
repetition_type,
|
|
237
|
+
field_id: fieldId
|
|
238
|
+
}];
|
|
239
|
+
case "string": return [{
|
|
240
|
+
name,
|
|
241
|
+
type: "BYTE_ARRAY",
|
|
242
|
+
converted_type: "UTF8",
|
|
243
|
+
repetition_type,
|
|
244
|
+
field_id: fieldId
|
|
245
|
+
}];
|
|
246
|
+
case "binary": return [{
|
|
247
|
+
name,
|
|
248
|
+
type: "BYTE_ARRAY",
|
|
249
|
+
repetition_type,
|
|
250
|
+
field_id: fieldId
|
|
251
|
+
}];
|
|
252
|
+
case "uuid": return [{
|
|
253
|
+
name,
|
|
254
|
+
type: "FIXED_LEN_BYTE_ARRAY",
|
|
255
|
+
type_length: 16,
|
|
256
|
+
logical_type: { type: "UUID" },
|
|
257
|
+
repetition_type,
|
|
258
|
+
field_id: fieldId
|
|
259
|
+
}];
|
|
260
|
+
case "date": return [{
|
|
261
|
+
name,
|
|
262
|
+
type: "INT32",
|
|
263
|
+
converted_type: "DATE",
|
|
264
|
+
logical_type: { type: "DATE" },
|
|
265
|
+
repetition_type,
|
|
266
|
+
field_id: fieldId
|
|
267
|
+
}];
|
|
268
|
+
case "time": return [{
|
|
269
|
+
name,
|
|
270
|
+
type: "INT64",
|
|
271
|
+
converted_type: "TIME_MICROS",
|
|
272
|
+
logical_type: {
|
|
273
|
+
type: "TIME",
|
|
274
|
+
isAdjustedToUTC: false,
|
|
275
|
+
unit: "MICROS"
|
|
276
|
+
},
|
|
277
|
+
repetition_type,
|
|
278
|
+
field_id: fieldId
|
|
279
|
+
}];
|
|
280
|
+
case "timestamp": return [timestampField(name, repetition_type, false, "MICROS", fieldId)];
|
|
281
|
+
case "timestamptz": return [timestampField(name, repetition_type, true, "MICROS", fieldId)];
|
|
282
|
+
case "timestamp_ns": return [timestampField(name, repetition_type, false, "NANOS", fieldId)];
|
|
283
|
+
case "timestamptz_ns": return [timestampField(name, repetition_type, true, "NANOS", fieldId)];
|
|
284
|
+
default: throw new Error(`unsupported iceberg type: ${type}`);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function parseFixedType(type) {
|
|
288
|
+
const m = /^fixed\[(\d+)\]$/.exec(type);
|
|
289
|
+
if (!m) return void 0;
|
|
290
|
+
return parseInt(m[1], 10);
|
|
291
|
+
}
|
|
292
|
+
function timestampField(name, repetition_type, isAdjustedToUTC, unit, field_id) {
|
|
293
|
+
return {
|
|
294
|
+
name,
|
|
295
|
+
type: "INT64",
|
|
296
|
+
logical_type: {
|
|
297
|
+
type: "TIMESTAMP",
|
|
298
|
+
isAdjustedToUTC,
|
|
299
|
+
unit
|
|
300
|
+
},
|
|
301
|
+
repetition_type,
|
|
302
|
+
field_id
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export { writeParquet };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { bytesToHex } from "../utils.mjs";
|
|
2
|
+
import { decimalRequiredBytes, decimalToFixedBytes, parseDecimalType, toUint8Array, uuidToBytes } from "./conversions.mjs";
|
|
3
|
+
import { applyTransform, transformResultType } from "./transform.mjs";
|
|
4
|
+
function groupByPartition(records, schema, partitionSpec) {
|
|
5
|
+
const sourceFields = partitionSpec.fields.map((pf) => {
|
|
6
|
+
const sourceId = pf["source-id"];
|
|
7
|
+
if (sourceId === void 0) throw new Error(`partition field ${pf.name} is missing source-id`);
|
|
8
|
+
const sourceField = schema.fields.find((f) => f.id === sourceId);
|
|
9
|
+
if (!sourceField) throw new Error(`partition source field id ${sourceId} not found in schema`);
|
|
10
|
+
return {
|
|
11
|
+
partitionName: pf.name,
|
|
12
|
+
sourceName: sourceField.name,
|
|
13
|
+
sourceType: sourceField.type,
|
|
14
|
+
sourceWriteDefault: sourceField["write-default"],
|
|
15
|
+
transform: pf.transform,
|
|
16
|
+
resultType: transformResultType(pf.transform, sourceField.type)
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
const groups = /* @__PURE__ */ new Map();
|
|
20
|
+
for (const record of records) {
|
|
21
|
+
const partition = {};
|
|
22
|
+
const keyParts = [];
|
|
23
|
+
for (const { partitionName, sourceName, sourceType, sourceWriteDefault, transform, resultType } of sourceFields) {
|
|
24
|
+
let v = record[sourceName];
|
|
25
|
+
if (v === void 0 && sourceWriteDefault !== void 0) v = sourceWriteDefault;
|
|
26
|
+
partition[partitionName] = applyTransform(transform, v === void 0 ? null : v, sourceType);
|
|
27
|
+
keyParts.push(partitionKeyPart(partition[partitionName], resultType));
|
|
28
|
+
}
|
|
29
|
+
const key = JSON.stringify(keyParts);
|
|
30
|
+
let group = groups.get(key);
|
|
31
|
+
if (!group) {
|
|
32
|
+
group = {
|
|
33
|
+
partition,
|
|
34
|
+
records: []
|
|
35
|
+
};
|
|
36
|
+
groups.set(key, group);
|
|
37
|
+
}
|
|
38
|
+
group.records.push(record);
|
|
39
|
+
}
|
|
40
|
+
return [...groups.values()];
|
|
41
|
+
}
|
|
42
|
+
function validatePartitionSpecForWrite(schema, partitionSpec, label = "partition spec") {
|
|
43
|
+
for (const pf of partitionSpec.fields) {
|
|
44
|
+
const sourceId = pf["source-id"];
|
|
45
|
+
if (sourceId === void 0) throw new Error(`${label}: partition field ${pf.name} is missing source-id`);
|
|
46
|
+
const sourceField = schema.fields.find((f) => f.id === sourceId);
|
|
47
|
+
if (!sourceField) throw new Error(`${label}: partition source field id ${sourceId} not found in schema`);
|
|
48
|
+
icebergTypeToAvro(transformResultType(pf.transform, sourceField.type), pf["field-id"]);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function partitionAvroSchema(schema, partitionSpec) {
|
|
52
|
+
return {
|
|
53
|
+
type: "record",
|
|
54
|
+
name: "r102",
|
|
55
|
+
fields: partitionSpec.fields.map((pf) => {
|
|
56
|
+
const sourceField = schema.fields.find((f) => f.id === pf["source-id"]);
|
|
57
|
+
if (!sourceField) throw new Error(`partition source field id ${pf["source-id"]} not found`);
|
|
58
|
+
const resultType = transformResultType(pf.transform, sourceField.type);
|
|
59
|
+
return {
|
|
60
|
+
name: pf.name,
|
|
61
|
+
"field-id": pf["field-id"],
|
|
62
|
+
default: null,
|
|
63
|
+
type: ["null", icebergTypeToAvro(resultType, pf["field-id"])]
|
|
64
|
+
};
|
|
65
|
+
})
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function partitionSpecJson(partitionSpec) {
|
|
69
|
+
return JSON.stringify(partitionSpec.fields);
|
|
70
|
+
}
|
|
71
|
+
function partitionToAvroRecord(partition, schema, partitionSpec) {
|
|
72
|
+
const out = {};
|
|
73
|
+
for (const pf of partitionSpec.fields) {
|
|
74
|
+
const sourceField = schema.fields.find((f) => f.id === pf["source-id"]);
|
|
75
|
+
if (!sourceField) throw new Error(`partition source field id ${pf["source-id"]} not found`);
|
|
76
|
+
const resultType = transformResultType(pf.transform, sourceField.type);
|
|
77
|
+
const value = partition[pf.name];
|
|
78
|
+
out[pf.name] = value == null ? null : coerceForAvro(value, resultType);
|
|
79
|
+
}
|
|
80
|
+
return out;
|
|
81
|
+
}
|
|
82
|
+
function partitionKeyPart(value, type) {
|
|
83
|
+
if (value === null || value === void 0) return "__null__";
|
|
84
|
+
const name = typeof type === "string" ? type : type.type;
|
|
85
|
+
if (name === "uuid") return `uuid:${bytesToHex(uuidToBytes(value, "uuid partition value"))}`;
|
|
86
|
+
if (typeof value === "number" && (name === "float" || name === "double")) return `${name}:${floatPartitionKey(value, name)}`;
|
|
87
|
+
if (name === "long") return `long:${BigInt(value)}`;
|
|
88
|
+
if (typeof value === "bigint") return `b:${value.toString()}`;
|
|
89
|
+
if (value instanceof Date) return `d:${value.getTime()}`;
|
|
90
|
+
if (value instanceof Uint8Array) return `x:${bytesToHex(value)}`;
|
|
91
|
+
return `${typeof value}:${String(value)}`;
|
|
92
|
+
}
|
|
93
|
+
function floatPartitionKey(value, type) {
|
|
94
|
+
if (Number.isNaN(value)) return "nan";
|
|
95
|
+
const bytes = new Uint8Array(type === "float" ? 4 : 8);
|
|
96
|
+
const view = new DataView(bytes.buffer);
|
|
97
|
+
if (type === "float") view.setFloat32(0, value, false);
|
|
98
|
+
else view.setFloat64(0, value, false);
|
|
99
|
+
return bytesToHex(bytes);
|
|
100
|
+
}
|
|
101
|
+
function icebergTypeToAvro(type, fieldId) {
|
|
102
|
+
const name = typeof type === "string" ? type : type.type;
|
|
103
|
+
const decimal = parseDecimalType(name);
|
|
104
|
+
if (decimal) return {
|
|
105
|
+
type: "fixed",
|
|
106
|
+
name: `r102_${fieldId}`,
|
|
107
|
+
size: decimalRequiredBytes(decimal.precision),
|
|
108
|
+
logicalType: "decimal",
|
|
109
|
+
precision: decimal.precision,
|
|
110
|
+
scale: decimal.scale
|
|
111
|
+
};
|
|
112
|
+
const fixed = /^fixed\[(\d+)\]$/.exec(name);
|
|
113
|
+
if (fixed) return {
|
|
114
|
+
type: "fixed",
|
|
115
|
+
name: `r102_${fieldId}`,
|
|
116
|
+
size: parseInt(fixed[1], 10)
|
|
117
|
+
};
|
|
118
|
+
switch (name) {
|
|
119
|
+
case "boolean": return "boolean";
|
|
120
|
+
case "int": return "int";
|
|
121
|
+
case "long": return "long";
|
|
122
|
+
case "float": return "float";
|
|
123
|
+
case "double": return "double";
|
|
124
|
+
case "string": return "string";
|
|
125
|
+
case "uuid": return {
|
|
126
|
+
type: "fixed",
|
|
127
|
+
name: `r102_${fieldId}`,
|
|
128
|
+
size: 16,
|
|
129
|
+
logicalType: "uuid"
|
|
130
|
+
};
|
|
131
|
+
case "binary": return "bytes";
|
|
132
|
+
case "date": return {
|
|
133
|
+
type: "int",
|
|
134
|
+
logicalType: "date"
|
|
135
|
+
};
|
|
136
|
+
case "time": return {
|
|
137
|
+
type: "long",
|
|
138
|
+
logicalType: "time-micros"
|
|
139
|
+
};
|
|
140
|
+
case "timestamp": return {
|
|
141
|
+
type: "long",
|
|
142
|
+
logicalType: "timestamp-micros",
|
|
143
|
+
"adjust-to-utc": false
|
|
144
|
+
};
|
|
145
|
+
case "timestamptz": return {
|
|
146
|
+
type: "long",
|
|
147
|
+
logicalType: "timestamp-micros",
|
|
148
|
+
"adjust-to-utc": true
|
|
149
|
+
};
|
|
150
|
+
case "timestamp_ns": return {
|
|
151
|
+
type: "long",
|
|
152
|
+
logicalType: "timestamp-nanos",
|
|
153
|
+
"adjust-to-utc": false
|
|
154
|
+
};
|
|
155
|
+
case "timestamptz_ns": return {
|
|
156
|
+
type: "long",
|
|
157
|
+
logicalType: "timestamp-nanos",
|
|
158
|
+
"adjust-to-utc": true
|
|
159
|
+
};
|
|
160
|
+
default: throw new Error(`unsupported partition source type: ${name}`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function coerceForAvro(value, type) {
|
|
164
|
+
const name = typeof type === "string" ? type : type.type;
|
|
165
|
+
if (name === "long") return typeof value === "bigint" ? value : BigInt(value);
|
|
166
|
+
if (name === "uuid") return uuidToBytes(value, "uuid partition value");
|
|
167
|
+
const decimal = parseDecimalType(name);
|
|
168
|
+
if (decimal) return decimalToFixedBytes(value, decimal.precision, decimal.scale, `decimal(${decimal.precision},${decimal.scale}) partition value`);
|
|
169
|
+
const fixed = /^fixed\[(\d+)\]$/.exec(name);
|
|
170
|
+
if (fixed) {
|
|
171
|
+
const bytes = toUint8Array(value);
|
|
172
|
+
const expected = parseInt(fixed[1], 10);
|
|
173
|
+
if (bytes.length !== expected) throw new Error(`expected fixed[${expected}] partition value`);
|
|
174
|
+
return bytes;
|
|
175
|
+
}
|
|
176
|
+
return value;
|
|
177
|
+
}
|
|
178
|
+
export { groupByPartition, partitionAvroSchema, partitionSpecJson, partitionToAvroRecord, validatePartitionSpecForWrite };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { typeName } from "../schema.mjs";
|
|
2
|
+
function serializeValue(value, type) {
|
|
3
|
+
const name = typeName(type);
|
|
4
|
+
if (name.startsWith("decimal(")) {
|
|
5
|
+
const m = /^decimal\((\d+),\s*(\d+)\)$/.exec(name);
|
|
6
|
+
if (!m) return void 0;
|
|
7
|
+
const scale = parseInt(m[2], 10);
|
|
8
|
+
if (typeof value !== "number" && typeof value !== "bigint") return void 0;
|
|
9
|
+
const factor = 10n ** BigInt(scale);
|
|
10
|
+
return twosComplementMinBigEndian(typeof value === "bigint" ? value * factor : BigInt(Math.round(value * Number(factor))));
|
|
11
|
+
}
|
|
12
|
+
if (name.startsWith("fixed[")) return value instanceof Uint8Array ? value : void 0;
|
|
13
|
+
switch (name) {
|
|
14
|
+
case "boolean": return new Uint8Array([value ? 1 : 0]);
|
|
15
|
+
case "int": {
|
|
16
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(4);
|
|
17
|
+
new DataView(buf).setInt32(0, value, true);
|
|
18
|
+
return new Uint8Array(buf);
|
|
19
|
+
}
|
|
20
|
+
case "long": {
|
|
21
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(8);
|
|
22
|
+
new DataView(buf).setBigInt64(0, typeof value === "bigint" ? value : BigInt(value), true);
|
|
23
|
+
return new Uint8Array(buf);
|
|
24
|
+
}
|
|
25
|
+
case "float": {
|
|
26
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(4);
|
|
27
|
+
new DataView(buf).setFloat32(0, value, true);
|
|
28
|
+
return new Uint8Array(buf);
|
|
29
|
+
}
|
|
30
|
+
case "double": {
|
|
31
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(8);
|
|
32
|
+
new DataView(buf).setFloat64(0, value, true);
|
|
33
|
+
return new Uint8Array(buf);
|
|
34
|
+
}
|
|
35
|
+
case "date": {
|
|
36
|
+
const days = value instanceof Date ? Math.floor(value.getTime() / 864e5) : Number(value);
|
|
37
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(4);
|
|
38
|
+
new DataView(buf).setInt32(0, days, true);
|
|
39
|
+
return new Uint8Array(buf);
|
|
40
|
+
}
|
|
41
|
+
case "time": {
|
|
42
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(8);
|
|
43
|
+
new DataView(buf).setBigInt64(0, typeof value === "bigint" ? value : BigInt(value), true);
|
|
44
|
+
return new Uint8Array(buf);
|
|
45
|
+
}
|
|
46
|
+
case "timestamp":
|
|
47
|
+
case "timestamptz": {
|
|
48
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(8);
|
|
49
|
+
new DataView(buf).setBigInt64(0, timestampToMicros(value), true);
|
|
50
|
+
return new Uint8Array(buf);
|
|
51
|
+
}
|
|
52
|
+
case "timestamp_ns":
|
|
53
|
+
case "timestamptz_ns": {
|
|
54
|
+
const buf = /* @__PURE__ */ new ArrayBuffer(8);
|
|
55
|
+
new DataView(buf).setBigInt64(0, timestampToNanos(value), true);
|
|
56
|
+
return new Uint8Array(buf);
|
|
57
|
+
}
|
|
58
|
+
case "string": return new TextEncoder().encode(value);
|
|
59
|
+
case "binary": return value instanceof Uint8Array ? value : void 0;
|
|
60
|
+
case "uuid":
|
|
61
|
+
if (value instanceof Uint8Array && value.length === 16) return value;
|
|
62
|
+
if (typeof value === "string") return uuidStringToBytes(value);
|
|
63
|
+
return;
|
|
64
|
+
default: return;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function compare(a, b, type) {
|
|
68
|
+
switch (typeName(type)) {
|
|
69
|
+
case "boolean": return (a ? 1 : 0) - (b ? 1 : 0);
|
|
70
|
+
case "int": return a < b ? -1 : a > b ? 1 : 0;
|
|
71
|
+
case "float":
|
|
72
|
+
case "double": return compareFloating(a, b);
|
|
73
|
+
case "long": {
|
|
74
|
+
const ai = typeof a === "bigint" ? a : BigInt(a);
|
|
75
|
+
const bi = typeof b === "bigint" ? b : BigInt(b);
|
|
76
|
+
return ai < bi ? -1 : ai > bi ? 1 : 0;
|
|
77
|
+
}
|
|
78
|
+
case "date": {
|
|
79
|
+
const ad = dateToDays(a);
|
|
80
|
+
const bd = dateToDays(b);
|
|
81
|
+
if (Number.isNaN(ad) || Number.isNaN(bd)) return NaN;
|
|
82
|
+
return ad < bd ? -1 : ad > bd ? 1 : 0;
|
|
83
|
+
}
|
|
84
|
+
case "timestamp":
|
|
85
|
+
case "timestamptz": return compareBigInt(timestampToMicros(a), timestampToMicros(b));
|
|
86
|
+
case "timestamp_ns":
|
|
87
|
+
case "timestamptz_ns": return compareBigInt(timestampToNanos(a), timestampToNanos(b));
|
|
88
|
+
case "string": return a < b ? -1 : a > b ? 1 : 0;
|
|
89
|
+
case "binary":
|
|
90
|
+
case "uuid": return compareBytes(a, b);
|
|
91
|
+
default:
|
|
92
|
+
if (typeName(type).startsWith("fixed[")) return compareBytes(a, b);
|
|
93
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function compareFloating(a, b) {
|
|
97
|
+
if (Object.is(a, b)) return 0;
|
|
98
|
+
if (a === 0 && b === 0) return Object.is(a, -0) ? -1 : 1;
|
|
99
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
100
|
+
}
|
|
101
|
+
function compareBigInt(a, b) {
|
|
102
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
103
|
+
}
|
|
104
|
+
function dateToDays(value) {
|
|
105
|
+
if (value instanceof Date) return Math.floor(value.getTime() / 864e5);
|
|
106
|
+
if (typeof value === "bigint") return Number(value);
|
|
107
|
+
if (typeof value === "number") return value;
|
|
108
|
+
if (typeof value === "string") {
|
|
109
|
+
const ms = Date.parse(value);
|
|
110
|
+
return Number.isNaN(ms) ? NaN : Math.floor(ms / 864e5);
|
|
111
|
+
}
|
|
112
|
+
return NaN;
|
|
113
|
+
}
|
|
114
|
+
function timestampToMicros(value) {
|
|
115
|
+
return typeof value === "bigint" ? value : value instanceof Date ? BigInt(value.getTime()) * 1000n : BigInt(value);
|
|
116
|
+
}
|
|
117
|
+
function timestampToNanos(value) {
|
|
118
|
+
return typeof value === "bigint" ? value : value instanceof Date ? BigInt(value.getTime()) * 1000000n : BigInt(value);
|
|
119
|
+
}
|
|
120
|
+
function compareBytes(a, b) {
|
|
121
|
+
const len = Math.min(a.length, b.length);
|
|
122
|
+
for (let i = 0; i < len; i++) if (a[i] !== b[i]) return a[i] - b[i];
|
|
123
|
+
return a.length - b.length;
|
|
124
|
+
}
|
|
125
|
+
function twosComplementMinBigEndian(value) {
|
|
126
|
+
const bytes = [];
|
|
127
|
+
let v = value;
|
|
128
|
+
while (true) {
|
|
129
|
+
const byte = Number(v & 255n);
|
|
130
|
+
bytes.unshift(byte);
|
|
131
|
+
v >>= 8n;
|
|
132
|
+
const sign = byte & 128;
|
|
133
|
+
if (!sign && v === 0n || sign && v === -1n) break;
|
|
134
|
+
}
|
|
135
|
+
return new Uint8Array(bytes);
|
|
136
|
+
}
|
|
137
|
+
function uuidStringToBytes(s) {
|
|
138
|
+
const hex = s.replace(/-/g, "");
|
|
139
|
+
if (hex.length !== 32) return void 0;
|
|
140
|
+
const out = /* @__PURE__ */ new Uint8Array(16);
|
|
141
|
+
for (let i = 0; i < 16; i++) {
|
|
142
|
+
const byte = parseInt(hex.slice(i * 2, i * 2 + 2), 16);
|
|
143
|
+
if (Number.isNaN(byte)) return void 0;
|
|
144
|
+
out[i] = byte;
|
|
145
|
+
}
|
|
146
|
+
return out;
|
|
147
|
+
}
|
|
148
|
+
export { compare, compareBigInt, compareBytes, compareFloating, dateToDays, serializeValue, timestampToMicros, timestampToNanos, twosComplementMinBigEndian, uuidStringToBytes };
|