[
https://issues.apache.org/jira/browse/IGNITE-23415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Efremov updated IGNITE-23415:
-------------------------------------
Description:
*Description*
In 2 tests that are testing modulo operation in approx. 1 out of 200 runs may
division by zero SqlException be thrown. The reason is a value generator that
assumes that zero-value is included
{{SqlTestUtils#generateValueByType(org.apache.ignite.sql.ColumnType, int,
int)}}. There may be several solutions like changing the bottom value in
generator by 1.
*Motivation*
Tests shouldn't be fallen because of randomly generated zero value.
*Definition of Done*
- {{NumericBinaryOperationsExecutionTest#moduloOp}} doesn't fail with division
by zero.
was:
*Description*
In 2 tests that are testing division and modulo operation in approx. 1 out of
200 runs may division by zero SqlException be thrown. The reason is a value
generator that assumes that zero-value is included
{{SqlTestUtils#generateValueByType(org.apache.ignite.sql.ColumnType, int,
int)}}. There may be several solutions like changing the bottom value in
generator by 1.
*Motivation*
Tests shouldn't be fallen because of randomly generated zero value.
*Definition of Done*
- {{NumericBinaryOperationsExecutionTest#divOp}} doesn't fail with division by
zero.
- {{NumericBinaryOperationsExecutionTest#moduloOp}} doesn't fail with division
by zero.
> NumericBinaryOperationsExecutionTest division by zero
> -----------------------------------------------------
>
> Key: IGNITE-23415
> URL: https://issues.apache.org/jira/browse/IGNITE-23415
> Project: Ignite
> Issue Type: Bug
> Reporter: Mikhail Efremov
> Priority: Minor
> Labels: ignite-3
>
> *Description*
> In 2 tests that are testing modulo operation in approx. 1 out of 200 runs
> may division by zero SqlException be thrown. The reason is a value generator
> that assumes that zero-value is included
> {{SqlTestUtils#generateValueByType(org.apache.ignite.sql.ColumnType, int,
> int)}}. There may be several solutions like changing the bottom value in
> generator by 1.
> *Motivation*
> Tests shouldn't be fallen because of randomly generated zero value.
> *Definition of Done*
> - {{NumericBinaryOperationsExecutionTest#moduloOp}} doesn't fail with
> division by zero.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)