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

Amelchev Nikita commented on IGNITE-6692:
-----------------------------------------

I’ve fixed the issue. 

Description of the problem: We can build a binary object without fields in the 
binary object builder. If we don't add a field, SchemaId will be set to zero. 
When we try to read field value, marshaller will try to find this schema and 
throw an exception. 

It was fixed by introducing of a new check on schemaId and when it equals to 
zero then the field value will return null. 

Please, [review the 
changes|https://reviews.ignite.apache.org/ignite/review/IGNT-CR-381]. 
[Tests|https://ci.ignite.apache.org/project.html?projectId=Ignite20Tests&tab=projectOverview&branch_Ignite20Tests=pull%2F2918%2Fhead]
 look good.



> Select query on a client with unused field throws an exception.
> ---------------------------------------------------------------
>
>                 Key: IGNITE-6692
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6692
>             Project: Ignite
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>            Reporter: Amelchev Nikita
>            Assignee: Amelchev Nikita
>             Fix For: 2.4
>
>         Attachments: IgniteClientQueryTest.java
>
>
> Steps to reproduce:
> 1. Run one server, one client.
> 2. Execute next queries on a client:
> {{CREATE TABLE t1 (name VARCHAR(1), unused LONG, PRIMARY KEY(name))}}
> {{INSERT INTO t1 (name) values ('A')}}
> 3. Run select that throws an exception: 
> {{SELECT name FROM t1 ORDER BY name, unused}}
> Test is in attachment. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to