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


##########
csharp/src/Drivers/Apache/Hive2/HiveServer2Statement.cs:
##########
@@ -1056,5 +1067,14 @@ private async Task 
ProcessRelationshipDataSafe(QueryResult result, string prefix
                 }
             }
         }
+
+        /// <summary>
+        /// Clears the current query result and disposes of it if necessary.
+        /// </summary>
+        private void ClearCurrentQueryResult()
+        {
+            _currentQueryResult?.Stream?.Dispose();
+            _currentQueryResult = null;
+        }
     }

Review Comment:
   I wonder if we can make QueryResult conform to IDisposable, since 
IArrowArrayStream is IDisposable @CurtHagenlocher 



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