Repository navigation
Conversation
There was a problem hiding this comment.
LGTM. The latest commit fixes the earlier apply.sh problem: the example statement in the header comment no longer ends in ;, so migration 011 is now sent as one statement.
What was reviewed:
- Traced how apply.sh splits 011: lines 1-8 go out as one ALTER, and nothing in a comment line ends a statement early.
ADD COLUMN IF NOT EXISTS ... Bool DEFAULT false COMMENT '...'can be re-run, which matches the other additive migrations (004, 010).- Writers insert into
txgen_runswithFORMAT JSONEachRow(crates/bench-core/src/clickhouse.rs). The new column is omitted from those inserts, so it takes its default of false and existing writers keep working.
Extended reasoning...
The change adds one 8-line ClickHouse migration, scripts/clickhouse/011_txgen_runs_force_display.sql, which adds a nullable-free Bool column with a default to txgen_runs. It touches no security-sensitive surface such as auth, injection paths or data exposure. The only earlier objection was my own, that the comment line ending in ; broke apply.sh, and commit a5f5898 fixed it. The repo has no CODEOWNERS file, and the timeline shows no outstanding reviews from anyone else. The migration follows the same idempotent pattern as the existing additive migrations.
Adds
force_display Bool DEFAULT falsetotxgen_runs. The perf dashboards show a run with it set even when it isn't a scheduled nightly (tempoxyz/tempo-apps-internal#204). Writers never set it, so no txgen change is needed; operators flag runs withALTER TABLE txgen_runs UPDATE force_display = true WHERE run_id = '<run_id>'.Already applied to the production cluster (same statement), so this records the schema change.