-
Notifications
You must be signed in to change notification settings - Fork 0
FMWK-733 Add support for expression placeholders #46
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
Conversation
…e traversing expr. tree instead of when parsing, add tests
| */ | ||
| private static Filter getFilterOrFail(AbstractPart left, AbstractPart right, FilterOperationType type) { | ||
| validateOperands(left, right); | ||
| private static Filter getFilterOrFail(AbstractPart left, AbstractPart right, FilterOperationType type, |
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.
nit: the method should be renamed to getFilterOrNull since if nothing matches we don't raise an error but return null.
| * @return A {@link Filter} if one can be generated, otherwise {@code null} | ||
| * @throws NoApplicableFilterException if the expression structure is not supported for filtering | ||
| */ | ||
| private static Filter getFilterFromExpressionOrFail(AbstractPart exprLeft, AbstractPart exprRight, |
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.
nit: the method should be renamed to getFilterFromExpressionOrNull since if nothing matches we don't raise an error but return null.
mirzakaracic
left a comment
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.
Couple nits other than that it looks great to me.
👍
|
Added support for more complicated expressions, refactored implementation, added tests |
src/main/java/com/aerospike/dsl/parts/operand/OperandFactory.java
Outdated
Show resolved
Hide resolved
…ck placeholder values for null, add tests
Uh oh!
There was an error while loading. Please reload this page.