[
https://issues.apache.org/jira/browse/IGNITE-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286918#comment-17286918
]
Kin (Nathan) Chan commented on IGNITE-5266:
-------------------------------------------
Hi Pavel,
I have added the long count operator to ProcessResultOperatorsBegin. Right now,
I am trying to create unit tests for it, but I am having some problems. One
thing I would like to test is the ability to return a long count when the
cache's size is more than int.MaxValue, but when I try to insert large amount
(e.g. long.MaxValue) of data into the cache, it throws a
*CachePartialUpdateException* saying that it fails to update keys. More detail
is at the end. I wonder if I should do that and if adding large amount of data
into the cache for unit testing is a good thing? or do you think using small
set of data is enough to test the functionality?
Please let me know.
Thanks,
Nathan
{code:c#}
Apache.Ignite.Core.Cache.CachePartialUpdateException : Failed to update keys
(retry update if possible).: [3460435] at
Apache.Ignite.Core.Impl.PlatformJniTarget.InStreamOutLong[TR](Int32 type,
Func`2 outAction, Func`3 inAction, Func`2 readErrorAction) in
/Users/kinchan/programming/Apache/Ignite/ignite/modules/platforms/dotnet/Apache.Ignite.Core/Impl/PlatformJniTarget.cs:line
217 at Apache.Ignite.Core.Impl.PlatformTargetAdapter.DoOutInOpX(Int32 type,
Action`1 outAction, Func`2 inErrorAction) in
/Users/kinchan/programming/Apache/Ignite/ignite/modules/platforms/dotnet/Apache.Ignite.Core/Impl/PlatformTargetAdapter.cs:line
252 at Apache.Ignite.Core.Impl.Cache.CacheImpl`2.DoOutOp[T1,T2](CacheOp op, T1
x, T2 y) in
/Users/kinchan/programming/Apache/Ignite/ignite/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Cache/CacheImpl.cs:line
1866 at Apache.Ignite.Core.Impl.Cache.CacheImpl`2.Put(TK key, TV val) in
/Users/kinchan/programming/Apache/Ignite/ignite/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Cache/CacheImpl.cs:line
739 at
Apache.Ignite.Core.Tests.Cache.Query.Linq.CacheLinqTest.TestScalarQuery() in
/Users/kinchan/programming/Apache/Ignite/ignite/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs:line
140
{code}
> .NET: Support LongCount in LINQ
> -------------------------------
>
> Key: IGNITE-5266
> URL: https://issues.apache.org/jira/browse/IGNITE-5266
> Project: Ignite
> Issue Type: Improvement
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Kin (Nathan) Chan
> Priority: Major
> Labels: .NET, LINQ, newbie
>
> H2 SQL {{COUNT}} function returns a {{long}}, but LINQ {{Count}} returns an
> int. We should simply add {{LongCount}} support the same way as {{Count}}.
> The tricky thing would be to test it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)