jduo commented on code in PR #38580:
URL: https://github.com/apache/arrow/pull/38580#discussion_r1383974001
##########
java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/client/ArrowFlightSqlClientHandler.java:
##########
@@ -672,10 +733,17 @@ public ArrowFlightSqlClientHandler build() throws
SQLException {
client = clientBuilder.build();
final ArrayList<CallOption> credentialOptions = new ArrayList<>();
- if (authFactory != null) {
- credentialOptions.add(
- ClientAuthenticationUtils.getAuthenticate(
- client, username, password, authFactory,
options.toArray(new CallOption[0])));
+ if (username != null && token == null) {
Review Comment:
That's correct. Thanks!
--
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]