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

HiveConnection.setAutoCommit(true) throws exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: JDBC
    • Labels:
      None
    • Target Version/s:

      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.patch
          1 kB
          Michał Węgrzyn
        2. HIVE-11293.2.patch
          9 kB
          Alan Gates

          Issue Links

            Activity

              People

              • Assignee:
                mwegrz Michał Węgrzyn
                Reporter:
                ashf72 Andriy Shumylo
              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: