toddmeng-db commented on code in PR #3217:
URL: https://github.com/apache/arrow-adbc/pull/3217#discussion_r2249010407


##########
csharp/src/Drivers/Databricks/DatabricksOperationStatusPoller.cs:
##########
@@ -69,13 +72,18 @@ private async Task PollOperationStatus(CancellationToken 
cancellationToken)
                     var operationHandle = _statement.OperationHandle;
                     if (operationHandle == null) break;
 

Review Comment:
   Yea, during my testing, if stop() canceled the cancellationToken, it would 
result in some strange behavior, GetOperationStatus issues causing 
CloseOperation to fail.
   
   I think we are safe in HiveServer2Statement, but we might need to adjust 
CancellationToken in DatabricksReader, CloudFetchResultFetcher, and 
DatabricksCompositeReader, we are passing in CancellationToken that user can 
trigger mid-call



-- 
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