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

Hive Version returned by HiveDatabaseMetaData.getDatabaseProductVersion is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.11.0
    • 0.11.0
    • HiveServer2
    • None

    Description

      When running beeline

      % beeline -u 'jdbc:hive2://localhost:10000' -n hive -p passwd -d org.apache.hive.jdbc.HiveDriver
      Connecting to jdbc:hive2://localhost:10000
      Connected to: Hive (version 0.10.0)
      Driver: Hive (version 0.11.0)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      

      The Hive version in the "Connected to: " string says 0.10.0 instead of 0.11.0.

      Looking at the code it seems that the version is hardcoded at two places:
      line 250 in jdbc/src/java/org/apache/hive/jdbc/HiveDatabaseMetaData.java
      line 833 in jdbc/src/test/org/apache/hive/jdbc/TestJdbcDriver2.java

      Attachments

        1. HIVE-4373.3.patch
          5 kB
          Thejas Nair
        2. HIVE-4373.2.patch
          6 kB
          Thejas Nair
        3. HIVE-4373.1.patch
          6 kB
          Thejas Nair

        Issue Links

          Activity

            People

              thejas Thejas Nair
              deepesh Deepesh Khandelwal
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: