[
https://issues.apache.org/jira/browse/HIVE-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105885#comment-13105885
]
Chinna Rao Lalam commented on HIVE-2381:
----------------------------------------
I have executed this scenario
select id from sampletable where id > 100;
sampletable contains id's < 100 so my result set is empty and when i try
resultset.next() it is not throwing any exception.
Can u post what is the scenario.
> SQLException thrown when the resultset becomes empty.
> -----------------------------------------------------
>
> Key: HIVE-2381
> URL: https://issues.apache.org/jira/browse/HIVE-2381
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 0.7.1
> Reporter: Rémy DUBOIS
>
> Using the next method on my HiveQueryResultSet, when the resultset becomes
> emtpy, a SQLException is thrown on this line of code:
> {code}
> rowStr = (String) client.fetchOne();
> ...
> ...
> } catch (Exception ex) {
> ex.printStackTrace();
> throw new SQLException("Error retrieving next row");
> }
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira