Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
7.0.0
Description
Using an ArrowVectorIterator built from a JDBC Result Set that is empty causes the iterator to never terminate.
ArrowVectorIterator iterator =
JdbcToArrow.sqlToArrowVectorIterator(conn.createStatement()
.executeQuery("select 1 from table1 where false"), config);
It appears as though this is due to the implementation of the hasNext() method.
The expectation is that the `isAfterLast()` method on a JDBC result set return true when the result set is empty. However, according to the JDBC documentation it will always return false when the result set is empty.
Returns:true if the cursor is after the last row; false if the cursor is at any other position or the result set contains no rows
Attachments
Issue Links
- is related to
-
ARROW-16529 [Java] Remove dependency on optional JDBC ResultSet method
- Resolved
- links to