fix: quote reserved keyword 'window' in prediction_snapshots SQL
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -240,7 +240,7 @@ def _compute_layer_scores(
|
||||
|
||||
_INSERT_SNAPSHOT_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,
|
||||
|
||||
Reference in New Issue
Block a user