Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.apache.calcite.avatica.AvaticaConnection;
import org.apache.calcite.avatica.BuiltInConnectionProperty;
import org.apache.calcite.avatica.ConnectStringParser;
import org.apache.calcite.avatica.ConnectionConfig;
import org.apache.calcite.avatica.ConnectionProperty;
import org.apache.calcite.avatica.DriverVersion;
Expand Down Expand Up @@ -173,9 +174,13 @@ AvaticaHttpClient getHttpClient(AvaticaConnection connection, ConnectionConfig c
// super.connect(...) should be creating a service and setting it in the AvaticaConnection
assert null != service;

// extract the parameters passed in the URL info
final String urlSuffix = url.substring(getConnectStringPrefix().length());
final Properties info2 = ConnectStringParser.parse(urlSuffix, info);

service.apply(
new Service.OpenConnectionRequest(conn.id,
Service.OpenConnectionRequest.serializeProperties(info)));
Service.OpenConnectionRequest.serializeProperties(info2)));

return conn;
}
Expand Down