Skip to content

Commit

Permalink
Improve wording
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
kou and alamb authored Aug 8, 2023
1 parent 5d71b7d commit b8b1d82
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions format/Flight.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ service FlightService {

/*
* For a given FlightDescriptor, start a query and get information
* to poll the updated statuses. This is a useful interface if the
* to poll its execution status. This is a useful interface if the
* query may be a long-running query. The first PollFlightInfo call
* should return as quickly as possible. (GetFlightInfo doesn't
* return until the query is complete.)
*
* A client can consume the current results so far before
* A client can consume any available results before
* the query is completed. See RetryInfo.info for details.
*
* A client can poll the updated query status by calling
Expand Down Expand Up @@ -373,15 +373,18 @@ message FlightInfo {
*/
message RetryInfo {
/*
* The currently available results so far.
* The currently available results.
*
* It's a complete FlightInfo each time not just the delta between
* the previous and current FlightInfo.
* If `flight_descriptor` is not specified, the query is complete and
* `info` specifies all results. Otherwise, `info` contains partial query results.
*
* A server should only append to the endpoints in the info. So the
* client can run DoGet(Ticket) with the Ticket in the info even
* when the query isn't finished yet. FlightInfo.ordered is also
* valid.
* Note that each `RetryInfo` response contains a complete FlightInfo
* (not just the delta between the previous and current FlightInfo).
*
* Subsequent `RetryInfo` responses may only append new endpoints to info.
*
* Clients can begin fetching results via DoGet(Ticket) with the ticket in the info before
* the query is completed. FlightInfo.ordered is also valid.
*/
FlightInfo info = 1;

Expand All @@ -392,7 +395,7 @@ message RetryInfo {
FlightDescriptor flight_descriptor = 2;

/*
* Query progress. Must be in [0.0, 1.0] but need not be
* Query progress. If known, must be in [0.0, 1.0] but need not be
* monotonic or nondecreasing. If unknown, do not set.
*/
optional double progress = 3;
Expand Down

0 comments on commit b8b1d82

Please sign in to comment.