Repository navigation
Conversation
…sampled, approximate) Adds engine influxdb3: an adapter that translates each suite query's PromQL text into InfluxDB SQL and runs it on InfluxDB 3 Core 3.12.3 (pinned by image digest) in three variants: native SQL at query time, processing-engine downsampled tables (exact), and approx_percentile_cont for quantiles. Server script, variant script, docs and conformance tests against a real server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi
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
Adds InfluxDB 3 Core as a periodic-query system of
approxbench benchmark-external(engineinfluxdb3), so it runs the same suites (suites/showcase-1m,suites/showcase-1h) as ClickHouse, VictoriaMetrics and ASAPQuery-backend, as an end-to-end baseline.Pinned: InfluxDB 3 Core 3.12.3 (revision 51f4ac865b, DataFusion 52.5), image
influxdb@sha256:f8cd424eff20b584ce41b1ee72959261c4d1b700d2a97c0d21ff1b173b9b1b81(influxdb:3.12.3-core). Core, not Enterprise: Enterprise needs a license key and adds nothing these queries use.Three variants, used the way an InfluxDB user would (details and semantics in
docs/influxdb3.md):influxdb3.nativepercentile_cont, PrometheusextrapolatedRatein SQL, …)influxdb3.downsampledinfluxdb3.approximateapprox_percentile_cont(t-digest) for quantiles; other queries nativeA downsampled/approximate cell in which every query would run as in native is refused (
NotRun, reason in the cell): quantile workloads indownsampled, sum/count/max/rate workloads inapproximate.What to review first
system-bench/src/engines_external/influxdb3_query.rs: the accepted PromQL shapes and the SQL of each shape and variant (window(T − w, T], rate extrapolation, bucket arithmetic).system-bench/src/engines_external/influxdb3_server.rs: the engine: one install at a time (Core's 5-database limit), plugin calls at each data-time boundary, answers keyed by labels.docs/influxdb3.md: where InfluxDB differs from the truth.Where InfluxDB differs from the truth
percentile_controunds its interpolation fraction to 6 decimals (0.99 quantile of 1..60 is 59.409999, not 59.41): off by ≤ 1e-6 of the gap between neighbouring values (≤ 1.9e-7 relative on the 1m suite).approx_percentile_cont(t-digest) does not interpolate as PromQL: within two ranks per series in the tests; up to 11% relative on the 1m suite (median 0.2–0.8%).timeorvalueis refused.Interfaces
Tests
cargo test -p system-bench --lib influxdb3): 13 pass (parser, SQL text, line protocol escaping, CSV, refusals).tests/influxdb3_conformance.rs,--ignored --test-threads 1): 8/8 pass: left-open windows; sums/counts/maxima/avg (native = downsampled = hand values); quantile 59.41 / avg-of-quantiles 81.15; Prometheus rates with resets (x 1, y 417/299, z 642/299, w 1) native = downsampled; generated data (20 series, gaps, resets, a series withoutjob) vs an independent reference evaluator for every shape at 13 times; refusals; the harness conformance kit; suite size (1,000 series × 10 min).benchmark-external runover showcase-1m (all 3 variants,--runs 1), reported against ClickHouseclickhouse.equivalent-onlyresults of the same workloads: every point present (no missing/extra) in every cell; native and downsampled max relative error ≤ 1.9e-7 (quantiles) and ≤ 7e-15 (others).--runs 1): all ran (sum_rate approximate refused by design), 0 missing points, downsampled = native; approximate max relative error 3.2% on joint.cargo clippy -p system-bench -p aqpbm-cli --tests -D warnings,cargo fmt --checkclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi