@gscdump/engine 0.37.4 → 0.37.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/_chunks/sink.d.mts
CHANGED
|
@@ -232,6 +232,12 @@ interface SinkOptions {
|
|
|
232
232
|
interface IcebergAppendSinkOptions extends SinkOptions {
|
|
233
233
|
/** R2 Data Catalog connection config (catalog URI, warehouse, namespace, token, S3 creds). */
|
|
234
234
|
catalog: IcebergCatalogConfig;
|
|
235
|
+
/**
|
|
236
|
+
* Options forwarded to the lazy catalog connection. Supply a shared
|
|
237
|
+
* `CatalogCache` here to serve the REST `/v1/config` probe from durable cache
|
|
238
|
+
* across short-lived Worker isolates.
|
|
239
|
+
*/
|
|
240
|
+
connect?: ConnectIcebergOptions;
|
|
235
241
|
/**
|
|
236
242
|
* Retry policy for the per-table `icebergAppend()` commit, applied on R2
|
|
237
243
|
* Data Catalog 429 ("too many commits") rate-limits. Optional — production
|
package/dist/iceberg/index.d.mts
CHANGED
|
@@ -7,7 +7,9 @@ type IcebergAppendSink = Sink;
|
|
|
7
7
|
* `emit` buffers; `close()` commits one `icebergAppend()` per table touched.
|
|
8
8
|
* The catalog connection (REST context + signed S3 resolver) is established
|
|
9
9
|
* lazily on the first flush and reused — a sink that is opened and closed
|
|
10
|
-
* with no rows never touches the network.
|
|
10
|
+
* with no rows never touches the network. `options.connect` is forwarded so
|
|
11
|
+
* Worker callers can share the `/v1/config` context through a durable cache;
|
|
12
|
+
* without it every fresh sink/isolate must probe the catalog again.
|
|
11
13
|
*/
|
|
12
14
|
declare function createIcebergAppendSink(options: IcebergAppendSinkOptions): IcebergAppendSink;
|
|
13
15
|
export { type CatalogCache, type CommitRetryOptions, type ConnectIcebergOptions, DEFAULT_PARTITION_KEY_ENCODING, ICEBERG_FIELD_ID_BASE, ICEBERG_PARTITION_COLUMNS, ICEBERG_PARTITION_SPEC, ICEBERG_SCHEMAS, ICEBERG_SCHEMAS_INT, ICEBERG_SCHEMAS_STRING, ICEBERG_TABLES, INT_SEARCH_TYPE, type IcebergAppendSink, type IcebergAppendSinkOptions, type IcebergCatalogConfig, type IcebergColumn, type IcebergColumnType, type IcebergConnection, type IcebergListedDataFile, type IcebergPartitionField, type IcebergPartitionSpec, type IcebergPartitionSpecField, type IcebergPartitionTransform, type IcebergPrimitiveType, type IcebergS3Config, type IcebergSchema, type IcebergSchemaField, type IcebergSortOrder, type IcebergSortOrderField, type IcebergTableName, type IcebergTableOpResult, type IcebergTableSpec, type ListIcebergDataFilesOptions, type PartitionKeyEncoding, SEARCH_TYPE_INT, assertIcebergTable, catalogCacheScope, connectIcebergCatalog, createIcebergAppendSink, createIcebergTables, dropIcebergTables, ensureIcebergNamespace, icebergAppendRetrying, icebergCreateTable, icebergManifests, icebergPartitionColumns, icebergPartitionSpecFor, icebergSchemaFor, icebergSchemasFor, icebergSortOrderFor, icebergTableSpec, invalidateSnapshotRef, isCommitRateLimited, isIcebergTable, listIcebergDataFiles, listIcebergTables, restCatalogLoadTable };
|
package/dist/iceberg/index.mjs
CHANGED
|
@@ -177,7 +177,7 @@ function createIcebergAppendSink(options) {
|
|
|
177
177
|
const encoding = options.encoding ?? DEFAULT_PARTITION_KEY_ENCODING;
|
|
178
178
|
const buffers = /* @__PURE__ */ new Map();
|
|
179
179
|
function connect() {
|
|
180
|
-
connection ??= connectIcebergCatalog(options.catalog);
|
|
180
|
+
connection ??= connectIcebergCatalog(options.catalog, options.connect);
|
|
181
181
|
return connection;
|
|
182
182
|
}
|
|
183
183
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/engine",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.37.
|
|
4
|
+
"version": "0.37.6",
|
|
5
5
|
"description": "Append-only Parquet/DuckDB storage engine + planner + adapters for the gscdump pipeline. Node + edge runtimes; opt-in heavy peers.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -181,9 +181,9 @@
|
|
|
181
181
|
"dependencies": {
|
|
182
182
|
"drizzle-orm": "1.0.0-rc.3",
|
|
183
183
|
"proper-lockfile": "^4.1.2",
|
|
184
|
-
"gscdump": "0.37.
|
|
185
|
-
"@gscdump/
|
|
186
|
-
"
|
|
184
|
+
"@gscdump/contracts": "0.37.6",
|
|
185
|
+
"@gscdump/lakehouse": "0.37.6",
|
|
186
|
+
"gscdump": "0.37.6"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@duckdb/duckdb-wasm": "^1.32.0",
|