[jira] [Commented] (IGNITE-7889) .NET: linq GroupBy and Where does not work together.

2018-03-06 Thread Pavel Tupitsyn (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16387891#comment-16387891
 ] 

Pavel Tupitsyn commented on IGNITE-7889:


[~alexey.tank2] looks good to me.

> .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
>Priority: Major
>
> The following code completely ignores the Where condition:
> {noformat}
> var groupByQuery2 = models.Where(m => m.Value.DateTicks < 10 
> && m.Value.Dirty.HasValue).GroupBy(m => m.Value.ContractId)
> .Select(g => new KeyValuePair(g.Key, 
> g.Select(m => m.Value.Version).Min()));
> {noformat}
> 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
(v7.6.3#76005)


[jira] [Commented] (IGNITE-7889) .NET: linq GroupBy and Where does not work together.

2018-03-06 Thread Alexey Popov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16387886#comment-16387886
 ] 

Alexey Popov commented on IGNITE-7889:
--

TC run:
https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8_IgniteTests24Java8=pull%2F3608%2Fhead

> .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
>Priority: Major
>
> The following code completely ignores the Where condition:
> {noformat}
> var groupByQuery2 = models.Where(m => m.Value.DateTicks < 10 
> && m.Value.Dirty.HasValue).GroupBy(m => m.Value.ContractId)
> .Select(g => new KeyValuePair(g.Key, 
> g.Select(m => m.Value.Version).Min()));
> {noformat}
> 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
(v7.6.3#76005)


[jira] [Commented] (IGNITE-7889) .NET: linq GroupBy and Where does not work together.

2018-03-06 Thread Alexey Popov (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16387877#comment-16387877
 ] 

Alexey Popov commented on IGNITE-7889:
--

Changes:
1. Unit test is added
2. Fix is done in {{ProcessGroupings}} function

[~skalashnikov], [~isapego], [~ptupitsyn], please review

> .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
>Priority: Major
>
> The following code completely ignores the Where condition:
> {noformat}
> var groupByQuery2 = models.Where(m => m.Value.DateTicks < 10 
> && m.Value.Dirty.HasValue).GroupBy(m => m.Value.ContractId)
> .Select(g => new KeyValuePair(g.Key, 
> g.Select(m => m.Value.Version).Min()));
> {noformat}
> 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
(v7.6.3#76005)


[jira] [Commented] (IGNITE-7889) .NET: linq GroupBy and Where does not work together.

2018-03-06 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16387878#comment-16387878
 ] 

ASF GitHub Bot commented on IGNITE-7889:


GitHub user apopovgg opened a pull request:

https://github.com/apache/ignite/pull/3608

IGNITE-7889: .NET: linq GroupBy and Where does not work together



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/gridgain/apache-ignite ignite-7889

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/ignite/pull/3608.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #3608


commit 6156e04a4c8af1bc599cbbfeb30c7726264ab6ea
Author: apopov 
Date:   2018-03-06T14:38:31Z

IGNITE-7889: .NET: linq GroupBy and Where does not work together




> .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
>Priority: Major
>
> The following code completely ignores the Where condition:
> {noformat}
> var groupByQuery2 = models.Where(m => m.Value.DateTicks < 10 
> && m.Value.Dirty.HasValue).GroupBy(m => m.Value.ContractId)
> .Select(g => new KeyValuePair(g.Key, 
> g.Select(m => m.Value.Version).Min()));
> {noformat}
> 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
(v7.6.3#76005)