[jira] [Updated] (IGNITE-16421) Wrap_key doesn't work with custom value_type

2022-05-13 Thread Luchnikov Alexander (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-16421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luchnikov Alexander updated IGNITE-16421:
-
Labels: ise.lts  (was: )

> Wrap_key doesn't work with custom value_type
> 
>
> Key: IGNITE-16421
> URL: https://issues.apache.org/jira/browse/IGNITE-16421
> Project: Ignite
>  Issue Type: Bug
>  Components: sql
>Reporter: Yury Gerzhedovich
>Assignee: Yury Gerzhedovich
>Priority: Major
>  Labels: ise.lts
> Fix For: 2.13
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Steps to reproduce:
> 1. Create a table
> {code:java}
> CREATE TABLE City (
>   name varchar primary key,
>   code int
> ) WITH 
> "wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";{code}
> 2. Put something with cache API
> {code:java}
> cache.put("123", new CodeType(1));{code}
> 3. [Expected] Entity is put correctly
> 4. [Actual] Unexcepted binary object class
>  
> {code:java}
> class org.apache.ignite.IgniteCheckedException: Unexpected binary object 
> class [type=class 
> org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
>   at 
> org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
>   at 
> org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)


[jira] [Updated] (IGNITE-16421) Wrap_key doesn't work with custom value_type

2022-03-29 Thread Amelchev Nikita (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-16421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amelchev Nikita updated IGNITE-16421:
-
Release Note: Fixed table operations failure when wrap_key and custom 
value_type are used

> Wrap_key doesn't work with custom value_type
> 
>
> Key: IGNITE-16421
> URL: https://issues.apache.org/jira/browse/IGNITE-16421
> Project: Ignite
>  Issue Type: Bug
>  Components: sql
>Reporter: Yury Gerzhedovich
>Assignee: Yury Gerzhedovich
>Priority: Major
> Fix For: 2.13
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Steps to reproduce:
> 1. Create a table
> {code:java}
> CREATE TABLE City (
>   name varchar primary key,
>   code int
> ) WITH 
> "wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";{code}
> 2. Put something with cache API
> {code:java}
> cache.put("123", new CodeType(1));{code}
> 3. [Expected] Entity is put correctly
> 4. [Actual] Unexcepted binary object class
>  
> {code:java}
> class org.apache.ignite.IgniteCheckedException: Unexpected binary object 
> class [type=class 
> org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
>   at 
> org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
>   at 
> org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (IGNITE-16421) Wrap_key doesn't work with custom value_type

2022-01-28 Thread Yury Gerzhedovich (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-16421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yury Gerzhedovich updated IGNITE-16421:
---
Description: 
Steps to reproduce:
1. Create a table
{code:java}
CREATE TABLE City (
  name varchar primary key,
  code int
) WITH 
"wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";{code}
2. Put something with cache API
{code:java}
cache.put("123", new CodeType(1));{code}
3. [Expected] Entity is put correctly
4. [Actual] Unexcepted binary object class

 
{code:java}
class org.apache.ignite.IgniteCheckedException: Unexpected binary object class 
[type=class org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
at 
org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
at 
org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
 

 

  was:
Steps to reproduce:
1. Create a table
{{}}
{code:java}

{code}
{{CREATE TABLE City (}}
{{  name varchar primary key,}}
{{  code int}}
{{) WITH 
"wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";}}


2. Put something with cache API
{{}}
{code:java}

{code}
{{cache.put("123", new CodeType(1));}}


3. [Expected] Entity is put correctly
4. [Actual] Unexcepted binary object class

 
{code:java}
class org.apache.ignite.IgniteCheckedException: Unexpected binary object class 
[type=class org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
at 
org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
at 
org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
 

 


> Wrap_key doesn't work with custom value_type
> 
>
> Key: IGNITE-16421
> URL: https://issues.apache.org/jira/browse/IGNITE-16421
> Project: Ignite
>  Issue Type: Bug
>  Components: sql
>Reporter: Yury Gerzhedovich
>Assignee: Yury Gerzhedovich
>Priority: Major
>
> Steps to reproduce:
> 1. Create a table
> {code:java}
> CREATE TABLE City (
>   name varchar primary key,
>   code int
> ) WITH 
> "wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";{code}
> 2. Put something with cache API
> {code:java}
> cache.put("123", new CodeType(1));{code}
> 3. [Expected] Entity is put correctly
> 4. [Actual] Unexcepted binary object class
>  
> {code:java}
> class org.apache.ignite.IgniteCheckedException: Unexpected binary object 
> class [type=class 
> org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
>   at 
> org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
>   at 
> org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (IGNITE-16421) Wrap_key doesn't work with custom value_type

2022-01-28 Thread Yury Gerzhedovich (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-16421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yury Gerzhedovich updated IGNITE-16421:
---
Description: 
Steps to reproduce:
1. Create a table
{{}}
{code:java}

{code}
{{CREATE TABLE City (}}
{{  name varchar primary key,}}
{{  code int}}
{{) WITH 
"wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";}}


2. Put something with cache API
{{}}
{code:java}

{code}
{{cache.put("123", new CodeType(1));}}


3. [Expected] Entity is put correctly
4. [Actual] Unexcepted binary object class

 
{code:java}
class org.apache.ignite.IgniteCheckedException: Unexpected binary object class 
[type=class org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
at 
org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
at 
org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
 

 

  was:
Steps to reproduce:
1. Create a table
{{1CREATE TABLE City (2  name varchar primary key,3  code int4) WITH 
"wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";}}
2. Put something with cache API
{{1cache.put("123", new CodeType(1));}}
3. [Expected] Entity is put correctly
4. [Actual] Unexcepted binary object class
{{1class org.apache.ignite.IgniteCheckedException: Unexpected binary object 
class [type=class 
org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]2
  at 
org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)3
at 
org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)}}


> Wrap_key doesn't work with custom value_type
> 
>
> Key: IGNITE-16421
> URL: https://issues.apache.org/jira/browse/IGNITE-16421
> Project: Ignite
>  Issue Type: Bug
>  Components: sql
>Reporter: Yury Gerzhedovich
>Assignee: Yury Gerzhedovich
>Priority: Major
>
> Steps to reproduce:
> 1. Create a table
> {{}}
> {code:java}
> {code}
> {{CREATE TABLE City (}}
> {{  name varchar primary key,}}
> {{  code int}}
> {{) WITH 
> "wrap_key=true,value_type=org.apache.ignite.internal.processors.cache.index.CodeType";}}
> 2. Put something with cache API
> {{}}
> {code:java}
> {code}
> {{cache.put("123", new CodeType(1));}}
> 3. [Expected] Entity is put correctly
> 4. [Actual] Unexcepted binary object class
>  
> {code:java}
> class org.apache.ignite.IgniteCheckedException: Unexpected binary object 
> class [type=class 
> org.apache.ignite.internal.processors.cache.KeyCacheObjectImpl]
>   at 
> org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:127)
>   at 
> org.apache.ignite.internal.processors.query.h2.opt.GridH2RowDescriptor.columnValue(GridH2RowDescriptor.java:244)(({code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)