From 2eb630bb098a22d6222ef868f8f52a0d3d0228b4 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Wed, 17 Jun 2026 16:42:13 -0400 Subject: [PATCH] fix(ddsql): correct broken DDSQL time-series help example The `ddsql time-series` example in `--help` queried a bare `metrics` table, which is not a valid DDSQL dataset and fails with: HTTP 400: depends on non-existent dataset "metrics" Replace it with a verified `dd.metrics_timeseries(...)` table-function query, the spec-correct way to read metrics via DDSQL. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 09901fc..890728a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1080,7 +1080,7 @@ enum Commands { /// pup ddsql table --query "SELECT * FROM reference_tables.offices_ips LIMIT 5" /// pup ddsql table --query "SELECT * FROM reference_tables.offices_ips" -o csv > results.csv /// cat query.sql | pup ddsql table --query - -o table - /// pup ddsql time-series --query "SELECT avg(system.cpu.user) FROM metrics GROUP BY host" --from 1h --interval 300000 + /// pup ddsql time-series --query "SELECT timestamp, value, tags->'host' AS host FROM dd.metrics_timeseries('avg:system.cpu.user{*} by {host}')" --from 1h /// pup ddsql spec /// pup ddsql schema tables --query ec2 --limit 100 /// pup ddsql schema columns --table-id public.aws.ec2_instance