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 2021/04/16 08:22:00 UTC

[jira] [Issue Comment Deleted] (IGNITE-14523) .NET: Add support for string.Compare method in LINQ provider

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

Pavel Tupitsyn updated IGNITE-14523:
------------------------------------
    Comment: was deleted

(was: {panel:title=Branch: [pull/8999/head] Base: [master] : Possible Blockers (8)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}Examples{color} [[tests 3|https://ci.ignite.apache.org/viewLog.html?buildId=5967997]]
* IgniteExamplesSelfTestSuite: CacheClientBinaryExampleTest.testBinaryPutGetExample - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteExamplesSelfTestSuite: CacheClientBinaryExampleTest.testBinaryQueryExample - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteExamplesSelfTestSuite: ComputeClientBinaryExampleTest.testBinaryTaskExecutionExample - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Cache 6{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=5968046]]
* IgniteCacheTestSuite6: CacheExchangeMergeTest.testMergeServersFail1_5 - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Cache 1{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=5968041]]
* IgniteBinaryCacheTestSuite: GridCacheBalancingStoreSelfTest.testConcurrentLoadCustomThreshold - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Start Nodes{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=5968014]]
* IgniteStartStopRestartTestSuite: IgniteProjectionStartStopRestartSelfTest.testStartThreeNodes - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Platform .NET (NuGet)*{color} [[tests 0 Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=5968065]]

{color:#d04437}Platform .NET (Inspections)*{color} [[tests 0 Failure on metric |https://ci.ignite.apache.org/viewLog.html?buildId=5968062]]

{panel}
{panel:title=Branch: [pull/8999/head] Base: [master] : No new tests found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=5968087&amp;buildTypeId=IgniteTests24Java8_RunAll])

> .NET: Add support for string.Compare method in LINQ provider
> ------------------------------------------------------------
>
>                 Key: IGNITE-14523
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14523
>             Project: Ignite
>          Issue Type: New Feature
>          Components: platforms
>    Affects Versions: 2.9.1
>            Reporter: Oleg Bevz
>            Assignee: Oleg Bevz
>            Priority: Minor
>              Labels: .NET
>             Fix For: 2.11
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Hello, currently Apache Ignite does not support string comparison for LINQ provider (Apache.Ignite.Linq project).
> For example following modified query insideThinClientQueryExample.ScanQueryExample method will throw Exception:
> var employees = cache.AsCacheQueryable().Select(x => x.Value).Where(x => string.Compare(x.Name, "Daniel Adams") >= 0);
> Business case: in our project we use DevExteme.AspNet.Data library to build LINQ queries for Apache Ignite and in some cases the library builds complex queries with string.Compare method call. 
> Exception details:
>  Exception has been thrown by the target of an invocation. System.Reflection.TargetInvocationException System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean) System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotSupportedException: Method not supported: System.String.(Int32 Compare(System.String, System.String))
>     at Apache.Ignite.Linq.Impl.MethodVisitor.VisitMethodCall(MethodCallExpression expression, CacheQueryExpressionVisitor visitor)
>     at Apache.Ignite.Linq.Impl.CacheQueryExpressionVisitor.VisitMethodCall(MethodCallExpression expression)
>     at Remotion.Linq.Parsing.ThrowingExpressionVisitor.Visit(Expression expression)
>     at Apache.Ignite.Linq.Impl.CacheQueryExpressionVisitor.VisitBinary(BinaryExpression expression)
>     at Remotion.Linq.Parsing.ThrowingExpressionVisitor.Visit(Expression expression)
>     at Apache.Ignite.Linq.Impl.CacheQueryExpressionVisitor.VisitBinary(BinaryExpression expression)
>     at Remotion.Linq.Parsing.ThrowingExpressionVisitor.Visit(Expression expression)
>     at Apache.Ignite.Linq.Impl.CacheQueryModelVisitor.VisitWhereClause(WhereClause whereClause, Int32 index, Boolean hasGroups)
>     at Apache.Ignite.Linq.Impl.CacheQueryModelVisitor.ProcessGroupings(QueryModel queryModel)
>     at Apache.Ignite.Linq.Impl.CacheQueryModelVisitor.VisitBodyClauses(ObservableCollection`1 bodyClauses, QueryModel queryModel)
>     at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel)
>     at Apache.Ignite.Linq.Impl.CacheQueryModelVisitor.VisitQueryModel(QueryModel queryModel, Boolean includeAllFields, Boolean copyAliases)
>     at Apache.Ignite.Linq.Impl.CacheQueryModelVisitor.GenerateQuery(QueryModel queryModel)
>     at Apache.Ignite.Linq.Impl.CacheFieldsQueryExecutor.ExecuteCollection[T](QueryModel queryModel)
>     at Remotion.Linq.Clauses.StreamedData.StreamedSequenceInfo.ExecuteQueryModel(QueryModel queryModel, IQueryExecutor executor)
>     at Apache.Ignite.Linq.Impl.CacheFieldsQueryProvider.Execute[TResult](Expression expression)
>   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)