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

Fix how to confirm the RDBMS product name at Metastore.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0, 2.0.0
    • Metastore
    • None
    • PostgreSQL

    Description

      I use PostgreSQL to Hive Metastore. And I saw the following message at PostgreSQL log.

      < 2015-06-26 10:58:15.488 JST >ERROR:  syntax error at or near "@@" at character 5
      < 2015-06-26 10:58:15.488 JST >STATEMENT:  SET @@session.sql_mode=ANSI_QUOTES
      < 2015-06-26 10:58:15.489 JST >ERROR:  relation "v$instance" does not exist at character 21
      < 2015-06-26 10:58:15.489 JST >STATEMENT:  SELECT version FROM v$instance
      < 2015-06-26 10:58:15.490 JST >ERROR:  column "version" does not exist at character 10
      < 2015-06-26 10:58:15.490 JST >STATEMENT:  SELECT @@version
      

      When Hive CLI and Beeline embedded mode are carried out, this message is output to PostgreSQL log.
      These queries are called from MetaStoreDirectSql#determineDbType. And if we use MetaStoreDirectSql#getProductName, we need not to call these queries.

      Attachments

        1. HIVE-11123.4a.patch
          2 kB
          Sergey Shelukhin
        2. HIVE-11123.4.patch
          2 kB
          Shinichi Yamashita
        3. HIVE-11123.3.patch
          2 kB
          Shinichi Yamashita
        4. HIVE-11123.2.patch
          3 kB
          Shinichi Yamashita
        5. HIVE-11123.1.patch
          3 kB
          Shinichi Yamashita

        Issue Links

          Activity

            People

              sinchii Shinichi Yamashita
              sinchii Shinichi Yamashita
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: