@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,220 @@
|
|
|
1
|
+
import { typeName } from "../schema.mjs";
|
|
2
|
+
import { uuidToBytes } from "./conversions.mjs";
|
|
3
|
+
function parseTransform(transform) {
|
|
4
|
+
if (transform === "identity" || transform === "void" || transform === "year" || transform === "month" || transform === "day" || transform === "hour") return { kind: transform };
|
|
5
|
+
let m = /^bucket\[(\d+)\]$/.exec(transform);
|
|
6
|
+
if (m) {
|
|
7
|
+
const n = parseInt(m[1], 10);
|
|
8
|
+
if (n > 0) return {
|
|
9
|
+
kind: "bucket",
|
|
10
|
+
n
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
m = /^truncate\[(\d+)\]$/.exec(transform);
|
|
14
|
+
if (m) {
|
|
15
|
+
const w = parseInt(m[1], 10);
|
|
16
|
+
if (w > 0) return {
|
|
17
|
+
kind: "truncate",
|
|
18
|
+
w
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
throw new Error(`unsupported partition transform: ${transform}`);
|
|
22
|
+
}
|
|
23
|
+
function transformResultType(transform, sourceType) {
|
|
24
|
+
const parsed = parseTransform(transform);
|
|
25
|
+
validateTransformSource(parsed, sourceType);
|
|
26
|
+
switch (parsed.kind) {
|
|
27
|
+
case "identity":
|
|
28
|
+
case "truncate": return sourceType;
|
|
29
|
+
case "void": return "int";
|
|
30
|
+
case "year":
|
|
31
|
+
case "month":
|
|
32
|
+
case "day":
|
|
33
|
+
case "hour":
|
|
34
|
+
case "bucket": return "int";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function applyTransform(transform, value, sourceType) {
|
|
38
|
+
const parsed = parseTransform(transform);
|
|
39
|
+
validateTransformSource(parsed, sourceType);
|
|
40
|
+
if (value == null) return null;
|
|
41
|
+
switch (parsed.kind) {
|
|
42
|
+
case "identity": return value;
|
|
43
|
+
case "void": return null;
|
|
44
|
+
case "year": return yearTransform(value, sourceType);
|
|
45
|
+
case "month": return monthTransform(value, sourceType);
|
|
46
|
+
case "day": return dayTransform(value, sourceType);
|
|
47
|
+
case "hour": return hourTransform(value, sourceType);
|
|
48
|
+
case "bucket": return bucketTransform(value, sourceType, parsed.n);
|
|
49
|
+
case "truncate": return truncateTransform(value, sourceType, parsed.w);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function dateAsMillis(value, sourceType, transform) {
|
|
53
|
+
const t = typeName(sourceType);
|
|
54
|
+
validateTransformSource({ kind: transform }, sourceType);
|
|
55
|
+
if (value instanceof Date) return value.getTime();
|
|
56
|
+
const n = typeof value === "bigint" ? value : BigInt(value);
|
|
57
|
+
switch (t) {
|
|
58
|
+
case "date": return Number(n) * 864e5;
|
|
59
|
+
case "timestamp":
|
|
60
|
+
case "timestamptz": return Number(n / 1000n);
|
|
61
|
+
default: return Number(n / 1000000n);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function yearTransform(v, t) {
|
|
65
|
+
return new Date(dateAsMillis(v, t, "year")).getUTCFullYear() - 1970;
|
|
66
|
+
}
|
|
67
|
+
function monthTransform(v, t) {
|
|
68
|
+
const d = new Date(dateAsMillis(v, t, "month"));
|
|
69
|
+
return (d.getUTCFullYear() - 1970) * 12 + d.getUTCMonth();
|
|
70
|
+
}
|
|
71
|
+
function dayTransform(v, t) {
|
|
72
|
+
return Math.floor(dateAsMillis(v, t, "day") / 864e5);
|
|
73
|
+
}
|
|
74
|
+
function hourTransform(v, t) {
|
|
75
|
+
return Math.floor(dateAsMillis(v, t, "hour") / 36e5);
|
|
76
|
+
}
|
|
77
|
+
function bucketTransform(value, sourceType, n) {
|
|
78
|
+
return (murmur3_32(bucketBytes(value, sourceType), 0) & 2147483647) % n;
|
|
79
|
+
}
|
|
80
|
+
function bucketBytes(value, sourceType) {
|
|
81
|
+
const t = typeName(sourceType);
|
|
82
|
+
if (t.startsWith("decimal(")) return decimalToUnscaledBytes(value, t);
|
|
83
|
+
if (t === "uuid") return uuidToBytes(value, "uuid partition value");
|
|
84
|
+
if (t.startsWith("fixed[") || t === "binary" || t === "fixed") return value instanceof Uint8Array ? value : new Uint8Array(value);
|
|
85
|
+
switch (t) {
|
|
86
|
+
case "int":
|
|
87
|
+
case "long":
|
|
88
|
+
case "date":
|
|
89
|
+
case "time":
|
|
90
|
+
case "timestamp":
|
|
91
|
+
case "timestamptz":
|
|
92
|
+
case "timestamp_ns":
|
|
93
|
+
case "timestamptz_ns": {
|
|
94
|
+
let v;
|
|
95
|
+
if (t === "date") v = value instanceof Date ? BigInt(Math.floor(value.getTime() / 864e5)) : BigInt(value);
|
|
96
|
+
else if (t === "timestamp" || t === "timestamptz") v = value instanceof Date ? BigInt(value.getTime()) * 1000n : BigInt(value);
|
|
97
|
+
else if (t === "timestamp_ns" || t === "timestamptz_ns") v = value instanceof Date ? BigInt(value.getTime()) * 1000n : BigInt(value) / 1000n;
|
|
98
|
+
else v = typeof value === "bigint" ? value : BigInt(value);
|
|
99
|
+
const out = /* @__PURE__ */ new Uint8Array(8);
|
|
100
|
+
new DataView(out.buffer).setBigInt64(0, v, true);
|
|
101
|
+
return out;
|
|
102
|
+
}
|
|
103
|
+
case "string": return new TextEncoder().encode(String(value));
|
|
104
|
+
default: throw new Error(`bucket transform: unsupported source type ${t}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function decimalToUnscaledBytes(value, decimalType) {
|
|
108
|
+
const m = /^decimal\((\d+),\s*(\d+)\)$/.exec(decimalType);
|
|
109
|
+
if (!m) throw new Error(`bucket transform: invalid decimal type ${decimalType}`);
|
|
110
|
+
const scale = parseInt(m[2], 10);
|
|
111
|
+
const factor = 10n ** BigInt(scale);
|
|
112
|
+
const unscaled = typeof value === "bigint" ? value * factor : BigInt(Math.round(Number(value) * Number(factor)));
|
|
113
|
+
const bytes = [];
|
|
114
|
+
let v = unscaled;
|
|
115
|
+
while (true) {
|
|
116
|
+
const byte = Number(v & 255n);
|
|
117
|
+
bytes.unshift(byte);
|
|
118
|
+
v >>= 8n;
|
|
119
|
+
const sign = byte & 128;
|
|
120
|
+
if (!sign && v === 0n || sign && v === -1n) break;
|
|
121
|
+
}
|
|
122
|
+
return new Uint8Array(bytes);
|
|
123
|
+
}
|
|
124
|
+
function truncateTransform(value, sourceType, w) {
|
|
125
|
+
const t = typeName(sourceType);
|
|
126
|
+
if (t.startsWith("decimal(")) {
|
|
127
|
+
const m = /^decimal\((\d+),\s*(\d+)\)$/.exec(t);
|
|
128
|
+
if (!m) throw new Error(`truncate transform: invalid decimal type ${t}`);
|
|
129
|
+
const scale = parseInt(m[2], 10);
|
|
130
|
+
const factor = 10n ** BigInt(scale);
|
|
131
|
+
const unscaled = typeof value === "bigint" ? value * factor : BigInt(Math.round(Number(value) * Number(factor)));
|
|
132
|
+
const W = BigInt(w);
|
|
133
|
+
const truncated = unscaled - (unscaled % W + W) % W;
|
|
134
|
+
return Number(truncated) / Number(factor);
|
|
135
|
+
}
|
|
136
|
+
if (t === "binary") return (value instanceof Uint8Array ? value : new Uint8Array(value)).slice(0, w);
|
|
137
|
+
switch (t) {
|
|
138
|
+
case "int": {
|
|
139
|
+
const v = Number(value);
|
|
140
|
+
return v - (v % w + w) % w;
|
|
141
|
+
}
|
|
142
|
+
case "long": {
|
|
143
|
+
const W = BigInt(w);
|
|
144
|
+
const v = typeof value === "bigint" ? value : BigInt(value);
|
|
145
|
+
return v - (v % W + W) % W;
|
|
146
|
+
}
|
|
147
|
+
case "string": {
|
|
148
|
+
const s = String(value);
|
|
149
|
+
let count = 0;
|
|
150
|
+
let i = 0;
|
|
151
|
+
while (i < s.length && count < w) {
|
|
152
|
+
const code = s.codePointAt(i);
|
|
153
|
+
i += code > 65535 ? 2 : 1;
|
|
154
|
+
count++;
|
|
155
|
+
}
|
|
156
|
+
return s.slice(0, i);
|
|
157
|
+
}
|
|
158
|
+
default: throw new Error(`truncate transform: unsupported source type ${t}`);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function validateTransformSource(parsed, sourceType) {
|
|
162
|
+
const t = typeName(sourceType);
|
|
163
|
+
switch (parsed.kind) {
|
|
164
|
+
case "identity":
|
|
165
|
+
if (t === "variant" || t === "geometry" || t.startsWith("geometry(") || t === "geography" || t.startsWith("geography(")) throw new Error(`identity transform: unsupported source type ${t}`);
|
|
166
|
+
return;
|
|
167
|
+
case "void": return;
|
|
168
|
+
case "bucket":
|
|
169
|
+
if (t === "int" || t === "long" || t.startsWith("decimal(") || t === "date" || t === "time" || t === "timestamp" || t === "timestamptz" || t === "timestamp_ns" || t === "timestamptz_ns" || t === "string" || t === "uuid" || t.startsWith("fixed[") || t === "binary" || t === "fixed") return;
|
|
170
|
+
throw new Error(`bucket transform: unsupported source type ${t}`);
|
|
171
|
+
case "truncate":
|
|
172
|
+
if (t === "int" || t === "long" || t.startsWith("decimal(") || t === "string" || t === "binary") return;
|
|
173
|
+
throw new Error(`truncate transform: unsupported source type ${t}`);
|
|
174
|
+
case "year":
|
|
175
|
+
case "month":
|
|
176
|
+
case "day":
|
|
177
|
+
if (t === "date" || t === "timestamp" || t === "timestamptz" || t === "timestamp_ns" || t === "timestamptz_ns") return;
|
|
178
|
+
throw new Error(`${parsed.kind} transform: unsupported source type ${t}`);
|
|
179
|
+
case "hour":
|
|
180
|
+
if (t === "timestamp" || t === "timestamptz" || t === "timestamp_ns" || t === "timestamptz_ns") return;
|
|
181
|
+
throw new Error("hour transform: unsupported source type " + t);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function murmur3_32(data, seed) {
|
|
185
|
+
const c1 = 3432918353;
|
|
186
|
+
const c2 = 461845907;
|
|
187
|
+
const len = data.length;
|
|
188
|
+
const nBlocks = len >>> 2;
|
|
189
|
+
let h1 = seed >>> 0;
|
|
190
|
+
for (let i = 0; i < nBlocks; i++) {
|
|
191
|
+
const off = i * 4;
|
|
192
|
+
let k1 = data[off] | data[off + 1] << 8 | data[off + 2] << 16 | data[off + 3] << 24;
|
|
193
|
+
k1 = Math.imul(k1, c1);
|
|
194
|
+
k1 = k1 << 15 | k1 >>> 17;
|
|
195
|
+
k1 = Math.imul(k1, c2);
|
|
196
|
+
h1 ^= k1;
|
|
197
|
+
h1 = h1 << 13 | h1 >>> 19;
|
|
198
|
+
h1 = Math.imul(h1, 5) + 3864292196 | 0;
|
|
199
|
+
}
|
|
200
|
+
let k1 = 0;
|
|
201
|
+
const tail = nBlocks * 4;
|
|
202
|
+
switch (len & 3) {
|
|
203
|
+
case 3: k1 ^= data[tail + 2] << 16;
|
|
204
|
+
case 2: k1 ^= data[tail + 1] << 8;
|
|
205
|
+
case 1:
|
|
206
|
+
k1 ^= data[tail];
|
|
207
|
+
k1 = Math.imul(k1, c1);
|
|
208
|
+
k1 = k1 << 15 | k1 >>> 17;
|
|
209
|
+
k1 = Math.imul(k1, c2);
|
|
210
|
+
h1 ^= k1;
|
|
211
|
+
}
|
|
212
|
+
h1 ^= len;
|
|
213
|
+
h1 ^= h1 >>> 16;
|
|
214
|
+
h1 = Math.imul(h1, 2246822507);
|
|
215
|
+
h1 ^= h1 >>> 13;
|
|
216
|
+
h1 = Math.imul(h1, 3266489909);
|
|
217
|
+
h1 ^= h1 >>> 16;
|
|
218
|
+
return h1 >>> 0;
|
|
219
|
+
}
|
|
220
|
+
export { applyTransform, murmur3_32, parseTransform, transformResultType };
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { restCatalogCreateTable, restCatalogDropTable, restCatalogLoadTable, restCatalogUpdateTable } from "../catalog/rest.mjs";
|
|
2
|
+
import { loadLatestFileCatalogMetadata } from "../metadata.mjs";
|
|
3
|
+
import { loadTable } from "../catalog/loadTable.mjs";
|
|
4
|
+
import { icebergCreate } from "../create.mjs";
|
|
5
|
+
import { applyUpdates, fileCatalogCommit } from "./commit.mjs";
|
|
6
|
+
import { icebergStageAppend, icebergStageExpireSnapshots, icebergStageSetRef, icebergStageUpdateSchema, prepareAppend, stageSnapshotForAppend, stageSnapshotForAppendBatches } from "./stage.mjs";
|
|
7
|
+
import { icebergStagePositionDelete } from "./stage-position-delete.mjs";
|
|
8
|
+
import { icebergStageDeletionVector } from "./stage-deletion-vector.mjs";
|
|
9
|
+
import { icebergStageRewrite } from "./rewrite.mjs";
|
|
10
|
+
const DEFAULT_RETRY = Object.freeze({
|
|
11
|
+
maxAttempts: 50,
|
|
12
|
+
initialMs: 50,
|
|
13
|
+
maxMs: 3e3,
|
|
14
|
+
factor: 2,
|
|
15
|
+
totalTimeoutMs: 1800 * 1e3
|
|
16
|
+
});
|
|
17
|
+
async function icebergAppend({ catalog, namespace, table, tableUrl, resolver, records, sortOrderId, snapshotProperties }) {
|
|
18
|
+
const ctx = await loadTable({
|
|
19
|
+
catalog,
|
|
20
|
+
namespace,
|
|
21
|
+
table,
|
|
22
|
+
tableUrl,
|
|
23
|
+
resolver
|
|
24
|
+
});
|
|
25
|
+
const prepared = await prepareAppend({
|
|
26
|
+
tableUrl: ctx.tableUrl,
|
|
27
|
+
metadata: ctx.metadata,
|
|
28
|
+
records,
|
|
29
|
+
resolver: requireResolver(ctx.resolver, "icebergAppend"),
|
|
30
|
+
sortOrderId
|
|
31
|
+
});
|
|
32
|
+
return await commitWithRetry({
|
|
33
|
+
catalog,
|
|
34
|
+
target: {
|
|
35
|
+
namespace,
|
|
36
|
+
table
|
|
37
|
+
},
|
|
38
|
+
ctx,
|
|
39
|
+
stage: (workingCtx) => stageSnapshotForAppend({
|
|
40
|
+
tableUrl: workingCtx.tableUrl,
|
|
41
|
+
metadata: workingCtx.metadata,
|
|
42
|
+
prepared,
|
|
43
|
+
resolver: requireResolver(workingCtx.resolver, "icebergAppend"),
|
|
44
|
+
snapshotProperties
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async function icebergAppendBatches({ catalog, namespace, table, tableUrl, resolver, batches, sortOrderId, snapshotProperties }) {
|
|
49
|
+
const ctx = await loadTable({
|
|
50
|
+
catalog,
|
|
51
|
+
namespace,
|
|
52
|
+
table,
|
|
53
|
+
tableUrl,
|
|
54
|
+
resolver
|
|
55
|
+
});
|
|
56
|
+
const writer = requireResolver(ctx.resolver, "icebergAppendBatches");
|
|
57
|
+
const prepared = [];
|
|
58
|
+
let snapshotId;
|
|
59
|
+
for await (const records of batches) {
|
|
60
|
+
if (records.length === 0) continue;
|
|
61
|
+
const batch = await prepareAppend({
|
|
62
|
+
tableUrl: ctx.tableUrl,
|
|
63
|
+
metadata: ctx.metadata,
|
|
64
|
+
records,
|
|
65
|
+
resolver: writer,
|
|
66
|
+
sortOrderId,
|
|
67
|
+
snapshotId
|
|
68
|
+
});
|
|
69
|
+
snapshotId ??= batch.snapshotId;
|
|
70
|
+
prepared.push(batch);
|
|
71
|
+
}
|
|
72
|
+
if (prepared.length === 0) return ctx.metadata;
|
|
73
|
+
return await commitWithRetry({
|
|
74
|
+
catalog,
|
|
75
|
+
target: {
|
|
76
|
+
namespace,
|
|
77
|
+
table
|
|
78
|
+
},
|
|
79
|
+
ctx,
|
|
80
|
+
stage: (workingCtx) => stageSnapshotForAppendBatches({
|
|
81
|
+
tableUrl: workingCtx.tableUrl,
|
|
82
|
+
metadata: workingCtx.metadata,
|
|
83
|
+
prepared,
|
|
84
|
+
resolver: requireResolver(workingCtx.resolver, "icebergAppendBatches"),
|
|
85
|
+
snapshotProperties
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
async function icebergRewrite({ catalog, namespace, table, tableUrl, resolver, sortOrderId, partitionSpecId, targetFileRows }) {
|
|
90
|
+
const ctx = await loadTable({
|
|
91
|
+
catalog,
|
|
92
|
+
namespace,
|
|
93
|
+
table,
|
|
94
|
+
tableUrl,
|
|
95
|
+
resolver
|
|
96
|
+
});
|
|
97
|
+
const staged = await icebergStageRewrite({
|
|
98
|
+
tableUrl: ctx.tableUrl,
|
|
99
|
+
metadata: ctx.metadata,
|
|
100
|
+
resolver: requireResolver(ctx.resolver, "icebergRewrite"),
|
|
101
|
+
sortOrderId,
|
|
102
|
+
partitionSpecId,
|
|
103
|
+
targetFileRows
|
|
104
|
+
});
|
|
105
|
+
return await commitStaged(catalog, {
|
|
106
|
+
namespace,
|
|
107
|
+
table
|
|
108
|
+
}, ctx, staged);
|
|
109
|
+
}
|
|
110
|
+
async function icebergDelete({ catalog, namespace, table, tableUrl, resolver, deletes, mode }) {
|
|
111
|
+
const ctx = await loadTable({
|
|
112
|
+
catalog,
|
|
113
|
+
namespace,
|
|
114
|
+
table,
|
|
115
|
+
tableUrl,
|
|
116
|
+
resolver
|
|
117
|
+
});
|
|
118
|
+
return await commitWithRetry({
|
|
119
|
+
catalog,
|
|
120
|
+
target: {
|
|
121
|
+
namespace,
|
|
122
|
+
table
|
|
123
|
+
},
|
|
124
|
+
ctx,
|
|
125
|
+
stage: async (workingCtx) => {
|
|
126
|
+
const writer = requireResolver(workingCtx.resolver, "icebergDelete");
|
|
127
|
+
const formatVersion = workingCtx.metadata["format-version"];
|
|
128
|
+
const effective = mode ?? (formatVersion === 3 ? "puffin" : "parquet");
|
|
129
|
+
if (effective === "puffin") return await icebergStageDeletionVector({
|
|
130
|
+
tableUrl: workingCtx.tableUrl,
|
|
131
|
+
metadata: workingCtx.metadata,
|
|
132
|
+
deletes,
|
|
133
|
+
resolver: writer
|
|
134
|
+
});
|
|
135
|
+
if (effective === "parquet") return await icebergStagePositionDelete({
|
|
136
|
+
tableUrl: workingCtx.tableUrl,
|
|
137
|
+
metadata: workingCtx.metadata,
|
|
138
|
+
deletes,
|
|
139
|
+
resolver: writer
|
|
140
|
+
});
|
|
141
|
+
throw new Error(`unknown delete mode: ${effective}`);
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
async function icebergSetRef({ catalog, namespace, table, tableUrl, resolver, ref, snapshotId, type, minSnapshotsToKeep, maxSnapshotAgeMs, maxRefAgeMs }) {
|
|
146
|
+
const ctx = await loadTable({
|
|
147
|
+
catalog,
|
|
148
|
+
namespace,
|
|
149
|
+
table,
|
|
150
|
+
tableUrl,
|
|
151
|
+
resolver
|
|
152
|
+
});
|
|
153
|
+
return await commitWithRetry({
|
|
154
|
+
catalog,
|
|
155
|
+
target: {
|
|
156
|
+
namespace,
|
|
157
|
+
table
|
|
158
|
+
},
|
|
159
|
+
ctx,
|
|
160
|
+
stage: (workingCtx) => icebergStageSetRef({
|
|
161
|
+
metadata: workingCtx.metadata,
|
|
162
|
+
ref,
|
|
163
|
+
snapshotId,
|
|
164
|
+
type,
|
|
165
|
+
minSnapshotsToKeep,
|
|
166
|
+
maxSnapshotAgeMs,
|
|
167
|
+
maxRefAgeMs
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
async function icebergUpdateSchema({ catalog, namespace, table, tableUrl, resolver, schema }) {
|
|
172
|
+
const ctx = await loadTable({
|
|
173
|
+
catalog,
|
|
174
|
+
namespace,
|
|
175
|
+
table,
|
|
176
|
+
tableUrl,
|
|
177
|
+
resolver
|
|
178
|
+
});
|
|
179
|
+
return await commitWithRetry({
|
|
180
|
+
catalog,
|
|
181
|
+
target: {
|
|
182
|
+
namespace,
|
|
183
|
+
table
|
|
184
|
+
},
|
|
185
|
+
ctx,
|
|
186
|
+
stage: (workingCtx) => icebergStageUpdateSchema({
|
|
187
|
+
metadata: workingCtx.metadata,
|
|
188
|
+
schema
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
async function icebergExpireSnapshots({ catalog, namespace, table, tableUrl, resolver, snapshotIds }) {
|
|
193
|
+
const ctx = await loadTable({
|
|
194
|
+
catalog,
|
|
195
|
+
namespace,
|
|
196
|
+
table,
|
|
197
|
+
tableUrl,
|
|
198
|
+
resolver
|
|
199
|
+
});
|
|
200
|
+
return await commitWithRetry({
|
|
201
|
+
catalog,
|
|
202
|
+
target: {
|
|
203
|
+
namespace,
|
|
204
|
+
table
|
|
205
|
+
},
|
|
206
|
+
ctx,
|
|
207
|
+
stage: (workingCtx) => icebergStageExpireSnapshots({
|
|
208
|
+
metadata: workingCtx.metadata,
|
|
209
|
+
snapshotIds
|
|
210
|
+
})
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
async function icebergTransaction({ catalog, namespace, table, tableUrl, resolver }, callback) {
|
|
214
|
+
const ctx = await loadTable({
|
|
215
|
+
catalog,
|
|
216
|
+
namespace,
|
|
217
|
+
table,
|
|
218
|
+
tableUrl,
|
|
219
|
+
resolver
|
|
220
|
+
});
|
|
221
|
+
const deleter = ctx.resolver?.deleter;
|
|
222
|
+
let workingMetadata = ctx.metadata;
|
|
223
|
+
const allRequirements = [];
|
|
224
|
+
const allUpdates = [];
|
|
225
|
+
const allWrittenFiles = [];
|
|
226
|
+
let lastSnapshot;
|
|
227
|
+
function mergeStaged(staged) {
|
|
228
|
+
for (const req of staged.requirements) {
|
|
229
|
+
const key = requirementKey(req);
|
|
230
|
+
if (!allRequirements.some((r) => requirementKey(r) === key)) allRequirements.push(req);
|
|
231
|
+
}
|
|
232
|
+
allUpdates.push(...staged.updates);
|
|
233
|
+
allWrittenFiles.push(...staged.writtenFiles);
|
|
234
|
+
workingMetadata = applyUpdates(workingMetadata, staged.updates);
|
|
235
|
+
lastSnapshot = staged.snapshot;
|
|
236
|
+
}
|
|
237
|
+
await callback({
|
|
238
|
+
async append({ records, sortOrderId }) {
|
|
239
|
+
const writer = requireResolver(ctx.resolver, "icebergTransaction.append");
|
|
240
|
+
mergeStaged(await icebergStageAppend({
|
|
241
|
+
tableUrl: ctx.tableUrl,
|
|
242
|
+
metadata: workingMetadata,
|
|
243
|
+
records,
|
|
244
|
+
resolver: writer,
|
|
245
|
+
sortOrderId
|
|
246
|
+
}));
|
|
247
|
+
},
|
|
248
|
+
async delete({ deletes, mode }) {
|
|
249
|
+
const writer = requireResolver(ctx.resolver, "icebergTransaction.delete");
|
|
250
|
+
const formatVersion = workingMetadata["format-version"];
|
|
251
|
+
const effective = mode ?? (formatVersion === 3 ? "puffin" : "parquet");
|
|
252
|
+
let staged;
|
|
253
|
+
if (effective === "puffin") staged = await icebergStageDeletionVector({
|
|
254
|
+
tableUrl: ctx.tableUrl,
|
|
255
|
+
metadata: workingMetadata,
|
|
256
|
+
deletes,
|
|
257
|
+
resolver: writer
|
|
258
|
+
});
|
|
259
|
+
else if (effective === "parquet") staged = await icebergStagePositionDelete({
|
|
260
|
+
tableUrl: ctx.tableUrl,
|
|
261
|
+
metadata: workingMetadata,
|
|
262
|
+
deletes,
|
|
263
|
+
resolver: writer
|
|
264
|
+
});
|
|
265
|
+
else throw new Error(`unknown delete mode: ${effective}`);
|
|
266
|
+
mergeStaged(staged);
|
|
267
|
+
},
|
|
268
|
+
setRef({ ref, snapshotId, type, minSnapshotsToKeep, maxSnapshotAgeMs, maxRefAgeMs }) {
|
|
269
|
+
mergeStaged(icebergStageSetRef({
|
|
270
|
+
metadata: workingMetadata,
|
|
271
|
+
ref,
|
|
272
|
+
snapshotId,
|
|
273
|
+
type,
|
|
274
|
+
minSnapshotsToKeep,
|
|
275
|
+
maxSnapshotAgeMs,
|
|
276
|
+
maxRefAgeMs
|
|
277
|
+
}));
|
|
278
|
+
},
|
|
279
|
+
expireSnapshots({ snapshotIds }) {
|
|
280
|
+
mergeStaged(icebergStageExpireSnapshots({
|
|
281
|
+
metadata: workingMetadata,
|
|
282
|
+
snapshotIds
|
|
283
|
+
}));
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
if (allUpdates.length === 0) return ctx.metadata;
|
|
287
|
+
if (!lastSnapshot) throw new Error("icebergTransaction: no snapshot produced");
|
|
288
|
+
try {
|
|
289
|
+
return await commitStaged(catalog, {
|
|
290
|
+
namespace,
|
|
291
|
+
table
|
|
292
|
+
}, ctx, {
|
|
293
|
+
snapshot: lastSnapshot,
|
|
294
|
+
requirements: allRequirements,
|
|
295
|
+
updates: allUpdates,
|
|
296
|
+
writtenFiles: allWrittenFiles
|
|
297
|
+
});
|
|
298
|
+
} catch (err) {
|
|
299
|
+
if (deleter && allWrittenFiles.length > 0) await Promise.allSettled(allWrittenFiles.map((p) => deleter(p)));
|
|
300
|
+
if (isCommitConflict(err)) throw new IcebergTransactionConflictError(err);
|
|
301
|
+
throw err;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
var IcebergTransactionConflictError = class extends Error {
|
|
305
|
+
constructor(cause) {
|
|
306
|
+
const status = cause?.status;
|
|
307
|
+
const detail = cause?.message;
|
|
308
|
+
super(`icebergTransaction commit conflicted with a concurrent writer${status ? ` (status ${status})` : ""}. The transaction was not applied and staged files were cleaned up. Wrap the icebergTransaction call in your own retry loop if the callback is safe to re-run; for append-only workloads prefer icebergAppend, which retries without re-uploading data.` + (detail ? ` (cause: ${detail})` : ""));
|
|
309
|
+
this.name = "IcebergTransactionConflictError";
|
|
310
|
+
this.cause = cause;
|
|
311
|
+
if (typeof status === "number") this.status = status;
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
function requirementKey(req) {
|
|
315
|
+
if (req.type === "assert-ref-snapshot-id") return `${req.type}:${req.ref}`;
|
|
316
|
+
return req.type;
|
|
317
|
+
}
|
|
318
|
+
async function icebergCreateTable({ catalog, namespace, table, tableUrl, schema, partitionSpec, sortOrder, properties, formatVersion, stageCreate }) {
|
|
319
|
+
if (catalog.type === "rest") {
|
|
320
|
+
if (!namespace || !table) throw new Error("namespace and table are required for rest catalogs");
|
|
321
|
+
if (!schema) throw new Error("schema is required for rest catalogs");
|
|
322
|
+
const { metadata } = await restCatalogCreateTable(catalog, {
|
|
323
|
+
namespace,
|
|
324
|
+
table,
|
|
325
|
+
schema,
|
|
326
|
+
location: tableUrl,
|
|
327
|
+
partitionSpec,
|
|
328
|
+
writeOrder: sortOrder,
|
|
329
|
+
stageCreate,
|
|
330
|
+
properties
|
|
331
|
+
});
|
|
332
|
+
return metadata;
|
|
333
|
+
}
|
|
334
|
+
if (!tableUrl) throw new Error("tableUrl is required for file catalogs");
|
|
335
|
+
return await icebergCreate({
|
|
336
|
+
tableUrl,
|
|
337
|
+
resolver: catalog.resolver,
|
|
338
|
+
schema,
|
|
339
|
+
formatVersion,
|
|
340
|
+
partitionSpec,
|
|
341
|
+
sortOrder,
|
|
342
|
+
properties,
|
|
343
|
+
conditionalCommits: catalog.conditionalCommits
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
async function icebergDropTable({ catalog, namespace, table, tableUrl, lister, purgeRequested }) {
|
|
347
|
+
if (catalog.type === "rest") {
|
|
348
|
+
if (!namespace || !table) throw new Error("namespace and table are required for rest catalogs");
|
|
349
|
+
await restCatalogDropTable(catalog, {
|
|
350
|
+
namespace,
|
|
351
|
+
table,
|
|
352
|
+
purgeRequested
|
|
353
|
+
});
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
if (!tableUrl) throw new Error("tableUrl is required for file catalogs");
|
|
357
|
+
if (!lister) throw new Error("lister is required to drop a file catalog table");
|
|
358
|
+
const { deleter } = catalog.resolver;
|
|
359
|
+
if (!deleter) throw new Error("resolver.deleter is required to drop a file catalog table");
|
|
360
|
+
const dirs = purgeRequested ? ["metadata", "data"] : ["metadata"];
|
|
361
|
+
for (const dir of dirs) {
|
|
362
|
+
const names = await lister(`${tableUrl}/${dir}`).catch(() => []);
|
|
363
|
+
await Promise.allSettled(names.map((n) => deleter(`${tableUrl}/${dir}/${n}`)));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function requireResolver(resolver, caller) {
|
|
367
|
+
if (!resolver) throw new Error(`${caller}: resolver is required`);
|
|
368
|
+
return resolver;
|
|
369
|
+
}
|
|
370
|
+
async function commitStaged(catalog, target, ctx, staged) {
|
|
371
|
+
if (catalog.type === "rest") {
|
|
372
|
+
const { metadata } = await restCatalogUpdateTable(catalog, {
|
|
373
|
+
namespace: target.namespace,
|
|
374
|
+
table: target.table,
|
|
375
|
+
requirements: staged.requirements,
|
|
376
|
+
updates: staged.updates
|
|
377
|
+
});
|
|
378
|
+
return metadata;
|
|
379
|
+
}
|
|
380
|
+
if (!ctx.resolver) throw new Error("resolver is required to commit to a file catalog");
|
|
381
|
+
return await fileCatalogCommit({
|
|
382
|
+
tableUrl: ctx.tableUrl,
|
|
383
|
+
metadata: ctx.metadata,
|
|
384
|
+
metadataFileName: ctx.metadataFileName,
|
|
385
|
+
currentVersion: ctx.version,
|
|
386
|
+
staged,
|
|
387
|
+
resolver: ctx.resolver,
|
|
388
|
+
conditionalCommits: catalog.type === "file" && catalog.conditionalCommits
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
async function commitWithRetry({ catalog, target, ctx, stage }) {
|
|
392
|
+
const retryEnabled = catalog.type === "rest" || catalog.type === "file" && catalog.conditionalCommits === true;
|
|
393
|
+
const policy = resolveRetryPolicy(ctx.metadata);
|
|
394
|
+
const startedAt = Date.now();
|
|
395
|
+
let workingCtx = ctx;
|
|
396
|
+
for (let attempt = 1; attempt <= policy.maxAttempts; attempt++) {
|
|
397
|
+
const staged = await stage(workingCtx);
|
|
398
|
+
try {
|
|
399
|
+
return await commitStaged(catalog, target, workingCtx, staged);
|
|
400
|
+
} catch (err) {
|
|
401
|
+
if (!retryEnabled || !isCommitConflict(err)) throw err;
|
|
402
|
+
if (attempt === policy.maxAttempts) throw new Error(`${catalog.type} catalog commit failed after ${policy.maxAttempts} attempts due to concurrent commits`);
|
|
403
|
+
const elapsed = Date.now() - startedAt;
|
|
404
|
+
if (elapsed >= policy.totalTimeoutMs) throw new Error(`${catalog.type} catalog commit retry budget exhausted after ${attempt} attempts and ${elapsed}ms (limit ${policy.totalTimeoutMs}ms)`);
|
|
405
|
+
const remaining = policy.totalTimeoutMs - elapsed;
|
|
406
|
+
await sleep(Math.min(jitteredBackoff(attempt, policy), remaining));
|
|
407
|
+
workingCtx = await reloadCtx(catalog, target, workingCtx, err);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
throw new Error("unreachable");
|
|
411
|
+
}
|
|
412
|
+
async function reloadCtx(catalog, target, workingCtx, lastErr) {
|
|
413
|
+
if (catalog.type === "rest") {
|
|
414
|
+
if (!target.namespace || !target.table) throw lastErr;
|
|
415
|
+
const { metadata } = await restCatalogLoadTable(catalog, {
|
|
416
|
+
namespace: target.namespace,
|
|
417
|
+
table: target.table
|
|
418
|
+
});
|
|
419
|
+
return {
|
|
420
|
+
metadata,
|
|
421
|
+
metadataFileName: workingCtx.metadataFileName,
|
|
422
|
+
version: workingCtx.version,
|
|
423
|
+
tableUrl: workingCtx.tableUrl,
|
|
424
|
+
resolver: workingCtx.resolver
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
if (!workingCtx.resolver) throw lastErr;
|
|
428
|
+
const fresh = await loadLatestFileCatalogMetadata({
|
|
429
|
+
tableUrl: workingCtx.tableUrl,
|
|
430
|
+
resolver: workingCtx.resolver,
|
|
431
|
+
lister: catalog.lister
|
|
432
|
+
});
|
|
433
|
+
return {
|
|
434
|
+
metadata: fresh.metadata,
|
|
435
|
+
metadataFileName: fresh.metadataFileName,
|
|
436
|
+
version: fresh.version,
|
|
437
|
+
tableUrl: workingCtx.tableUrl,
|
|
438
|
+
resolver: workingCtx.resolver
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
function resolveRetryPolicy(metadata) {
|
|
442
|
+
const props = metadata.properties ?? {};
|
|
443
|
+
const numRetries = parseTableProp(props["commit.retry.num-retries"]);
|
|
444
|
+
const maxAttempts = numRetries === void 0 ? DEFAULT_RETRY.maxAttempts : numRetries + 1;
|
|
445
|
+
const initialMs = parseTableProp(props["commit.retry.min-wait-ms"]) ?? DEFAULT_RETRY.initialMs;
|
|
446
|
+
const maxMs = parseTableProp(props["commit.retry.max-wait-ms"]) ?? DEFAULT_RETRY.maxMs;
|
|
447
|
+
const totalTimeoutMs = parseTableProp(props["commit.retry.total-timeout-ms"]) ?? DEFAULT_RETRY.totalTimeoutMs;
|
|
448
|
+
return {
|
|
449
|
+
maxAttempts,
|
|
450
|
+
initialMs,
|
|
451
|
+
maxMs,
|
|
452
|
+
factor: DEFAULT_RETRY.factor,
|
|
453
|
+
totalTimeoutMs
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function parseTableProp(value) {
|
|
457
|
+
if (value === void 0 || value === null || value === "") return void 0;
|
|
458
|
+
const n = Number(value);
|
|
459
|
+
if (!Number.isFinite(n) || n < 0) return void 0;
|
|
460
|
+
return n;
|
|
461
|
+
}
|
|
462
|
+
function jitteredBackoff(attempt, policy) {
|
|
463
|
+
if (policy.initialMs === 0 || policy.maxMs === 0) return 0;
|
|
464
|
+
const base = Math.min(policy.maxMs, policy.initialMs * policy.factor ** (attempt - 1));
|
|
465
|
+
return Math.floor(Math.random() * base);
|
|
466
|
+
}
|
|
467
|
+
function sleep(ms) {
|
|
468
|
+
if (ms <= 0) return Promise.resolve();
|
|
469
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
470
|
+
}
|
|
471
|
+
function isCommitConflict(err) {
|
|
472
|
+
if (!err || typeof err !== "object") return false;
|
|
473
|
+
const { status } = err;
|
|
474
|
+
return status === 412 || status === 409;
|
|
475
|
+
}
|
|
476
|
+
export { IcebergTransactionConflictError, icebergAppend, icebergAppendBatches, icebergCreateTable, icebergDelete, icebergDropTable, icebergExpireSnapshots, icebergRewrite, icebergSetRef, icebergTransaction, icebergUpdateSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../src/types.mjs";
|