lidavidm commented on code in PR #572:
URL: https://github.com/apache/arrow-adbc/pull/572#discussion_r1174917382
##########
java/driver/flight-sql/src/main/java/org/apache/arrow/adbc/driver/flightsql/FlightSqlConnection.java:
##########
@@ -62,7 +74,51 @@ public class FlightSqlConnection implements AdbcConnection {
throw new RuntimeException(e);
}
})
- .build(location -> FlightClient.builder(allocator,
location).build());
+ .build(
+ loc -> {
+ FlightClient flightClient =
+ FlightClient.builder(allocator, loc)
+ .intercept(
+ new FlightClientMiddleware.Factory() {
Review Comment:
That would be fine IMO. Once the code starts creeping too much to the right
it gets a little hard to read.
--
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]