T-119: M1.3e — @stock-bot/research: DuckDB SQL planner + injected-executor MarketDataStore adapter for curated daily Parquet (bars 1d, events, shortsAsOf, fx 1d) with mandatory Vault / known_at predicates, tests and local benchmark (no new dependencies)
This commit is contained in:
parent
9a213f126b
commit
0a08a9962e
2 changed files with 113 additions and 3 deletions
|
|
@ -1757,10 +1757,10 @@ export function createDuckDbMarketDataStore(options: DuckDbMarketDataStoreOption
|
|||
'pinAdjFactorsArtifact'
|
||||
);
|
||||
}
|
||||
const release = rawPin.release as () => Promise<void> | void;
|
||||
const pin = rawPin as unknown as PinnedAdjFactorsArtifact;
|
||||
try {
|
||||
const pinnedPath = validateAdjFactorsArtifactPath(
|
||||
rawPin.pinnedPath as string,
|
||||
pin.pinnedPath,
|
||||
'pinnedPath'
|
||||
);
|
||||
const canonicalPinned = canonicalizePosixPath(pinnedPath);
|
||||
|
|
@ -1776,7 +1776,7 @@ export function createDuckDbMarketDataStore(options: DuckDbMarketDataStoreOption
|
|||
}
|
||||
rawRows = await executeAdjustedBarsQuery(q, pinnedPath);
|
||||
} finally {
|
||||
await release();
|
||||
await pin.release();
|
||||
}
|
||||
} else if (immutableAdjFactorsPath !== undefined) {
|
||||
await ensureBudgetInitialized();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue