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

Pavel Tupitsyn commented on IGNITE-2970:
----------------------------------------

Allowing constants within compiled query will unnecessarily complicate 
compilation.
I've fixed validation check for zero and one arg compiled queries, so the 
exception is "Error compiling query: all compiled query arguments should come 
from enclosing lambda expression".

> .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