ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-2970) .NET: CompiledQuery fails with embedded const parameters
Date Mon, 11 Apr 2016 10:30:25 GMT

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

Pavel Tupitsyn edited comment on IGNITE-2970 at 4/11/16 10:29 AM:
------------------------------------------------------------------

Allowing constants within compiled query will unnecessarily complicate compilation.
This should not be a problem for users (rare use case, easy workaround). 

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


was (Author: ptupitsyn):
Allowing constants within compiled query will unnecessarily complicate compilation.
This should not be a problem for users (rare use case, easy workaround). 

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)

Mime
View raw message