@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.
Files changed (320) hide show
  1. package/dist/_virtual/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/handler.d.mts +2 -0
  2. package/dist/_virtual/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.mts +2 -0
  3. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.bitreader.mjs +88 -0
  4. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.blocks.mjs +120 -0
  5. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.context.mjs +1805 -0
  6. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.contextmap.mjs +49 -0
  7. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.dictionary.mjs +984 -0
  8. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.huffman.mjs +266 -0
  9. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.mjs +340 -0
  10. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.prefix.mjs +109 -0
  11. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.streams.mjs +21 -0
  12. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.transform.mjs +190 -0
  13. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/compressors.mjs +14 -0
  14. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.huffman.mjs +121 -0
  15. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.mjs +176 -0
  16. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs +7 -0
  17. package/dist/_virtual/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/lz4.mjs +52 -0
  18. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bloom.mjs +93 -0
  19. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs +91 -0
  20. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/column.mjs +186 -0
  21. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/datapage.mjs +113 -0
  22. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/delta.mjs +111 -0
  23. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dictionary.mjs +99 -0
  24. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dremel.mjs +116 -0
  25. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/encoding.mjs +51 -0
  26. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/geospatial.mjs +84 -0
  27. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/index.mjs +7 -0
  28. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/indexes.mjs +31 -0
  29. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/metadata.mjs +138 -0
  30. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs +7 -0
  31. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/parquet-writer.mjs +139 -0
  32. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/plain.mjs +68 -0
  33. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/schema.mjs +254 -0
  34. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/snappy.mjs +125 -0
  35. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/splitstream.mjs +38 -0
  36. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/thrift.mjs +79 -0
  37. 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
  38. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/unconvert.mjs +247 -0
  39. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/variant.mjs +391 -0
  40. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/wkb.mjs +79 -0
  41. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write-rows.mjs +3 -0
  42. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs +46 -0
  43. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/bytewriter.d.mts +1 -0
  44. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/index.d.mts +10 -0
  45. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/node.d.mts +3 -0
  46. 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
  47. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/schema.d.mts +2 -0
  48. 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
  49. package/dist/_virtual/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash=7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write.d.mts +1 -0
  50. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/assemble.mjs +3 -0
  51. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs +69 -0
  52. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/column.mjs +8 -0
  53. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/constants.mjs +80 -0
  54. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/convert.mjs +3 -0
  55. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/datapage.mjs +6 -0
  56. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/delta.mjs +2 -0
  57. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/encoding.mjs +2 -0
  58. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/filter.mjs +3 -0
  59. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/geoparquet.mjs +1 -0
  60. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/index.mjs +7 -0
  61. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/indexes.mjs +5 -0
  62. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/metadata.mjs +7 -0
  63. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs +3 -0
  64. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plain.mjs +1 -0
  65. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plan.mjs +5 -0
  66. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/query.mjs +3 -0
  67. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/read.mjs +6 -0
  68. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/rowgroup.mjs +7 -0
  69. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/schema.mjs +54 -0
  70. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/snappy.mjs +1 -0
  71. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/thrift.mjs +1 -0
  72. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs +19 -0
  73. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/variant.mjs +3 -0
  74. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/wkb.mjs +1 -0
  75. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/xxhash.mjs +68 -0
  76. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/index.d.mts +7 -0
  77. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/indexes.d.mts +1 -0
  78. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/metadata.d.mts +1 -0
  79. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/node.d.mts +2 -0
  80. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/query.d.mts +1 -0
  81. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/read.d.mts +1 -0
  82. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/snappy.d.mts +1 -0
  83. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/utils.d.mts +1 -0
  84. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/assemble.mjs +144 -0
  85. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/bloom.mjs +124 -0
  86. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/column.mjs +127 -0
  87. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/constants.mjs +75 -0
  88. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/convert.mjs +118 -0
  89. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/datapage.mjs +144 -0
  90. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/delta.mjs +65 -0
  91. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/encoding.mjs +76 -0
  92. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/filter.mjs +98 -0
  93. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/geoparquet.mjs +24 -0
  94. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/index.mjs +7 -0
  95. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/indexes.mjs +16 -0
  96. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/metadata.mjs +235 -0
  97. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs +7 -0
  98. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plain.mjs +78 -0
  99. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plan.mjs +147 -0
  100. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/query.mjs +3 -0
  101. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/read.mjs +106 -0
  102. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/rowgroup.mjs +154 -0
  103. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/schema.mjs +75 -0
  104. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/snappy.mjs +70 -0
  105. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/thrift.mjs +86 -0
  106. package/dist/{_chunks/libs/hyparquet.d.mts → _virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/types.d.mts} +2 -3
  107. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs +127 -0
  108. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/variant.mjs +225 -0
  109. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/wkb.mjs +94 -0
  110. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/xxhash.mjs +68 -0
  111. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/index.d.mts +9 -0
  112. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/indexes.d.mts +1 -0
  113. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/metadata.d.mts +1 -0
  114. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/node.d.mts +3 -0
  115. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/query.d.mts +1 -0
  116. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/read.d.mts +1 -0
  117. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/snappy.d.mts +1 -0
  118. package/dist/_virtual/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/utils.d.mts +1 -0
  119. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.metadata.mjs +53 -0
  120. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.read.mjs +136 -0
  121. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.write.mjs +148 -0
  122. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/file.mjs +1 -0
  123. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/loadTable.mjs +48 -0
  124. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/rest.mjs +159 -0
  125. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/create.mjs +67 -0
  126. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/delete.mjs +34 -0
  127. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/fetch.mjs +261 -0
  128. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/index.mjs +13 -0
  129. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/json.mjs +147 -0
  130. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/manifest.mjs +84 -0
  131. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/metadata.mjs +159 -0
  132. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/prune.mjs +4 -0
  133. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/deletion-vector.mjs +122 -0
  134. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/puffin.mjs +78 -0
  135. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/roaring.mjs +132 -0
  136. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/read.mjs +324 -0
  137. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/s3.mjs +91 -0
  138. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/schema.mjs +76 -0
  139. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sigv4.mjs +70 -0
  140. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergDataSource.mjs +8 -0
  141. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergQuery.mjs +5 -0
  142. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/whereFilter.mjs +1 -0
  143. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/types.d.mts +255 -0
  144. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/utils.mjs +45 -0
  145. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/commit.mjs +392 -0
  146. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/conversions.mjs +59 -0
  147. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/delete-file.mjs +52 -0
  148. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/geospatial.mjs +72 -0
  149. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest-list.mjs +152 -0
  150. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest.mjs +256 -0
  151. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/parquet.mjs +305 -0
  152. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/partition.mjs +178 -0
  153. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/rewrite.mjs +174 -0
  154. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/serde.mjs +148 -0
  155. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/snapshot.mjs +107 -0
  156. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/sort.mjs +47 -0
  157. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-deletion-vector.mjs +295 -0
  158. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-position-delete.mjs +216 -0
  159. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage.mjs +354 -0
  160. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stats.mjs +153 -0
  161. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/transform.mjs +220 -0
  162. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/write.mjs +476 -0
  163. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/file.d.mts +1 -0
  164. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/rest.d.mts +76 -0
  165. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/create.d.mts +1 -0
  166. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/fetch.d.mts +36 -0
  167. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/index.d.mts +13 -0
  168. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/manifest.d.mts +30 -0
  169. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/metadata.d.mts +1 -0
  170. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/read.d.mts +2 -0
  171. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/s3.d.mts +36 -0
  172. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
  173. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
  174. package/dist/_virtual/node_modules/.pnpm/icebird@0.8.15_patch_hash=d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/write/write.d.mts +79 -0
  175. 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
  176. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/DataHandler.d.mts +4 -0
  177. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Pipeline.d.mts +4 -0
  178. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Redis.d.mts +10 -0
  179. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/ScanStream.d.mts +1 -0
  180. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/SubscriptionSet.d.mts +1 -0
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/index.d.mts +13 -0
  191. 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
  192. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/transaction.d.mts +1 -0
  193. package/dist/_virtual/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/types.d.mts +1 -0
  194. 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
  195. 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
  196. package/dist/_virtual/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/index.d.mts +1 -0
  197. package/dist/_virtual/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/perf.d.mts +1 -0
  198. package/dist/_virtual/node_modules/.pnpm/readdirp@5.0.0/node_modules/readdirp/index.d.mts +1 -0
  199. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/ast.d.mts +1 -0
  200. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/backend/dataSource.mjs +1 -0
  201. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/accumulator.mjs +2 -0
  202. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/aggregates.mjs +10 -0
  203. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/execute.mjs +15 -0
  204. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/join.mjs +5 -0
  205. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/scanColumn.mjs +1 -0
  206. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/sort.mjs +5 -0
  207. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/streamingAggregate.mjs +9 -0
  208. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/utils.mjs +1 -0
  209. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/window.mjs +5 -0
  210. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/yield.mjs +17 -0
  211. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/alias.mjs +1 -0
  212. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/binary.mjs +1 -0
  213. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/date.mjs +1 -0
  214. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/evaluate.mjs +15 -0
  215. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/math.mjs +1 -0
  216. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/regexp.mjs +2 -0
  217. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/strings.mjs +3 -0
  218. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.d.mts +1 -0
  219. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.mjs +9 -0
  220. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/expression.mjs +6 -0
  221. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/extractTables.mjs +1 -0
  222. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/functions.mjs +5 -0
  223. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/joins.mjs +7 -0
  224. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/parse.mjs +10 -0
  225. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/primary.mjs +8 -0
  226. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/state.mjs +2 -0
  227. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/tokenize.mjs +3 -0
  228. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/types.d.mts +1 -0
  229. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/columns.mjs +3 -0
  230. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/plan.mjs +7 -0
  231. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/types.d.mts +1 -0
  232. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/bbox.mjs +2 -0
  233. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/equality.mjs +2 -0
  234. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/operations.mjs +5 -0
  235. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/pointRelations.mjs +2 -0
  236. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/primitives.mjs +2 -0
  237. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/segments.mjs +2 -0
  238. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/spatial.mjs +6 -0
  239. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/wkt.mjs +1 -0
  240. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/types.d.mts +3 -0
  241. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/aggregates.mjs +3 -0
  242. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/executionErrors.mjs +2 -0
  243. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/functions.mjs +2 -0
  244. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/keywords.mjs +1 -0
  245. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/parseErrors.mjs +2 -0
  246. package/dist/_virtual/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/tables.mjs +2 -0
  247. 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
  248. 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
  249. 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
  250. 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
  251. 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
  252. 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
  253. 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
  254. 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
  255. 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
  256. 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
  257. 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
  258. 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
  259. 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
  260. 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
  261. 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
  262. 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
  263. 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
  264. 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
  265. 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
  266. 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
  267. 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
  268. 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
  269. 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
  270. 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
  271. 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
  272. 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
  273. 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
  274. 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
  275. 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
  276. 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
  277. 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
  278. 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
  279. 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
  280. 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
  281. 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
  282. 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
  283. package/dist/catalog-cache.d.mts +32 -0
  284. package/dist/catalog-cache.mjs +31 -0
  285. package/dist/{_chunks/catalog.d.mts → catalog.d.mts} +9 -70
  286. package/dist/{_chunks/catalog.mjs → catalog.mjs} +15 -96
  287. package/dist/dataset-runtime.mjs +68 -0
  288. package/dist/dataset.d.mts +154 -0
  289. package/dist/dataset.mjs +312 -0
  290. package/dist/date.d.mts +8 -0
  291. package/dist/date.mjs +13 -0
  292. package/dist/index.d.mts +6 -159
  293. package/dist/index.mjs +6 -361
  294. package/dist/maintenance.d.mts +2 -93
  295. package/dist/maintenance.mjs +2 -139
  296. package/dist/orphan-sweep.d.mts +94 -0
  297. package/dist/orphan-sweep.mjs +141 -0
  298. package/dist/partition-prune.d.mts +35 -0
  299. package/dist/partition-prune.mjs +57 -0
  300. package/dist/provisioning/allocator.d.mts +44 -0
  301. package/dist/provisioning/allocator.mjs +24 -0
  302. package/dist/provisioning/index.d.mts +2 -44
  303. package/dist/provisioning/index.mjs +1 -23
  304. package/dist/schema.d.mts +77 -2
  305. package/dist/schema.mjs +9 -1
  306. package/dist/unsafe-raw.d.mts +6 -2
  307. package/dist/unsafe-raw.mjs +6 -2
  308. package/dist/vendor/hysnappy-purejs.mjs +10 -0
  309. package/package.json +11 -1
  310. package/dist/_chunks/libs/hyparquet-compressors.mjs +0 -2785
  311. package/dist/_chunks/libs/hyparquet-writer.mjs +0 -2516
  312. package/dist/_chunks/libs/hyparquet.mjs +0 -474
  313. package/dist/_chunks/libs/icebird.d.mts +0 -500
  314. package/dist/_chunks/libs/icebird.mjs +0 -3854
  315. package/dist/_chunks/schema.d.mts +0 -74
  316. /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
  317. /package/dist/{_chunks/libs/db0.d.mts → _virtual/node_modules/.pnpm/denque@2.1.0/node_modules/denque/index.d.mts} +0 -0
  318. /package/dist/{_chunks/libs/fzstd.mjs → _virtual/node_modules/.pnpm/fzstd@0.1.1/node_modules/fzstd/esm/index.mjs} +0 -0
  319. /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
  320. /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,354 @@
1
+ import { uuid4 } from "../utils.mjs";
2
+ import { validateSchemaForVersion } from "../schema.mjs";
3
+ import { groupByPartition } from "./partition.mjs";
4
+ import { applyUpdates } from "./commit.mjs";
5
+ import { writeDataManifest } from "./manifest.mjs";
6
+ import { computeColumnStats } from "./stats.mjs";
7
+ import { buildPartitionSummaries, buildSnapshotUpdate, currentSnapshot } from "./snapshot.mjs";
8
+ import { writeParquet } from "./parquet.mjs";
9
+ import { buildSortComparator } from "./sort.mjs";
10
+ async function prepareAppend({ tableUrl, metadata, records, resolver, sortOrderId, snapshotId }) {
11
+ if (!tableUrl) throw new Error("tableUrl is required");
12
+ if (!resolver?.writer) throw new Error("resolver.writer is required");
13
+ const writerFn = resolver.writer;
14
+ if (metadata["format-version"] !== 2 && metadata["format-version"] !== 3) throw new Error(`unsupported format-version: ${metadata["format-version"]}`);
15
+ const formatVersion = metadata["format-version"];
16
+ const partitionSpec = metadata["partition-specs"].find((s) => s["spec-id"] === metadata["default-spec-id"]);
17
+ if (!partitionSpec) throw new Error("default partition spec not found in metadata");
18
+ const schema = metadata.schemas.find((s) => s["schema-id"] === metadata["current-schema-id"]);
19
+ if (!schema) throw new Error("current schema not found in metadata");
20
+ validateSchemaForVersion(schema, formatVersion);
21
+ const appendSnapshotId = snapshotId ?? newSnapshotId(metadata);
22
+ const manifestUuid = uuid4();
23
+ checkWriteFormat(metadata.properties?.["write.format.default"]);
24
+ const codec = resolveParquetCodec(metadata.properties?.["write.parquet.compression-codec"]);
25
+ const orderId = sortOrderId ?? metadata["default-sort-order-id"] ?? 0;
26
+ const sortOrder = (metadata["sort-orders"] ?? []).find((o) => o["order-id"] === orderId);
27
+ if (sortOrderId !== void 0 && !sortOrder) throw new Error(`sort order ${sortOrderId} not found in metadata`);
28
+ const comparator = buildSortComparator(sortOrder, schema);
29
+ const appliedSortOrderId = comparator ? orderId : 0;
30
+ const groups = partitionSpec.fields.length ? groupByPartition(records, schema, partitionSpec) : [{
31
+ partition: {},
32
+ records
33
+ }];
34
+ const writtenDataFiles = await Promise.all(groups.map(async (group) => {
35
+ const sortedRecords = comparator ? [...group.records].sort(comparator) : group.records;
36
+ const dataPath = `${tableUrl}/data/${uuid4()}.parquet`;
37
+ const dataWriter = writerFn(dataPath);
38
+ await writeParquet({
39
+ writer: dataWriter,
40
+ schema,
41
+ records: sortedRecords,
42
+ codec
43
+ });
44
+ const stats = computeColumnStats(sortedRecords, schema);
45
+ return {
46
+ partition: group.partition,
47
+ records: sortedRecords,
48
+ dataFile: {
49
+ content: 0,
50
+ file_path: dataPath,
51
+ file_format: "parquet",
52
+ partition: group.partition,
53
+ record_count: BigInt(sortedRecords.length),
54
+ file_size_in_bytes: BigInt(dataWriter.offset),
55
+ value_counts: stats.value_counts,
56
+ null_value_counts: stats.null_value_counts,
57
+ nan_value_counts: stats.nan_value_counts,
58
+ lower_bounds: stats.lower_bounds,
59
+ upper_bounds: stats.upper_bounds,
60
+ sort_order_id: appliedSortOrderId
61
+ },
62
+ path: dataPath
63
+ };
64
+ }));
65
+ const manifestPath = `${tableUrl}/metadata/${manifestUuid}-m0.avro`;
66
+ const manifestWriter = writerFn(manifestPath);
67
+ await writeDataManifest({
68
+ writer: manifestWriter,
69
+ schema,
70
+ partitionSpec,
71
+ snapshotId: appendSnapshotId,
72
+ dataFiles: writtenDataFiles.map((f) => f.dataFile),
73
+ formatVersion
74
+ });
75
+ const manifestLength = BigInt(manifestWriter.offset);
76
+ const addedRowCount = writtenDataFiles.reduce((sum, f) => sum + BigInt(f.records.length), 0n);
77
+ const addedFilesSize = writtenDataFiles.reduce((sum, f) => sum + f.dataFile.file_size_in_bytes, 0n);
78
+ const partitions = buildPartitionSummaries(writtenDataFiles.map((f) => f.dataFile.partition), schema, partitionSpec);
79
+ return {
80
+ snapshotId: appendSnapshotId,
81
+ manifestUuid,
82
+ formatVersion,
83
+ manifestPath,
84
+ manifestLength,
85
+ partitionSpecId: partitionSpec["spec-id"],
86
+ partitions,
87
+ addedDataFilesCount: writtenDataFiles.length,
88
+ addedRowCount,
89
+ addedFilesSize,
90
+ recordsCount: records.length,
91
+ writtenFiles: [...writtenDataFiles.map((f) => f.path), manifestPath]
92
+ };
93
+ }
94
+ async function stageSnapshotForAppend({ tableUrl, metadata, prepared, resolver, snapshotProperties }) {
95
+ if (!tableUrl) throw new Error("tableUrl is required");
96
+ if (!resolver?.writer) throw new Error("resolver.writer is required");
97
+ const sequenceNumber = BigInt(metadata["last-sequence-number"] ?? 0) + 1n;
98
+ const timestampMs = Date.now();
99
+ const newManifest = {
100
+ manifest_path: prepared.manifestPath,
101
+ manifest_length: prepared.manifestLength,
102
+ partition_spec_id: prepared.partitionSpecId,
103
+ content: 0,
104
+ sequence_number: sequenceNumber,
105
+ min_sequence_number: sequenceNumber,
106
+ added_snapshot_id: prepared.snapshotId,
107
+ added_files_count: prepared.addedDataFilesCount,
108
+ existing_files_count: 0,
109
+ deleted_files_count: 0,
110
+ added_rows_count: prepared.addedRowCount,
111
+ existing_rows_count: 0n,
112
+ deleted_rows_count: 0n,
113
+ partitions: prepared.partitions
114
+ };
115
+ const prevSummary = currentSnapshot(metadata)?.summary;
116
+ const prevTotals = {
117
+ records: BigInt(prevSummary?.["total-records"] ?? "0"),
118
+ size: BigInt(prevSummary?.["total-files-size"] ?? "0"),
119
+ files: BigInt(prevSummary?.["total-data-files"] ?? "0")
120
+ };
121
+ const summary = {
122
+ operation: "append",
123
+ "added-data-files": String(prepared.addedDataFilesCount),
124
+ "added-records": String(prepared.recordsCount),
125
+ "added-files-size": String(prepared.addedFilesSize),
126
+ "changed-partition-count": String(prepared.addedDataFilesCount),
127
+ "total-records": String(prevTotals.records + BigInt(prepared.recordsCount)),
128
+ "total-files-size": String(prevTotals.size + prepared.addedFilesSize),
129
+ "total-data-files": String(prevTotals.files + BigInt(prepared.addedDataFilesCount)),
130
+ "total-delete-files": "0",
131
+ "total-position-deletes": "0",
132
+ "total-equality-deletes": "0",
133
+ ...snapshotProperties ?? {}
134
+ };
135
+ return await buildSnapshotUpdate({
136
+ tableUrl,
137
+ metadata,
138
+ resolver,
139
+ snapshotId: prepared.snapshotId,
140
+ sequenceNumber,
141
+ manifestUuid: prepared.manifestUuid,
142
+ timestampMs,
143
+ formatVersion: prepared.formatVersion,
144
+ newManifests: [newManifest],
145
+ summary,
146
+ writtenFiles: []
147
+ });
148
+ }
149
+ async function stageSnapshotForAppendBatches({ tableUrl, metadata, prepared, resolver, snapshotProperties }) {
150
+ if (!tableUrl) throw new Error("tableUrl is required");
151
+ if (!resolver?.writer) throw new Error("resolver.writer is required");
152
+ if (prepared.length === 0) throw new Error("prepared batches must not be empty");
153
+ const first = prepared[0];
154
+ for (const batch of prepared) {
155
+ if (batch.snapshotId !== first.snapshotId) throw new Error("prepared batches must share one snapshot id");
156
+ if (batch.formatVersion !== first.formatVersion) throw new Error("prepared batches must share one format version");
157
+ }
158
+ const sequenceNumber = BigInt(metadata["last-sequence-number"] ?? 0) + 1n;
159
+ const timestampMs = Date.now();
160
+ const newManifests = prepared.map((batch) => ({
161
+ manifest_path: batch.manifestPath,
162
+ manifest_length: batch.manifestLength,
163
+ partition_spec_id: batch.partitionSpecId,
164
+ content: 0,
165
+ sequence_number: sequenceNumber,
166
+ min_sequence_number: sequenceNumber,
167
+ added_snapshot_id: first.snapshotId,
168
+ added_files_count: batch.addedDataFilesCount,
169
+ existing_files_count: 0,
170
+ deleted_files_count: 0,
171
+ added_rows_count: batch.addedRowCount,
172
+ existing_rows_count: 0n,
173
+ deleted_rows_count: 0n,
174
+ partitions: batch.partitions
175
+ }));
176
+ const addedDataFilesCount = prepared.reduce((sum, batch) => sum + batch.addedDataFilesCount, 0);
177
+ const recordsCount = prepared.reduce((sum, batch) => sum + batch.recordsCount, 0);
178
+ const addedFilesSize = prepared.reduce((sum, batch) => sum + batch.addedFilesSize, 0n);
179
+ const prevSummary = currentSnapshot(metadata)?.summary;
180
+ const prevTotals = {
181
+ records: BigInt(prevSummary?.["total-records"] ?? "0"),
182
+ size: BigInt(prevSummary?.["total-files-size"] ?? "0"),
183
+ files: BigInt(prevSummary?.["total-data-files"] ?? "0")
184
+ };
185
+ const summary = {
186
+ operation: "append",
187
+ "added-data-files": String(addedDataFilesCount),
188
+ "added-records": String(recordsCount),
189
+ "added-files-size": String(addedFilesSize),
190
+ "changed-partition-count": String(addedDataFilesCount),
191
+ "total-records": String(prevTotals.records + BigInt(recordsCount)),
192
+ "total-files-size": String(prevTotals.size + addedFilesSize),
193
+ "total-data-files": String(prevTotals.files + BigInt(addedDataFilesCount)),
194
+ "total-delete-files": "0",
195
+ "total-position-deletes": "0",
196
+ "total-equality-deletes": "0",
197
+ ...snapshotProperties ?? {}
198
+ };
199
+ return await buildSnapshotUpdate({
200
+ tableUrl,
201
+ metadata,
202
+ resolver,
203
+ snapshotId: first.snapshotId,
204
+ sequenceNumber,
205
+ manifestUuid: first.manifestUuid,
206
+ timestampMs,
207
+ formatVersion: first.formatVersion,
208
+ newManifests,
209
+ summary,
210
+ writtenFiles: []
211
+ });
212
+ }
213
+ async function icebergStageAppend({ tableUrl, metadata, records, resolver, sortOrderId }) {
214
+ const prepared = await prepareAppend({
215
+ tableUrl,
216
+ metadata,
217
+ records,
218
+ resolver,
219
+ sortOrderId
220
+ });
221
+ const staged = await stageSnapshotForAppend({
222
+ tableUrl,
223
+ metadata,
224
+ prepared,
225
+ resolver
226
+ });
227
+ return {
228
+ ...staged,
229
+ writtenFiles: [...prepared.writtenFiles, ...staged.writtenFiles]
230
+ };
231
+ }
232
+ function icebergStageSetRef({ metadata, ref, snapshotId, type = "branch", minSnapshotsToKeep, maxSnapshotAgeMs, maxRefAgeMs }) {
233
+ if (!ref) throw new Error("ref is required");
234
+ if (type !== "branch" && type !== "tag") throw new Error(`unknown ref type: ${type}`);
235
+ if (type === "tag" && (minSnapshotsToKeep !== void 0 || maxSnapshotAgeMs !== void 0)) throw new Error("tags do not support min-snapshots-to-keep or max-snapshot-age-ms");
236
+ const targetId = BigInt(snapshotId);
237
+ const snapshot = metadata.snapshots?.find((s) => BigInt(s["snapshot-id"]) === targetId);
238
+ if (!snapshot) throw new Error(`snapshot ${snapshotId} not found in metadata.snapshots`);
239
+ const existingRef = metadata.refs?.[ref];
240
+ let currentSnapshotId = existingRef?.["snapshot-id"] ?? null;
241
+ if (currentSnapshotId === null && ref === "main") currentSnapshotId = metadata["current-snapshot-id"] ?? null;
242
+ if (existingRef && existingRef.type !== type) throw new Error(`ref ${ref} is a ${existingRef.type}, cannot set as ${type}`);
243
+ const requirements = [{
244
+ type: "assert-table-uuid",
245
+ uuid: metadata["table-uuid"]
246
+ }, {
247
+ type: "assert-ref-snapshot-id",
248
+ ref,
249
+ "snapshot-id": currentSnapshotId
250
+ }];
251
+ const update = {
252
+ action: "set-snapshot-ref",
253
+ "ref-name": ref,
254
+ type,
255
+ "snapshot-id": snapshotId
256
+ };
257
+ if (minSnapshotsToKeep !== void 0) update["min-snapshots-to-keep"] = minSnapshotsToKeep;
258
+ if (maxSnapshotAgeMs !== void 0) update["max-snapshot-age-ms"] = maxSnapshotAgeMs;
259
+ if (maxRefAgeMs !== void 0) update["max-ref-age-ms"] = maxRefAgeMs;
260
+ return {
261
+ snapshot,
262
+ requirements,
263
+ updates: [update],
264
+ writtenFiles: []
265
+ };
266
+ }
267
+ function icebergStageExpireSnapshots({ metadata, snapshotIds }) {
268
+ if (!Array.isArray(snapshotIds) || snapshotIds.length === 0) throw new Error("snapshotIds must be a non-empty array");
269
+ const removeIds = new Set(snapshotIds.map(BigInt));
270
+ const snapshots = metadata.snapshots ?? [];
271
+ for (const id of removeIds) if (!snapshots.some((s) => BigInt(s["snapshot-id"]) === id)) throw new Error(`snapshot ${id} not found in metadata.snapshots`);
272
+ const refs = metadata.refs ?? {};
273
+ for (const [name, ref] of Object.entries(refs)) if (removeIds.has(BigInt(ref["snapshot-id"]))) throw new Error(`snapshot ${ref["snapshot-id"]} is referenced by ${ref.type} ${name}`);
274
+ const currentId = metadata["current-snapshot-id"];
275
+ if (currentId !== void 0 && currentId !== null && removeIds.has(BigInt(currentId)) && !refs.main) throw new Error(`snapshot ${currentId} is the current snapshot`);
276
+ const requirements = [{
277
+ type: "assert-table-uuid",
278
+ uuid: metadata["table-uuid"]
279
+ }, {
280
+ type: "assert-ref-snapshot-id",
281
+ ref: "main",
282
+ "snapshot-id": refs.main?.["snapshot-id"] ?? currentId ?? null
283
+ }];
284
+ const update = {
285
+ action: "remove-snapshots",
286
+ "snapshot-ids": snapshotIds
287
+ };
288
+ const tip = currentSnapshot(metadata) ?? snapshots[0];
289
+ if (!tip) throw new Error("cannot expire snapshots from a table with no snapshots");
290
+ return {
291
+ snapshot: tip,
292
+ requirements,
293
+ updates: [update],
294
+ writtenFiles: []
295
+ };
296
+ }
297
+ function icebergStageUpdateSchema({ metadata, schema }) {
298
+ if (!schema || schema.type !== "struct" || !Array.isArray(schema.fields)) throw new Error("schema must be a struct with a fields array");
299
+ const requirements = [
300
+ {
301
+ type: "assert-table-uuid",
302
+ uuid: metadata["table-uuid"]
303
+ },
304
+ {
305
+ type: "assert-current-schema-id",
306
+ "current-schema-id": metadata["current-schema-id"]
307
+ },
308
+ {
309
+ type: "assert-last-assigned-field-id",
310
+ "last-assigned-field-id": metadata["last-column-id"]
311
+ }
312
+ ];
313
+ const updates = [{
314
+ action: "add-schema",
315
+ schema: {
316
+ ...schema,
317
+ "schema-id": -1
318
+ }
319
+ }, {
320
+ action: "set-current-schema",
321
+ "schema-id": -1
322
+ }];
323
+ applyUpdates(metadata, updates);
324
+ return {
325
+ requirements,
326
+ updates,
327
+ writtenFiles: []
328
+ };
329
+ }
330
+ function checkWriteFormat(value) {
331
+ if (value === void 0) return;
332
+ if (value.toLowerCase() !== "parquet") throw new Error(`unsupported write.format.default: ${value}`);
333
+ }
334
+ function resolveParquetCodec(value) {
335
+ if (value === void 0) return void 0;
336
+ switch (value.toLowerCase()) {
337
+ case "snappy": return "SNAPPY";
338
+ case "none":
339
+ case "uncompressed": return "UNCOMPRESSED";
340
+ default: throw new Error(`unsupported write.parquet.compression-codec: ${value}`);
341
+ }
342
+ }
343
+ function newSnapshotId(metadata) {
344
+ const used = new Set((metadata?.snapshots ?? []).map((s) => BigInt(s["snapshot-id"])));
345
+ const arr = /* @__PURE__ */ new BigInt64Array(1);
346
+ for (let attempt = 0; attempt < 32; attempt++) {
347
+ globalThis.crypto.getRandomValues(arr);
348
+ const masked = arr[0] & 9007199254740991n;
349
+ const id = masked === 0n ? 1n : masked;
350
+ if (!used.has(id)) return id;
351
+ }
352
+ throw new Error("newSnapshotId: failed to find an unused id after 32 attempts");
353
+ }
354
+ export { checkWriteFormat, icebergStageAppend, icebergStageExpireSnapshots, icebergStageSetRef, icebergStageUpdateSchema, newSnapshotId, prepareAppend, resolveParquetCodec, stageSnapshotForAppend, stageSnapshotForAppendBatches };
@@ -0,0 +1,153 @@
1
+ import { typeName } from "../schema.mjs";
2
+ import { computeGeoBounds, isGeoType } from "./geospatial.mjs";
3
+ import { compare, serializeValue } from "./serde.mjs";
4
+ const TRUNCATE_LIMIT = 16;
5
+ function computeColumnStats(records, schema) {
6
+ const value_counts = {};
7
+ const null_value_counts = {};
8
+ const nan_value_counts = {};
9
+ const lower_bounds = {};
10
+ const upper_bounds = {};
11
+ for (const field of schema.fields) {
12
+ const type = typeName(field.type);
13
+ if (type === "unknown") continue;
14
+ if (type === "list" || type === "map" || type === "struct") continue;
15
+ if (isGeoType(type)) {
16
+ const { value_count, null_count, lower, upper } = computeGeoBounds(records, field);
17
+ value_counts[field.id] = value_count;
18
+ null_value_counts[field.id] = null_count;
19
+ if (lower) lower_bounds[field.id] = lower;
20
+ if (upper) upper_bounds[field.id] = upper;
21
+ continue;
22
+ }
23
+ let nulls = 0n;
24
+ let nans = 0n;
25
+ let min;
26
+ let max;
27
+ const isFloat = type === "float" || type === "double";
28
+ const trackBounds = hasComparableBounds(field.type);
29
+ const writeDefault = field["write-default"];
30
+ for (const record of records) {
31
+ let v = record[field.name];
32
+ if (v === void 0 && writeDefault !== void 0) v = writeDefault;
33
+ if (v === null || v === void 0) {
34
+ nulls++;
35
+ continue;
36
+ }
37
+ if (isFloat && Number.isNaN(v)) {
38
+ nans++;
39
+ continue;
40
+ }
41
+ if (trackBounds) {
42
+ if (min === void 0 || compare(v, min, field.type) < 0) min = v;
43
+ if (max === void 0 || compare(v, max, field.type) > 0) max = v;
44
+ }
45
+ }
46
+ value_counts[field.id] = BigInt(records.length);
47
+ null_value_counts[field.id] = nulls;
48
+ if (isFloat) nan_value_counts[field.id] = nans;
49
+ if (min !== void 0) {
50
+ const lo = serializeValue(truncateLower(min, field.type), field.type);
51
+ if (lo) lower_bounds[field.id] = lo;
52
+ }
53
+ if (max !== void 0) {
54
+ const truncated = truncateUpper(max, field.type);
55
+ if (truncated !== void 0) {
56
+ const hi = serializeValue(truncated, field.type);
57
+ if (hi) upper_bounds[field.id] = hi;
58
+ }
59
+ }
60
+ }
61
+ return {
62
+ value_counts,
63
+ null_value_counts,
64
+ nan_value_counts,
65
+ lower_bounds,
66
+ upper_bounds
67
+ };
68
+ }
69
+ function hasComparableBounds(type) {
70
+ const name = typeName(type);
71
+ if (isGeoType(name)) return false;
72
+ return name !== "unknown" && name !== "variant";
73
+ }
74
+ function computeFieldSummary(values, type) {
75
+ const name = typeName(type);
76
+ const isFloat = name === "float" || name === "double";
77
+ const trackBounds = hasComparableBounds(type);
78
+ let containsNull = false;
79
+ let containsNan = false;
80
+ let min;
81
+ let max;
82
+ for (const v of values) {
83
+ if (v === null || v === void 0) {
84
+ containsNull = true;
85
+ continue;
86
+ }
87
+ if (isFloat && Number.isNaN(v)) {
88
+ containsNan = true;
89
+ continue;
90
+ }
91
+ if (trackBounds) {
92
+ if (min === void 0 || compare(v, min, type) < 0) min = v;
93
+ if (max === void 0 || compare(v, max, type) > 0) max = v;
94
+ }
95
+ }
96
+ const summary = { contains_null: containsNull };
97
+ if (isFloat) summary.contains_nan = containsNan;
98
+ if (min !== void 0) {
99
+ const lo = serializeValue(truncateLower(min, type), type);
100
+ if (lo) summary.lower_bound = lo;
101
+ }
102
+ if (max !== void 0) {
103
+ const truncated = truncateUpper(max, type);
104
+ if (truncated !== void 0) {
105
+ const hi = serializeValue(truncated, type);
106
+ if (hi) summary.upper_bound = hi;
107
+ }
108
+ }
109
+ return summary;
110
+ }
111
+ function truncateLower(value, type) {
112
+ const name = typeName(type);
113
+ if (name === "string" && typeof value === "string") {
114
+ const cps = Array.from(value);
115
+ if (cps.length <= TRUNCATE_LIMIT) return value;
116
+ return cps.slice(0, TRUNCATE_LIMIT).join("");
117
+ }
118
+ if ((name === "binary" || name.startsWith("fixed[")) && value instanceof Uint8Array) {
119
+ if (value.length <= TRUNCATE_LIMIT) return value;
120
+ return value.slice(0, TRUNCATE_LIMIT);
121
+ }
122
+ return value;
123
+ }
124
+ function truncateUpper(value, type) {
125
+ const name = typeName(type);
126
+ if (name === "string" && typeof value === "string") {
127
+ const cps = Array.from(value);
128
+ if (cps.length <= TRUNCATE_LIMIT) return value;
129
+ const prefix = cps.slice(0, TRUNCATE_LIMIT);
130
+ while (prefix.length > 0) {
131
+ const cp = prefix[prefix.length - 1].codePointAt(0);
132
+ const next = cp + 1 === 55296 ? 57344 : cp + 1;
133
+ if (next <= 1114111) {
134
+ prefix[prefix.length - 1] = String.fromCodePoint(next);
135
+ return prefix.join("");
136
+ }
137
+ prefix.pop();
138
+ }
139
+ return;
140
+ }
141
+ if ((name === "binary" || name.startsWith("fixed[")) && value instanceof Uint8Array) {
142
+ if (value.length <= TRUNCATE_LIMIT) return value;
143
+ const prefix = value.slice(0, TRUNCATE_LIMIT);
144
+ for (let i = prefix.length - 1; i >= 0; i--) if (prefix[i] < 255) {
145
+ const out = prefix.slice(0, i + 1);
146
+ out[i]++;
147
+ return out;
148
+ }
149
+ return;
150
+ }
151
+ return value;
152
+ }
153
+ export { computeColumnStats, computeFieldSummary };