kou opened a new pull request, #36009:
URL: https://github.com/apache/arrow/pull/36009

   ### Rationale for this change
   
   Currently, it is undefined whether a client can call DoGet more than once. 
Clients may want to retry requests, and servers may not want to persist a query 
result forever.
   
   ### What changes are included in this PR?
   
   Add an expiration time to FlightEndpoint. If present, clients may assume 
they can retry DoGet requests. Otherwise, clients should avoid retrying DoGet 
requests.
   
   This is not a full retry protocol.
   
   Also, add "pre-defined" actions to Flight RPC for working with result sets. 
These are pre-defined Protobuf messages with standardized encodings for use 
with DoAction:
   
     * CancelFlightInfo: Asynchronously cancel the execution of a distributed 
query. (Replaces the equivalent Flight SQL action.)
     * RefreshFlightEndpoint: Request an extension of the expiration of a 
FlightEndpoint.
     * CloseFlightInfo: Close a FlightInfo so that the server can clean up 
resources early.
   
   This lets the ADBC/JDBC/ODBC drivers for Flight SQL explicitly manage result 
set lifetimes. These can be used with Flight SQL as regular actions.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   Yes.
   
   ### TODO
   
   * [ ] Update document
   * [ ] Implement this in Go
   * [ ] Clean up the C++ implementation


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to