Hive
  1. Hive
  2. HIVE-6712

HS2 JDBC driver is inconsistent w.r.t. auto commit

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.13.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I see an inconsistency in HS2 JDBC driver code:

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

      From above, it seems that auto commit is not supported. However,

        @Override
        public boolean getAutoCommit() throws SQLException {
          return true;
        }
      

        Issue Links

          Activity

          Navis made changes -
          Field Original Value New Value
          Link This issue duplicates HIVE-6705 [ HIVE-6705 ]
          Xuefu Zhang created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Xuefu Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development