lidavidm commented on code in PR #38521:
URL: https://github.com/apache/arrow/pull/38521#discussion_r1382110222
##########
java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/client/ArrowFlightSqlClientHandler.java:
##########
@@ -364,6 +415,31 @@ public static final class Builder {
private boolean useSystemTrustStore;
private BufferAllocator allocator;
+ public Builder() {
+
+ }
+
+ /**
+ * Copies the builder.
+ *
+ * @param original The builder to base this copy off of.
+ */
+ private Builder(Builder original) {
+ this.middlewareFactories.addAll(original.middlewareFactories);
Review Comment:
Ah, I didn't think about that, but yes, it should mean that the middleware
gets shared between the clients. That might be good or bad depending on the
server implementation but we can follow up if it turns out to be an issue.
--
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]