Quantcast
Channel: VMware Communities : Unanswered Discussions - vFabric GemFire [ARCHIVED]
Viewing all articles
Browse latest Browse all 532

CQ queries do not support projections

$
0
0

Hi,

 

In .Net client I am trying to create a CQ with the following query: select collectInfo() from /SomeRegion,

where collectInfo() is a method the object from the Gemfire region, which returns and object of a custom datatype. In DataBrowser this query runs fine but in the .Net code I receive the following exception:

 

CqQuery::executeCqWithInitialResults:: java.lang.UnsupportedOperationException: CQ queries do not support projections

  at com.gemstone.gemfire.cache.query.internal.CqQueryImpl.validateCq(CqQueryImpl.java:321)

  at com.gemstone.gemfire.cache.query.internal.CqQueryImpl.registerCq(CqQueryImpl.java:370)

...

 

Is there any solution to this?

 

The code that I use to create CQ:

                var pool = PoolManager.GetAll().First().Value;

                QueryService<Tkey, object> qrySvc = _cache.GetQueryService<Tkey, object>(pool.Name);

                CqQuery<Tkey, object> qryCq = qrySvc.NewCq(qryName, query, cqAttr, false);

                ICqResults<object> initialCqResults = qryCq.ExecuteWithInitialResults();

 

Kind regards,

Dmitry Scherbakov

UBS AG


Viewing all articles
Browse latest Browse all 532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>