br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Sporadic test failure for distinct/query-issue-443-2 #593

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Pasting email thread here:
(Zach)
There is a test case: distinct/query-issue-443-2.

It is defined in testsuite.xml as:
<test-case FilePath="distinct">
      <compilation-unit name="query-issue443-2">
        <output-dir compare="Text">query-issue443-2</output-dir>
      </compilation-unit>
</test-case>

The actual query is defined as:
/*
 * Description  : This test case is to verify the fix for issue443
                 : https://code.google.com/p/asterixdb/issues/detail?id=443
 * Expected Res : Fail
 * Date         : 22th May 2013
 */

for $a in [ {"f" : 19, "g": 1} , {"f" : 12, "g": 2} , {"f" : 10, "g": 1} , {"f" 
: 17, "g": 1}, {"f" : 12, "g": 4} ]
distinct by $a.f
return $a

The query file itself claims the test should fail. The declaration in 
testsuite.xml says that it should not.

What is the expected result of this query? Pass/fail? And also, what are the 
semantics?

(Yingyi)
It should pass.
However, we recently added random shuffling in quick sort so that the result 
becomes undeterministic.

Original issue reported on code.google.com by zheilb...@gmail.com on 31 Jul 2013 at 6:53

GoogleCodeExporter commented 8 years ago
hyracks: yingyi/fullstack_fix
asterixdb: yingyi/asterix_fix 

Original comment by buyingyi@gmail.com on 7 Aug 2013 at 9:52

GoogleCodeExporter commented 8 years ago

Original comment by buyingyi@gmail.com on 8 Aug 2013 at 5:36