-
Notifications
You must be signed in to change notification settings - Fork 439
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
GEOMESA-2291 CQEngine - handle filter functions, etc #1969
Conversation
* Handles the cases around (in)equalities. Signed-off-by: Jim Hughes <jnh5y@ccri.com>
@@ -259,4 +259,13 @@ object SampleFilters { | |||
"Who ILIKE 'ADD%'", | |||
"Who ILIKE '%DA%'" | |||
) | |||
|
|||
val functionPredicates: Seq[Filter] = Seq( | |||
"strConcat(Who, What) = 'Addams1'", |
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.
will this work with multiple AND'd predicates?
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.
can you add some tests for AND'd predicates of various types?
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.
Good call.... I just added some tests, and things aren't right...
Signed-off-by: Jim Hughes <jnh5y@ccri.com>
I didn't check it in here... but if you want more tests (and some non-determinism to boot!), you can check out this commit: ccri@039f486. |
@jnh5y do those extended tests pass? is the non-determinism an issue, or think it's ok to merge? |
@elahrvivaz the extended tests pass. The non-determinism comes from the fact that I was generating a random subset of 3-combinations of all the existing filters....;) This should be good to go. |
* Handles the cases around (in)equalities. Signed-off-by: Jim Hughes <jnh5y@ccri.com>
Signed-off-by: Jim Hughes jnh5y@ccri.com