Skip to content

Support lightweight query statistics modes - #87

Merged
apstndb merged 2 commits into
mainfrom
feat/query-stats-modes
Sep 8, 2026
Merged

apstndb merged 2 commits into
mainfrom
feat/query-stats-modes

Conversation

@apstndb

@apstndb apstndb commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Accept --query-mode=WITH_STATS and WITH_PLAN_AND_STATS to request overall execution statistics without operator-level profiling. The latter also includes a query plan. Both modes execute queries and require parameter values; PLAN retains its existing support for bare parameter types.

Reject both modes with Partitioned DML before client creation because that SDK path ignores query mode. The regression matrix verifies that rejected invocations leave data unchanged. Local gRPC tests capture the query mode and verify rows/statistics across JSON/YAML eager and lazy output. README help and mode semantics are updated.

Validation: go test ./... (including the emulator no-write matrix), go build ./..., golangci-lint run --timeout=5m (0 issues), git diff --check, and generated CLI help comparison with Go 1.25.13. Local transport tests verify request and output wiring; production optimizer statistics are not live-probed.

@apstndb
apstndb merged commit 326d808 into main Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant