Repository navigation
feat: add QuestDB QWP ingress/egress and InfluxDB 3 support - #29
Merged
Merged
Conversation
sklarsa
marked this pull request as ready for review
September 2, 2026 17:43
javier
requested changes
Sep 4, 2026
javier
left a comment
There was a problem hiding this comment.
I ran tsbs vs questdb QWP and influx 3 and it all worked fine. Claude has a few comments. I think the qwip/qwep naming should be unified to qwp. We only use QWP in our public facing docs and qwip/qwep had been used only internally. Our docs just say QWP and when they want to make a difference they say QWP Ingress/QWP Egress.
The rest of comments are nice to have
1. Latent placeholder bug. inlineArrayParams (cmd/tsbs_run_queries_questdb/sql.go:78) renumbers with strings.ReplaceAll("$2" → "$1"). At 10+ params a $20 becomes $10.
Unreachable today (max ~3 params) but a trap. Same function inlines array items as fmt.Sprintf("'%v'", item) with no quote escaping — fine for host_N, breaks on any value with
an apostrophe.
2. Stale PR body. It says the branch is "the exact TSBS commit pinned by questdb/benchmark-runner: 0484fec". HEAD is 353ffd0, two commits later. Anyone verifying against 0484fec
checks the wrong tree.
3. Pre-release client pin. go-questdb-client/v4 v4.2.1-0.20260730155217-4f2723e2d5cb is a pseudo-version on an untagged commit. Reproducible, but worth confirming a tagged
release lands before published benchmark numbers depend on it.
4. Naming is genuinely confusing. --protocol=qwip but --query-protocol=qwep, with --qwp-addr serving both, the format called questdb-qwp, and the body saying QWIP/QWEP. Three
spellings across one feature — at minimum worth a docs callout.
5. Two small ones: qwpBatch.Append reads the package global qwpDec rather than a batch-held reference (safe today, commented, but coupled); and qwpBufPool stores []byte rather
than *[]byte, so every Put boxes an allocation in a hot path — staticcheck SA6002 would flag it, go vet doesn't.
Author
|
@javier Addressed review
There is no suitable tagged Go client release yet: Verification completed:
Please re-review when convenient. |
javier
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
questdb-qwpdata formatCompatibility and provenance
The public QuestDB protocol selector is consistently
qwpfor both ingestion and queries. The pre-merge internal spellingsqwipandqwepare intentionally rejected.questdb/benchmark-runnercurrently pins the earlier branch commit0484fec39ad2620873921ac472712db9aab72383. It will be updated in a separate PR to the merged TSBS revision only after this PR lands.The latest tagged
github.com/questdb/go-questdb-client/v4release,v4.2.0, is six commits behind the required QWP APIs. This PR therefore keeps the exact pseudo-version at commit4f2723e2d5cb5a9beea62dce16f932e56ee30e78; it should move to the first suitable tagged release before benchmark results are published.Review hardening
qwpconsistently for QWP ingress and egresssync.Poolslice-header boxingVerification
GOTOOLCHAIN=go1.23.12 GO111MODULE=on go test -race ./...GOTOOLCHAIN=go1.23.12 GO111MODULE=on go vet ./cmd/tsbs_load_questdb ./cmd/tsbs_run_queries_questdbGOTOOLCHAIN=go1.23.12 GO111MODULE=on go build ./...GOTOOLCHAIN=go1.23.12 GO111MODULE=on go mod verifyGOTOOLCHAIN=go1.23.12 GO111MODULE=on go run honnef.co/go/tools/cmd/staticcheck@v0.6.1 -checks=SA6002 ./cmd/tsbs_load_questdbgit diff --check cb805908b15642321132c61829da8cfe16c6a8a4..9d184d6edc227093f8349b070fd6842a804cfbcdRepository-wide
go vet ./...retains three findings already present onmaster; both changed QuestDB command packages pass vet.