[ 
https://issues.apache.org/jira/browse/CALCITE-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324575#comment-16324575
 ] 

Julian Hyde commented on CALCITE-508:
-------------------------------------

Yes it looks as if the fix is in Avatica, and we'll need tests in Avatica and 
also to fix the existing test in Calcite's JdbcTest. This ticket will suffice 
for all. The fix in Avatica will have to be released, and Calcite upgraded to 
that release, before we can change JdbcTest.

As for JIRA cases, this will suffice for all. Maybe there will be a "Upgrade 
Calcite to Avatica 1.11" case at some point.

> Reading from ResultSet before calling next() should throw SQLException not 
> NoSuchElementException
> -------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-508
>                 URL: https://issues.apache.org/jira/browse/CALCITE-508
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>              Labels: newbie
>
> Reading from ResultSet before calling next() should throw SQLException not 
> NoSuchElementException.
> Each of the Cursor.Accessor.getXxx methods should convert runtime exceptions 
> to SQLException.
> JdbcTest.testExtract currently demonstrates this problem; it passes if there 
> is a NoSuchElementException, but should look for a SQLException.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to