You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Evgeny Stanilovsky (Jira)" <ji...@apache.org> on 2024/08/02 06:21:00 UTC

[jira] [Created] (IGNITE-22890) Sql. Fix serialisation\deserealisation check in AbstractPlannerTest.checkSplitAndSerialization

Evgeny Stanilovsky created IGNITE-22890:
-------------------------------------------

             Summary: Sql. Fix serialisation\deserealisation check in AbstractPlannerTest.checkSplitAndSerialization
                 Key: IGNITE-22890
                 URL: https://issues.apache.org/jira/browse/IGNITE-22890
             Project: Ignite
          Issue Type: Improvement
          Components: sql
    Affects Versions: 3.0.0-beta1
            Reporter: Evgeny Stanilovsky


At this time SqlTestUtils#generateValueByType is used in *TypeCoercionTest test, this function is not take into account precision\scale for DECIMAL types and returns:

{noformat}
            case DECIMAL:
                return BigDecimal.valueOf(base + ((double) base / 1000)).add(BigDecimal.valueOf(Long.MAX_VALUE));
{noformat}

Seems we need to fix it, for more accurate tests approach.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)