birschick-bq commented on code in PR #3551:
URL: https://github.com/apache/arrow-adbc/pull/3551#discussion_r2415468506
##########
csharp/src/Drivers/Apache/Hive2/HiveServer2Connection.cs:
##########
@@ -405,6 +421,11 @@ await this.TraceActivity(async activity =>
{
throw new TimeoutException("The operation timed out while
attempting to open a session. Please try increasing connect timeout.", ex);
}
+ catch (TTransportException transportEx)
+ when (ApacheUtility.ContainsException(transportEx, out
HttpRequestException? httpEx) && IsUnauthorized(httpEx!))
+ {
+ throw new HiveServer2Exception("OpenAsync failed",
AdbcStatusCode.Unauthorized);
Review Comment:
Good catch. Bad copy and paste on my part. Fixed.
--
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]