Closed creatorrr closed 3 months ago
Working for me with take: n != 0 e.g.,
test[a] <- [[1], [2], [3]]
?[i, x] <~ ReorderSort(test[a], out: [a], sort_by: [-a], take: 10)
So it looks like the default value for take of 0 does not have the documented magic significance of unbounded.
perhaps:
if 0 != count && count > take_plus_skip {
break;
}
Proposed fix in PR https://github.com/cozodb/cozo/pull/277
Ah that makes sense! Thanks for the catch and the fix 😄 Closing
ReorderSort
does not return anything. Am I doing something wrong? @zh217Query: