ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amelchev Nikita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-6692) Select query on a client with unused field throws an exception.
Date Wed, 01 Nov 2017 08:53:00 GMT

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

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

[~vozerov], I have done a check to existing schema through the BinaryUtils.FLAG_HAS_SCHEMA
flag. Also, I have checked other places where we can try to read not initialized schema and
found that BinaryObjectBuilderImpl.ensureReadCacheInit() method can do it. If we try to get
from the BinaryObject, which contains no fields, any field through BinaryObjectBuilder, it
will throw an exception. I have fixed this bug and suggest to include it in this issue. Please,
review. [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) 
>          Components: binary
>    Affects Versions: 2.2
>            Reporter: Amelchev Nikita
>            Assignee: Amelchev Nikita
>            Priority: Major
>             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)

Mime
View raw message