fix: quote reserved keyword 'window' in prediction_snapshots SQL
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-1 Pipeline was successful
ci/woodpecker/push/build-2 Pipeline was successful
ci/woodpecker/push/build-3 Pipeline was successful
ci/woodpecker/push/finalize Pipeline was successful
Build and Push / lint-and-test (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.adapters.broker_adapter name:broker-adapter]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.aggregation.worker name:aggregation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.extractor.worker name:extractor]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.ingestion.worker name:ingestion]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.lake_publisher.worker name:lake-publisher]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.parser.worker name:parser]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.recommendation.worker name:recommendation]) (push) Has been cancelled
Build and Push / build-services (map[cmd:python -m services.scheduler.app name:scheduler]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.api.app:app --host 0.0.0.0 --port 8000 name:query-api]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.risk.app:app --host 0.0.0.0 --port 8000 name:risk]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.symbol_registry.app:app --host 0.0.0.0 --port 8000 name:symbol-registry]) (push) Has been cancelled
Build and Push / build-services (map[cmd:uvicorn services.trading.app:app --host 0.0.0.0 --port 8000 name:trading-engine]) (push) Has been cancelled
Build and Push / build-dashboard (push) Has been cancelled
Build and Push / build-superset (push) Has been cancelled
Build and Push / integration-test (push) Has been cancelled
Build and Push / beta-gate (push) Has been cancelled

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
@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS prediction_snapshots (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(), id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
generated_at TIMESTAMPTZ NOT NULL, generated_at TIMESTAMPTZ NOT NULL,
ticker VARCHAR(20) NOT NULL, ticker VARCHAR(20) NOT NULL,
window VARCHAR(20) NOT NULL, "window" VARCHAR(20) NOT NULL,
horizon VARCHAR(20) NOT NULL, horizon VARCHAR(20) NOT NULL,
direction VARCHAR(20) NOT NULL, direction VARCHAR(20) NOT NULL,
action VARCHAR(20) NOT NULL, action VARCHAR(20) NOT NULL,
+1 -1
View File
@@ -507,7 +507,7 @@ class BacktestReplay:
# because that function fetches *latest* prices (not point-in-time). # because that function fetches *latest* prices (not point-in-time).
insert_sql = """ insert_sql = """
INSERT INTO prediction_snapshots ( 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, strength, confidence, contradiction, p_bull, p_bear,
score_company, score_macro, score_competitive, score_company, score_macro, score_competitive,
evidence_count, unique_source_count, duplicate_evidence_count, evidence_count, unique_source_count, duplicate_evidence_count,
+1 -1
View File
@@ -240,7 +240,7 @@ def _compute_layer_scores(
_INSERT_SNAPSHOT_SQL = """ _INSERT_SNAPSHOT_SQL = """
INSERT INTO prediction_snapshots ( 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, strength, confidence, contradiction, p_bull, p_bear,
score_company, score_macro, score_competitive, score_company, score_macro, score_competitive,
evidence_count, unique_source_count, duplicate_evidence_count, evidence_count, unique_source_count, duplicate_evidence_count,