From 09fbcfe9e527b5f2e8e509a69f79a2f585383483 Mon Sep 17 00:00:00 2001 From: Pratik Jadhav Date: Wed, 30 Sep 2026 21:34:31 +0530 Subject: [PATCH] Fix piped SQL output and document row limit --- README.md | 5 +++++ cmd/agent.go | 2 +- cmd/query.go | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5380501..426e12b 100644 --- a/README.md +++ b/README.md @@ -234,6 +234,11 @@ pb sql save "SELECT * FROM backend WHERE status = 500" --name=server-errors pb sql list ``` +SQL queries without an explicit `LIMIT` return at most 500 rows. Add a SQL +`LIMIT` when you need more rows, including with `--output json`; JSON output +does not fetch additional pages. Interactive mode (`-i`) fetches 500-row +windows up to the SQL limit. + OTel fields with dots like `service.name` and `http.status_code` work directly in queries without manual quoting. ## PromQL Workflows diff --git a/cmd/agent.go b/cmd/agent.go index 9b4805a..f67ea7d 100644 --- a/cmd/agent.go +++ b/cmd/agent.go @@ -109,7 +109,7 @@ func newAgentManifest() agentManifest { {Command: "pb dataset info -o json", Description: "Read dataset statistics and configuration", Scope: "server", Mutates: false, RequiresProfile: true}, {Command: "pb user list -o json", Description: "List users and their roles", Scope: "server", Mutates: false, RequiresProfile: true}, {Command: "pb role list -o json", Description: "List roles and privileges", Scope: "server", Mutates: false, RequiresProfile: true}, - {Command: "pb sql run \"\" --from