[
https://issues.apache.org/jira/browse/IGNITE-5855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16140229#comment-16140229
]
Ilya Kasnacheev commented on IGNITE-5855:
-----------------------------------------
The offender here is H2's ValueDecimal class:
It doesn't override Value's covertTo(), so when it is asked to be converted to
Java object, it returns
{code}
return ValueJavaObject.getNoCopy(null,
StringUtils.convertHexToBytes(getString().trim()),
getDataHandler());
{code}
Instead of sensible "if (targetType == JAVA_OBJECT) return value;" as one might
imagine.
So we will have to do the check outside of H2 code.
> SQL: BigInteger support broken in SQL queries.
> ----------------------------------------------
>
> Key: IGNITE-5855
> URL: https://issues.apache.org/jira/browse/IGNITE-5855
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 2.0, 2.1
> Reporter: Andrew Mashenkov
> Assignee: Ilya Kasnacheev
> Fix For: 2.2
>
> Attachments: BigIntegerKeySqlTest.java
>
>
> Looks like BigInteger support in SQL was broken.
> It works fine on ignite-1.9
> PFA reproducer.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)