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 2017/04/17 10:52:41 UTC

[jira] [Resolved] (IGNITE-4460) .NET: Unhelpful error message for same-table SelectMany in LINQ

     [ https://issues.apache.org/jira/browse/IGNITE-4460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Tupitsyn resolved IGNITE-4460.
------------------------------------
    Resolution: Fixed

> .NET: Unhelpful error message for same-table SelectMany in LINQ
> ---------------------------------------------------------------
>
>                 Key: IGNITE-4460
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4460
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Trivial
>              Labels: .NET, LINQ
>             Fix For: 2.0
>
>
> The following LINQ is not supported ({{RegionToRole}} is a collection, which is not understood by SQL):
> {code}
> users.Where(w => w.Value.ID == userId && !w.Value.IsDeleted)
>                 .SelectMany(sm => sm.Value.RegionToRole)
> {code}
> However, LINQ engine proceeds to generate an invalid query, which fails later in SQL engine:
> {code}
> Failed to parse query: select _T0._key, _T0._val from "User".User as _T0 , "User".User as _T0 where  ...
> {code}
> We should detect invalid LINQ early and throw an error with explanation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)