Some of JDBC driver does not support autoCommit=false, such as org.apache.hive.jdbc.HiveDrive.
JdbcHook.set_autocommit update by conn.jconn.setAutoCommit, DbApiHook.get_autocommit retrieve by conn.autocommit.
After DbApiHook.execute(sql), conn.commit() will throws exception.
- links to