-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[incubator-kie-issues#2021] DMN boxed filter behavior in relation to implicit conversions #6393
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
[incubator-kie-issues#2021] DMN boxed filter behavior in relation to implicit conversions #6393
Conversation
…elation to implicit conversions
kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/BoxedExpressions.dmn
Outdated
Show resolved
Hide resolved
kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java
Outdated
Show resolved
Hide resolved
PR job Reproducerbuild-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6393 --skipParallelCheckout NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6393/3/display/redirect Test results:
Those are the test failures: org.kie.dmn.validation.ValidatorTest.validateAllValidSharedModelsExpecting empty but was: [Message [id=0, level=WARNING, path=valid_models/DMNv1_6/BoxedExpressions.dmn, line=30, column=-1 text=DMN: Variable named 'boxedFilter' is missing its type reference on node 'boxedFilter' (DMN id: _F2C7743C-F89C-42D1-89DA-689DFF6E11DA, Type ref not defined) ], Message [id=0, level=WARNING, path=valid_models/DMNv1_6/BoxedExpressions.dmn, line=36, column=-1 text=DMN: Variable named 'boxedIterator' is missing its type reference on node 'boxedIterator' (DMN id: _CABFAFAB-3829-46C9-9584-EF093B904CBA, Type ref not defined) ]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the behavior of DMN boxed filter operations in relation to implicit conversions, addressing issue #2021. The primary changes include correcting list type handling in the type registry and adding comprehensive test coverage for boxed filter and iterator operations.
- Fixes list type collection flag in DMN type registry from false to true
- Adds new test models for boxed filter and iterator operations
- Implements comprehensive test coverage including edge cases and error scenarios
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
BoxedIterator.dmn | DMN test model for boxed iterator operations with single number input |
BoxedFilter.dmn | DMN test model for boxed filter operations with string comparison |
DMNTypeRegistryAbstractTest.java | Unit tests for type registry functionality and built-in type handling |
DMNRuntimeTest.java | Integration tests for boxed filter/iterator scenarios including error cases |
DMNTypeRegistryAbstract.java | Core fix for list type collection flag and refactored type management |
Comments suppressed due to low confidence (2)
kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java:529
- The test method name 'boxedFilterInvalidConditionWithInvalidInput' is misleading as it actually tests a boxed iterator, not a boxed filter. Consider renaming to 'boxedIteratorWithInvalidInput'.
void boxedFilterInvalidConditionWithInvalidInput(boolean useExecModelCompiler) {
kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java:551
- The test method name 'boxedFilterInvalidConditionWithNonNumeric' is misleading as it actually tests a boxed iterator, not a boxed filter. Consider renaming to 'boxedIteratorWithNonNumericInput'.
void boxedFilterInvalidConditionWithNonNumeric(boolean useExecModelCompiler) {
Fixes apache/incubator-kie-issues#2021
This PR corrects the behavior of the DMN boxed filter with respect to implicit conversions.