jduo commented on code in PR #38521:
URL: https://github.com/apache/arrow/pull/38521#discussion_r1382160777


##########
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:
   A new CookieMiddlewareFactory is created for subsequent connections (same 
with the AuthMiddlewareFactory). This was intentional to give child connections 
a 'blank-slate' but should actually be configurable.



-- 
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]

Reply via email to