Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4121

Avatica misplaces properties from URL while connecting

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: avatica-1.17.0
    • Fix Version/s: None
    • Component/s: avatica
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gian Gian Merlino
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: