@gscdump/lakehouse 1.4.0 → 1.4.2
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/_virtual/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/handler.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.bitreader.mjs +88 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.blocks.mjs +120 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.context.mjs +1805 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.contextmap.mjs +49 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.dictionary.mjs +984 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.huffman.mjs +266 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.mjs +340 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.prefix.mjs +109 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.streams.mjs +21 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.transform.mjs +190 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/compressors.mjs +14 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.huffman.mjs +121 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.mjs +176 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/lz4.mjs +52 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bloom.mjs +93 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs +91 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/column.mjs +186 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/datapage.mjs +113 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/delta.mjs +111 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dictionary.mjs +99 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dremel.mjs +116 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/encoding.mjs +51 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/geospatial.mjs +84 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/index.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/indexes.mjs +31 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/metadata.mjs +138 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/parquet-writer.mjs +139 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/plain.mjs +68 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/schema.mjs +254 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/snappy.mjs +125 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/splitstream.mjs +38 -0
- package/dist/_virtual/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 → _virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/types.d.mts} +2 -2
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/unconvert.mjs +247 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/variant.mjs +391 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/wkb.mjs +79 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write-rows.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs +46 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/bytewriter.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/index.d.mts +10 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/node.d.mts +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/parquet-writer.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/schema.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write-rows.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/assemble.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs +69 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/column.mjs +8 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/constants.mjs +80 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/convert.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/datapage.mjs +6 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/delta.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/encoding.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/filter.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/geoparquet.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/indexes.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/metadata.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plain.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plan.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/read.mjs +6 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/rowgroup.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/schema.mjs +54 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/snappy.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/thrift.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs +19 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/variant.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/wkb.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/index.d.mts +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/node.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/assemble.mjs +144 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/bloom.mjs +124 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/column.mjs +127 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/constants.mjs +75 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/convert.mjs +118 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/datapage.mjs +144 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/delta.mjs +65 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/encoding.mjs +76 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/filter.mjs +98 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/geoparquet.mjs +24 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/indexes.mjs +16 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/metadata.mjs +235 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plain.mjs +78 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plan.mjs +147 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/read.mjs +106 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/rowgroup.mjs +154 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/schema.mjs +75 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/snappy.mjs +70 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/thrift.mjs +86 -0
- package/dist/{_chunks/libs/hyparquet.d.mts → _virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/types.d.mts} +2 -3
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs +127 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/variant.mjs +225 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/wkb.mjs +94 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/index.d.mts +9 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/node.d.mts +3 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.metadata.mjs +53 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.read.mjs +136 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.write.mjs +148 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/file.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/loadTable.mjs +48 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/rest.mjs +159 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/create.mjs +67 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/delete.mjs +34 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/fetch.mjs +261 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/index.mjs +13 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/json.mjs +147 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/manifest.mjs +84 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/metadata.mjs +159 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/prune.mjs +4 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/deletion-vector.mjs +122 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/puffin.mjs +78 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/roaring.mjs +132 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/read.mjs +324 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/s3.mjs +91 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/schema.mjs +76 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sigv4.mjs +70 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergDataSource.mjs +8 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergQuery.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/whereFilter.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/types.d.mts +255 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/utils.mjs +45 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/commit.mjs +392 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/conversions.mjs +59 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/delete-file.mjs +52 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/geospatial.mjs +72 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest-list.mjs +152 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest.mjs +256 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/parquet.mjs +305 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/partition.mjs +178 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/rewrite.mjs +174 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/serde.mjs +148 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/snapshot.mjs +107 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/sort.mjs +47 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-deletion-vector.mjs +295 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-position-delete.mjs +216 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage.mjs +354 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stats.mjs +153 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/transform.mjs +220 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/write.mjs +476 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/file.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/rest.d.mts +76 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/create.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/fetch.d.mts +36 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/index.d.mts +13 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/manifest.d.mts +30 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/metadata.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/read.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/s3.d.mts +36 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
- package/dist/_virtual/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 → _virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Command.d.mts} +1 -1
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/DataHandler.d.mts +4 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Pipeline.d.mts +4 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Redis.d.mts +10 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/ScanStream.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/SubscriptionSet.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/ClusterOptions.d.mts +4 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/index.d.mts +9 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/util.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/AbstractConnector.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/ConnectorConstructor.d.mts +1 -0
- package/dist/_virtual/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/_virtual/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/_virtual/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/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/StandaloneConnector.d.mts +3 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/index.d.mts +13 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/redis/RedisOptions.d.mts +4 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/transaction.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/types.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/utils/Commander.d.mts +3 -0
- package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/utils/RedisCommander.d.mts +2 -0
- package/dist/_virtual/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/index.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/perf.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/readdirp@5.0.0/node_modules/readdirp/index.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/ast.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/backend/dataSource.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/accumulator.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/aggregates.mjs +10 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/execute.mjs +15 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/join.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/scanColumn.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/sort.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/streamingAggregate.mjs +9 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/utils.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/window.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/yield.mjs +17 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/alias.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/binary.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/date.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/evaluate.mjs +15 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/math.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/regexp.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/strings.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.mjs +9 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/expression.mjs +6 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/extractTables.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/functions.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/joins.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/parse.mjs +10 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/primary.mjs +8 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/state.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/tokenize.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/types.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/columns.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/plan.mjs +7 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/types.d.mts +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/bbox.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/equality.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/operations.mjs +5 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/pointRelations.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/primitives.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/segments.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/spatial.mjs +6 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/wkt.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/types.d.mts +3 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/aggregates.mjs +3 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/executionErrors.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/functions.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/keywords.mjs +1 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/parseErrors.mjs +2 -0
- package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/tables.mjs +2 -0
- package/dist/_virtual/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/_virtual/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 → _virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/_virtual/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/catalog-cache.d.mts +32 -0
- package/dist/catalog-cache.mjs +31 -0
- package/dist/{_chunks/catalog.d.mts → catalog.d.mts} +9 -70
- package/dist/{_chunks/catalog.mjs → catalog.mjs} +15 -96
- package/dist/dataset-runtime.mjs +68 -0
- package/dist/dataset.d.mts +154 -0
- package/dist/dataset.mjs +312 -0
- package/dist/date.d.mts +8 -0
- package/dist/date.mjs +13 -0
- package/dist/index.d.mts +6 -159
- package/dist/index.mjs +6 -361
- package/dist/maintenance.d.mts +2 -93
- package/dist/maintenance.mjs +2 -139
- 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 +77 -2
- package/dist/schema.mjs +9 -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 +11 -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 → _virtual/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 → _virtual/node_modules/.pnpm/denque@2.1.0/node_modules/denque/index.d.mts} +0 -0
- /package/dist/{_chunks/libs/fzstd.mjs → _virtual/node_modules/.pnpm/fzstd@0.1.1/node_modules/fzstd/esm/index.mjs} +0 -0
- /package/dist/{_chunks/libs/denque.d.mts → _virtual/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 → _virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/types.d.mts} +0 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { writeDeletionVector } from "../puffin/deletion-vector.mjs";
|
|
2
|
+
import { writePuffinFile } from "../puffin/puffin.mjs";
|
|
3
|
+
import { uuid4 } from "../utils.mjs";
|
|
4
|
+
import { fetchDeleteMaps } from "../fetch.mjs";
|
|
5
|
+
import { validateSchemaForVersion } from "../schema.mjs";
|
|
6
|
+
import { deleteFileAppliesToDataEntry } from "../delete.mjs";
|
|
7
|
+
import { writeDeleteManifest, writeExistingDeleteManifest } from "./manifest.mjs";
|
|
8
|
+
import { buildPartitionSummaries, buildSnapshotUpdate, currentSnapshot, loadPriorManifests } from "./snapshot.mjs";
|
|
9
|
+
import { checkWriteFormat, newSnapshotId } from "./stage.mjs";
|
|
10
|
+
import { findDataFileEntries, loadManifestEntries, partitionTupleKey } from "./stage-position-delete.mjs";
|
|
11
|
+
async function icebergStageDeletionVector({ tableUrl, metadata, deletes, resolver }) {
|
|
12
|
+
if (!tableUrl) throw new Error("tableUrl is required");
|
|
13
|
+
if (!resolver?.writer) throw new Error("resolver.writer is required");
|
|
14
|
+
if (!Array.isArray(deletes) || !deletes.length) throw new Error("deletes must be a non-empty array");
|
|
15
|
+
const writerFn = resolver.writer;
|
|
16
|
+
if (metadata["format-version"] !== 3) throw new Error("icebergStageDeletionVector requires format-version 3");
|
|
17
|
+
const formatVersion = 3;
|
|
18
|
+
if (!metadata["partition-specs"].find((s) => s["spec-id"] === metadata["default-spec-id"])) throw new Error("default partition spec not found in metadata");
|
|
19
|
+
const schema = metadata.schemas.find((s) => s["schema-id"] === metadata["current-schema-id"]);
|
|
20
|
+
if (!schema) throw new Error("current schema not found in metadata");
|
|
21
|
+
validateSchemaForVersion(schema, formatVersion);
|
|
22
|
+
const snapshotId = newSnapshotId();
|
|
23
|
+
const sequenceNumber = BigInt(metadata["last-sequence-number"] ?? 0) + 1n;
|
|
24
|
+
const manifestUuid = uuid4();
|
|
25
|
+
const timestampMs = Date.now();
|
|
26
|
+
checkWriteFormat(metadata.properties?.["write.format.default"]);
|
|
27
|
+
const dataFileMap = await findDataFileEntries(metadata, resolver);
|
|
28
|
+
const byFile = /* @__PURE__ */ new Map();
|
|
29
|
+
for (const d of deletes) {
|
|
30
|
+
if (typeof d.file_path !== "string" || !d.file_path) throw new Error("deletion vector file_path must be a non-empty string");
|
|
31
|
+
if (d.pos === void 0 || d.pos === null) throw new Error("deletion vector pos is required");
|
|
32
|
+
const pos = typeof d.pos === "bigint" ? d.pos : BigInt(d.pos);
|
|
33
|
+
if (pos < 0n) throw new Error(`deletion vector pos must be non-negative: ${pos}`);
|
|
34
|
+
let entry = byFile.get(d.file_path);
|
|
35
|
+
if (!entry) {
|
|
36
|
+
const found = dataFileMap.get(d.file_path);
|
|
37
|
+
if (!found) throw new Error(`target data file not found in current snapshot: ${d.file_path}`);
|
|
38
|
+
entry = {
|
|
39
|
+
positions: /* @__PURE__ */ new Set(),
|
|
40
|
+
partition: found.partition,
|
|
41
|
+
partitionSpecId: found.partitionSpecId,
|
|
42
|
+
dataEntry: found.entry
|
|
43
|
+
};
|
|
44
|
+
byFile.set(d.file_path, entry);
|
|
45
|
+
}
|
|
46
|
+
entry.positions.add(pos);
|
|
47
|
+
}
|
|
48
|
+
const priorManifests = await loadPriorManifests(metadata, resolver);
|
|
49
|
+
const priorDeleteManifests = await loadPriorDeleteManifestEntries(priorManifests, resolver);
|
|
50
|
+
const priorPositionDeleteEntries = priorDeleteManifests.flatMap((m) => m.entries).filter((entry) => entry.data_file.content === 1);
|
|
51
|
+
const targetPaths = new Set(byFile.keys());
|
|
52
|
+
const obsoletePositionDeleteEntries = /* @__PURE__ */ new Set();
|
|
53
|
+
if (priorPositionDeleteEntries.length) {
|
|
54
|
+
const { positionDeletesMap } = await fetchDeleteMaps(priorPositionDeleteEntries, resolver);
|
|
55
|
+
const positionDeleteTargets = /* @__PURE__ */ new Map();
|
|
56
|
+
for (const [targetPath, groups] of positionDeletesMap) for (const group of groups) {
|
|
57
|
+
let targets = positionDeleteTargets.get(group.deleteEntry);
|
|
58
|
+
if (!targets) {
|
|
59
|
+
targets = /* @__PURE__ */ new Set();
|
|
60
|
+
positionDeleteTargets.set(group.deleteEntry, targets);
|
|
61
|
+
}
|
|
62
|
+
targets.add(targetPath);
|
|
63
|
+
}
|
|
64
|
+
for (const [targetPath, info] of byFile) {
|
|
65
|
+
const groups = positionDeletesMap.get(targetPath) ?? [];
|
|
66
|
+
for (const group of groups) {
|
|
67
|
+
if (!deleteFileAppliesToDataEntry(info.dataEntry, group.deleteEntry, metadata, "position")) continue;
|
|
68
|
+
for (const pos of group.positions) info.positions.add(pos);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
for (const [entry, coveredTargets] of positionDeleteTargets) {
|
|
72
|
+
if (isDeletionVectorForTarget(entry, targetPaths)) continue;
|
|
73
|
+
let allTargetsCovered = true;
|
|
74
|
+
let appliesToTarget = false;
|
|
75
|
+
for (const targetPath of coveredTargets) {
|
|
76
|
+
if (!targetPaths.has(targetPath)) {
|
|
77
|
+
allTargetsCovered = false;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
const info = byFile.get(targetPath);
|
|
81
|
+
if (info && deleteFileAppliesToDataEntry(info.dataEntry, entry, metadata, "position")) appliesToTarget = true;
|
|
82
|
+
}
|
|
83
|
+
if (allTargetsCovered && appliesToTarget) obsoletePositionDeleteEntries.add(entry);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const skipPriorManifestPaths = /* @__PURE__ */ new Set();
|
|
87
|
+
const replacementManifests = [];
|
|
88
|
+
const replacementManifestPaths = [];
|
|
89
|
+
let replacementIndex = 0;
|
|
90
|
+
let removedDeleteFiles = 0n;
|
|
91
|
+
let removedPositionDeletes = 0n;
|
|
92
|
+
let removedDvs = 0n;
|
|
93
|
+
for (const { manifest, entries } of priorDeleteManifests) {
|
|
94
|
+
const obsolete = entries.filter((entry) => isObsoleteDeleteEntry(entry, targetPaths, obsoletePositionDeleteEntries));
|
|
95
|
+
if (!obsolete.length) continue;
|
|
96
|
+
skipPriorManifestPaths.add(manifest.manifest_path);
|
|
97
|
+
removedDeleteFiles += BigInt(obsolete.length);
|
|
98
|
+
removedPositionDeletes += obsolete.reduce((sum, entry) => sum + entry.data_file.record_count, 0n);
|
|
99
|
+
removedDvs += BigInt(obsolete.filter((entry) => isDeletionVectorForTarget(entry, targetPaths)).length);
|
|
100
|
+
const retained = entries.filter((entry) => !isObsoleteDeleteEntry(entry, targetPaths, obsoletePositionDeleteEntries)).map((entry) => ({
|
|
101
|
+
...entry,
|
|
102
|
+
status: 0
|
|
103
|
+
}));
|
|
104
|
+
if (!retained.length) continue;
|
|
105
|
+
const spec = metadata["partition-specs"].find((s) => s["spec-id"] === manifest.partition_spec_id);
|
|
106
|
+
if (!spec) throw new Error(`partition spec ${manifest.partition_spec_id} not found in metadata`);
|
|
107
|
+
const manifestPath = `${tableUrl}/metadata/${manifestUuid}-r${replacementIndex}.avro`;
|
|
108
|
+
const manifestWriter = writerFn(manifestPath);
|
|
109
|
+
await writeExistingDeleteManifest({
|
|
110
|
+
writer: manifestWriter,
|
|
111
|
+
schema,
|
|
112
|
+
partitionSpec: spec,
|
|
113
|
+
entries: retained,
|
|
114
|
+
formatVersion
|
|
115
|
+
});
|
|
116
|
+
const existingRows = retained.reduce((sum, entry) => sum + entry.data_file.record_count, 0n);
|
|
117
|
+
replacementManifests.push({
|
|
118
|
+
manifest_path: manifestPath,
|
|
119
|
+
manifest_length: BigInt(manifestWriter.offset),
|
|
120
|
+
partition_spec_id: spec["spec-id"],
|
|
121
|
+
content: 1,
|
|
122
|
+
sequence_number: sequenceNumber,
|
|
123
|
+
min_sequence_number: minEntrySequenceNumber(retained, sequenceNumber),
|
|
124
|
+
added_snapshot_id: snapshotId,
|
|
125
|
+
added_files_count: 0,
|
|
126
|
+
existing_files_count: retained.length,
|
|
127
|
+
deleted_files_count: 0,
|
|
128
|
+
added_rows_count: 0n,
|
|
129
|
+
existing_rows_count: existingRows,
|
|
130
|
+
deleted_rows_count: 0n,
|
|
131
|
+
partitions: manifest.partitions ?? []
|
|
132
|
+
});
|
|
133
|
+
replacementManifestPaths.push(manifestPath);
|
|
134
|
+
replacementIndex++;
|
|
135
|
+
}
|
|
136
|
+
const writtenPuffinPaths = [];
|
|
137
|
+
const writtenDeleteFiles = await Promise.all([...byFile.entries()].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(async ([targetPath, info]) => {
|
|
138
|
+
const blob = writeDeletionVector(info.positions);
|
|
139
|
+
const puffin = writePuffinFile({ blobs: [{
|
|
140
|
+
type: "deletion-vector-v1",
|
|
141
|
+
fields: [],
|
|
142
|
+
snapshotId: -1,
|
|
143
|
+
sequenceNumber: -1,
|
|
144
|
+
data: blob,
|
|
145
|
+
properties: {
|
|
146
|
+
"referenced-data-file": targetPath,
|
|
147
|
+
cardinality: String(info.positions.size)
|
|
148
|
+
}
|
|
149
|
+
}] });
|
|
150
|
+
const puffinPath = `${tableUrl}/data/${uuid4()}-deletes.puffin`;
|
|
151
|
+
const puffinWriter = writerFn(puffinPath);
|
|
152
|
+
puffinWriter.appendBytes(puffin);
|
|
153
|
+
await puffinWriter.finish();
|
|
154
|
+
writtenPuffinPaths.push(puffinPath);
|
|
155
|
+
const deleteFile = {
|
|
156
|
+
content: 1,
|
|
157
|
+
file_path: puffinPath,
|
|
158
|
+
file_format: "puffin",
|
|
159
|
+
partition: info.partition,
|
|
160
|
+
record_count: BigInt(info.positions.size),
|
|
161
|
+
file_size_in_bytes: BigInt(puffinWriter.offset),
|
|
162
|
+
referenced_data_file: targetPath,
|
|
163
|
+
content_offset: 4n,
|
|
164
|
+
content_size_in_bytes: BigInt(blob.byteLength)
|
|
165
|
+
};
|
|
166
|
+
return {
|
|
167
|
+
specId: info.partitionSpecId,
|
|
168
|
+
partition: info.partition,
|
|
169
|
+
deleteFile
|
|
170
|
+
};
|
|
171
|
+
}));
|
|
172
|
+
const bySpec = /* @__PURE__ */ new Map();
|
|
173
|
+
for (const f of writtenDeleteFiles) {
|
|
174
|
+
let bucket = bySpec.get(f.specId);
|
|
175
|
+
if (!bucket) {
|
|
176
|
+
const spec = metadata["partition-specs"].find((s) => s["spec-id"] === f.specId);
|
|
177
|
+
if (!spec) throw new Error(`partition spec ${f.specId} not found in metadata`);
|
|
178
|
+
bucket = {
|
|
179
|
+
spec,
|
|
180
|
+
files: [],
|
|
181
|
+
partitions: []
|
|
182
|
+
};
|
|
183
|
+
bySpec.set(f.specId, bucket);
|
|
184
|
+
}
|
|
185
|
+
bucket.files.push(f.deleteFile);
|
|
186
|
+
bucket.partitions.push(f.partition);
|
|
187
|
+
}
|
|
188
|
+
const newManifests = [];
|
|
189
|
+
const writtenManifestPaths = [];
|
|
190
|
+
let manifestIndex = 0;
|
|
191
|
+
for (const { spec, files, partitions } of bySpec.values()) {
|
|
192
|
+
const manifestPath = `${tableUrl}/metadata/${manifestUuid}-m${manifestIndex}.avro`;
|
|
193
|
+
const manifestWriter = writerFn(manifestPath);
|
|
194
|
+
await writeDeleteManifest({
|
|
195
|
+
writer: manifestWriter,
|
|
196
|
+
schema,
|
|
197
|
+
partitionSpec: spec,
|
|
198
|
+
snapshotId,
|
|
199
|
+
deleteFiles: files,
|
|
200
|
+
formatVersion
|
|
201
|
+
});
|
|
202
|
+
const manifestLength = BigInt(manifestWriter.offset);
|
|
203
|
+
const totalAddedRows = files.reduce((sum, f) => sum + f.record_count, 0n);
|
|
204
|
+
newManifests.push({
|
|
205
|
+
manifest_path: manifestPath,
|
|
206
|
+
manifest_length: manifestLength,
|
|
207
|
+
partition_spec_id: spec["spec-id"],
|
|
208
|
+
content: 1,
|
|
209
|
+
sequence_number: sequenceNumber,
|
|
210
|
+
min_sequence_number: sequenceNumber,
|
|
211
|
+
added_snapshot_id: snapshotId,
|
|
212
|
+
added_files_count: files.length,
|
|
213
|
+
existing_files_count: 0,
|
|
214
|
+
deleted_files_count: 0,
|
|
215
|
+
added_rows_count: totalAddedRows,
|
|
216
|
+
existing_rows_count: 0n,
|
|
217
|
+
deleted_rows_count: 0n,
|
|
218
|
+
partitions: spec.fields.length ? buildPartitionSummaries(partitions, schema, spec) : []
|
|
219
|
+
});
|
|
220
|
+
writtenManifestPaths.push(manifestPath);
|
|
221
|
+
manifestIndex++;
|
|
222
|
+
}
|
|
223
|
+
const partitionKeys = /* @__PURE__ */ new Set();
|
|
224
|
+
for (const f of writtenDeleteFiles) partitionKeys.add(`${f.specId}|${partitionTupleKey(f.partition)}`);
|
|
225
|
+
const totalAddedRows = writtenDeleteFiles.reduce((sum, f) => sum + f.deleteFile.record_count, 0n);
|
|
226
|
+
const totalAddedSize = writtenDeleteFiles.reduce((sum, f) => sum + f.deleteFile.file_size_in_bytes, 0n);
|
|
227
|
+
const prevSummary = currentSnapshot(metadata)?.summary;
|
|
228
|
+
const prevTotals = {
|
|
229
|
+
records: BigInt(prevSummary?.["total-records"] ?? "0"),
|
|
230
|
+
size: BigInt(prevSummary?.["total-files-size"] ?? "0"),
|
|
231
|
+
dataFiles: BigInt(prevSummary?.["total-data-files"] ?? "0"),
|
|
232
|
+
deleteFiles: BigInt(prevSummary?.["total-delete-files"] ?? "0"),
|
|
233
|
+
posDeletes: BigInt(prevSummary?.["total-position-deletes"] ?? "0"),
|
|
234
|
+
eqDeletes: BigInt(prevSummary?.["total-equality-deletes"] ?? "0")
|
|
235
|
+
};
|
|
236
|
+
const summary = {
|
|
237
|
+
operation: "delete",
|
|
238
|
+
"added-delete-files": String(writtenDeleteFiles.length),
|
|
239
|
+
"added-dvs": String(writtenDeleteFiles.length),
|
|
240
|
+
"added-position-deletes": String(totalAddedRows),
|
|
241
|
+
"added-files-size": String(totalAddedSize),
|
|
242
|
+
"changed-partition-count": String(partitionKeys.size),
|
|
243
|
+
"total-records": String(prevTotals.records),
|
|
244
|
+
"total-files-size": String(prevTotals.size + totalAddedSize),
|
|
245
|
+
"total-data-files": String(prevTotals.dataFiles),
|
|
246
|
+
"total-delete-files": String(prevTotals.deleteFiles + BigInt(writtenDeleteFiles.length) - removedDeleteFiles),
|
|
247
|
+
"total-position-deletes": String(prevTotals.posDeletes + totalAddedRows - removedPositionDeletes),
|
|
248
|
+
"total-equality-deletes": String(prevTotals.eqDeletes)
|
|
249
|
+
};
|
|
250
|
+
if (removedDeleteFiles > 0n) {
|
|
251
|
+
summary["removed-delete-files"] = String(removedDeleteFiles);
|
|
252
|
+
summary["removed-position-deletes"] = String(removedPositionDeletes);
|
|
253
|
+
if (removedDvs > 0n) summary["removed-dvs"] = String(removedDvs);
|
|
254
|
+
}
|
|
255
|
+
return await buildSnapshotUpdate({
|
|
256
|
+
tableUrl,
|
|
257
|
+
metadata,
|
|
258
|
+
resolver,
|
|
259
|
+
snapshotId,
|
|
260
|
+
sequenceNumber,
|
|
261
|
+
manifestUuid,
|
|
262
|
+
timestampMs,
|
|
263
|
+
formatVersion,
|
|
264
|
+
newManifests: [...replacementManifests, ...newManifests],
|
|
265
|
+
summary,
|
|
266
|
+
writtenFiles: [
|
|
267
|
+
...replacementManifestPaths,
|
|
268
|
+
...writtenPuffinPaths,
|
|
269
|
+
...writtenManifestPaths
|
|
270
|
+
],
|
|
271
|
+
priorManifests,
|
|
272
|
+
skipPriorManifestPaths
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
async function loadPriorDeleteManifestEntries(manifests, resolver) {
|
|
276
|
+
return (await Promise.all(manifests.map(async (manifest) => {
|
|
277
|
+
if (manifest.content !== 1) return;
|
|
278
|
+
return {
|
|
279
|
+
manifest,
|
|
280
|
+
entries: await loadManifestEntries(manifest, resolver)
|
|
281
|
+
};
|
|
282
|
+
}))).filter((g) => g !== void 0);
|
|
283
|
+
}
|
|
284
|
+
function isDeletionVectorForTarget(entry, targetPaths) {
|
|
285
|
+
return entry.data_file.content === 1 && entry.data_file.file_format.toLowerCase() === "puffin" && entry.data_file.referenced_data_file !== void 0 && targetPaths.has(entry.data_file.referenced_data_file);
|
|
286
|
+
}
|
|
287
|
+
function isObsoleteDeleteEntry(entry, targetPaths, obsoletePositionDeleteEntries) {
|
|
288
|
+
return isDeletionVectorForTarget(entry, targetPaths) || obsoletePositionDeleteEntries.has(entry);
|
|
289
|
+
}
|
|
290
|
+
function minEntrySequenceNumber(entries, fallback) {
|
|
291
|
+
let min = fallback;
|
|
292
|
+
for (const entry of entries) if (entry.sequence_number !== void 0 && entry.sequence_number < min) min = entry.sequence_number;
|
|
293
|
+
return min;
|
|
294
|
+
}
|
|
295
|
+
export { icebergStageDeletionVector };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { bytesToHex, uuid4 } from "../utils.mjs";
|
|
2
|
+
import { fetchAvroRecords } from "../fetch.mjs";
|
|
3
|
+
import { validateSchemaForVersion } from "../schema.mjs";
|
|
4
|
+
import { writeDeleteManifest } from "./manifest.mjs";
|
|
5
|
+
import { buildPartitionSummaries, buildSnapshotUpdate, currentSnapshot } from "./snapshot.mjs";
|
|
6
|
+
import { checkWriteFormat, newSnapshotId, resolveParquetCodec } from "./stage.mjs";
|
|
7
|
+
import { writePositionDeleteFile } from "./delete-file.mjs";
|
|
8
|
+
async function icebergStagePositionDelete({ tableUrl, metadata, deletes, resolver }) {
|
|
9
|
+
if (!tableUrl) throw new Error("tableUrl is required");
|
|
10
|
+
if (!resolver?.writer) throw new Error("resolver.writer is required");
|
|
11
|
+
if (!Array.isArray(deletes) || !deletes.length) throw new Error("deletes must be a non-empty array");
|
|
12
|
+
const writerFn = resolver.writer;
|
|
13
|
+
if (metadata["format-version"] !== 2 && metadata["format-version"] !== 3) throw new Error(`unsupported format-version: ${metadata["format-version"]}`);
|
|
14
|
+
if (metadata["format-version"] === 3) throw new Error("format-version 3 tables must use deletion vectors, not new position delete files");
|
|
15
|
+
const formatVersion = metadata["format-version"];
|
|
16
|
+
if (!metadata["partition-specs"].find((s) => s["spec-id"] === metadata["default-spec-id"])) throw new Error("default partition spec not found in metadata");
|
|
17
|
+
const schema = metadata.schemas.find((s) => s["schema-id"] === metadata["current-schema-id"]);
|
|
18
|
+
if (!schema) throw new Error("current schema not found in metadata");
|
|
19
|
+
validateSchemaForVersion(schema, formatVersion);
|
|
20
|
+
const snapshotId = newSnapshotId();
|
|
21
|
+
const sequenceNumber = BigInt(metadata["last-sequence-number"] ?? 0) + 1n;
|
|
22
|
+
const manifestUuid = uuid4();
|
|
23
|
+
const timestampMs = Date.now();
|
|
24
|
+
checkWriteFormat(metadata.properties?.["write.format.default"]);
|
|
25
|
+
const codec = resolveParquetCodec(metadata.properties?.["write.parquet.compression-codec"]);
|
|
26
|
+
const partitionMap = await findDataFilePartitions(metadata, resolver);
|
|
27
|
+
const groups = /* @__PURE__ */ new Map();
|
|
28
|
+
for (const d of deletes) {
|
|
29
|
+
const found = partitionMap.get(d.file_path);
|
|
30
|
+
if (!found) throw new Error(`target data file not found in current snapshot: ${d.file_path}`);
|
|
31
|
+
const { partition, partitionSpecId: specId } = found;
|
|
32
|
+
const key = `${specId}|${partitionTupleKey(partition)}`;
|
|
33
|
+
let group = groups.get(key);
|
|
34
|
+
if (!group) {
|
|
35
|
+
group = {
|
|
36
|
+
specId,
|
|
37
|
+
partition,
|
|
38
|
+
deletes: []
|
|
39
|
+
};
|
|
40
|
+
groups.set(key, group);
|
|
41
|
+
}
|
|
42
|
+
group.deletes.push(d);
|
|
43
|
+
}
|
|
44
|
+
const writtenDeleteFiles = await Promise.all([...groups.values()].map(async (group) => {
|
|
45
|
+
const referencedDataFile = new Set(group.deletes.map((d) => d.file_path)).size === 1 ? group.deletes[0].file_path : void 0;
|
|
46
|
+
const deletePath = `${tableUrl}/data/${uuid4()}-deletes.parquet`;
|
|
47
|
+
const deleteWriter = writerFn(deletePath);
|
|
48
|
+
const stats = await writePositionDeleteFile({
|
|
49
|
+
writer: deleteWriter,
|
|
50
|
+
deletes: group.deletes,
|
|
51
|
+
codec
|
|
52
|
+
});
|
|
53
|
+
const deleteFile = {
|
|
54
|
+
content: 1,
|
|
55
|
+
file_path: deletePath,
|
|
56
|
+
file_format: "parquet",
|
|
57
|
+
partition: group.partition,
|
|
58
|
+
record_count: stats.record_count,
|
|
59
|
+
file_size_in_bytes: BigInt(deleteWriter.offset),
|
|
60
|
+
value_counts: stats.value_counts,
|
|
61
|
+
null_value_counts: stats.null_value_counts,
|
|
62
|
+
lower_bounds: stats.lower_bounds,
|
|
63
|
+
upper_bounds: stats.upper_bounds,
|
|
64
|
+
sort_order_id: 0,
|
|
65
|
+
referenced_data_file: referencedDataFile
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
specId: group.specId,
|
|
69
|
+
partition: group.partition,
|
|
70
|
+
deleteFile,
|
|
71
|
+
path: deletePath
|
|
72
|
+
};
|
|
73
|
+
}));
|
|
74
|
+
const bySpec = /* @__PURE__ */ new Map();
|
|
75
|
+
for (const f of writtenDeleteFiles) {
|
|
76
|
+
let bucket = bySpec.get(f.specId);
|
|
77
|
+
if (!bucket) {
|
|
78
|
+
const spec = metadata["partition-specs"].find((s) => s["spec-id"] === f.specId);
|
|
79
|
+
if (!spec) throw new Error(`partition spec ${f.specId} not found in metadata`);
|
|
80
|
+
bucket = {
|
|
81
|
+
spec,
|
|
82
|
+
files: [],
|
|
83
|
+
partitions: []
|
|
84
|
+
};
|
|
85
|
+
bySpec.set(f.specId, bucket);
|
|
86
|
+
}
|
|
87
|
+
bucket.files.push(f.deleteFile);
|
|
88
|
+
bucket.partitions.push(f.partition);
|
|
89
|
+
}
|
|
90
|
+
const newManifests = [];
|
|
91
|
+
const writtenManifestPaths = [];
|
|
92
|
+
let manifestIndex = 0;
|
|
93
|
+
for (const { spec, files, partitions } of bySpec.values()) {
|
|
94
|
+
const manifestPath = `${tableUrl}/metadata/${manifestUuid}-m${manifestIndex}.avro`;
|
|
95
|
+
const manifestWriter = writerFn(manifestPath);
|
|
96
|
+
await writeDeleteManifest({
|
|
97
|
+
writer: manifestWriter,
|
|
98
|
+
schema,
|
|
99
|
+
partitionSpec: spec,
|
|
100
|
+
snapshotId,
|
|
101
|
+
deleteFiles: files,
|
|
102
|
+
formatVersion
|
|
103
|
+
});
|
|
104
|
+
const manifestLength = BigInt(manifestWriter.offset);
|
|
105
|
+
const totalAddedRows = files.reduce((sum, f) => sum + f.record_count, 0n);
|
|
106
|
+
newManifests.push({
|
|
107
|
+
manifest_path: manifestPath,
|
|
108
|
+
manifest_length: manifestLength,
|
|
109
|
+
partition_spec_id: spec["spec-id"],
|
|
110
|
+
content: 1,
|
|
111
|
+
sequence_number: sequenceNumber,
|
|
112
|
+
min_sequence_number: sequenceNumber,
|
|
113
|
+
added_snapshot_id: snapshotId,
|
|
114
|
+
added_files_count: files.length,
|
|
115
|
+
existing_files_count: 0,
|
|
116
|
+
deleted_files_count: 0,
|
|
117
|
+
added_rows_count: totalAddedRows,
|
|
118
|
+
existing_rows_count: 0n,
|
|
119
|
+
deleted_rows_count: 0n,
|
|
120
|
+
partitions: spec.fields.length ? buildPartitionSummaries(partitions, schema, spec) : []
|
|
121
|
+
});
|
|
122
|
+
writtenManifestPaths.push(manifestPath);
|
|
123
|
+
manifestIndex++;
|
|
124
|
+
}
|
|
125
|
+
const prevSummary = currentSnapshot(metadata)?.summary;
|
|
126
|
+
const prevTotals = {
|
|
127
|
+
records: BigInt(prevSummary?.["total-records"] ?? "0"),
|
|
128
|
+
size: BigInt(prevSummary?.["total-files-size"] ?? "0"),
|
|
129
|
+
dataFiles: BigInt(prevSummary?.["total-data-files"] ?? "0"),
|
|
130
|
+
deleteFiles: BigInt(prevSummary?.["total-delete-files"] ?? "0"),
|
|
131
|
+
posDeletes: BigInt(prevSummary?.["total-position-deletes"] ?? "0"),
|
|
132
|
+
eqDeletes: BigInt(prevSummary?.["total-equality-deletes"] ?? "0")
|
|
133
|
+
};
|
|
134
|
+
const addedSize = writtenDeleteFiles.reduce((sum, f) => sum + f.deleteFile.file_size_in_bytes, 0n);
|
|
135
|
+
const addedPosDeletes = writtenDeleteFiles.reduce((sum, f) => sum + f.deleteFile.record_count, 0n);
|
|
136
|
+
return await buildSnapshotUpdate({
|
|
137
|
+
tableUrl,
|
|
138
|
+
metadata,
|
|
139
|
+
resolver,
|
|
140
|
+
snapshotId,
|
|
141
|
+
sequenceNumber,
|
|
142
|
+
manifestUuid,
|
|
143
|
+
timestampMs,
|
|
144
|
+
formatVersion,
|
|
145
|
+
newManifests,
|
|
146
|
+
summary: {
|
|
147
|
+
operation: "delete",
|
|
148
|
+
"added-delete-files": String(writtenDeleteFiles.length),
|
|
149
|
+
"added-position-deletes": String(addedPosDeletes),
|
|
150
|
+
"added-files-size": String(addedSize),
|
|
151
|
+
"changed-partition-count": String(groups.size),
|
|
152
|
+
"total-records": String(prevTotals.records),
|
|
153
|
+
"total-files-size": String(prevTotals.size + addedSize),
|
|
154
|
+
"total-data-files": String(prevTotals.dataFiles),
|
|
155
|
+
"total-delete-files": String(prevTotals.deleteFiles + BigInt(writtenDeleteFiles.length)),
|
|
156
|
+
"total-position-deletes": String(prevTotals.posDeletes + addedPosDeletes),
|
|
157
|
+
"total-equality-deletes": String(prevTotals.eqDeletes)
|
|
158
|
+
},
|
|
159
|
+
writtenFiles: [...writtenDeleteFiles.map((f) => f.path), ...writtenManifestPaths]
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
async function loadManifestEntries(manifest, resolver) {
|
|
163
|
+
const entries = await fetchAvroRecords(manifest.manifest_path, resolver, Number(manifest.manifest_length));
|
|
164
|
+
for (const entry of entries) {
|
|
165
|
+
entry.partition_spec_id = manifest.partition_spec_id ?? 0;
|
|
166
|
+
if (entry.sequence_number === void 0) entry.sequence_number = manifest.sequence_number ?? 0n;
|
|
167
|
+
if (entry.status === 1 && entry.file_sequence_number === void 0) entry.file_sequence_number = manifest.sequence_number ?? 0n;
|
|
168
|
+
}
|
|
169
|
+
return entries;
|
|
170
|
+
}
|
|
171
|
+
async function findDataFilePartitions(metadata, resolver) {
|
|
172
|
+
const entries = await findDataFileEntries(metadata, resolver);
|
|
173
|
+
const out = /* @__PURE__ */ new Map();
|
|
174
|
+
for (const [path, found] of entries) out.set(path, {
|
|
175
|
+
partition: found.partition,
|
|
176
|
+
partitionSpecId: found.partitionSpecId
|
|
177
|
+
});
|
|
178
|
+
return out;
|
|
179
|
+
}
|
|
180
|
+
async function findDataFileEntries(metadata, resolver) {
|
|
181
|
+
const snap = currentSnapshot(metadata);
|
|
182
|
+
if (!snap?.["manifest-list"]) return /* @__PURE__ */ new Map();
|
|
183
|
+
const manifests = await fetchAvroRecords(snap["manifest-list"], resolver);
|
|
184
|
+
const out = /* @__PURE__ */ new Map();
|
|
185
|
+
await Promise.all(manifests.map(async (manifest) => {
|
|
186
|
+
if (manifest.content !== 0) return;
|
|
187
|
+
const entries = await loadManifestEntries(manifest, resolver);
|
|
188
|
+
for (const entry of entries) {
|
|
189
|
+
if (entry.status === 2) continue;
|
|
190
|
+
const f = entry.data_file;
|
|
191
|
+
if (f.content !== 0) continue;
|
|
192
|
+
out.set(f.file_path, {
|
|
193
|
+
partition: f.partition ?? {},
|
|
194
|
+
partitionSpecId: manifest.partition_spec_id ?? 0,
|
|
195
|
+
entry
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
}));
|
|
199
|
+
return out;
|
|
200
|
+
}
|
|
201
|
+
function partitionTupleKey(partition) {
|
|
202
|
+
return Object.keys(partition).sort().map((k) => `${k}=${valueTag(partition[k])}`).join(",");
|
|
203
|
+
}
|
|
204
|
+
function valueTag(v) {
|
|
205
|
+
if (v === null || v === void 0) return "null";
|
|
206
|
+
if (typeof v === "bigint") return `b:${v.toString()}`;
|
|
207
|
+
if (typeof v === "number") {
|
|
208
|
+
if (Number.isNaN(v)) return "n:NaN";
|
|
209
|
+
if (Object.is(v, -0)) return "n:-0";
|
|
210
|
+
return `n:${v}`;
|
|
211
|
+
}
|
|
212
|
+
if (v instanceof Date) return `d:${v.getTime()}`;
|
|
213
|
+
if (v instanceof Uint8Array) return `x:${bytesToHex(v)}`;
|
|
214
|
+
return `${typeof v}:${String(v)}`;
|
|
215
|
+
}
|
|
216
|
+
export { findDataFileEntries, icebergStagePositionDelete, loadManifestEntries, partitionTupleKey };
|