This is an automated email from the ASF dual-hosted git repository.
curth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 9e90ff736 feat(csharp/src/Drivers/Apache): Add compression support for
Spark, Impala & Hive Http Connection (#3127)
9e90ff736 is described below
commit 9e90ff7365c7b250a83013aef4e9cdba3daded47
Author: amangoyal <[email protected]>
AuthorDate: Fri Jul 11 00:03:15 2025 +0530
feat(csharp/src/Drivers/Apache): Add compression support for Spark, Impala
& Hive Http Connection (#3127)
Add support of Gzip and Deflate compression type in Spark, Impala and
Hive
Co-authored-by: Aman Goyal <[email protected]>
---
csharp/src/Drivers/Apache/Hive2/HiveServer2HttpConnection.cs | 1 -
csharp/src/Drivers/Apache/Hive2/HiveServer2TlsImpl.cs | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/csharp/src/Drivers/Apache/Hive2/HiveServer2HttpConnection.cs
b/csharp/src/Drivers/Apache/Hive2/HiveServer2HttpConnection.cs
index 9696b5731..c0a33d1de 100644
--- a/csharp/src/Drivers/Apache/Hive2/HiveServer2HttpConnection.cs
+++ b/csharp/src/Drivers/Apache/Hive2/HiveServer2HttpConnection.cs
@@ -144,7 +144,6 @@ namespace Apache.Arrow.Adbc.Drivers.Apache.Hive2
AuthenticationHeaderValue? authenticationHeaderValue =
GetAuthenticationHeaderValue(authTypeValue, username, password);
HttpClientHandler httpClientHandler =
HiveServer2TlsImpl.NewHttpClientHandler(TlsOptions, _proxyConfigurator);
- httpClientHandler.AutomaticDecompression =
DecompressionMethods.GZip | DecompressionMethods.Deflate;
HttpClient httpClient = new(httpClientHandler);
httpClient.BaseAddress = baseAddress;
httpClient.DefaultRequestHeaders.Authorization =
authenticationHeaderValue;
diff --git a/csharp/src/Drivers/Apache/Hive2/HiveServer2TlsImpl.cs
b/csharp/src/Drivers/Apache/Hive2/HiveServer2TlsImpl.cs
index 069267b1c..345974d77 100644
--- a/csharp/src/Drivers/Apache/Hive2/HiveServer2TlsImpl.cs
+++ b/csharp/src/Drivers/Apache/Hive2/HiveServer2TlsImpl.cs
@@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Net;
using System.Net.Http;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
@@ -100,6 +101,7 @@ namespace Apache.Arrow.Adbc.Drivers.Apache.Hive2
};
}
proxyConfigurator.ConfigureProxy(httpClientHandler);
+ httpClientHandler.AutomaticDecompression =
DecompressionMethods.GZip | DecompressionMethods.Deflate;
return httpClientHandler;
}