Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6180

Hive JDBC Driver connection fail when no default database passed in the connection string

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: HiveServer2
    • Labels:
      None

      Description

      Connection fails with connection url "jdbc:hive2://hostname:port" without dbname after Hive-4256. There is a check in jdbc/HiveConnection.java :

      if(dbName!=null)
        stmt.execute("use "+dbName);
      

      But looks like dbName is "" instead of null.

        Attachments

        1. HIVE-6180.1.patch
          2 kB
          Prasad Suresh Mujumdar
        2. HIVE-6180.2.patch
          5 kB
          Prasad Suresh Mujumdar

          Issue Links

            Activity

              People

              • Assignee:
                prasadm Prasad Suresh Mujumdar
                Reporter:
                sravya Sravya Tirukkovalur
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: