Re: IGNITE-6692 Select query on a client with unused field throws an exception.

2017-11-01 Thread Nikita Amelchev
Thanks for the comments. I have done check to the existing schema through the BinaryUtils.FLAG_HAS_SCHEMA flag [1]. 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 fro

Re: IGNITE-6692 Select query on a client with unused field throws an exception.

2017-10-28 Thread Dmitriy Setrakyan
On Fri, Oct 27, 2017 at 11:11 AM, Vladimir Ozerov wrote: > Nikita, > > I am afraid this is incorrect fix, since zero is valid hash for schema. We > control whether the schema is est through the flag > BinaryUtils.FLAG_HAS_SCHEMA. Please try using it instead. > Vladimir, in that case how come the

Re: IGNITE-6692 Select query on a client with unused field throws an exception.

2017-10-27 Thread Vladimir Ozerov
Nikita, I am afraid this is incorrect fix, since zero is valid hash for schema. We control whether the schema is est through the flag BinaryUtils.FLAG_HAS_SCHEMA. Please try using it instead. On Fri, Oct 27, 2017 at 6:38 PM, Nikita Amelchev wrote: > Hello, Igniters! > > I’ve fixed the issue whe

IGNITE-6692 Select query on a client with unused field throws an exception.

2017-10-27 Thread Nikita Amelchev
Hello, Igniters! I’ve fixed the issue where SQL query with unused fields throws an exception [1]. 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, marshalle

Re: IGNITE-6692 Select query on a client with unused field throws an exception.

2017-10-20 Thread Nikita Amelchev
I've attached reproducer to the issue [1]. 1. https://issues.apache.org/jira/browse/IGNITE-6692 2017-10-20 16:05 GMT+03:00 Vladimir Ozerov : > Hi Nikita, > > Appears to be a bug. Could you please file a ticket with reproducer? > > On Fri, Oct 20, 2017 at 3:56 PM, Nikita Amelchev > wrote: > > >

Re: IGNITE-6692 Select query on a client with unused field throws an exception.

2017-10-20 Thread Vladimir Ozerov
Hi Nikita, Appears to be a bug. Could you please file a ticket with reproducer? On Fri, Oct 20, 2017 at 3:56 PM, Nikita Amelchev wrote: > Hello, Igniters. > > I found a bug when I execute next queries on the client: > > CREATE TABLE t1 (name VARCHAR(1), unused LONG, PRIMARY KEY(name)); > INSERT

IGNITE-6692 Select query on a client with unused field throws an exception.

2017-10-20 Thread Nikita Amelchev
Hello, Igniters. I found a bug when I execute next queries on the client: CREATE TABLE t1 (name VARCHAR(1), unused LONG, PRIMARY KEY(name)); INSERT INTO t1 (name) values ('A'); SELECT name FROM t1 ORDER BY name, unused; The latest query throws exception like "BinaryObjectException: Cannot find s

[jira] [Created] (IGNITE-6692) Select query on a client with unused field throws an exception.

2017-10-20 Thread Amelchev Nikita (JIRA)
Amelchev Nikita created IGNITE-6692: --- Summary: 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