lidavidm commented on code in PR #36009:
URL: https://github.com/apache/arrow/pull/36009#discussion_r1236034912
##########
java/flight/flight-sql/src/main/java/org/apache/arrow/flight/sql/FlightSqlProducer.java:
##########
@@ -383,13 +424,38 @@ default void
beginTransaction(ActionBeginTransactionRequest request, CallContext
listener.onError(CallStatus.UNIMPLEMENTED.toRuntimeException());
}
+ /**
+ * Explicitly cancel a query.
+ *
+ * @param info The FlightInfo of the query to cancel.
+ * @param context Per-call context.
+ * @param listener An interface for sending data back to the client.
+ */
+ default void cancelFlightInfo(FlightInfo info, CallContext context,
StreamListener<CancelStatus> listener) {
+ listener.onError(CallStatus.UNIMPLEMENTED.toRuntimeException());
+ }
+
+
+ /**
+ * Explicitly free resources associated with a query.
+ *
+ * @param info The FlightInfo of the query to close.
+ * @param context Per-call context.
+ * @param listener An interface for sending data back to the client.
+ */
+ default void closeFlightInfo(FlightInfo info, CallContext context,
StreamListener<Result> listener) {
+ listener.onError(CallStatus.UNIMPLEMENTED.toRuntimeException());
+ }
+
/**
* Explicitly cancel a query.
*
* @param info The FlightInfo of the query to cancel.
* @param context Per-call context.
* @param listener Whether cancellation succeeded.
+ * @deprecated Prefer {@link #cancelFlightInfo(FlightInfo, CallContext,
StreamListener)}.
*/
+ @Deprecated
default void cancelQuery(FlightInfo info, CallContext context,
StreamListener<CancelResult> listener) {
listener.onError(CallStatus.UNIMPLEMENTED.toRuntimeException());
Review Comment:
Ah, whoops. I'll do that!
--
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]