alexguo-db commented on code in PR #2737:
URL: https://github.com/apache/arrow-adbc/pull/2737#discussion_r2059348236


##########
csharp/src/Drivers/Databricks/CloudFetch/CloudFetchResultFetcher.cs:
##########
@@ -129,6 +129,14 @@ private async Task FetchResultsAsync(CancellationToken 
cancellationToken)
         {
             try
             {
+                // Process direct results first, if available
+                if (_statement.HasDirectResults && 
_statement.DirectResults?.ResultSet?.Results?.ResultLinks?.Count > 0)
+                {
+                    // Yield execution so the download queue doesn't get 
blocked before downloader is started
+                    await Task.Yield();

Review Comment:
   Without this line, there's a deadlock because the _downloadQueue is full, 
and there's no queue consumer since the downloader hasn't started yet



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to