@gscdump/lakehouse 1.3.2 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,247 @@
1
+ import { toJson } from "../../../../hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs";
2
+ import "../../../../hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs";
3
+ import { geojsonToWkb } from "./wkb.mjs";
4
+ const dayMillis = 864e5;
5
+ function unconvert(element, values) {
6
+ const { type, converted_type: ctype, logical_type: ltype } = element;
7
+ if (ctype === "DECIMAL") {
8
+ const factor = 10 ** (element.scale || 0);
9
+ return values.map((v) => {
10
+ if (v === null || v === void 0) return v;
11
+ if (typeof v !== "number") throw new Error("DECIMAL must be a number");
12
+ return unconvertDecimal(element, BigInt(Math.round(v * factor)));
13
+ });
14
+ }
15
+ if (ctype === "DATE") return Array.from(values).map((v) => {
16
+ if (v instanceof Date) return Math.floor(v.getTime() / dayMillis);
17
+ return v;
18
+ });
19
+ if (ctype === "TIMESTAMP_MILLIS") return Array.from(values).map((v) => {
20
+ if (v === null || v === void 0) return v;
21
+ if (v instanceof Date) return BigInt(v.getTime());
22
+ return BigInt(v);
23
+ });
24
+ if (ctype === "TIMESTAMP_MICROS") return Array.from(values).map((v) => {
25
+ if (v === null || v === void 0) return v;
26
+ if (v instanceof Date) return BigInt(v.getTime() * 1e3);
27
+ return BigInt(v);
28
+ });
29
+ if (ctype === "JSON") {
30
+ if (!Array.isArray(values)) throw new Error("JSON must be an array");
31
+ const encoder = new TextEncoder();
32
+ return values.map((v) => v === void 0 ? void 0 : encoder.encode(JSON.stringify(toJson(v))));
33
+ }
34
+ if (ctype === "UTF8") {
35
+ if (!Array.isArray(values)) throw new Error("strings must be an array");
36
+ const encoder = new TextEncoder();
37
+ return values.map((v) => typeof v === "string" ? encoder.encode(v) : v);
38
+ }
39
+ if (ctype === "UINT_32" || ltype?.type === "INTEGER" && ltype.bitWidth === 32 && !ltype.isSigned) {
40
+ if (values instanceof Uint32Array) return values;
41
+ if (values instanceof Int32Array) return new Uint32Array(values.buffer, values.byteOffset, values.length);
42
+ return Array.from(values).map((v) => {
43
+ if (v === null || v === void 0) return v;
44
+ if (!Number.isSafeInteger(v)) throw new Error("expected integer value, got " + v);
45
+ if (v < 0 || v > 4294967295) throw new Error("expected uint32 value, got " + v);
46
+ if (v > 2147483647) return v - 4294967296;
47
+ return v;
48
+ });
49
+ }
50
+ if (ltype?.type === "FLOAT16") {
51
+ if (type !== "FIXED_LEN_BYTE_ARRAY") throw new Error("FLOAT16 must be FIXED_LEN_BYTE_ARRAY type");
52
+ if (element.type_length !== 2) throw new Error("FLOAT16 expected type_length to be 2 bytes");
53
+ return Array.from(values).map(unconvertFloat16);
54
+ }
55
+ if (ltype?.type === "UUID") {
56
+ if (!Array.isArray(values)) throw new Error("UUID must be an array");
57
+ if (type !== "FIXED_LEN_BYTE_ARRAY") throw new Error("UUID must be FIXED_LEN_BYTE_ARRAY type");
58
+ if (element.type_length !== 16) throw new Error("UUID expected type_length to be 16 bytes");
59
+ return values.map(unconvertUuid);
60
+ }
61
+ if (ltype?.type === "TIMESTAMP") return Array.from(values).map((v) => {
62
+ if (v === null || v === void 0) return v;
63
+ if (v instanceof Date) {
64
+ const millis = BigInt(v.getTime());
65
+ if (ltype.unit === "NANOS") return millis * 1000000n;
66
+ if (ltype.unit === "MICROS") return millis * 1000n;
67
+ return millis;
68
+ }
69
+ return BigInt(v);
70
+ });
71
+ if (ltype?.type === "GEOMETRY" || ltype?.type === "GEOGRAPHY") {
72
+ if (!Array.isArray(values)) throw new Error("geometry must be an array");
73
+ return values.map((v) => {
74
+ if (v === null || v === void 0) return v;
75
+ return geojsonToWkb(v);
76
+ });
77
+ }
78
+ return values;
79
+ }
80
+ function unconvertUuid(value) {
81
+ if (value === void 0 || value === null) return;
82
+ if (value instanceof Uint8Array) return value;
83
+ if (typeof value === "string") {
84
+ if (!/^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i.test(value)) throw new Error("UUID must be a valid UUID string");
85
+ value = value.replace(/-/g, "").toLowerCase();
86
+ const bytes = /* @__PURE__ */ new Uint8Array(16);
87
+ for (let i = 0; i < 16; i++) bytes[i] = parseInt(value.slice(i * 2, i * 2 + 2), 16);
88
+ return bytes;
89
+ }
90
+ throw new Error("UUID must be a string or Uint8Array");
91
+ }
92
+ const STATS_TRUNCATE_LENGTH = 16;
93
+ function truncateStatistic(bytes, isMax) {
94
+ if (bytes.length <= STATS_TRUNCATE_LENGTH) return bytes;
95
+ let cut = STATS_TRUNCATE_LENGTH;
96
+ while (cut > 0 && (bytes[cut] & 192) === 128) cut--;
97
+ const prefix = bytes.slice(0, cut);
98
+ if (!isMax) return prefix;
99
+ const out = new Uint8Array(prefix.length + 4);
100
+ out.set(prefix, 0);
101
+ out.set([
102
+ 244,
103
+ 143,
104
+ 191,
105
+ 191
106
+ ], prefix.length);
107
+ return out;
108
+ }
109
+ function minMaxIsExact(value, element) {
110
+ if (value === void 0 || value === null) return void 0;
111
+ const { type } = element;
112
+ if (type !== "BYTE_ARRAY" && type !== "FIXED_LEN_BYTE_ARRAY") return void 0;
113
+ if (element.logical_type?.type === "UUID") return void 0;
114
+ return (value instanceof Uint8Array ? value : new TextEncoder().encode(value.toString())).length > STATS_TRUNCATE_LENGTH ? false : void 0;
115
+ }
116
+ function unconvertMinMax(value, element, isMax) {
117
+ if (value === void 0 || value === null) return void 0;
118
+ const { type, converted_type } = element;
119
+ if (type === "BOOLEAN") return new Uint8Array([value ? 1 : 0]);
120
+ if (element.logical_type?.type === "UUID" && (typeof value === "string" || value instanceof Uint8Array)) return unconvertUuid(value);
121
+ if (converted_type === "DECIMAL") {
122
+ if (typeof value !== "number") throw new Error("DECIMAL must be a number");
123
+ const factor = 10 ** (element.scale || 0);
124
+ const out = unconvertDecimal(element, BigInt(Math.round(value * factor)));
125
+ if (out instanceof Uint8Array) return out;
126
+ if (typeof out === "number") {
127
+ const buffer = /* @__PURE__ */ new ArrayBuffer(4);
128
+ new DataView(buffer).setFloat32(0, out, true);
129
+ return new Uint8Array(buffer);
130
+ }
131
+ if (typeof out === "bigint") {
132
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
133
+ new DataView(buffer).setBigInt64(0, out, true);
134
+ return new Uint8Array(buffer);
135
+ }
136
+ }
137
+ if (type === "BYTE_ARRAY" || type === "FIXED_LEN_BYTE_ARRAY") return truncateStatistic(value instanceof Uint8Array ? value : new TextEncoder().encode(value.toString()), isMax);
138
+ if (type === "FLOAT" && typeof value === "number") {
139
+ const buffer = /* @__PURE__ */ new ArrayBuffer(4);
140
+ new DataView(buffer).setFloat32(0, value, true);
141
+ return new Uint8Array(buffer);
142
+ }
143
+ if (type === "DOUBLE" && typeof value === "number") {
144
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
145
+ new DataView(buffer).setFloat64(0, value, true);
146
+ return new Uint8Array(buffer);
147
+ }
148
+ if (type === "INT32" && typeof value === "number") {
149
+ const buffer = /* @__PURE__ */ new ArrayBuffer(4);
150
+ new DataView(buffer).setInt32(0, value, true);
151
+ return new Uint8Array(buffer);
152
+ }
153
+ if (type === "INT64" && typeof value === "bigint") {
154
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
155
+ new DataView(buffer).setBigInt64(0, value, true);
156
+ return new Uint8Array(buffer);
157
+ }
158
+ if (type === "INT32" && converted_type === "DATE" && value instanceof Date) {
159
+ const buffer = /* @__PURE__ */ new ArrayBuffer(4);
160
+ new DataView(buffer).setInt32(0, Math.floor(value.getTime() / dayMillis), true);
161
+ return new Uint8Array(buffer);
162
+ }
163
+ if (type === "INT64" && converted_type === "TIMESTAMP_MILLIS" && value instanceof Date) {
164
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
165
+ new DataView(buffer).setBigInt64(0, BigInt(value.getTime()), true);
166
+ return new Uint8Array(buffer);
167
+ }
168
+ if (type === "INT64" && converted_type === "TIMESTAMP_MICROS" && value instanceof Date) {
169
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
170
+ new DataView(buffer).setBigInt64(0, BigInt(value.getTime() * 1e3), true);
171
+ return new Uint8Array(buffer);
172
+ }
173
+ if (type === "INT64" && element.logical_type?.type === "TIMESTAMP" && value instanceof Date) {
174
+ const millis = BigInt(value.getTime());
175
+ const { unit } = element.logical_type;
176
+ let bigintValue = millis;
177
+ if (unit === "NANOS") bigintValue = millis * 1000000n;
178
+ else if (unit === "MICROS") bigintValue = millis * 1000n;
179
+ const buffer = /* @__PURE__ */ new ArrayBuffer(8);
180
+ new DataView(buffer).setBigInt64(0, bigintValue, true);
181
+ return new Uint8Array(buffer);
182
+ }
183
+ throw new Error(`unsupported type for statistics: ${type} with value ${value}`);
184
+ }
185
+ function unconvertStatistics(stats, element) {
186
+ return {
187
+ field_1: unconvertMinMax(stats.max, element, true),
188
+ field_2: unconvertMinMax(stats.min, element, false),
189
+ field_3: stats.null_count,
190
+ field_4: stats.distinct_count,
191
+ field_5: unconvertMinMax(stats.max_value, element, true),
192
+ field_6: unconvertMinMax(stats.min_value, element, false),
193
+ field_7: stats.is_max_value_exact ?? minMaxIsExact(stats.max_value ?? stats.max, element),
194
+ field_8: stats.is_min_value_exact ?? minMaxIsExact(stats.min_value ?? stats.min, element)
195
+ };
196
+ }
197
+ function unconvertDecimal({ type, type_length }, value) {
198
+ if (type === "INT32") return Number(value);
199
+ if (type === "INT64") return value;
200
+ if (type === "FIXED_LEN_BYTE_ARRAY" && !type_length) throw new Error("fixed length byte array type_length is required");
201
+ if (!type_length && !value) return /* @__PURE__ */ new Uint8Array();
202
+ const bytes = [];
203
+ while (true) {
204
+ const byte = Number(value & 255n);
205
+ bytes.unshift(byte);
206
+ value >>= 8n;
207
+ if (type_length) {
208
+ if (bytes.length >= type_length) break;
209
+ } else {
210
+ const sign = byte & 128;
211
+ if (!sign && value === 0n || sign && value === -1n) break;
212
+ }
213
+ }
214
+ return new Uint8Array(bytes);
215
+ }
216
+ function unconvertFloat16(value) {
217
+ if (value === void 0 || value === null) return;
218
+ if (typeof value !== "number") throw new Error("parquet float16 expected number value");
219
+ if (Number.isNaN(value)) return new Uint8Array([0, 126]);
220
+ const sign = value < 0 || Object.is(value, -0) ? 1 : 0;
221
+ const abs = Math.abs(value);
222
+ if (!isFinite(abs)) return new Uint8Array([0, sign << 7 | 124]);
223
+ if (abs === 0) return new Uint8Array([0, sign << 7]);
224
+ const buf = /* @__PURE__ */ new ArrayBuffer(4);
225
+ new Float32Array(buf)[0] = abs;
226
+ const bits32 = new Uint32Array(buf)[0];
227
+ let exp32 = bits32 >>> 23 & 255;
228
+ let mant32 = bits32 & 8388607;
229
+ exp32 -= 127;
230
+ if (exp32 < -14) {
231
+ const shift = -14 - exp32;
232
+ mant32 = (mant32 | 8388608) >> shift + 13;
233
+ if (mant32 & 1) mant32 += 1;
234
+ const bits16 = sign << 15 | mant32;
235
+ return new Uint8Array([bits16 & 255, bits16 >> 8]);
236
+ }
237
+ if (exp32 > 15) return new Uint8Array([0, sign << 7 | 124]);
238
+ let exp16 = exp32 + 15;
239
+ mant32 = mant32 + 4096;
240
+ if (mant32 & 8388608) {
241
+ mant32 = 0;
242
+ if (++exp16 === 31) return new Uint8Array([0, sign << 7 | 124]);
243
+ }
244
+ const bits16 = sign << 15 | exp16 << 10 | mant32 >> 13;
245
+ return new Uint8Array([bits16 & 255, bits16 >> 8]);
246
+ }
247
+ export { unconvert, unconvertDecimal, unconvertFloat16, unconvertMinMax, unconvertStatistics };
@@ -0,0 +1,391 @@
1
+ import { ByteWriter } from "./bytewriter.mjs";
2
+ const encoder = new TextEncoder();
3
+ const INT64_MIN = -(2n ** 63n);
4
+ const INT64_MAX = 2n ** 63n - 1n;
5
+ const VARIANT_NULL = new Uint8Array([0]);
6
+ const RESERVED_SHREDDING_FIELDS = /* @__PURE__ */ new Set(["value", "typed_value"]);
7
+ const EMPTY_KEY_INDEX = /* @__PURE__ */ new Map();
8
+ const EMPTY_METADATA = writeVariantMetadata([]);
9
+ function encodeVariantColumn(values, shredding, column) {
10
+ if (column?.required) {
11
+ for (let i = 0; i < values.length; i++) if (values[i] === void 0) throw new Error(`required variant column ${column.name} has undefined value at index ${i}`);
12
+ }
13
+ const shreddingConfig = shredding && normalizeShreddingConfig(shredding);
14
+ if (shreddingConfig) {
15
+ const metadataCache = /* @__PURE__ */ new Map();
16
+ return values.map((value) => {
17
+ if (value === void 0) return null;
18
+ const keys = /* @__PURE__ */ new Set();
19
+ collectKeys(value, keys);
20
+ const { metadata, keyIndex } = getVariantRowMetadata(keys, metadataCache);
21
+ return {
22
+ metadata,
23
+ ...encodeShredded(value, shreddingConfig, keyIndex, true)
24
+ };
25
+ });
26
+ }
27
+ const dictionary = buildVariantDictionary(values);
28
+ const metadata = writeVariantMetadata(dictionary);
29
+ const keyIndex = /* @__PURE__ */ new Map();
30
+ for (let i = 0; i < dictionary.length; i++) keyIndex.set(dictionary[i], i);
31
+ return values.map((value) => {
32
+ if (value === void 0) return null;
33
+ return {
34
+ metadata,
35
+ value: writeVariantValue(value, keyIndex)
36
+ };
37
+ });
38
+ }
39
+ function encodeShredded(value, shredType, keyIndex, allowPartialObjects) {
40
+ if (value === null || value === void 0) return {
41
+ value: VARIANT_NULL,
42
+ typed_value: null
43
+ };
44
+ if (Array.isArray(shredType)) {
45
+ if (!Array.isArray(value)) return {
46
+ value: writeVariantValue(value, keyIndex),
47
+ typed_value: null
48
+ };
49
+ const elemShred = shredType[0];
50
+ return {
51
+ value: null,
52
+ typed_value: value.map((el) => encodeShredded(el, elemShred, keyIndex, false))
53
+ };
54
+ }
55
+ if (typeof shredType === "object") {
56
+ if (typeof value !== "object" || Array.isArray(value) || value instanceof Date || value instanceof Uint8Array) return {
57
+ value: writeVariantValue(value, keyIndex),
58
+ typed_value: null
59
+ };
60
+ const remaining = {};
61
+ let hasRemaining = false;
62
+ for (const k of Object.keys(value)) {
63
+ if (k in shredType || value[k] === void 0) continue;
64
+ remaining[k] = value[k];
65
+ hasRemaining = true;
66
+ }
67
+ if (hasRemaining && !allowPartialObjects) return {
68
+ value: writeVariantValue(value, keyIndex),
69
+ typed_value: null
70
+ };
71
+ const fieldNames = Object.keys(shredType);
72
+ if (fieldNames.some((fieldName) => (!Object.prototype.hasOwnProperty.call(value, fieldName) || value[fieldName] === void 0) && keyIndex.has(fieldName))) return {
73
+ value: writeVariantValue(value, keyIndex),
74
+ typed_value: null
75
+ };
76
+ const typedValue = {};
77
+ for (const fieldName of fieldNames) {
78
+ if (!Object.prototype.hasOwnProperty.call(value, fieldName) || value[fieldName] === void 0) continue;
79
+ typedValue[fieldName] = encodeShredded(value[fieldName], shredType[fieldName], keyIndex, false);
80
+ }
81
+ return {
82
+ value: hasRemaining ? writeVariantValue(remaining, keyIndex) : null,
83
+ typed_value: typedValue
84
+ };
85
+ }
86
+ if (matchesType(value, shredType)) return {
87
+ value: null,
88
+ typed_value: value
89
+ };
90
+ return {
91
+ value: writeVariantValue(value, keyIndex),
92
+ typed_value: null
93
+ };
94
+ }
95
+ function getVariantRowMetadata(keys, metadataCache) {
96
+ if (keys.size === 0) return {
97
+ metadata: EMPTY_METADATA,
98
+ keyIndex: EMPTY_KEY_INDEX
99
+ };
100
+ const dictionary = [...keys].sort();
101
+ const cacheKey = dictionary.join("\0");
102
+ const cached = metadataCache.get(cacheKey);
103
+ if (cached) return cached;
104
+ const metadata = writeVariantMetadata(dictionary);
105
+ const keyIndex = /* @__PURE__ */ new Map();
106
+ for (let i = 0; i < dictionary.length; i++) keyIndex.set(dictionary[i], i);
107
+ const rowMetadata = {
108
+ metadata,
109
+ keyIndex
110
+ };
111
+ metadataCache.set(cacheKey, rowMetadata);
112
+ return rowMetadata;
113
+ }
114
+ function matchesType(value, type) {
115
+ if (value === null || value === void 0) return false;
116
+ switch (type) {
117
+ case "BOOLEAN": return typeof value === "boolean";
118
+ case "INT32": return typeof value === "number" && Number.isInteger(value) && value >= -2147483648 && value <= 2147483647;
119
+ case "INT64": return typeof value === "bigint" && value >= INT64_MIN && value <= INT64_MAX;
120
+ case "FLOAT": return typeof value === "number";
121
+ case "DOUBLE": return typeof value === "number";
122
+ case "STRING": return typeof value === "string";
123
+ case "TIMESTAMP": return value instanceof Date;
124
+ default: return false;
125
+ }
126
+ }
127
+ const MAX_SHRED_DEPTH = 3;
128
+ const MAX_SHRED_LEAVES = 256;
129
+ function autoDetectShredding(values) {
130
+ const detected = detectShred(values, 0);
131
+ if (detected === void 0 || typeof detected !== "object") return void 0;
132
+ const normalized = normalizeShreddingConfig(detected);
133
+ if (normalized === void 0 || countShredLeaves(normalized) > MAX_SHRED_LEAVES) return void 0;
134
+ return normalized;
135
+ }
136
+ function countShredLeaves(shredType) {
137
+ if (Array.isArray(shredType)) return shredType.length ? countShredLeaves(shredType[0]) : 0;
138
+ if (shredType && typeof shredType === "object") {
139
+ let leaves = 0;
140
+ for (const key of Object.keys(shredType)) leaves += countShredLeaves(shredType[key]);
141
+ return leaves;
142
+ }
143
+ return 1;
144
+ }
145
+ function detectShred(values, depth) {
146
+ const nonNull = [];
147
+ for (const v of values) if (v !== null && v !== void 0) nonNull.push(v);
148
+ if (!nonNull.length) return void 0;
149
+ if (nonNull.some(isPlainObject)) {
150
+ if (depth >= MAX_SHRED_DEPTH) return void 0;
151
+ const fieldValues = /* @__PURE__ */ new Map();
152
+ for (const v of nonNull) {
153
+ if (!isPlainObject(v)) continue;
154
+ for (const [key, fieldValue] of Object.entries(v)) {
155
+ if (fieldValue === void 0) continue;
156
+ const arr = fieldValues.get(key);
157
+ if (arr) arr.push(fieldValue);
158
+ else fieldValues.set(key, [fieldValue]);
159
+ }
160
+ }
161
+ const shredding = {};
162
+ for (const [key, vals] of fieldValues) {
163
+ const fieldShred = detectShred(vals, depth + 1);
164
+ if (fieldShred !== void 0) shredding[key] = fieldShred;
165
+ }
166
+ return Object.keys(shredding).length > 0 ? shredding : void 0;
167
+ }
168
+ if (nonNull.every(Array.isArray)) {
169
+ if (depth >= MAX_SHRED_DEPTH) return void 0;
170
+ const elements = [];
171
+ for (const arr of nonNull) for (const el of arr) elements.push(el);
172
+ const elemShred = detectShred(elements, depth + 1);
173
+ return elemShred === void 0 ? void 0 : [elemShred];
174
+ }
175
+ let jsType;
176
+ for (const v of nonNull) {
177
+ if (Array.isArray(v)) return void 0;
178
+ const t = v instanceof Date ? "date" : typeof v;
179
+ if (jsType === void 0) jsType = t;
180
+ else if (jsType !== t) return void 0;
181
+ }
182
+ return jsType ? jsTypeToBasicType(jsType) : void 0;
183
+ }
184
+ function isPlainObject(v) {
185
+ return typeof v === "object" && v !== null && !Array.isArray(v) && !(v instanceof Date) && !(v instanceof Uint8Array);
186
+ }
187
+ function normalizeShreddingConfig(shredding) {
188
+ if (Array.isArray(shredding)) {
189
+ const elem = shredding.length ? normalizeShreddingConfig(shredding[0]) : void 0;
190
+ return elem === void 0 ? void 0 : [elem];
191
+ }
192
+ if (typeof shredding === "object") {
193
+ const normalized = {};
194
+ for (const [key, type] of Object.entries(shredding)) {
195
+ if (RESERVED_SHREDDING_FIELDS.has(key)) continue;
196
+ const norm = normalizeShreddingConfig(type);
197
+ if (norm !== void 0) normalized[key] = norm;
198
+ }
199
+ return Object.keys(normalized).length > 0 ? normalized : void 0;
200
+ }
201
+ return shredding;
202
+ }
203
+ function jsTypeToBasicType(jsType) {
204
+ switch (jsType) {
205
+ case "boolean": return "BOOLEAN";
206
+ case "string": return "STRING";
207
+ case "number": return "DOUBLE";
208
+ case "bigint": return "INT64";
209
+ case "date": return "TIMESTAMP";
210
+ default: return;
211
+ }
212
+ }
213
+ function buildVariantDictionary(values) {
214
+ const keys = /* @__PURE__ */ new Set();
215
+ collectKeys(values, keys);
216
+ return [...keys].sort();
217
+ }
218
+ function collectKeys(value, keys) {
219
+ if (value === null || value === void 0) return;
220
+ if (Array.isArray(value)) {
221
+ for (const item of value) collectKeys(item, keys);
222
+ return;
223
+ }
224
+ if (value instanceof Date || value instanceof Uint8Array) return;
225
+ if (typeof value === "object") for (const key of Object.keys(value)) {
226
+ keys.add(key);
227
+ collectKeys(value[key], keys);
228
+ }
229
+ }
230
+ function writeVariantMetadata(dictionary) {
231
+ const n = dictionary.length;
232
+ const encoded = new Array(n);
233
+ let totalStringBytes = 0;
234
+ for (let i = 0; i < n; i++) {
235
+ const e = encoder.encode(dictionary[i]);
236
+ encoded[i] = e;
237
+ totalStringBytes += e.length;
238
+ }
239
+ const offsetSize = byteWidth(totalStringBytes);
240
+ const header = 17 | offsetSize - 1 << 6;
241
+ const totalSize = 1 + offsetSize + (n + 1) * offsetSize + totalStringBytes;
242
+ const bytes = new Uint8Array(totalSize);
243
+ let offset = 0;
244
+ bytes[offset++] = header;
245
+ for (let j = 0; j < offsetSize; j++) bytes[offset++] = n >> j * 8 & 255;
246
+ let strOffset = 0;
247
+ for (let i = 0; i < n; i++) {
248
+ for (let j = 0; j < offsetSize; j++) bytes[offset++] = strOffset >> j * 8 & 255;
249
+ strOffset += encoded[i].length;
250
+ }
251
+ for (let j = 0; j < offsetSize; j++) bytes[offset++] = strOffset >> j * 8 & 255;
252
+ for (let i = 0; i < n; i++) {
253
+ bytes.set(encoded[i], offset);
254
+ offset += encoded[i].length;
255
+ }
256
+ return bytes;
257
+ }
258
+ function writeVariantValue(value, keyIndex) {
259
+ const writer = new ByteWriter(8);
260
+ writeValue(value, writer, keyIndex);
261
+ return writer.getBytes();
262
+ }
263
+ function writeValue(val, writer, keyIndex) {
264
+ if (val === null || val === void 0) {
265
+ writer.appendUint8(0);
266
+ return;
267
+ }
268
+ if (val === true) {
269
+ writer.appendUint8(4);
270
+ return;
271
+ }
272
+ if (val === false) {
273
+ writer.appendUint8(8);
274
+ return;
275
+ }
276
+ if (typeof val === "bigint") {
277
+ if (val < INT64_MIN || val > INT64_MAX) throw new RangeError(`variant bigint out of int64 range: ${val}`);
278
+ writer.appendUint8(24);
279
+ writer.appendInt64(val);
280
+ return;
281
+ }
282
+ if (typeof val === "number") {
283
+ if (Number.isInteger(val)) {
284
+ if (val >= -128 && val <= 127) {
285
+ writer.appendUint8(12);
286
+ writer.appendUint8(val & 255);
287
+ return;
288
+ }
289
+ if (val >= -32768 && val <= 32767) {
290
+ writer.appendUint8(16);
291
+ appendUnsignedLE(writer, val, 2);
292
+ return;
293
+ }
294
+ if (val >= -2147483648 && val <= 2147483647) {
295
+ writer.appendUint8(20);
296
+ writer.appendInt32(val);
297
+ return;
298
+ }
299
+ }
300
+ writer.appendUint8(28);
301
+ writer.appendFloat64(val);
302
+ return;
303
+ }
304
+ if (typeof val === "string") {
305
+ const strBytes = encoder.encode(val);
306
+ if (strBytes.length <= 63) {
307
+ writer.appendUint8(strBytes.length << 2 | 1);
308
+ writer.appendBytes(strBytes);
309
+ } else {
310
+ writer.appendUint8(64);
311
+ writer.appendUint32(strBytes.length);
312
+ writer.appendBytes(strBytes);
313
+ }
314
+ return;
315
+ }
316
+ if (val instanceof Date) {
317
+ writer.appendUint8(52);
318
+ writer.appendInt64(BigInt(val.getTime()) * 1000n);
319
+ return;
320
+ }
321
+ if (val instanceof Uint8Array) {
322
+ writer.appendUint8(60);
323
+ writer.appendUint32(val.length);
324
+ writer.appendBytes(val);
325
+ return;
326
+ }
327
+ if (Array.isArray(val)) {
328
+ writeVariantArray(val, writer, keyIndex);
329
+ return;
330
+ }
331
+ if (typeof val === "object") {
332
+ writeVariantObject(val, writer, keyIndex);
333
+ return;
334
+ }
335
+ throw new Error(`variant cannot encode value: ${val}`);
336
+ }
337
+ function writeVariantObject(obj, writer, keyIndex) {
338
+ const entries = Object.keys(obj).filter((key) => obj[key] !== void 0).map((key) => {
339
+ const id = keyIndex.get(key);
340
+ if (id === void 0) throw new Error(`variant key not in dictionary: ${key}`);
341
+ return {
342
+ id,
343
+ key
344
+ };
345
+ });
346
+ entries.sort((a, b) => a.id - b.id);
347
+ const numElements = entries.length;
348
+ const idWidth = byteWidth(numElements > 0 ? entries[numElements - 1].id : 0);
349
+ const scratch = new ByteWriter(8);
350
+ const offsets = new Array(numElements + 1);
351
+ offsets[0] = 0;
352
+ for (let i = 0; i < numElements; i++) {
353
+ writeValue(obj[entries[i].key], scratch, keyIndex);
354
+ offsets[i + 1] = scratch.index;
355
+ }
356
+ const offsetWidth = byteWidth(offsets[numElements]);
357
+ const isLarge = numElements > 255 ? 1 : 0;
358
+ writer.appendUint8((offsetWidth - 1 | idWidth - 1 << 2 | isLarge << 4) << 2 | 2);
359
+ if (isLarge) writer.appendUint32(numElements);
360
+ else writer.appendUint8(numElements);
361
+ for (const { id } of entries) appendUnsignedLE(writer, id, idWidth);
362
+ for (const off of offsets) appendUnsignedLE(writer, off, offsetWidth);
363
+ writer.appendBytes(scratch.getBytes());
364
+ }
365
+ function writeVariantArray(arr, writer, keyIndex) {
366
+ const numElements = arr.length;
367
+ const scratch = new ByteWriter(8);
368
+ const offsets = new Array(numElements + 1);
369
+ offsets[0] = 0;
370
+ for (let i = 0; i < numElements; i++) {
371
+ writeValue(arr[i], scratch, keyIndex);
372
+ offsets[i + 1] = scratch.index;
373
+ }
374
+ const offsetWidth = byteWidth(offsets[numElements]);
375
+ const isLarge = numElements > 255 ? 1 : 0;
376
+ writer.appendUint8((offsetWidth - 1 | isLarge << 2) << 2 | 3);
377
+ if (isLarge) writer.appendUint32(numElements);
378
+ else writer.appendUint8(numElements);
379
+ for (const off of offsets) appendUnsignedLE(writer, off, offsetWidth);
380
+ writer.appendBytes(scratch.getBytes());
381
+ }
382
+ function byteWidth(maxValue) {
383
+ if (maxValue <= 255) return 1;
384
+ if (maxValue <= 65535) return 2;
385
+ if (maxValue <= 16777215) return 3;
386
+ return 4;
387
+ }
388
+ function appendUnsignedLE(writer, value, width) {
389
+ for (let i = 0; i < width; i++) writer.appendUint8(value >> i * 8 & 255);
390
+ }
391
+ export { autoDetectShredding, encodeVariantColumn, normalizeShreddingConfig };