You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2016/04/11 12:29:25 UTC
[jira] [Comment Edited] (IGNITE-2970) .NET: CompiledQuery fails
with embedded const parameters
[ 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:28 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 lambda expression".
was (Author: ptupitsyn):
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)