Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10571

ImpalaJdbcClient might silently choose a different driver than the one specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.0.0
    • None
    • None
    • ghx-label-3

    Description

      I was experimenting with drivers while running into this issue.

      I tried to do some testing with a custom JDBC driver with the following command:

      bin/run-jdbc-client.sh -d "my.impala.jdbc.Driver" -t NOSASL -q "select 1"

      The script outputted:

      Using JDBC Driver Name: my.impala.jdbc.Driver
      Connecting to: jdbc:impala://localhost:21050
      Executing: select sleep(12000)
      ----[START]----
      1
      ----[END]----

      However, after some debugging I figured out that ImpalaJdbcClient actually used org.apache.hive.jdbc.HiveDriver. It was because the specified driver didn't accept the default connection string (jdbc:hive2://...), therefore the HiveDriver was being used.

      I think instead of silently choosing a different driver, ImpalaJdbcClient should raise an error and tell the user to specify the connection string as well.

      Attachments

        Activity

          People

            boroknagyz Zoltán Borók-Nagy
            boroknagyz Zoltán Borók-Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: