cqframework / cqframework/cql-execution
Improve support for CQL Decimal
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 84
- Forks
- 38
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 1
Description
The CQL Decimal type supports "decimal values in the range (-10^28 + 1)/10^8 to (10^28-1)/10^-8 with a step size of 10^-8." CQL Execution supports CQL Decimal using JavaScript Number. This implementation has a few limitations regarding the CQL specification:
- Precision is lost at the upper and lower ends of the required range of numbers
- Initial precision is not maintained in all cases (e.g., there is no discernible difference between 1, 1.0, and 1.00)
- Type is not maintained for non-fractional numbers (e.g., unable to determine if 1.0 should be an integer, long, or decimal) (#204)
The approach for supporting CQL Decimal should be the same (or similar) as for supporting CQL Long (#207).
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.
Research direction
Start by reviewing the existing CQL Long support referenced in issue #207 and compare it with the CQL Decimal requirements linked in this issue. Done means supporting the specified Decimal range and step size while preserving initial precision and distinguishing non-fractional decimal values as required by the CQL specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100