Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7353

Wrong driver class is written to the java.sql.Driver

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.15.0, 1.16.0
    • Fix Version/s: 1.17.0
    • Component/s: None
    • Labels:

      Description

      Hello. I used a JDBC driver for connection to the Apache Drill and probably found a bug.
      My problem was the driver didn't register itself automatically and I needed to use  `Class.forName("org.apache.drill.jdbc.Driver");` in Java.

      I opened the jar archive(drill-jdbc-all-1.16.0.jar) and checked the next file: /META-INF/services/java.sql.Driver.
      What I found there was: org.apache.calcite.avatica.remote.Driver, which doesn't correspond to the real driver path. I changed the line to: org.apache.drill.jdbc.Driver

      After that my problem was solved. I also checked the 1.15.0 version and the path there was the same. Is it supposed to be like that?

       

       

        Attachments

        1. Screenshot from 2019-08-16 13-26-29.png
          12 kB
          Anastasiia Sergienko

          Issue Links

            Activity

              People

              • Assignee:
                angozhiy Anton Gozhiy
                Reporter:
                Tashiko Anastasiia Sergienko
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: