You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2023/01/20 09:08:00 UTC

[jira] [Commented] (IGNITE-18588) .NET: Thin 3.0: BinaryTupleReader incorrect behavior on type mismatch

    [ https://issues.apache.org/jira/browse/IGNITE-18588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17679073#comment-17679073 ] 

Igor Sapego commented on IGNITE-18588:
--------------------------------------

[~ptupitsyn] looks good to me.

> .NET: Thin 3.0: BinaryTupleReader incorrect behavior on type mismatch
> ---------------------------------------------------------------------
>
>                 Key: IGNITE-18588
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18588
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms, thin client
>    Affects Versions: 3.0.0-beta1
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: .NET, ignite-3
>             Fix For: 3.0.0-beta2
>
>
> Add the following test to *BinaryTupleTests*:
> {code:c#}
> [Test]
> public void TestShortAsByte()
> {
>     var bytes = Build((ref BinaryTupleBuilder b) => b.AppendShort(257));
>     var reader = new BinaryTupleReader(bytes, 1);
>     Assert.AreEqual(257, reader.GetByte(0));
> }
> {code}
> The result is assertion failure "Expected: 257  But was:  1" - we get incorrect value, but there should be an exception when the data does not fit into the requested type.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)