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

Avatica misplaces properties from URL while connecting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • avatica-1.17.0
    • None
    • avatica
    • 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

        Issue Links

          Activity

            People

              lakshsingla Laksh Singla
              gian Gian Merlino
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h