Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ hotdata query status <query_run_id> [-o table|json|csv]
- Long-running queries automatically fall back to async execution and return a `query_run_id`.
- Use `hotdata query status <query_run_id>` to poll for results.
- Exit codes for `query status`: `0` = succeeded, `1` = failed, `2` = still running (poll again).
- `json` output carries `truncated`, `preview_row_count`, and `total_row_count` so a consumer can detect a partial result from the body alone.
- If the server returns only a bounded preview that can't be completed (truncated and unfetchable), the CLI prints the preview, warns on stderr, and exits `3` — so pipelines break rather than silently ingest partial data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: "pipelines break rather than silently ingest partial data" is accurate for JSON consumers (the body carries truncated), but the exit-3 mechanism only breaks a shell pipeline like hotdata query ... | downstream when set -o pipefail is enabled — otherwise the pipeline's status is downstream's, not the CLI's. Worth noting that the exit-code signal requires pipefail for csv/table consumers, which have no in-body truncation marker. (not blocking)


## Query Run History

Expand Down
Loading
Loading