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
ISPN-3917 Implement projections for unindexed filters #2567
Conversation
I've started to look but couldn't finish. @gustavonalle could you review this too? Good to familiarize with this functionality. |
rebased. |
@wburns Please have a look too, since you'll be the first user of the Matcher/ObjectFilter api :) |
Updated tests. |
First pass seems fine to me. Seems like the API is a bit nicer now thanks 👍 |
Looks nice! I found issues with a couple of expressions:
|
Thanks @wburns and @gustavonalle! I noticed the comment only now. Will try to fix asap. |
Thanks for spotting those issues. I fixed them. @gustavonalle I think you added comments directly on the commit rather that in the 'conversation' or 'changed files' tab. github has the nasty habit of occasionally removing such comments when the commit in question is updated, which just happened. So I'll answer here:
|
Makes sense! Re the issues, sorry for not being specific, but the second use case
is for an existing property, and I'm afraid it is still throwing NPE |
@gustavonalle I've just found a problem with != operator and fixed it and added test for it. Also added tests for 'is null' for both existing and missing property but could not find the NPE you mention. I'm surely not doing it right. Could you please try again on the new version and post a stacktrace or the test code that fails? Thanks! |
The NPE happens when an existing property of the instance obj has null value:
|
Got it now! That was easily fixed for the reflection based cased. But running the same test for a protobuf encoded entity leads to another issue, https://issues.jboss.org/browse/ISPN-4319. I'll solve that separately. |
Also refactor the Matcher interface and the interface for single filters (no callback)
Integrated! |
Also refactor the Matcher interface and the interface for single filters (no callback)
Jira: https://issues.jboss.org/browse/ISPN-3917