phase 17: quote reserved word 'window' in aggregation SQL INSERT

This commit is contained in:
Celes Renata
2026-04-12 03:38:45 -07:00
parent 019eaa40d7
commit 181ed2b6cd
+1 -1
View File
@@ -460,7 +460,7 @@ def assemble_trend_with_evidence(
_UPSERT_TREND = """ _UPSERT_TREND = """
INSERT INTO trend_windows ( INSERT INTO trend_windows (
entity_type, entity_id, window, trend_direction, trend_strength, entity_type, entity_id, "window", trend_direction, trend_strength,
confidence, top_supporting_evidence, top_opposing_evidence, confidence, top_supporting_evidence, top_opposing_evidence,
dominant_catalysts, material_risks, contradiction_score, dominant_catalysts, material_risks, contradiction_score,
disagreement_details, market_context, generated_at disagreement_details, market_context, generated_at