oleg-vlsk commented on code in PR #11317:
URL: https://github.com/apache/ignite/pull/11317#discussion_r1588659128


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java:
##########
@@ -1483,6 +1487,62 @@ protected GridCloseableIterator scanQueryLocal(final 
GridCacheQueryAdapter qry,
         }
     }
 
+    /**
+     * Process local scan query.
+     *
+     * @param qry Query.
+     * @param updateStatistics Update statistics flag.
+     * @return GridCloseableIterator.
+     */
+    @SuppressWarnings({"unchecked"})
+    protected GridCloseableIterator scanQueryLocal(final GridCacheQueryAdapter 
qry,
+        boolean updateStatistics) throws IgniteCheckedException {
+        return queryFunc(() -> {
+            try {
+                IgniteClosure transformer = qry.transform();
+
+                injectResources(transformer);
+
+                return scanIterator(qry, transformer, true);
+            }
+            catch (Exception e) {
+                throw new RuntimeException(e);

Review Comment:
   Got rid of 'try-catch' in scanQueryLocal and indexQueryLocal by using 
IgniteThrowableSupplier.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to