-
Notifications
You must be signed in to change notification settings - Fork 9
Element condition refactoring and exception message fix #153
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
base: main
Are you sure you want to change the base?
Conversation
src/test/java/com/teragrep/pth_06/planner/walker/conditions/StreamingConditionTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/teragrep/pth_06/planner/walker/conditions/StreamingConditionTest.java
Outdated
Show resolved
Hide resolved
f1627ab to
bce62f0
Compare
|
rebased |
src/main/java/com/teragrep/pth_06/planner/walker/conditions/NonStreamingCondition.java
Outdated
Show resolved
Hide resolved
src/test/java/com/teragrep/pth_06/planner/walker/conditions/NonStreamingConditionTest.java
Outdated
Show resolved
Hide resolved
…est resulting conditions of accepted values NonStreamingCondition
|
There are two changes in the same pr and therefore review process takes time. Please separate the exception fix and pr it first as it's a very simple change. |
|
|
||
| import java.util.Objects; | ||
|
|
||
| public final class StreamingCondition implements QueryCondition { |
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.
class name is misleading. all queries are micro-batch-streaming queries. this most likely refers streamdb query which is a non-time-range query where it's relevant pair journaldb query has time bounds. please refactor.
| private final String operation; | ||
| private final ConditionConfig config; | ||
|
|
||
| public NonStreamingCondition(String tag, String value, String operation, ConditionConfig config) { |
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.
see comment on StreamingCondition
For #120 and #123
Clears up
ElementConditionlogic by splitting streaming and non streaming conditions into own classes.Fixes issue where an error message was thrown if a recognized element name was encountered in a streaming query like
<earliest>. These elements now result to aDSL.noConditionthat functions as a "where is true" value in a query as a pass through condition, and will not have effect the query.ConditionWalkeris refactored not to negate aDSL.noConditionas it would result into a condition that is never true i.e. "where not true".Exception is thrown if a unknown element name is encountered like
<random>.Refactor
IndexStatementto not use a base condition from constructor as this was not needed.