You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "toddmeng-db (via GitHub)" <gi...@apache.org> on 2025/08/06 17:12:55 UTC
Re: [PR] fix(csharp/src/Drivers/Databricks): Dispose reader when disposing statement [arrow-adbc]
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?
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org