Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2469

Testing can result in false positives for Numerical tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.4
    • 0.9.5
    • TEST - Test Framework
    • None

    Description

      The tests for numerical values can result in false positives, like the count function example below (current behavior):

      Expected value: 3 => Test passed => This is correct result and correct data type.

      Expected value: 3.0 => Test passed => This is correct result but wrong data type. (Count function returns BIGINT, this test should fail)

       

      select element array_count((
      select element x
      from [1,2,3] as x
      ));

      Attachments

        Activity

          People

            HussainHT Hussain Towaileb
            HussainHT Hussain Towaileb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: