Skip to content

Fix MaxAllCPU signature drift in cratedb/questdb generators#4

Merged
bgunebakan merged 2 commits into
masterfrom
fix/panic-on-cpu-max-all
Jul 8, 2026
Merged

Fix MaxAllCPU signature drift in cratedb/questdb generators#4
bgunebakan merged 2 commits into
masterfrom
fix/panic-on-cpu-max-all

Conversation

@bgunebakan

@bgunebakan bgunebakan commented Jul 6, 2026

Copy link
Copy Markdown

Problem

tsbs_generate_queries panics with unimplemented query for every cpu-max-all-* query type with the cratedb and questdb formats.

Upstream PR timescale#168 changed the MaxAllCPU filler signature to take a duration time.Duration parameter and updated most generators, but missed four (cratedb, questdb, akumuli, timestream). Dispatch happens through a type assertion in cmd/tsbs_generate_queries/uses/devops/max_all_cpu.go, so the stale 2-arg methods fail the MaxAllFiller assertion at runtime instead of breaking the build.

Also submitted upstream as timescale#293, but upstream appears unmaintained, merging here so the fork's master is usable

Verification

go test -vet=off ./cmd/tsbs_generate_queries/databases/cratedb/ ./cmd/tsbs_generate_queries/databases/questdb/ passes; suite smoke runs include cpu-max-all-1 end-to-end.

@bgunebakan bgunebakan self-assigned this Jul 6, 2026
@bgunebakan
bgunebakan requested a review from florinutz July 6, 2026 15:58
@bgunebakan bgunebakan added the bug Something isn't working label Jul 7, 2026
@bgunebakan
bgunebakan merged commit 446e0f9 into master Jul 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants