Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving NumericValue to double to ensure correctness during comparison #38

Merged
merged 4 commits into from
Jan 15, 2024

Conversation

Tushar-Naik
Copy link
Collaborator

NumericValue using Number would bring in ambiguities during comparison.
So functions like these would fail because 3 is read as Double and NumericValue from builtin function returns Integer

date.week_of_month() == 3

This PR moves it to Double by default, to ensure comparison is always against the same datatype

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Owner

@santanusinha santanusinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add tests

…o EvaluatableValue<Number> as it was unnecessary
Copy link

sonarcloud bot commented Jan 15, 2024

@santanusinha santanusinha merged commit 37b5609 into master Jan 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants