[
https://issues.apache.org/jira/browse/IGNITE-22890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Iurii Gerzhedovich reassigned IGNITE-22890:
-------------------------------------------
Assignee: Iurii Gerzhedovich
> Sql. Improve SqlTestUtils#generateValueByType for DECIMAL type with defined
> precision\scale
> -------------------------------------------------------------------------------------------
>
> 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
> Assignee: Iurii Gerzhedovich
> Priority: Major
> Labels: ignite-3
>
> 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)