Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#68247 prest-client: add undocumented query…
Browse files Browse the repository at this point in the history
… states by @mfulton26

* prest-client: add undocumented query states

Refs:
- https://github.com/prestodb/presto/blob/496e98ca25fb243ab25731d188c2fd56eba3b3e9/presto-main/src/main/java/com/facebook/presto/execution/QueryState.java
- prestodb/presto@4bf8df1

* format

* add reference comment

* add reference comment for legacy value
  • Loading branch information
mfulton26 committed Jan 26, 2024
1 parent 5006ee6 commit 5728752
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion types/presto-client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,19 @@ export interface RuntimeStats {
wallTimeMillis: number;
cpuTimeMillis: number;
userTimeMillis: number;
state: "QUEUED" | "PLANNING" | "STARTING" | "RUNNING" | "FINISHED" | "CANCELED" | "FAILED";
// https://github.com/prestodb/presto/blob/496e98ca25fb243ab25731d188c2fd56eba3b3e9/presto-main/src/main/java/com/facebook/presto/execution/QueryState.java
state:
| "WAITING_FOR_PREREQUISITES"
| "QUEUED"
| "WAITING_FOR_RESOURCES"
| "DISPATCHING"
| "PLANNING"
| "STARTING"
| "RUNNING"
| "FINISHING"
| "FINISHED"
| "CANCELED" // legacy value, see https://github.com/prestodb/presto/commit/4bf8df1484935a000619377dab6ed35778fff2ad#diff-0e3098a2bd5426fc1a01f56708912cedcdf7ce5d2e0f7adcdb70b93080c8733a
| "FAILED";
scheduled: boolean;
nodes: number;
totalSplits: number;
Expand Down

0 comments on commit 5728752

Please sign in to comment.