[ https://issues.apache.org/jira/browse/HIVE-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446182#comment-13446182 ]
Carl Steinbach commented on HIVE-1450: -------------------------------------- @Mark: Namit requested that I add negative test coverage for each of the exceptions that are thrown by the modified version of executeUpdate. I have requested clarification from him on this point and am waiting for him to respond. For more information on this please refer to the phabricator code review link above. Thanks. > always catch exception when invoke executeUpdate in jdbc > -------------------------------------------------------- > > Key: HIVE-1450 > URL: https://issues.apache.org/jira/browse/HIVE-1450 > Project: Hive > Issue Type: Bug > Components: JDBC > Reporter: Alexey Diomin > Assignee: Carl Steinbach > Attachments: HIVE-1450.D4293.1.patch > > > Request executed in hive, but always return exception > error in ./jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveStatement.java > {code} > public int executeUpdate(String sql) throws SQLException { > try { > client.execute(sql); > } catch (Exception ex) { > throw new SQLException(ex.toString()); > } > throw new SQLException("Method not supported"); > } > {code} > executeQuery work correct -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira