joshelser commented on pull request #162:
URL: https://github.com/apache/calcite-avatica/pull/162#issuecomment-972337994


   Thanks for trying to fix this, @LakshSingla 
   
   I'm not 100% certain anymore, but this may have been an intentional decision 
previously. Avatica has its own set of JDBC properties which can be passed into 
the driver which control how the Avatica JDBC driver can talk to the Avatica 
server. These properties can be specified either in Java via the `Properties` 
object in `DriverManager` or via the JDBC url itself as key-value pairs.
   
   https://calcite.apache.org/avatica/docs/client_reference.html
   
   In addition to that, there are _also_ JDBC properties which the Avatica 
server (with the real backend JDBC driver) may want/need to talk to the backend 
database. I believe your hope is to make it such that Avatica clients could 
directly pass JDBC properties to the backend database.
   
   I remember a worry I had: "what if a property name we use for Avatica 
conflicts with a property for the backend database?". I could see past-Josh 
having made the decision to not directly pass properties from client, through 
Avatica server, to the backend database.
   
   Would it be possible for Avatica to only pass Properties which it does not 
know about into the backend database rather than all Properties?
   
   We definitely need some test-case coverage here. We use HSQLDB for all of 
the unit tests against a "real" database, but I do not see any option which you 
could provide to do an end-to-end test case 
http://hsqldb.org/doc/2.0/guide/dbproperties-chapt.html#N16054
   
   I would suggest you start looking in 
https://github.com/apache/calcite-avatica/blob/master/server/src/test/java/org/apache/calcite/avatica/RemoteDriverTest.java
 to see if there is a natural place you can validate the server-side Connection 
Properties. 
https://github.com/apache/calcite-avatica/blob/master/server/src/test/java/org/apache/calcite/avatica/remote/ConnectionPropertiesTest.java
 may also be helpful. There are not too many test classes in the server module 
-- that is where you should look.


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