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

HiveConnection.setAutoCommit(true) throws exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • JDBC
    • None

    Description

      Effectively autoCommit is always true for HiveConnection, however setAutoCommit(true) throws exception, causing problems in existing JDBC code.
      Should be

        @Override
        public void setAutoCommit(boolean autoCommit) throws SQLException {
          if (!autoCommit) {
            throw new SQLException("disabling autocommit is not supported");
          }
        }
      

      Attachments

        1. HIVE-11293.2.patch
          9 kB
          Alan Gates
        2. HIVE-11293.patch
          1 kB
          Michał Węgrzyn

        Issue Links

          Activity

            People

              mwegrz Michał Węgrzyn
              ashf72 Andriy Shumylo
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: