xtern commented on code in PR #6950:
URL: https://github.com/apache/ignite-3/pull/6950#discussion_r2518877756


##########
modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/api/ItSqlSynchronousApiTest.java:
##########
@@ -136,6 +136,20 @@ public void cancelBatch() throws InterruptedException {
         });
     }
 
+    @Test
+    void closeCursorWithoutReadingAllPages() {
+        IgniteSql sql = igniteSql();
+
+        Statement stmt = sql.statementBuilder()
+                .query("SELECT * FROM TABLE(SYSTEM_RANGE(0, 10))")

Review Comment:
   ```suggestion
                   .query("SELECT * FROM TABLE(SYSTEM_RANGE(0, 1))")
   ```
   
   To reproduce the issue with some attempt, your virtual table should contain 
2 rows.
   Because background prefetch must close the cursor, otherwise this issue will 
not be reproduced.



-- 
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]

Reply via email to