You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Gian Merlino (Jira)" <ji...@apache.org> on 2020/07/14 16:46:00 UTC

[jira] [Created] (CALCITE-4121) Avatica misplaces properties from URL while connecting

Gian Merlino created CALCITE-4121:
-------------------------------------

             Summary: Avatica misplaces properties from URL while connecting
                 Key: CALCITE-4121
                 URL: https://issues.apache.org/jira/browse/CALCITE-4121
             Project: Calcite
          Issue Type: Bug
          Components: avatica
            Reporter: Gian Merlino
             Fix For: avatica-1.17.0


Avatica's driver goes through some effort to extract properties from the JDBC URL, but then loses them because it doesn't pass them to the {{OpenConnectionRequest}}: https://github.com/apache/calcite-avatica/blob/4b7eee5bf430b916c7c07897b6f60d2b6b6dabb7/core/src/main/java/org/apache/calcite/avatica/remote/Driver.java#L163-L181.

I think the fix should be passing {{conn.info}} instead of {{info}}, because URL properties are added to {{conn.info}} in {{super.connect(url, info)}}.

The fix looks simple enough — any suggestions on the best way to add tests for it?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)