Skip to content

Commit 1f18977

Browse files
committed
docs: README's query status exit codes omitted 3 (truncated preview)
The README presents the exit-code set as complete for scripting (0 done / 1 failed / 2 running), but query.rs defines and documents a fourth: EXIT_INCOMPLETE_RESULT = 3, returned when the query succeeded and the printed result is an incomplete/truncated preview. A script treating the listed set as exhaustive would misread 3.
1 parent 215b54f commit 1f18977

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ hotdata query "SELECT IFF(n > 0, 'pos', 'neg') FROM t" --dialect snowflake
9393
```
9494

9595
Long queries go async and print a `query_run_id` — poll with
96-
`hotdata query status <id>` (exit `0` done / `1` failed / `2` running). Re-fetch
96+
`hotdata query status <id>` (exit `0` done / `1` failed / `2` running / `3` done
97+
but the printed result is a truncated preview). Re-fetch
9798
past results with `hotdata databases results get <result-id>`; browse history
9899
with `hotdata databases queries list`.
99100

0 commit comments

Comments
 (0)