zstan commented on code in PR #2906:
URL: https://github.com/apache/ignite-3/pull/2906#discussion_r1424888886
##########
modules/client-common/src/main/java/org/apache/ignite/internal/jdbc/proto/JdbcQueryCursorHandler.java:
##########
@@ -37,6 +39,14 @@ public interface JdbcQueryCursorHandler {
*/
CompletableFuture<JdbcQueryFetchResult> fetchAsync(JdbcQueryFetchRequest
req);
+ /**
+ * {@link Statement#getMoreResults()} command implementor.
+ *
+ * @param req Results request.
+ * @return Result future.
+ */
+ CompletableFuture<JdbcQuerySingleResult>
getMoreResultsAsync(JdbcQueryFetchRequest req);
Review Comment:
probably we need to rename somehow ? but hold additional equal class just
different action seems not so good too, wdyt ?
##########
modules/jdbc/src/main/java/org/apache/ignite/internal/jdbc/JdbcResultSet.java:
##########
@@ -215,6 +218,37 @@ public JdbcResultSet(List<List<Object>> rows,
List<JdbcColumnMeta> meta) throws
initColumnOrder();
}
+ @Nullable JdbcResultSet getNextResultSet() throws SQLException {
+ try {
+ JdbcQueryFetchRequest req = new JdbcQueryFetchRequest(cursorId,
fetchSize);
+ JdbcQuerySingleResult res =
cursorHandler.getMoreResultsAsync(req).get();
+
+ close0(true);
+
+ if (!res.hasResults()) {
Review Comment:
append test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]