[ https://issues.apache.org/jira/browse/HIVE-3619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736432#comment-13736432 ]
Yury Yudin commented on HIVE-3619: ---------------------------------- According to java.sql.Statement docs getUpdateCount retrieves the current result as an update count if there are multiple results returned from the query, or returns -1 if there is only one or no more results available. Current implementation of getUpdateCount in HiveStatement always returns 0, which may cause a failure of respective software expecting it to return -1 in most cases, as more often there is just one resultset available. It seems full implementation of getUpdateCount will also require at least getMoreResults and overall support of multiple resultsets per query. > Hive JDBC driver should return a proper update-count of rows affected by query > ------------------------------------------------------------------------------ > > Key: HIVE-3619 > URL: https://issues.apache.org/jira/browse/HIVE-3619 > Project: Hive > Issue Type: Bug > Components: JDBC > Affects Versions: 0.9.0 > Reporter: Harsh J > Priority: Minor > > HiveStatement.java currently has an explicit 0 return: > public int getUpdateCount() throws SQLException { return 0; } > Ideally we ought to emit the exact number of rows affected by the query > statement itself. -- 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