fix: quote reserved keyword 'window' in prediction_snapshots SQL

This commit is contained in:
Celes Renata
2026-05-01 03:40:48 +00:00
parent 32d290bea7
commit 76f6bd5677
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -507,7 +507,7 @@ class BacktestReplay:
# because that function fetches *latest* prices (not point-in-time).
insert_sql = """
INSERT INTO prediction_snapshots (
id, generated_at, ticker, window, horizon, direction, action, mode,
id, generated_at, ticker, "window", horizon, direction, action, mode,
strength, confidence, contradiction, p_bull, p_bear,
score_company, score_macro, score_competitive,
evidence_count, unique_source_count, duplicate_evidence_count,