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

ASF GitHub Bot commented on IGNITE-2970:
----------------------------------------

GitHub user ptupitsyn opened a pull request:

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

    IGNITE-2970 .NET: Fix CompiledQuery parameter validation

    All CompiledQuery parameters must come from the enclosing func arguments.
    Constants are not allowed. There was a shortcut for zero and one arg 
compiled query that excluded the validation.

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

    $ git pull https://github.com/ptupitsyn/ignite ignite-2970

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

    https://github.com/apache/ignite/pull/629.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 #629
    
----
commit 4712730476e192fb841768ad62db91678c6aafcf
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T09:08:18Z

    IGNITE-2970 .NET: CompiledQuery fails with embedded const parameters

commit 49994810c1058490601e30f67e36257aa3e56f4f
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T09:21:19Z

    wip

commit 53a2515547dee7adb0ec97dd5bbee78622327a29
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T09:36:33Z

    wip

commit e6073468d71d97e318daacb3360cbadb480975d7
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T09:52:35Z

    wip

commit aa72ee49398e23a78b38ae9a611274483d9bf480
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T10:16:08Z

    wip

commit 027a1782e8a16d777438f73ae7fe8649c4680463
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T10:18:20Z

    wip

commit 8a23f4d0328b9397aac82347c2404c867b49efbf
Author: Pavel Tupitsyn <[email protected]>
Date:   2016-04-11T10:19:27Z

    wip

----


> .NET: CompiledQuery fails with embedded const parameters
> --------------------------------------------------------
>
>                 Key: IGNITE-2970
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2970
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.6
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>             Fix For: 1.6
>
>
> This works:
> {code}
> var qry = CompiledQuery.Compile((int x) => cache.Where(x => x.Key < x));
> qry(5).GetAll();
> {code}
> And this fails:
> {code}
> var qry = CompiledQuery.Compile(() => cache.Where(x => x.Key < 5));
> qry().GetAll();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to