asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hussain Towaileb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ASTERIXDB-2469) Testing can result in false positives for Numerical tests
Date Sun, 28 Oct 2018 02:20:00 GMT

     [ https://issues.apache.org/jira/browse/ASTERIXDB-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hussain Towaileb updated ASTERIXDB-2469:
----------------------------------------
    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
 ));

  was:
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
));


> Testing can result in false positives for Numerical tests
> ---------------------------------------------------------
>
>                 Key: ASTERIXDB-2469
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2469
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: TEST - Test Framework
>            Reporter: Hussain Towaileb
>            Assignee: Hussain Towaileb
>            Priority: Major
>
> 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
>  ));



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message