davidhcoe commented on code in PR #2810:
URL: https://github.com/apache/arrow-adbc/pull/2810#discussion_r2084997905


##########
csharp/src/Drivers/BigQuery/BigQueryStatement.cs:
##########
@@ -93,27 +93,8 @@ private async Task<QueryResult> ExecuteQueryInternalAsync()
                 getQueryResultsOptions.Timeout = TimeSpan.FromSeconds(seconds);
             }
 
-            Func<Task<BigQueryJob>> checkJobStatus = async () =>
-            {
-                while (true)
-                {
-                    var jobWithStatus = await Client.GetJobAsync(jobReference);
-
-                    if (jobWithStatus.State == JobState.Done)
-                    {
-                        if (jobWithStatus.Status.ErrorResult != null)
-                        {
-                            // TODO: log
-                            Debug.WriteLine($"Error: 
{jobWithStatus.Status.ErrorResult.Message}");
-                        }
-
-                        return jobWithStatus;
-                    }
-                }
-            };
-
-            await ExecuteWithRetriesAsync<BigQueryJob>(checkJobStatus);
-
+            // We can't checkJobStatus, Otherwise, the timeout in 
QueryResultsOptions is meaningless.

Review Comment:
   I will take a look.



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