@gscdump/lakehouse 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/dist/catalog-cache.d.mts +32 -0
  2. package/dist/catalog-cache.mjs +31 -0
  3. package/dist/{_chunks/catalog.d.mts → catalog.d.mts} +8 -66
  4. package/dist/{_chunks/catalog.mjs → catalog.mjs} +10 -89
  5. package/dist/dataset.d.mts +162 -0
  6. package/dist/dataset.mjs +364 -0
  7. package/dist/index.d.mts +5 -159
  8. package/dist/index.mjs +4 -360
  9. package/dist/maintenance.d.mts +2 -93
  10. package/dist/maintenance.mjs +2 -139
  11. package/dist/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/handler.d.mts +2 -0
  12. package/dist/node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.mts +2 -0
  13. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.bitreader.mjs +88 -0
  14. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.blocks.mjs +120 -0
  15. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.context.mjs +1805 -0
  16. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.contextmap.mjs +49 -0
  17. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.dictionary.mjs +984 -0
  18. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.huffman.mjs +266 -0
  19. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.mjs +340 -0
  20. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.prefix.mjs +109 -0
  21. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.streams.mjs +21 -0
  22. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.transform.mjs +190 -0
  23. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/compressors.mjs +7 -0
  24. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.huffman.mjs +121 -0
  25. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.mjs +176 -0
  26. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs +7 -0
  27. package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/lz4.mjs +52 -0
  28. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bloom.mjs +93 -0
  29. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs +91 -0
  30. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/column.mjs +186 -0
  31. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/datapage.mjs +113 -0
  32. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/delta.mjs +111 -0
  33. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dictionary.mjs +99 -0
  34. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dremel.mjs +116 -0
  35. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/encoding.mjs +51 -0
  36. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/geospatial.mjs +84 -0
  37. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/index.mjs +7 -0
  38. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/indexes.mjs +31 -0
  39. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/metadata.mjs +138 -0
  40. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs +7 -0
  41. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/parquet-writer.mjs +139 -0
  42. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/plain.mjs +68 -0
  43. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/schema.mjs +254 -0
  44. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/snappy.mjs +125 -0
  45. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/splitstream.mjs +38 -0
  46. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/thrift.mjs +79 -0
  47. package/dist/{_chunks/libs/hyparquet-writer.d.mts → node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/types.d.mts} +2 -2
  48. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/unconvert.mjs +247 -0
  49. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/variant.mjs +391 -0
  50. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/wkb.mjs +79 -0
  51. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write-rows.mjs +3 -0
  52. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs +46 -0
  53. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/bytewriter.d.mts +1 -0
  54. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/index.d.mts +10 -0
  55. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/node.d.mts +3 -0
  56. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/parquet-writer.d.mts +2 -0
  57. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/schema.d.mts +2 -0
  58. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write-rows.d.mts +1 -0
  59. package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write.d.mts +1 -0
  60. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/assemble.mjs +3 -0
  61. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs +69 -0
  62. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/column.mjs +8 -0
  63. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/constants.mjs +80 -0
  64. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/convert.mjs +3 -0
  65. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/datapage.mjs +6 -0
  66. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/delta.mjs +2 -0
  67. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/encoding.mjs +2 -0
  68. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/filter.mjs +3 -0
  69. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/geoparquet.mjs +1 -0
  70. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/index.mjs +7 -0
  71. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/indexes.mjs +5 -0
  72. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/metadata.mjs +7 -0
  73. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs +3 -0
  74. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plain.mjs +1 -0
  75. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plan.mjs +5 -0
  76. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/query.mjs +3 -0
  77. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/read.mjs +6 -0
  78. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/rowgroup.mjs +7 -0
  79. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/schema.mjs +54 -0
  80. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/snappy.mjs +1 -0
  81. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/thrift.mjs +1 -0
  82. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs +19 -0
  83. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/variant.mjs +3 -0
  84. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/wkb.mjs +1 -0
  85. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/xxhash.mjs +68 -0
  86. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/index.d.mts +7 -0
  87. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/indexes.d.mts +1 -0
  88. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/metadata.d.mts +1 -0
  89. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/node.d.mts +2 -0
  90. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/query.d.mts +1 -0
  91. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/read.d.mts +1 -0
  92. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/snappy.d.mts +1 -0
  93. package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/utils.d.mts +1 -0
  94. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/assemble.mjs +3 -0
  95. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/bloom.mjs +14 -0
  96. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/column.mjs +8 -0
  97. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/constants.mjs +1 -0
  98. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/convert.mjs +11 -0
  99. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/datapage.mjs +6 -0
  100. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/delta.mjs +2 -0
  101. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/encoding.mjs +2 -0
  102. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/filter.mjs +3 -0
  103. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/geoparquet.mjs +1 -0
  104. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/index.mjs +7 -0
  105. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/indexes.mjs +5 -0
  106. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/metadata.mjs +8 -0
  107. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs +4 -0
  108. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plain.mjs +1 -0
  109. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plan.mjs +5 -0
  110. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/query.mjs +3 -0
  111. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/read.mjs +6 -0
  112. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/rowgroup.mjs +7 -0
  113. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/schema.mjs +1 -0
  114. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/snappy.mjs +70 -0
  115. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/thrift.mjs +1 -0
  116. package/dist/{_chunks/libs/hyparquet.d.mts → node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/types.d.mts} +2 -3
  117. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs +98 -0
  118. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/variant.mjs +3 -0
  119. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/wkb.mjs +1 -0
  120. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/xxhash.mjs +1 -0
  121. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/index.d.mts +9 -0
  122. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/indexes.d.mts +1 -0
  123. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/metadata.d.mts +1 -0
  124. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/node.d.mts +3 -0
  125. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/query.d.mts +1 -0
  126. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/read.d.mts +1 -0
  127. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/snappy.d.mts +1 -0
  128. package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/utils.d.mts +1 -0
  129. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.metadata.mjs +53 -0
  130. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.read.mjs +136 -0
  131. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.write.mjs +148 -0
  132. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/file.mjs +1 -0
  133. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/loadTable.mjs +48 -0
  134. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/rest.mjs +159 -0
  135. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/create.mjs +67 -0
  136. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/delete.mjs +2 -0
  137. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/fetch.mjs +162 -0
  138. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/index.mjs +13 -0
  139. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/json.mjs +147 -0
  140. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/manifest.mjs +71 -0
  141. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/metadata.mjs +151 -0
  142. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/prune.mjs +4 -0
  143. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/deletion-vector.mjs +2 -0
  144. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/puffin.mjs +2 -0
  145. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/roaring.mjs +1 -0
  146. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/read.mjs +9 -0
  147. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/s3.mjs +91 -0
  148. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/schema.mjs +76 -0
  149. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sigv4.mjs +70 -0
  150. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergDataSource.mjs +8 -0
  151. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergQuery.mjs +5 -0
  152. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/whereFilter.mjs +1 -0
  153. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/types.d.mts +255 -0
  154. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/utils.mjs +26 -0
  155. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/commit.mjs +392 -0
  156. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/conversions.mjs +59 -0
  157. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/delete-file.mjs +3 -0
  158. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/geospatial.mjs +72 -0
  159. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest-list.mjs +152 -0
  160. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest.mjs +212 -0
  161. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/parquet.mjs +305 -0
  162. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/partition.mjs +178 -0
  163. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/rewrite.mjs +10 -0
  164. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/serde.mjs +148 -0
  165. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/snapshot.mjs +107 -0
  166. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/sort.mjs +47 -0
  167. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-deletion-vector.mjs +11 -0
  168. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-position-delete.mjs +8 -0
  169. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage.mjs +237 -0
  170. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stats.mjs +153 -0
  171. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/transform.mjs +220 -0
  172. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/write.mjs +247 -0
  173. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/file.d.mts +1 -0
  174. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/rest.d.mts +76 -0
  175. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/create.d.mts +1 -0
  176. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/fetch.d.mts +36 -0
  177. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/index.d.mts +13 -0
  178. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/manifest.d.mts +30 -0
  179. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/metadata.d.mts +1 -0
  180. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/read.d.mts +2 -0
  181. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/s3.d.mts +36 -0
  182. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
  183. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
  184. package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/write/write.d.mts +79 -0
  185. package/dist/{_chunks/libs/ioredis.d.mts → node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Command.d.mts} +1 -1
  186. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/DataHandler.d.mts +4 -0
  187. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Pipeline.d.mts +4 -0
  188. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/Redis.d.mts +10 -0
  189. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/ScanStream.d.mts +1 -0
  190. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/SubscriptionSet.d.mts +1 -0
  191. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/ClusterOptions.d.mts +4 -0
  192. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/index.d.mts +9 -0
  193. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/cluster/util.d.mts +1 -0
  194. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/AbstractConnector.d.mts +1 -0
  195. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/ConnectorConstructor.d.mts +1 -0
  196. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/SentinelConnector/SentinelIterator.d.mts +1 -0
  197. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/SentinelConnector/index.d.mts +6 -0
  198. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/SentinelConnector/types.d.mts +1 -0
  199. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/connectors/StandaloneConnector.d.mts +3 -0
  200. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/index.d.mts +13 -0
  201. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/redis/RedisOptions.d.mts +4 -0
  202. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/transaction.d.mts +1 -0
  203. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/types.d.mts +1 -0
  204. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/utils/Commander.d.mts +3 -0
  205. package/dist/node_modules/.pnpm/ioredis@5.10.1_supports-color@10.2.2/node_modules/ioredis/built/utils/RedisCommander.d.mts +2 -0
  206. package/dist/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/index.d.mts +1 -0
  207. package/dist/node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/perf.d.mts +1 -0
  208. package/dist/node_modules/.pnpm/readdirp@5.0.0/node_modules/readdirp/index.d.mts +1 -0
  209. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/ast.d.mts +1 -0
  210. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/backend/dataSource.mjs +1 -0
  211. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/accumulator.mjs +2 -0
  212. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/aggregates.mjs +10 -0
  213. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/execute.mjs +15 -0
  214. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/join.mjs +5 -0
  215. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/scanColumn.mjs +1 -0
  216. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/sort.mjs +5 -0
  217. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/streamingAggregate.mjs +9 -0
  218. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/utils.mjs +1 -0
  219. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/window.mjs +5 -0
  220. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/yield.mjs +17 -0
  221. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/alias.mjs +1 -0
  222. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/binary.mjs +1 -0
  223. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/date.mjs +1 -0
  224. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/evaluate.mjs +15 -0
  225. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/math.mjs +1 -0
  226. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/regexp.mjs +2 -0
  227. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/strings.mjs +3 -0
  228. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.d.mts +1 -0
  229. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.mjs +9 -0
  230. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/expression.mjs +6 -0
  231. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/extractTables.mjs +1 -0
  232. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/functions.mjs +5 -0
  233. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/joins.mjs +7 -0
  234. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/parse.mjs +10 -0
  235. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/primary.mjs +8 -0
  236. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/state.mjs +2 -0
  237. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/tokenize.mjs +3 -0
  238. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/types.d.mts +1 -0
  239. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/columns.mjs +3 -0
  240. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/plan.mjs +7 -0
  241. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/types.d.mts +1 -0
  242. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/bbox.mjs +2 -0
  243. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/equality.mjs +2 -0
  244. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/operations.mjs +5 -0
  245. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/pointRelations.mjs +2 -0
  246. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/primitives.mjs +2 -0
  247. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/segments.mjs +2 -0
  248. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/spatial.mjs +6 -0
  249. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/wkt.mjs +1 -0
  250. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/types.d.mts +3 -0
  251. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/aggregates.mjs +3 -0
  252. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/executionErrors.mjs +2 -0
  253. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/functions.mjs +2 -0
  254. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/keywords.mjs +1 -0
  255. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/parseErrors.mjs +2 -0
  256. package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/tables.mjs +2 -0
  257. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/index.d.mts +32 -0
  258. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/index2.d.mts +33 -0
  259. package/dist/{_chunks/libs/unstorage.d.mts → node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/shared/unstorage.DqlWKU2I.d.mts} +9 -13
  260. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/dist/shared/unstorage2.DqlWKU2I.d.mts +1 -0
  261. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-app-configuration.d.mts +1 -0
  262. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-cosmos.d.mts +1 -0
  263. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-key-vault.d.mts +1 -0
  264. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-storage-blob.d.mts +1 -0
  265. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/azure-storage-table.d.mts +1 -0
  266. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/capacitor-preferences.d.mts +1 -0
  267. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/cloudflare-kv-binding.d.mts +1 -0
  268. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/cloudflare-kv-http.d.mts +1 -0
  269. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/cloudflare-r2-binding.d.mts +1 -0
  270. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/db0.d.mts +2 -0
  271. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/deno-kv-node.d.mts +1 -0
  272. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/deno-kv.d.mts +1 -0
  273. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/fs-lite.d.mts +1 -0
  274. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/fs.d.mts +2 -0
  275. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/github.d.mts +1 -0
  276. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/http.d.mts +1 -0
  277. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/indexedb.d.mts +1 -0
  278. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/localstorage.d.mts +1 -0
  279. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/localstorage2.d.mts +1 -0
  280. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/lru-cache.d.mts +2 -0
  281. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/mongodb.d.mts +1 -0
  282. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/netlify-blobs.d.mts +1 -0
  283. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/overlay.d.mts +1 -0
  284. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/planetscale.d.mts +1 -0
  285. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/redis.d.mts +2 -0
  286. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/s3.d.mts +1 -0
  287. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/session-storage.d.mts +2 -0
  288. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/uploadthing.d.mts +1 -0
  289. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/upstash.d.mts +1 -0
  290. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/vercel-blob.d.mts +1 -0
  291. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/vercel-kv.d.mts +1 -0
  292. package/dist/node_modules/.pnpm/unstorage@1.17.5_aws4fetch@1.0.20_db0@0.3.4_ioredis@5.10.1_supports-color@10.2.2_/node_modules/unstorage/drivers/vercel-runtime-cache.d.mts +1 -0
  293. package/dist/orphan-sweep.d.mts +94 -0
  294. package/dist/orphan-sweep.mjs +141 -0
  295. package/dist/partition-prune.d.mts +35 -0
  296. package/dist/partition-prune.mjs +57 -0
  297. package/dist/provisioning/allocator.d.mts +44 -0
  298. package/dist/provisioning/allocator.mjs +24 -0
  299. package/dist/provisioning/index.d.mts +2 -44
  300. package/dist/provisioning/index.mjs +1 -23
  301. package/dist/schema.d.mts +73 -1
  302. package/dist/unsafe-raw.d.mts +6 -2
  303. package/dist/unsafe-raw.mjs +6 -2
  304. package/dist/vendor/hysnappy-purejs.mjs +10 -0
  305. package/package.json +1 -1
  306. package/dist/_chunks/libs/hyparquet-compressors.mjs +0 -2785
  307. package/dist/_chunks/libs/hyparquet-writer.mjs +0 -2516
  308. package/dist/_chunks/libs/hyparquet.mjs +0 -474
  309. package/dist/_chunks/libs/icebird.d.mts +0 -500
  310. package/dist/_chunks/libs/icebird.mjs +0 -3854
  311. package/dist/_chunks/schema.d.mts +0 -74
  312. /package/dist/{_chunks/libs/chokidar.d.mts → node_modules/.pnpm/db0@0.3.4_drizzle-orm@1.0.0-rc.3_@cloudflare_workers-types@5.20260722.1_valibot@1.4.2_typescript@7.0.2__zod@4.4.3_/node_modules/db0/dist/index.d.mts} +0 -0
  313. /package/dist/{_chunks/libs/db0.d.mts → node_modules/.pnpm/denque@2.1.0/node_modules/denque/index.d.mts} +0 -0
  314. /package/dist/{_chunks/libs/fzstd.mjs → node_modules/.pnpm/fzstd@0.1.1/node_modules/fzstd/esm/index.mjs} +0 -0
  315. /package/dist/{_chunks/libs/denque.d.mts → node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/wkb.d.mts} +0 -0
  316. /package/dist/{_chunks/libs/lru-cache.d.mts → node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/types.d.mts} +0 -0
@@ -0,0 +1,148 @@
1
+ import { ByteWriter } from "../../../../../hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs";
2
+ import "../../../../../hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs";
3
+ function avroWrite({ writer, schema, records, blockSize = 512, metadata }) {
4
+ writer.appendUint32(23749199);
5
+ const meta = {
6
+ ...metadata,
7
+ "avro.schema": typeof schema === "string" ? schema : JSON.stringify(schema),
8
+ "avro.codec": "null"
9
+ };
10
+ appendZigZag(writer, Object.keys(meta).length);
11
+ for (const [key, value] of Object.entries(meta)) {
12
+ const kb = new TextEncoder().encode(key);
13
+ appendZigZag(writer, kb.length);
14
+ writer.appendBytes(kb);
15
+ const vb = new TextEncoder().encode(value);
16
+ appendZigZag(writer, vb.length);
17
+ writer.appendBytes(vb);
18
+ }
19
+ writer.appendVarInt(0);
20
+ const sync = /* @__PURE__ */ new Uint8Array(16);
21
+ for (let i = 0; i < 16; i++) sync[i] = Math.random() * 256 | 0;
22
+ writer.appendBytes(sync);
23
+ for (let i = 0; i < records.length; i += blockSize) {
24
+ const block = records.slice(i, i + blockSize);
25
+ appendZigZag(writer, block.length);
26
+ const blockWriter = new ByteWriter();
27
+ for (const record of block) for (const { name, type } of schema.fields) writeType(blockWriter, type, record[name]);
28
+ appendZigZag(writer, blockWriter.offset);
29
+ writer.appendBytes(blockWriter.getBytes());
30
+ writer.appendBytes(sync);
31
+ }
32
+ return writer.finish();
33
+ }
34
+ function writeType(writer, schema, value) {
35
+ if (Array.isArray(schema)) {
36
+ const unionIndex = schema.findIndex((s) => {
37
+ if (Array.isArray(s)) throw new Error("nested unions not supported");
38
+ const tag = typeof s === "string" ? s : s.type === "record" || s.type === "array" || s.type === "fixed" ? s.type : "logicalType" in s && s.logicalType ? s.logicalType : s.type;
39
+ if (value == null) return tag === "null";
40
+ if (tag === "boolean") return typeof value === "boolean";
41
+ if (tag === "int") return typeof value === "number" && Number.isInteger(value);
42
+ if (tag === "long") return typeof value === "bigint" || typeof value === "number";
43
+ if (tag === "float" || tag === "double") return typeof value === "number";
44
+ if (tag === "string") return typeof value === "string";
45
+ if (tag === "bytes") return value instanceof Uint8Array;
46
+ if (tag === "date") return value instanceof Date || typeof value === "number";
47
+ if (tag === "time-millis") return typeof value === "number";
48
+ if (tag === "time-micros") return typeof value === "bigint" || typeof value === "number";
49
+ if (tag === "timestamp-millis" || tag === "timestamp-micros" || tag === "timestamp-nanos") return value instanceof Date || typeof value === "bigint" || typeof value === "number";
50
+ if (tag === "decimal") return typeof value === "number" || typeof value === "bigint";
51
+ if (tag === "record") return typeof value === "object" && value !== null;
52
+ if (tag === "array") return Array.isArray(value);
53
+ if (tag === "fixed") {
54
+ if (value instanceof Uint8Array) return true;
55
+ return typeof s === "object" && "logicalType" in s && s.logicalType === "uuid" && typeof value === "string";
56
+ }
57
+ return false;
58
+ });
59
+ if (unionIndex === -1) throw new Error("union branch not found");
60
+ appendZigZag(writer, unionIndex);
61
+ writeType(writer, schema[unionIndex], value);
62
+ } else if (typeof schema === "string") {
63
+ if (schema === "null") {} else if (schema === "boolean") writer.appendUint8(value ? 1 : 0);
64
+ else if (schema === "int") {
65
+ if (typeof value !== "number" || !Number.isInteger(value)) throw new Error("expected integer value");
66
+ appendZigZag(writer, value);
67
+ } else if (schema === "long") {
68
+ if (typeof value !== "bigint") throw new Error("expected bigint value");
69
+ appendZigZag64(writer, value);
70
+ } else if (schema === "float") {
71
+ if (typeof value !== "number") throw new Error("expected number value");
72
+ writer.appendFloat32(value);
73
+ } else if (schema === "double") {
74
+ if (typeof value !== "number") throw new Error("expected number value");
75
+ writer.appendFloat64(value);
76
+ } else if (schema === "bytes") {
77
+ if (!(value instanceof Uint8Array)) throw new Error("expected Uint8Array value");
78
+ appendZigZag(writer, value.length);
79
+ writer.appendBytes(value);
80
+ } else if (schema === "string") {
81
+ if (typeof value !== "string") throw new Error("expected string value");
82
+ const b = new TextEncoder().encode(value);
83
+ appendZigZag(writer, b.length);
84
+ writer.appendBytes(b);
85
+ }
86
+ } else if (schema.type === "record") for (const f of schema.fields) writeType(writer, f.type, value[f.name]);
87
+ else if (schema.type === "array") {
88
+ if (value.length) {
89
+ appendZigZag(writer, value.length);
90
+ for (const it of value) writeType(writer, schema.items, it);
91
+ }
92
+ writer.appendVarInt(0);
93
+ } else if (schema.type === "fixed") {
94
+ const bytes = schema.logicalType === "uuid" && typeof value === "string" ? uuidStringToBytes(value) : value;
95
+ if (!(bytes instanceof Uint8Array)) throw new Error("expected Uint8Array value");
96
+ if (bytes.length !== schema.size) throw new Error(`expected fixed[${schema.size}] value`);
97
+ writer.appendBytes(bytes);
98
+ } else if ("logicalType" in schema) if (schema.logicalType === "date") appendZigZag(writer, value instanceof Date ? Math.floor(value.getTime() / 864e5) : value);
99
+ else if (schema.logicalType === "time-millis") appendZigZag(writer, value);
100
+ else if (schema.logicalType === "time-micros") appendZigZag64(writer, BigInt(value));
101
+ else if (schema.logicalType === "timestamp-millis") appendZigZag64(writer, value instanceof Date ? BigInt(value.getTime()) : BigInt(value));
102
+ else if (schema.logicalType === "timestamp-micros") appendZigZag64(writer, value instanceof Date ? BigInt(value.getTime()) * 1000n : BigInt(value));
103
+ else if (schema.logicalType === "timestamp-nanos") appendZigZag64(writer, value instanceof Date ? BigInt(value.getTime()) * 1000000n : BigInt(value));
104
+ else if (schema.logicalType === "decimal") {
105
+ const scale = "scale" in schema ? schema.scale ?? 0 : 0;
106
+ let u;
107
+ if (typeof value === "bigint") u = value;
108
+ else if (typeof value === "number") u = BigInt(Math.round(value * 10 ** scale));
109
+ else throw new Error("decimal value must be bigint or number");
110
+ const b = bigIntToBytes(u);
111
+ appendZigZag(writer, b.length);
112
+ writer.appendBytes(b);
113
+ } else throw new Error(`unknown logical type ${schema.logicalType}`);
114
+ else throw new Error(`unknown schema type ${JSON.stringify(schema)}`);
115
+ }
116
+ function appendZigZag(writer, v) {
117
+ writer.appendVarInt(v << 1 ^ v >> 31);
118
+ }
119
+ function appendZigZag64(writer, v) {
120
+ writer.appendVarBigInt(v << 1n ^ v >> 63n);
121
+ }
122
+ function uuidStringToBytes(value) {
123
+ const hex = value.toLowerCase().replace(/-/g, "");
124
+ if (!/^[0-9a-f]{32}$/.test(hex)) throw new Error("expected uuid string");
125
+ const bytes = /* @__PURE__ */ new Uint8Array(16);
126
+ for (let i = 0; i < 16; i++) bytes[i] = parseInt(hex.slice(i * 2, i * 2 + 2), 16);
127
+ return bytes;
128
+ }
129
+ function bigIntToBytes(value) {
130
+ const neg = value < 0n;
131
+ let abs = neg ? -value : value;
132
+ const out = [];
133
+ while (abs > 0n) {
134
+ out.unshift(Number(abs & 255n));
135
+ abs >>= 8n;
136
+ }
137
+ if (out.length === 0) out.push(0);
138
+ if (neg) {
139
+ for (let i = 0; i < out.length; i++) out[i] ^= 255;
140
+ for (let i = out.length - 1; i >= 0; i--) {
141
+ out[i] = out[i] + 1 & 255;
142
+ if (out[i]) break;
143
+ }
144
+ if ((out[0] & 128) === 0) out.unshift(255);
145
+ } else if ((out[0] & 128) !== 0) out.unshift(0);
146
+ return Uint8Array.from(out);
147
+ }
148
+ export { avroWrite };
@@ -0,0 +1,48 @@
1
+ import { loadLatestFileCatalogMetadata, resolveMetadata } from "../metadata.mjs";
2
+ import { restCatalogLoadTable } from "./rest.mjs";
3
+ async function loadTable({ catalog, namespace, table, tableUrl, resolver }) {
4
+ if (catalog.type === "rest") {
5
+ if (!namespace || !table) throw new Error("namespace and table are required for rest catalogs");
6
+ const { metadata } = await restCatalogLoadTable(catalog, {
7
+ namespace,
8
+ table
9
+ });
10
+ return {
11
+ metadata,
12
+ metadataFileName: void 0,
13
+ tableUrl: metadata.location,
14
+ resolver
15
+ };
16
+ }
17
+ if (catalog.type === "file") {
18
+ if (!tableUrl) throw new Error("tableUrl is required for file catalogs");
19
+ const eff = resolver ?? catalog.resolver;
20
+ if (catalog.conditionalCommits) {
21
+ const { metadata, metadataFileName, version } = await loadLatestFileCatalogMetadata({
22
+ tableUrl,
23
+ resolver: eff,
24
+ lister: catalog.lister
25
+ });
26
+ return {
27
+ metadata,
28
+ metadataFileName,
29
+ version,
30
+ tableUrl,
31
+ resolver: eff
32
+ };
33
+ }
34
+ const { metadata, metadataFileName } = await resolveMetadata({
35
+ tableUrl,
36
+ resolver: eff,
37
+ lister: catalog.lister
38
+ });
39
+ return {
40
+ metadata,
41
+ metadataFileName,
42
+ tableUrl,
43
+ resolver: eff
44
+ };
45
+ }
46
+ throw new Error(`unknown catalog type: ${catalog?.type}`);
47
+ }
48
+ export { loadTable };
@@ -0,0 +1,159 @@
1
+ import { parseIcebergJson, stringifyIcebergJson } from "../json.mjs";
2
+ async function restCatalogConnect({ url, warehouse, requestInit, signRequest }) {
3
+ const base = url.replace(/\/$/, "");
4
+ const configUrl = warehouse ? `${base}/v1/config?warehouse=${encodeURIComponent(warehouse)}` : `${base}/v1/config`;
5
+ let init = requestInit;
6
+ if (signRequest) init = await signRequest(configUrl, init);
7
+ const res = await fetch(configUrl, init);
8
+ if (!res.ok) await throwRestError(res);
9
+ const body = parseIcebergJson(await res.text());
10
+ const defaults = body.defaults ?? {};
11
+ const overrides = body.overrides ?? {};
12
+ const prefix = overrides.prefix ?? defaults.prefix ?? "";
13
+ const ctx = {
14
+ type: "rest",
15
+ url: base,
16
+ prefix: typeof prefix === "string" ? prefix : "",
17
+ defaults,
18
+ overrides,
19
+ requestInit
20
+ };
21
+ if (signRequest) ctx.signRequest = signRequest;
22
+ return Object.freeze(ctx);
23
+ }
24
+ function restCatalogListTables(ctx, { namespace }) {
25
+ const ns = encodeNamespace(namespace);
26
+ return paginate({}, async (query) => {
27
+ const body = parseIcebergJson(await (await restFetch(ctx, `namespaces/${ns}/tables${query}`)).text());
28
+ return {
29
+ items: body.identifiers ?? [],
30
+ nextPageToken: body["next-page-token"]
31
+ };
32
+ });
33
+ }
34
+ async function restCatalogLoadTable(ctx, { namespace, table }) {
35
+ const body = parseIcebergJson(await (await restFetch(ctx, `namespaces/${encodeNamespace(namespace)}/tables/${encodeURIComponent(table)}`)).text());
36
+ return {
37
+ metadataLocation: body["metadata-location"],
38
+ metadata: body.metadata,
39
+ config: body.config ?? {}
40
+ };
41
+ }
42
+ async function restCatalogCreateTable(ctx, { namespace, table, schema, location, partitionSpec, writeOrder, stageCreate, properties }) {
43
+ const ns = encodeNamespace(namespace);
44
+ const body = {
45
+ name: table,
46
+ schema
47
+ };
48
+ if (location !== void 0) body.location = location;
49
+ if (partitionSpec !== void 0) body["partition-spec"] = partitionSpec;
50
+ if (writeOrder !== void 0) body["write-order"] = writeOrder;
51
+ if (stageCreate !== void 0) body["stage-create"] = stageCreate;
52
+ if (properties !== void 0) body.properties = properties;
53
+ const responseBody = parseIcebergJson(await (await restFetch(ctx, `namespaces/${ns}/tables`, {
54
+ method: "POST",
55
+ headers: { "content-type": "application/json" },
56
+ body: stringifyIcebergJson(body)
57
+ })).text());
58
+ return {
59
+ metadataLocation: responseBody["metadata-location"],
60
+ metadata: responseBody.metadata,
61
+ config: responseBody.config ?? {}
62
+ };
63
+ }
64
+ async function restCatalogUpdateTable(ctx, { namespace, table, requirements, updates }) {
65
+ const responseBody = parseIcebergJson(await (await restFetch(ctx, `namespaces/${encodeNamespace(namespace)}/tables/${encodeURIComponent(table)}`, {
66
+ method: "POST",
67
+ headers: { "content-type": "application/json" },
68
+ body: stringifyIcebergJson({
69
+ requirements,
70
+ updates
71
+ })
72
+ })).text());
73
+ return {
74
+ metadataLocation: responseBody["metadata-location"],
75
+ metadata: responseBody.metadata,
76
+ config: responseBody.config ?? {}
77
+ };
78
+ }
79
+ async function restCatalogDropTable(ctx, { namespace, table, purgeRequested }) {
80
+ await restFetch(ctx, `namespaces/${encodeNamespace(namespace)}/tables/${encodeURIComponent(table)}${purgeRequested ? "?purgeRequested=true" : ""}`, { method: "DELETE" });
81
+ }
82
+ async function restCatalogCreateNamespace(ctx, { namespace, properties }) {
83
+ const ns = Array.isArray(namespace) ? namespace : namespace.split(".");
84
+ const body = parseIcebergJson(await (await restFetch(ctx, "namespaces", {
85
+ method: "POST",
86
+ headers: { "content-type": "application/json" },
87
+ body: stringifyIcebergJson({
88
+ namespace: ns,
89
+ properties: properties ?? {}
90
+ })
91
+ })).text());
92
+ return {
93
+ namespace: body.namespace ?? ns,
94
+ properties: body.properties ?? {}
95
+ };
96
+ }
97
+ function encodeNamespace(namespace) {
98
+ return (Array.isArray(namespace) ? namespace : namespace.split(".")).map((p) => encodeURIComponent(p)).join("%1F");
99
+ }
100
+ async function restFetch(ctx, path, init) {
101
+ const prefixSegment = ctx.prefix ? `${ctx.prefix.replace(/^\/|\/$/g, "")}/` : "";
102
+ const fullUrl = `${ctx.url}/v1/${prefixSegment}${path}`;
103
+ let merged = mergeRequestInit(ctx.requestInit, init);
104
+ if (ctx.signRequest) merged = await ctx.signRequest(fullUrl, merged);
105
+ const res = await fetch(fullUrl, merged);
106
+ if (!res.ok) await throwRestError(res);
107
+ return res;
108
+ }
109
+ function mergeRequestInit(a, b) {
110
+ if (!a) return b;
111
+ if (!b) return a;
112
+ return {
113
+ ...a,
114
+ ...b,
115
+ headers: {
116
+ ...headersToObject(a.headers),
117
+ ...headersToObject(b.headers)
118
+ }
119
+ };
120
+ }
121
+ function headersToObject(h) {
122
+ if (!h) return {};
123
+ if (h instanceof Headers) {
124
+ const out = {};
125
+ h.forEach((v, k) => {
126
+ out[k] = v;
127
+ });
128
+ return out;
129
+ }
130
+ if (Array.isArray(h)) return Object.fromEntries(h);
131
+ return h;
132
+ }
133
+ async function throwRestError(res) {
134
+ let detail = "";
135
+ try {
136
+ const body = parseIcebergJson(await res.text());
137
+ if (body?.error) {
138
+ const { code, type, message } = body.error;
139
+ detail = `${code ?? res.status} ${type ?? ""}: ${message ?? ""}`.trim();
140
+ }
141
+ } catch {}
142
+ const err = new Error(detail || `${res.status} ${res.statusText}`);
143
+ err.status = res.status;
144
+ throw err;
145
+ }
146
+ async function paginate(baseParams, fetchPage) {
147
+ const out = [];
148
+ let pageToken;
149
+ while (true) {
150
+ const params = { ...baseParams };
151
+ if (pageToken) params.pageToken = pageToken;
152
+ const keys = Object.keys(params);
153
+ const { items, nextPageToken } = await fetchPage(keys.length ? "?" + keys.map((k) => `${k}=${params[k]}`).join("&") : "");
154
+ out.push(...items);
155
+ if (!nextPageToken) return out;
156
+ pageToken = encodeURIComponent(nextPageToken);
157
+ }
158
+ }
159
+ export { restCatalogConnect, restCatalogCreateNamespace, restCatalogCreateTable, restCatalogDropTable, restCatalogListTables, restCatalogLoadTable, restCatalogUpdateTable };
@@ -0,0 +1,67 @@
1
+ import { uuid4 } from "./utils.mjs";
2
+ import { stringifyIcebergJson } from "./json.mjs";
3
+ import { maxFieldId, validateSchemaForVersion } from "./schema.mjs";
4
+ import { validatePartitionSpecForWrite } from "./write/partition.mjs";
5
+ async function icebergCreate({ tableUrl, resolver, schema, formatVersion, partitionSpec, sortOrder, properties, conditionalCommits }) {
6
+ if (!tableUrl) throw new Error("tableUrl is required");
7
+ if (formatVersion === void 0) {
8
+ const propVersion = properties?.["format-version"];
9
+ formatVersion = propVersion !== void 0 ? Number(propVersion) : 2;
10
+ }
11
+ if (formatVersion !== 2 && formatVersion !== 3) throw new Error(`unsupported format-version: ${formatVersion}`);
12
+ const metadataVersion = 1;
13
+ const metadataUrl = `${tableUrl}/metadata/v${metadataVersion}.metadata.json`;
14
+ const initialSchema = schema ?? {
15
+ type: "struct",
16
+ "schema-id": 0,
17
+ fields: []
18
+ };
19
+ validateSchemaForVersion(initialSchema, formatVersion);
20
+ const initialPartitionSpec = partitionSpec ?? {
21
+ "spec-id": 0,
22
+ fields: []
23
+ };
24
+ validatePartitionSpecForWrite(initialSchema, initialPartitionSpec);
25
+ const initialSortOrder = sortOrder ?? {
26
+ "order-id": 0,
27
+ fields: []
28
+ };
29
+ const metadata = {
30
+ "format-version": formatVersion,
31
+ "table-uuid": uuid4(),
32
+ location: tableUrl,
33
+ "last-sequence-number": 0,
34
+ "last-updated-ms": Date.now(),
35
+ "last-column-id": maxFieldId(initialSchema.fields),
36
+ "current-schema-id": initialSchema["schema-id"] ?? 0,
37
+ schemas: [initialSchema],
38
+ "default-spec-id": initialPartitionSpec["spec-id"],
39
+ "partition-specs": [initialPartitionSpec],
40
+ "last-partition-id": maxPartitionFieldId(initialPartitionSpec.fields),
41
+ "sort-orders": [initialSortOrder],
42
+ "default-sort-order-id": initialSortOrder["order-id"]
43
+ };
44
+ if (properties) metadata.properties = properties;
45
+ if (formatVersion >= 3) metadata["next-row-id"] = 0;
46
+ if (!resolver.writer) throw new Error("resolver.writer is required");
47
+ const metadataWriter = conditionalCommits ? resolver.writer(metadataUrl, { ifNoneMatch: "*" }) : resolver.writer(metadataUrl);
48
+ const metadataBytes = new TextEncoder().encode(stringifyIcebergJson(metadata));
49
+ metadataWriter.appendBytes(metadataBytes);
50
+ await metadataWriter.finish();
51
+ const versionHintUrl = `${tableUrl}/metadata/version-hint.text`;
52
+ try {
53
+ const versionHintWriter = resolver.writer(versionHintUrl);
54
+ const versionHintBytes = new TextEncoder().encode(String(metadataVersion));
55
+ versionHintWriter.appendBytes(versionHintBytes);
56
+ await versionHintWriter.finish();
57
+ } catch (err) {
58
+ if (!conditionalCommits) throw err;
59
+ }
60
+ return metadata;
61
+ }
62
+ function maxPartitionFieldId(partitionFields = []) {
63
+ let max = 0;
64
+ for (const pf of partitionFields) if (max < pf["field-id"]) max = pf["field-id"];
65
+ return max;
66
+ }
67
+ export { icebergCreate };
@@ -0,0 +1,162 @@
1
+ import { asyncBufferFromUrl, cachedAsyncBuffer } from "../../../../hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs";
2
+ import "../../../../hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs";
3
+ import "../../../../hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs";
4
+ import { ByteWriter } from "../../../../hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs";
5
+ import "../../../../hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs";
6
+ import { avroMetadata } from "./avro/avro.metadata.mjs";
7
+ import { avroRead } from "./avro/avro.read.mjs";
8
+ import "./puffin/puffin.mjs";
9
+ import "./utils.mjs";
10
+ function translateS3Url(url) {
11
+ if (url.startsWith("s3a://") || url.startsWith("s3://")) {
12
+ const rest = url.slice(url.indexOf("://") + 3);
13
+ const slashIndex = rest.indexOf("/");
14
+ if (slashIndex === -1) throw new Error("Invalid S3 URL, missing \"/\" after bucket");
15
+ return `https://${rest.slice(0, slashIndex)}.s3.amazonaws.com${rest.slice(slashIndex)}`;
16
+ }
17
+ return url;
18
+ }
19
+ function urlResolver({ requestInit } = {}) {
20
+ return {
21
+ reader(url, byteLength) {
22
+ return asyncBufferFromUrl({
23
+ url: translateS3Url(url),
24
+ byteLength,
25
+ requestInit
26
+ });
27
+ },
28
+ writer(url, options) {
29
+ const w = new ByteWriter();
30
+ w.finish = async function() {
31
+ const target = translateS3Url(url);
32
+ const body = w.getBytes().slice();
33
+ const headers = {};
34
+ if (requestInit?.headers) new Headers(requestInit.headers).forEach((v, k) => {
35
+ headers[k] = v;
36
+ });
37
+ if (options?.ifNoneMatch) headers["If-None-Match"] = options.ifNoneMatch;
38
+ const res = await fetch(target, {
39
+ ...requestInit,
40
+ method: "PUT",
41
+ headers,
42
+ body
43
+ });
44
+ if (!res.ok) {
45
+ const err = /* @__PURE__ */ new Error(`PUT ${url}: ${res.status} ${res.statusText}`);
46
+ err.status = res.status;
47
+ throw err;
48
+ }
49
+ };
50
+ return w;
51
+ },
52
+ async deleter(url) {
53
+ const res = await fetch(translateS3Url(url), {
54
+ ...requestInit,
55
+ method: "DELETE"
56
+ });
57
+ if (!res.ok && res.status !== 404) throw new Error(`DELETE ${url}: ${res.status} ${res.statusText}`);
58
+ }
59
+ };
60
+ }
61
+ function cachingResolver(base) {
62
+ const cache = /* @__PURE__ */ new Map();
63
+ const out = { reader(path, byteLength) {
64
+ let buf = cache.get(path);
65
+ if (!buf) {
66
+ buf = (async () => cachedAsyncBuffer(await base.reader(path, byteLength)))();
67
+ cache.set(path, buf);
68
+ buf.catch(() => {
69
+ if (cache.get(path) === buf) cache.delete(path);
70
+ });
71
+ }
72
+ return buf;
73
+ } };
74
+ if (base.writer) {
75
+ const baseWriter = base.writer;
76
+ out.writer = (path, options) => {
77
+ const w = baseWriter(path, options);
78
+ const origFinish = w.finish.bind(w);
79
+ w.finish = async function() {
80
+ await origFinish();
81
+ cache.delete(path);
82
+ };
83
+ return w;
84
+ };
85
+ }
86
+ if (base.deleter) {
87
+ const baseDeleter = base.deleter;
88
+ out.deleter = async (path) => {
89
+ await baseDeleter(path);
90
+ cache.delete(path);
91
+ };
92
+ }
93
+ return out;
94
+ }
95
+ function s3Lister({ requestInit } = {}) {
96
+ return async function list(url) {
97
+ const s3parts = s3ParseUrl(url);
98
+ if (!s3parts) throw new Error(`not an S3 URL: ${url}`);
99
+ const { bucket, prefix } = s3parts;
100
+ const listUrl = `https://${bucket}.s3.amazonaws.com/?list-type=2&prefix=${prefix.replace(/\/$/, "")}/&delimiter=/`;
101
+ const res = await fetch(listUrl, requestInit);
102
+ if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
103
+ return ((await res.text()).match(/<Contents>(.*?)<\/Contents>/gs) || []).map((match) => {
104
+ const keyMatch = match.match(/<Key>(.*?)<\/Key>/);
105
+ if (!keyMatch) throw new Error("failed to parse S3 list response");
106
+ return keyMatch[1].split("/").pop() ?? "";
107
+ }).filter(Boolean);
108
+ };
109
+ }
110
+ function s3ParseUrl(url) {
111
+ if (url.startsWith("s3://") || url.startsWith("s3a://")) {
112
+ const parts = url.split("/");
113
+ return {
114
+ bucket: parts[2],
115
+ prefix: parts.slice(3).join("/")
116
+ };
117
+ }
118
+ if (url.startsWith("https://s3.amazonaws.com/")) {
119
+ const parts = url.split("/");
120
+ return {
121
+ bucket: parts[3],
122
+ prefix: parts.slice(4).join("/")
123
+ };
124
+ }
125
+ const m = url.match(/^https:\/\/([a-z0-9][a-z0-9-]*)\.s3(?:[.-][a-z0-9-]+)?\.amazonaws\.com\/(.*)$/);
126
+ if (m) return {
127
+ bucket: m[1],
128
+ prefix: m[2]
129
+ };
130
+ }
131
+ async function resolveText(resolver, path) {
132
+ const ab = await resolver.reader(path);
133
+ let buf = await ab.slice(0, ab.byteLength);
134
+ if (isGzip(buf)) buf = await decompressGzip(buf);
135
+ return new TextDecoder().decode(buf);
136
+ }
137
+ function isGzip(buf) {
138
+ if (buf.byteLength < 2) return false;
139
+ const view = new Uint8Array(buf, 0, 2);
140
+ return view[0] === 31 && view[1] === 139;
141
+ }
142
+ async function decompressGzip(buf) {
143
+ if (!globalThis.DecompressionStream) throw new Error("gzip decompression is not supported in this environment");
144
+ const stream = new Blob([buf]).stream().pipeThrough(new DecompressionStream("gzip"));
145
+ return await new Response(stream).arrayBuffer();
146
+ }
147
+ async function fetchAvroRecords(url, resolver, byteLength) {
148
+ const lengthHint = byteLength !== void 0 && Number.isFinite(byteLength) ? byteLength : void 0;
149
+ const ab = await resolver.reader(url, lengthHint);
150
+ const buffer = await ab.slice(0, ab.byteLength);
151
+ const reader = {
152
+ view: new DataView(buffer),
153
+ offset: 0
154
+ };
155
+ const { metadata, syncMarker } = await avroMetadata(reader);
156
+ return await avroRead({
157
+ reader,
158
+ metadata,
159
+ syncMarker
160
+ });
161
+ }
162
+ export { cachingResolver, fetchAvroRecords, resolveText, s3Lister, s3ParseUrl, translateS3Url, urlResolver };
@@ -0,0 +1,13 @@
1
+ import { cachingResolver } from "./fetch.mjs";
2
+ import "./metadata.mjs";
3
+ import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./catalog/rest.mjs";
4
+ import "./create.mjs";
5
+ import { icebergManifests } from "./manifest.mjs";
6
+ import "./read.mjs";
7
+ import { icebergAppend, icebergAppendBatches, icebergCreateTable, icebergDropTable } from "./write/write.mjs";
8
+ import "./catalog/file.mjs";
9
+ import { s3SignedResolver } from "./s3.mjs";
10
+ import "../../../../squirreling@0.15.0/node_modules/squirreling/src/index.mjs";
11
+ import "./sql/icebergDataSource.mjs";
12
+ import "./sql/icebergQuery.mjs";
13
+ export { cachingResolver, icebergAppend, icebergAppendBatches, icebergCreateTable, icebergDropTable, icebergManifests, restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable, s3SignedResolver };