-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[DROOLS-6892] Wrapper class unwrapped value is not indexed in exec-model #4318
[DROOLS-6892] Wrapper class unwrapped value is not indexed in exec-model #4318
Conversation
Jenkins run fdb |
92a0773
to
3bae31a
Compare
Jenkins run fdb |
non-exec-model
exec-model
As you see, in Non-exec-model, props for property reactivity and props for index are separately managed. On the other hand, in exec-model, property reactivity relies on One possible approach is to enhance In this PR, I took a conservative approach only focusing on the index issue. I don't change @mariofusco Feel free to share your thought on this. Thanks! |
private static void replaceTypeInIndex(String bindingId, Class accumulateFunctionResultType, Expression expression) { | ||
expression.findAll(MethodCallExpr.class) | ||
.stream() | ||
.map(mce -> { |
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.
I guess this was for debug (you can use peek instead of map
in future) and now you can remove it.
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.
Thank you for spotting! Fixed.
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.
Ok for me, I just left a minor comment. I just wonder if this could have any relevant impact on executable model generation time. I think we could merge it anyway, but maybe you could ask Daniel to run some of our benchmarks against it?
FDB : flaky test
|
Yes, it would potentially have a negative impact on executable model generation time. I'll check with Daniel. Thank you for the suggestion. @hellowdan I sent an email to you. Thanks! |
…del (apache#4318) * [DROOLS-6892] Wrapper class unwrapped value is not indexed in exec-model * - remove syso
… exec-model (apache#4318)" This reverts commit 68c4afa.
Ports
This PR is for 7.x
for main -> https://github.com/kiegroup/drools/pull/4328
JIRA:
https://issues.redhat.com/browse/DROOLS-6892
How to replicate CI configuration locally?
Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.
build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.
How to retest this PR or trigger a specific build:
a pull request please add comment: Jenkins retest this
for a full downstream build
run_fdb
a compile downstream build please add comment: Jenkins run cdb
a full production downstream build please add comment: Jenkins execute product fdb
an upstream build please add comment: Jenkins run upstream