cqframework / cqframework/cql-tests
Wrong Expected Outcome for Sort with Duplicate Elements
@raleigh-g-thompson is already working on this.
Since Oct 1, 2025.
- Dominant language
- No language data
- Stars
- 7
- Forks
- 8
- Avg merge
- 12d 5h
- Merged PRs (30d)
- 2
Description
The test CqlListOperatorsTest.Sort.simpleSortAsc specifies the following CQL:
({4, 5, 1, 6, 2, 1}) sL sort asc
and expected result {1, 1, 2, 4, 5, 6}.
Similarly, the test CqlListOperatorsTest.Sort.simpleSortDesc specifies the following CQL:
({4, 5, 1, 6, 2, 1}) sL sort desc
and expected result {6, 5, 4, 2, 1, 1}.
These are both incorrect since the CQL spec says:
By default, a query returns a list of distinct results, suppressing duplicates.
As such, the expected outputs should be {1, 2, 4, 5, 6} and {6, 5, 4, 2, 1} respectively. Either updated the expected outcomes or add the all keyword to the queries so that duplicates are not suppressed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.