ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: .Net MethodVisitor ambiguous exception during get StringMethod "Contains"
Date Mon, 10 Sep 2018 14:04:50 GMT
Can you provide a reproducer please?

On Mon, Sep 10, 2018 at 9:15 AM Tâm Nguyễn Mạnh <nguyenmanhtam123@gmail.com>
wrote:

> Hi Paven,
>
> This is not compile error, this is runtime error. I got this while i try to
> use linq to query name contains (.NET core)
>
> On Sun, Sep 9, 2018 at 5:29 PM Pavel Tupitsyn <ptupitsyn@apache.org>
> wrote:
>
> > Hi,
> >
> > Do you mean that you can't compile the code?
> > It certainly compiles (under full .NET, .NET Core, and Mono, on Windows
> and
> > Linux), so it seems like some issue with your environment.
> > Can you do a fresh git checkout, then run `build.bat`?
> >
> > Pavel
> >
> > On Fri, Sep 7, 2018 at 5:16 AM Tâm Nguyễn Mạnh <
> nguyenmanhtam123@gmail.com
> > >
> > wrote:
> >
> > > Hi,
> > >
> > > There are more than 1 Contains method for string, that lead into
> > Ambiguous
> > > exception
> > >
> > > modules\platforms\dotnet\Apache.Ignite.Linq\Impl\MethodVisitor.cs:57
> > > ``` C#
> > > GetStringMethod("Contains", del: (e, v) => VisitSqlLike(e, v, "'%' || ?
> > ||
> > > '%'")),
> > > ```
> > >
> > > I think it should be:
> > > ``` C#
> > > GetStringMethod("Contains", del: (e, v) => VisitSqlLike(e, v, "'%' || ?
> > ||
> > > '%'"), argTypes:new []{typeof(string)}),
> > > ```
> > >
> > > --
> > > Thanks & Best Regards
> > >
> > > Tam, Nguyen Manh
> > >
> >
>
>
> --
> Thanks & Best Regards
>
> Tam, Nguyen Manh
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message