@gscdump/engine 0.33.7 → 0.33.8
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/rollups.d.mts +2 -1
- package/dist/rollups.mjs +2 -1
- package/package.json +3 -3
package/dist/rollups.d.mts
CHANGED
|
@@ -402,7 +402,8 @@ declare function rebuildCanonicalDailyResumable(opts: {
|
|
|
402
402
|
builtAt: number;
|
|
403
403
|
windowOffset: number; /** Resume the `windowOffset` window at this output-page offset (0 = window start). */
|
|
404
404
|
pageOffset?: number; /** Output rows per page (default `ROLLUP_PAGE_ROWS_DAILY`). Injectable for tests. */
|
|
405
|
-
pageRows?: number;
|
|
405
|
+
pageRows?: number; /** Cap each input window's day span (default `DAILY_MAX_WINDOW_DAYS`). */
|
|
406
|
+
maxWindowDays?: number;
|
|
406
407
|
deadlineMs: number;
|
|
407
408
|
}): Promise<{
|
|
408
409
|
done: boolean;
|
package/dist/rollups.mjs
CHANGED
|
@@ -766,6 +766,7 @@ async function rebuildCanonicalDailyResumable(opts) {
|
|
|
766
766
|
const sType = searchType !== void 0 ? { searchType } : {};
|
|
767
767
|
const startPageOffset = opts.pageOffset ?? 0;
|
|
768
768
|
const pageRows = opts.pageRows ?? 7e4;
|
|
769
|
+
const maxWindowDays = opts.maxWindowDays ?? 7;
|
|
769
770
|
const windows = planRollupWindows((await engine.listPartitions({
|
|
770
771
|
ctx,
|
|
771
772
|
table: "queries",
|
|
@@ -773,7 +774,7 @@ async function rebuildCanonicalDailyResumable(opts) {
|
|
|
773
774
|
})).map((p) => ({
|
|
774
775
|
partition: p.partition,
|
|
775
776
|
bytes: p.bytes
|
|
776
|
-
})), void 0,
|
|
777
|
+
})), void 0, maxWindowDays);
|
|
777
778
|
const windowsTotal = windows.length;
|
|
778
779
|
const dimStore = createQueryDimStore({ dataSource });
|
|
779
780
|
const useDim = await dimStore.loadMeta(ctx) !== null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/engine",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.33.
|
|
4
|
+
"version": "0.33.8",
|
|
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,8 +181,8 @@
|
|
|
181
181
|
"dependencies": {
|
|
182
182
|
"drizzle-orm": "1.0.0-rc.3",
|
|
183
183
|
"proper-lockfile": "^4.1.2",
|
|
184
|
-
"
|
|
185
|
-
"gscdump": "0.33.
|
|
184
|
+
"gscdump": "0.33.8",
|
|
185
|
+
"@gscdump/contracts": "0.33.8"
|
|
186
186
|
},
|
|
187
187
|
"devDependencies": {
|
|
188
188
|
"@duckdb/duckdb-wasm": "^1.32.0",
|