oleg-vlsk commented on code in PR #11317:
URL: https://github.com/apache/ignite/pull/11317#discussion_r1581721240
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxyImpl.java:
##########
@@ -818,8 +840,8 @@ private QueryCursor<Cache.Entry<K, V>>
queryContinuous(AbstractContinuousQuery q
return
(FieldsQueryCursor<R>)ctx.kernalContext().query().querySqlFields(ctx,
(SqlFieldsQuery)qry,
null, keepBinary, true).get(0);
- if (qry instanceof ScanQuery)
- return query((ScanQuery)qry, null, projection(qry.isLocal()));
+ if (qry instanceof ScanQuery || (qry instanceof IndexQuery &&
qry.isLocal()))
Review Comment:
Done.
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxyImpl.java:
##########
@@ -475,23 +475,45 @@ private <T, R> QueryCursor<R> query(
boolean isKeepBinary = opCtxCall != null && opCtxCall.isKeepBinary();
- IgniteBiPredicate<K, V> p = scanQry.getFilter();
+ GridCacheQueryType qryType = null;
+
+ CacheQuery cacheQry = null;
+
+ if (qry instanceof ScanQuery) {
+ ScanQuery scanQry = (ScanQuery)qry;
+
+ qryType = GridCacheQueryType.SCAN;
+
+ IgniteBiPredicate<K, V> p = scanQry.getFilter();
+
+ cacheQry = ctx.queries().createScanQuery(
+ p, transformer, scanQry.getPartition(), isKeepBinary,
qry.isLocal(), null);
+ }
+ else {
+ IndexQuery idxQryLoc = (IndexQuery)qry;
Review Comment:
Done.
--
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]