NBK-161: migrate DDSQL execution to public v2 API - #785
Merged
platinummonkey merged 3 commits intoSep 1, 2026
Conversation
Route DDSQL table, time-series, and security findings analysis through the public tabular query and fetch endpoints. Validate time windows and row limits client-side, poll the v2 state field, and parse the single-object column-major response shape.\n\nAdd request, response, polling, OAuth, User-Agent, and HTTP error coverage for the migrated contract.
Limit the public v2 migration to the DDSQL table and time-series commands. Preserve security findings analysis on its existing Advanced Query API executor and retain the legacy response-shape coverage.
nmuldavin
marked this pull request as ready for review
September 1, 2026 20:12
This was referenced Sep 1, 2026
Verify relative, Unix-second, RFC3339, and Unix-millisecond inputs reach the public v2 request as integer millisecond bounds.
platinummonkey
approved these changes
Sep 1, 2026
7 tasks
nmuldavin
deleted the
noah.muldavin/nbk-161-pup-migrate-ddsql-execution-to-the-public-api-v2
branch
September 1, 2026 21:56
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.
Linear
NBK-161 — https://linear.app/datadoghq/issue/NBK-161/pup-migrate-ddsql-execution-to-the-public-apiv2ddsqlquerytabular
Outcome
Pup’s DDSQL table and time-series commands use the public v2 tabular query and fetch contract through one shared codepath.
Scope
ddsql tableandddsql time-seriesexecution from the unstable Advanced Query API to/api/v2/ddsql/query/tabularand/fetch.attributes.state, and parse the single-object column-major response.meta.client_id, and OAuth/API-key handling.Acceptance
ddsql_query_request, and relative, Unix-second, Unix-millisecond, and RFC3339 time inputs reach v2 as integer millisecond bounds withfrom < to; optionalrow_limitis validated to 1–10000.attributes.state; fetch attributes contain onlyquery_id.dataobject convert to rows.meta.client_idis preserved.Validation
cargo test -- --test-threads=1— passed; 1,903 tests, including exact v2 time forwarding for relative, Unix-second, Unix-millisecond, and RFC3339 inputs, execute/fetch transport coverage, and retained AQA-shape coverage.cargo clippy --all-targets -- -D warnings— passed.cargo fmt --check— passed.cargo build— passed.git diff --name-only origin/main...HEAD -- src/commands/security.rs— empty; the security-owned command is unchanged in the final PR diff.Not run / automation gaps
cargo audit— unavailable because thecargo-auditsubcommand is not installed; this change adds no dependencies.Material deviations and decisions
Remaining work or conditions