@gscdump/lakehouse 4.0.1 → 4.1.0

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 (63) hide show
  1. package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/write.mjs +6 -3
  2. package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/write/write.d.mts +2 -1
  3. package/dist/catalog.d.mts +3 -3
  4. package/dist/catalog.mjs +13 -12
  5. package/dist/dataset-runtime.mjs +1 -1
  6. package/dist/orphan-sweep.mjs +3 -3
  7. package/dist/unsafe-raw.d.mts +5 -5
  8. package/dist/unsafe-raw.mjs +5 -5
  9. package/package.json +1 -1
  10. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/avro/avro.metadata.mjs +0 -0
  11. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/avro/avro.read.mjs +0 -0
  12. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/avro/avro.write.mjs +0 -0
  13. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/catalog/file.mjs +0 -0
  14. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/catalog/loadTable.mjs +0 -0
  15. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/catalog/rest.mjs +0 -0
  16. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/create.mjs +0 -0
  17. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/delete.mjs +0 -0
  18. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/fetch.mjs +0 -0
  19. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/index.mjs +0 -0
  20. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/json.mjs +0 -0
  21. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/manifest.mjs +0 -0
  22. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/metadata.mjs +0 -0
  23. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/prune.mjs +0 -0
  24. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/puffin/deletion-vector.mjs +0 -0
  25. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/puffin/puffin.mjs +0 -0
  26. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/puffin/roaring.mjs +0 -0
  27. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/read.mjs +0 -0
  28. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/s3.mjs +0 -0
  29. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/schema.mjs +0 -0
  30. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/sigv4.mjs +0 -0
  31. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/sql/icebergDataSource.mjs +0 -0
  32. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/sql/icebergQuery.mjs +0 -0
  33. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/sql/whereFilter.mjs +0 -0
  34. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/types.d.mts +0 -0
  35. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/utils.mjs +0 -0
  36. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/commit.mjs +0 -0
  37. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/conversions.mjs +0 -0
  38. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/delete-file.mjs +0 -0
  39. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/geospatial.mjs +0 -0
  40. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/manifest-list.mjs +0 -0
  41. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/manifest.mjs +0 -0
  42. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/parquet.mjs +0 -0
  43. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/partition.mjs +0 -0
  44. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/rewrite.mjs +0 -0
  45. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/serde.mjs +0 -0
  46. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/snapshot.mjs +0 -0
  47. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/sort.mjs +0 -0
  48. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/stage-deletion-vector.mjs +0 -0
  49. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/stage-position-delete.mjs +0 -0
  50. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/stage.mjs +0 -0
  51. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/stats.mjs +0 -0
  52. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/src/write/transform.mjs +0 -0
  53. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/catalog/file.d.mts +0 -0
  54. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/catalog/rest.d.mts +0 -0
  55. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/create.d.mts +0 -0
  56. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/fetch.d.mts +0 -0
  57. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/index.d.mts +0 -0
  58. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/manifest.d.mts +0 -0
  59. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/metadata.d.mts +0 -0
  60. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/read.d.mts +0 -0
  61. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/s3.d.mts +0 -0
  62. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/sql/icebergDataSource.d.mts +0 -0
  63. /package/dist/_virtual/node_modules/.pnpm/{icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae → icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7}/node_modules/icebird/types/sql/icebergQuery.d.mts +0 -0
@@ -29,7 +29,7 @@ async function loadTableOrReuse({ catalog, namespace, table, tableUrl, resolver,
29
29
  resolver
30
30
  });
31
31
  }
32
- async function icebergAppend({ catalog, namespace, table, tableUrl, resolver, records, sortOrderId, snapshotProperties, metadata }) {
32
+ async function icebergAppend({ catalog, namespace, table, tableUrl, resolver, records, sortOrderId, snapshotProperties, metadata, isAlreadyApplied }) {
33
33
  const ctx = await loadTableOrReuse({
34
34
  catalog,
35
35
  namespace,
@@ -52,6 +52,7 @@ async function icebergAppend({ catalog, namespace, table, tableUrl, resolver, re
52
52
  table
53
53
  },
54
54
  ctx,
55
+ isAlreadyApplied,
55
56
  stage: (workingCtx) => stageSnapshotForAppend({
56
57
  tableUrl: workingCtx.tableUrl,
57
58
  metadata: workingCtx.metadata,
@@ -61,7 +62,7 @@ async function icebergAppend({ catalog, namespace, table, tableUrl, resolver, re
61
62
  })
62
63
  });
63
64
  }
64
- async function icebergAppendBatches({ catalog, namespace, table, tableUrl, resolver, batches, sortOrderId, snapshotProperties, metadata }) {
65
+ async function icebergAppendBatches({ catalog, namespace, table, tableUrl, resolver, batches, sortOrderId, snapshotProperties, metadata, isAlreadyApplied }) {
65
66
  const ctx = await loadTableOrReuse({
66
67
  catalog,
67
68
  namespace,
@@ -94,6 +95,7 @@ async function icebergAppendBatches({ catalog, namespace, table, tableUrl, resol
94
95
  table
95
96
  },
96
97
  ctx,
98
+ isAlreadyApplied,
97
99
  stage: (workingCtx) => stageSnapshotForAppendBatches({
98
100
  tableUrl: workingCtx.tableUrl,
99
101
  metadata: workingCtx.metadata,
@@ -406,12 +408,13 @@ async function commitStaged(catalog, target, ctx, staged) {
406
408
  conditionalCommits: catalog.type === "file" && catalog.conditionalCommits
407
409
  });
408
410
  }
409
- async function commitWithRetry({ catalog, target, ctx, stage }) {
411
+ async function commitWithRetry({ catalog, target, ctx, stage, isAlreadyApplied }) {
410
412
  const retryEnabled = catalog.type === "rest" || catalog.type === "file" && catalog.conditionalCommits === true;
411
413
  const policy = resolveRetryPolicy(ctx.metadata);
412
414
  const startedAt = Date.now();
413
415
  let workingCtx = ctx;
414
416
  for (let attempt = 1; attempt <= policy.maxAttempts; attempt++) {
417
+ if (isAlreadyApplied?.(workingCtx.metadata)) return workingCtx.metadata;
415
418
  const staged = await stage(workingCtx);
416
419
  try {
417
420
  return await commitStaged(catalog, target, workingCtx, staged);
@@ -13,7 +13,7 @@ import { Catalog, Lister, PartitionSpec, Resolver, Schema, SortOrder, TableMetad
13
13
  * @param {number} [options.sortOrderId] - Sort order id to apply; defaults to the table default.
14
14
  * @returns {Promise<TableMetadata>}
15
15
  */
16
- export declare function icebergAppend({ catalog, namespace, table, tableUrl, resolver, records, sortOrderId, snapshotProperties }: {
16
+ export declare function icebergAppend({ catalog, namespace, table, tableUrl, resolver, records, sortOrderId, snapshotProperties, metadata, isAlreadyApplied }: {
17
17
  catalog: Catalog;
18
18
  namespace?: string | string[];
19
19
  table?: string;
@@ -23,6 +23,7 @@ export declare function icebergAppend({ catalog, namespace, table, tableUrl, res
23
23
  sortOrderId?: number;
24
24
  snapshotProperties?: Record<string, string>;
25
25
  metadata?: TableMetadata;
26
+ isAlreadyApplied?: (metadata: TableMetadata) => boolean;
26
27
  }): Promise<TableMetadata>;
27
28
  /**
28
29
  * Create a new table. REST: delegates to the catalog's create endpoint.
@@ -1,9 +1,9 @@
1
- import { icebergAppend } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/write/write.mjs";
1
+ import { icebergAppend } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/write/write.mjs";
2
2
  import { CatalogCache } from "./catalog-cache.mjs";
3
3
  import { IcebergPrimitiveType, IcebergS3Config } from "./schema.mjs";
4
4
  import { PartitionValueMatch } from "./partition-prune.mjs";
5
- import { restCatalogConnect } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/catalog/rest.mjs";
6
- import { cachingResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/fetch.mjs";
5
+ import { restCatalogConnect } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/catalog/rest.mjs";
6
+ import { cachingResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/fetch.mjs";
7
7
  /** A field in an icebird table `Schema`. */
8
8
  export interface IcebergSchemaField {
9
9
  id: number;
package/dist/catalog.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import { stringifyBigintSafe } from "./bigint.mjs";
2
- import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/catalog/rest.mjs";
3
- import { cachingResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/fetch.mjs";
4
- import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/manifest.mjs";
5
- import { s3SignedResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/s3.mjs";
2
+ import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/catalog/rest.mjs";
3
+ import { cachingResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/fetch.mjs";
4
+ import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/manifest.mjs";
5
+ import { s3SignedResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/s3.mjs";
6
6
  import { cacheGet, cachePut, reportCatalogCacheError } from "./catalog-cache.mjs";
7
7
  import { toIcebergDayCount } from "./date.mjs";
8
8
  import { MULTI_MONTH_MANIFEST, buildManifestPartitionFilter, manifestMonthBucket } from "./partition-prune.mjs";
9
9
  let icebirdWriteModule;
10
10
  function useIcebirdWriteModule() {
11
- icebirdWriteModule ??= import("./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/write/write.mjs");
11
+ icebirdWriteModule ??= import("./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/write/write.mjs");
12
12
  return icebirdWriteModule;
13
13
  }
14
14
  const CATALOG_CONFIG_TTL_MS = 36e5;
@@ -126,7 +126,6 @@ async function dropIcebergTables(conn, tables) {
126
126
  return results;
127
127
  }
128
128
  const APPEND_ID_SUMMARY_KEY = "lakehouse.append-id";
129
- const APPEND_LANDED_SCAN_DEPTH = 25;
130
129
  function isCommitRateLimited(err) {
131
130
  if (err && typeof err === "object" && err.status === 429) return true;
132
131
  const msg = (err instanceof Error ? err.message : String(err)).toLowerCase();
@@ -164,7 +163,8 @@ async function icebergAppendRetrying(args, options = {}) {
164
163
  snapshotProperties: {
165
164
  ...args.snapshotProperties,
166
165
  [APPEND_ID_SUMMARY_KEY]: appendId
167
- }
166
+ },
167
+ isAlreadyApplied: (metadata) => hasAppendId(metadata, appendId)
168
168
  };
169
169
  let check = await checkAppendLanded(args, appendId);
170
170
  if (check.landed) return;
@@ -196,7 +196,8 @@ async function icebergAppendBatchesRetrying(args, options) {
196
196
  snapshotProperties: {
197
197
  ...appendArgs.snapshotProperties,
198
198
  [APPEND_ID_SUMMARY_KEY]: appendId
199
- }
199
+ },
200
+ isAlreadyApplied: (metadata) => hasAppendId(metadata, appendId)
200
201
  };
201
202
  let check = await checkAppendLanded(args, appendId);
202
203
  if (check.landed) return false;
@@ -234,14 +235,14 @@ async function checkAppendLanded(args, appendId) {
234
235
  namespace: a.namespace,
235
236
  table: a.table
236
237
  });
237
- const snapshots = metadata.snapshots ?? [];
238
- const from = Math.max(0, snapshots.length - APPEND_LANDED_SCAN_DEPTH);
239
- for (let i = snapshots.length - 1; i >= from; i--) if (snapshots[i]?.summary?.[APPEND_ID_SUMMARY_KEY] === appendId) return { landed: true };
240
- return {
238
+ return hasAppendId(metadata, appendId) ? { landed: true } : {
241
239
  landed: false,
242
240
  metadata
243
241
  };
244
242
  }
243
+ function hasAppendId(metadata, appendId) {
244
+ return metadata.snapshots?.some((snapshot) => snapshot.summary?.[APPEND_ID_SUMMARY_KEY] === appendId) ?? false;
245
+ }
245
246
  const SNAPSHOT_REF_TTL_MS = 18e5;
246
247
  const RESOLVED_FILES_TTL_MS = 864e5;
247
248
  const METADATA_TTL_MS = 864e5;
@@ -1,5 +1,5 @@
1
1
  import { connectIcebergCatalog, ensureIcebergNamespace, icebergAppendBatchesRetrying, icebergAppendRetrying, resolveIcebergDataFiles } from "./catalog.mjs";
2
- import { icebergCreateTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/write/write.mjs";
2
+ import { icebergCreateTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/write/write.mjs";
3
3
  async function createDatasetTable(conn, table, schema, partitionSpec, sortOrder) {
4
4
  const results = [];
5
5
  await icebergCreateTable({
@@ -1,6 +1,6 @@
1
- import { restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/catalog/rest.mjs";
2
- import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/manifest.mjs";
3
- import "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/index.mjs";
1
+ import { restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/catalog/rest.mjs";
2
+ import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/manifest.mjs";
3
+ import "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/index.mjs";
4
4
  const DEFAULT_GRACE_HOURS = 48;
5
5
  const DEFAULT_MAX_DELETES = 500;
6
6
  const DEFAULT_IO_CONCURRENCY = 4;
@@ -1,7 +1,7 @@
1
- import { icebergAppend, icebergCreateTable, icebergDropTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/write/write.mjs";
2
- import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/catalog/rest.mjs";
1
+ import { icebergAppend, icebergCreateTable, icebergDropTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/write/write.mjs";
2
+ import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/catalog/rest.mjs";
3
3
  import { icebergAppendRetrying } from "./catalog.mjs";
4
- import { s3SignedResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/s3.mjs";
5
- import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/manifest.mjs";
6
- import "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/types/index.mjs";
4
+ import { s3SignedResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/s3.mjs";
5
+ import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/manifest.mjs";
6
+ import "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/types/index.mjs";
7
7
  export { icebergAppend, icebergAppendRetrying, icebergCreateTable, icebergDropTable, icebergManifests, restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable, s3SignedResolver };
@@ -1,7 +1,7 @@
1
- import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/catalog/rest.mjs";
2
- import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/manifest.mjs";
3
- import { s3SignedResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/s3.mjs";
1
+ import { restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/catalog/rest.mjs";
2
+ import { icebergManifests } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/manifest.mjs";
3
+ import { s3SignedResolver } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/s3.mjs";
4
4
  import { icebergAppendRetrying } from "./catalog.mjs";
5
- import { icebergAppend, icebergCreateTable, icebergDropTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/write/write.mjs";
6
- import "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=fddf140b38d2e0cf41ed74c5b5eb5cac324d0a6ac428572f1df7a967dcb19cae/node_modules/icebird/src/index.mjs";
5
+ import { icebergAppend, icebergCreateTable, icebergDropTable } from "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/write/write.mjs";
6
+ import "./_virtual/node_modules/.pnpm/icebird@0.8.30_patch_hash=baf49f0ba810036770cc2fd19ec2c43cbccd764be0f7aa04af13b186e90227a7/node_modules/icebird/src/index.mjs";
7
7
  export { icebergAppend, icebergAppendRetrying, icebergCreateTable, icebergDropTable, icebergManifests, restCatalogConnect, restCatalogCreateNamespace, restCatalogListTables, restCatalogLoadTable, s3SignedResolver };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/lakehouse",
3
3
  "type": "module",
4
- "version": "4.0.1",
4
+ "version": "4.1.0",
5
5
  "description": "Dataset-agnostic Iceberg lakehouse layer + dataset registry for R2 Data Catalog producers (ADR-0021).",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",