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


##########
csharp/src/Drivers/Apache/Hive2/HiveServer2Statement.cs:
##########
@@ -117,9 +117,13 @@ private async Task<QueryResult> 
ExecuteQueryAsyncInternal(CancellationToken canc
         {
             return await this.TraceActivityAsync(async _ =>
             {
+                // Clear any previous query result
+                ClearCurrentQueryResult();
+
                 if (IsMetadataCommand)
                 {
-                    return await 
ExecuteMetadataCommandQuery(cancellationToken);
+                    _currentQueryResult = await 
ExecuteMetadataCommandQuery(cancellationToken);

Review Comment:
   👍  this isn't strictly needed, but it's probably better to call Dispose() 
conservatively for any Reader that is created?



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