AMashenkov commented on a change in pull request #9081:
URL: https://github.com/apache/ignite/pull/9081#discussion_r655450023
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheDistributedQueryManager.java
##########
@@ -523,57 +544,31 @@ else if (!cancelled.contains(res.requestId()))
}
/** {@inheritDoc} */
- @SuppressWarnings("unchecked")
@Override public CacheQueryFuture<?> queryDistributed(GridCacheQueryBean
qry, final Collection<ClusterNode> nodes) {
+ return queryDistributed(qry, nodes, false);
+ }
+
+ /** */
+ private CacheQueryFuture<?> queryDistributed(GridCacheQueryBean qry, final
Collection<ClusterNode> nodes, boolean fields) {
assert cctx.config().getCacheMode() != LOCAL;
if (log.isDebugEnabled())
log.debug("Executing distributed query: " + qry);
long reqId = cctx.io().nextIoId();
- final GridCacheDistributedQueryFuture<K, V, ?> fut =
- new GridCacheDistributedQueryFuture<>(cctx, reqId, qry, nodes);
+ final GridCacheDistributedQueryFuture fut = fields ?
+ new GridCacheDistributedFieldsQueryFuture(cctx, reqId, qry)
+ : new GridCacheDistributedQueryFuture(cctx, reqId, qry);
Review comment:
```suggestion
new GridCacheDistributedFieldsQueryFuture(cctx, reqId, qry) :
new GridCacheDistributedQueryFuture(cctx, reqId, qry);
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]