ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Popov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-7889) .NET: linq GroupBy and Where does not work together.
Date Tue, 06 Mar 2018 13:21:00 GMT
Alexey Popov created IGNITE-7889:

             Summary: .NET: linq GroupBy and Where does not work together.
                 Key: IGNITE-7889
                 URL: https://issues.apache.org/jira/browse/IGNITE-7889
             Project: Ignite
          Issue Type: Bug
          Components: platforms
    Affects Versions: 2.1
            Reporter: Alexey Popov
            Assignee: Alexey Popov

The following code completely ignores the Where condition:
                var groupByQuery2 = models.Where(m => m.Value.DateTicks < 10 &&
m.Value.Dirty.HasValue).GroupBy(m => m.Value.ContractId)
                    .Select(g => new KeyValuePair<string, int>(g.Key, g.Select(m
=> m.Value.Version).Min()));

debugger shows SQL without WHERE:
{CacheQueryable [CacheName=someCache, TableName=MODEL, Query=SqlFieldsQuery [Sql=select _T0.CONTRACTID,
min (_T0.VERSION)  from "someCache".MODEL as _T0 group by (_T0.CONTRACTID), Arguments=[],
Local=False, PageSize=1024, EnableDistributedJoins=False, EnforceJoinOrder=False, Timeout=00:00:00,
ReplicatedOnly=False, Colocated=False, Schema=, Lazy=False]]}

This message was sent by Atlassian JIRA

View raw message