Skip to content

Commit

Permalink
Merge pull request #1164 from RumbleDB/TestFix2
Browse files Browse the repository at this point in the history
Order tests.
  • Loading branch information
ghislainfourny authored Feb 1, 2022
2 parents 1d3a3d6 + 2279570 commit c7bf3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(:JIQS: ShouldRun; Output="({ "key" : null, "count" : 4 }, { "key" : true, "count" : 4 }, { "key" : "foo", "count" : 3 }, { "key" : 2, "count" : 1 }, { "key" : 1, "count" : 2 }, { "key" : false, "count" : 2 }, { "key" : "bar", "count" : 1 }, { "key" : null, "count" : 2 })" :)
(:JIQS: ShouldRun; Output="({ "key" : null, "count" : 4 }, { "key" : 1, "count" : 2 }, { "key" : 2, "count" : 1 }, { "key" : "bar", "count" : 1 }, { "key" : false, "count" : 2 }, { "key" : "foo", "count" : 3 }, { "key" : null, "count" : 2 }, { "key" : true, "count" : 4 })" :)
for $i in parallelize((
{ "a" : 1, "b" : 1 },
{ "a" : true, "b" : 1 },
Expand All @@ -22,6 +22,7 @@ for $i in parallelize((
))
let $j := flatten($i.a)
group by $j
order by serialize($j)
return {
"key" : $j, "count": sum($i.b)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ for $i in parallelize((
{"guess": "Bulgarian", "target": "Albanian", "country": "AU", "choices": ["Albanian", "Bulgarian", "Russian", "Ukrainian"], "sample": "00b85faa8b878a14f8781be334deb137", "date": "2013-08-19"},
{"guess": "Bulgarian", "target": "Albanian", "country": 123, "choices": ["Albanian", "Bulgarian", "Russian", "Ukrainian"], "sample": "00b85faa8b878a14f8781be334deb137", "date": "2013-08-19"}))
group by $j := $i.country
order by string($j)
return $i


Expand Down

0 comments on commit c7bf3fd

Please sign in to comment.