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

feat: Comparing different types returns null #711

Merged
merged 6 commits into from
Sep 15, 2023
Merged

Conversation

saig0
Copy link
Member

@saig0 saig0 commented Sep 14, 2023

Description

If an expression or a unary-test compares two values of different types then the evaluation returns null and reports a failure. Previously, the evaluation failed with an error.

The new behavior is aligned with the DMN specification and helps users to handle these cases.

Related issues

closes #708

If an expression compares two values of different types then the evaluation returns null and reports a failure.

Previously, the evaluation failed with an error.

The new behavior is aligned with the DMN specification and helps users to handle these cases.
If a unary-test expression compares the input value with a value of a different type then the evaluation returns null and reports an error.

Previously, the evaluation failed with an error.
Adjust the test cases to expect `null` as the result of the evaluation. Previously, the evaluation failed in these cases.
The evaluation of the unary-tests expression doesn't fail anymore. Instead, it returns null.
@saig0
Copy link
Member Author

saig0 commented Sep 14, 2023

@nicpuppa please review this new PR in the next few days. It is again about being more full-friendly - this time when comparing values of different types. 🍪

Copy link
Contributor

@nicpuppa nicpuppa left a comment

Choose a reason for hiding this comment

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

LGTM 🥳 🚀

I left some comments below, please have a look and let me know your thoughts @saig0 💪

@saig0 saig0 merged commit 809c503 into main Sep 15, 2023
3 checks passed
@saig0 saig0 deleted the 708-compare-different-types branch September 15, 2023 04:36
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.

Comparing different types should return null
2 participants