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
Original issue reported on code.google.com by
zheilb...@gmail.com
on 31 Jul 2013 at 6:53