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

GEOMESA-2291 CQEngine - handle filter functions, etc #1969

Merged
merged 2 commits into from
Jun 7, 2018
Merged

Conversation

jnh5y
Copy link
Contributor

@jnh5y jnh5y commented May 31, 2018

  • Handles the cases around (in)equalities.

Signed-off-by: Jim Hughes jnh5y@ccri.com

* 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'",
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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>
@jnh5y
Copy link
Contributor Author

jnh5y commented Jun 5, 2018

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.

@elahrvivaz
Copy link
Contributor

@jnh5y do those extended tests pass? is the non-determinism an issue, or think it's ok to merge?

@jnh5y
Copy link
Contributor Author

jnh5y commented Jun 7, 2018

@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.

@elahrvivaz elahrvivaz merged commit 8c24193 into master Jun 7, 2018
@elahrvivaz elahrvivaz deleted the cqFunctions branch June 7, 2018 17:19
elahrvivaz pushed a commit that referenced this pull request Jun 7, 2018
* Handles the cases around (in)equalities.

Signed-off-by: Jim Hughes <jnh5y@ccri.com>
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.

2 participants