Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23415

NumericBinaryOperationsExecutionTest division by zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0
    • sql

    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.

      Attachments

        Issue Links

          Activity

            People

              zstan Evgeny Stanilovsky
              jakutenshi Mikhail Efremov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h