-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-16035: [Java] Handling empty JDBC ResultSet
ArrowVectorIterator.hasNext() delegates to the underlying resultset.isAfterLast() method, but per JDBC specs, this [should return false in the case of empty ResultSets](https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/ResultSet.html#isAfterLast()). This causes hasNext() to return true for empty ResultSets, triggering infinite loops. Closes #13049 from toddfarmer/tofarmer/fix-hasnext-for-empty-resultset Authored-by: Todd Farmer <todd@fivefarmers.com> Signed-off-by: David Li <li.davidm96@gmail.com>
- Loading branch information
1 parent
64d11b4
commit ffd8074
Showing
2 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters