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

Adding EqualsValue filter #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamcataldo
Copy link

No description provided.

@cwensel
Copy link
Member

cwensel commented Aug 1, 2013

is not ExpressionFilter a reasonable alternative?

On Aug 1, 2013, at 11:15 AM, adamcataldo notifications@github.com wrote:

You can merge this Pull Request by running

git pull https://github.com/adamcataldo/cascading equalsValue
Or view, comment on, or merge it at:

#15

Commit Summary

Adding EqualsValue filter
File Changes

A src/core/cascading/operation/filter/EqualsValue.java (47)
A src/test/cascading/operation/filter/EqualsValueTest.java (38)
Patch Links:

https://github.com/Cascading/cascading/pull/15.patch
https://github.com/Cascading/cascading/pull/15.diff

Chris K Wensel
chris@concurrentinc.com
http://concurrentinc.com

@adamcataldo
Copy link
Author

You can, but we generally avoid ExpressionFilter at my company (Wealthfront), because we put a premium on having the compiler catch as many errors as possible. The expression is just a string, so the compiler isn't able to infer much. As a result, we tend to create more narrowly-focused filters, which is a bit more up-front work, but lends itself more easily to testing, which we also put a premium on.

I've found myself using this particular filter often enough, that it seemed worth adding to the framework. In my mind, it's on par with FilterNull/FilterNotNull.

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