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
Address extra parens introduced by several visitors. ASTDelayedPredicate detects if a node is already delayed. #1165
Merged
hgklohr
merged 3 commits into
NationalSecurityAgency:release/version3.2
from
apmoriarty:task/StopDoubleWrappingNodes
Jul 22, 2021
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
apmoriarty
commented
May 6, 2021
- Added RemoveExtraParensVisitor
- PushdownNegationsVisitor now creates unwrapped And/Or nodes
- ASTDelayedPredicate will detect already-delayed nodes and subtrees (avoids double delays)
apmoriarty
requested review from
alerman,
billoley,
cawaring,
drewfarris,
hlgp,
ivakegg,
jschmidt10,
jwomeara,
keith-ratcliffe and
matthpeterson
as code owners
May 6, 2021 13:04
apmoriarty
force-pushed
the
task/StopDoubleWrappingNodes
branch
from
May 12, 2021 11:28
568d487
to
732d33a
Compare
ivakegg
requested changes
May 26, 2021
warehouse/query-core/src/main/java/datawave/query/jexl/visitors/PushdownNegationVisitor.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RemoveExtraParensVisitor.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/planner/DefaultQueryPlanner.java
Show resolved
Hide resolved
warehouse/query-core/src/main/java/org/apache/commons/jexl2/parser/ASTDelayedPredicate.java
Outdated
Show resolved
Hide resolved
...house/query-core/src/test/java/datawave/query/jexl/visitors/PushdownNegationVisitorTest.java
Outdated
Show resolved
Hide resolved
apmoriarty
force-pushed
the
task/StopDoubleWrappingNodes
branch
from
May 27, 2021 15:20
fde79a5
to
5c3f6ee
Compare
apmoriarty
force-pushed
the
task/StopDoubleWrappingNodes
branch
from
June 21, 2021 10:15
7cd19f6
to
1c357b3
Compare
FineAndDandy
requested changes
Jun 21, 2021
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.
call RemoveExtraParensVisitor from TreeFlatteningRebuildingVisitor if a full integration isn't reasonable.
FineAndDandy
previously approved these changes
Jun 22, 2021
I like that we got a lot of 'free' unit tests by making this update |
Great suggestion |
apmoriarty
force-pushed
the
task/StopDoubleWrappingNodes
branch
from
July 19, 2021 15:09
3e8eb72
to
e1441af
Compare
apmoriarty
changed the base branch from
feature/accumulo-2.0
to
release/version3.2
July 19, 2021 15:10
…ate detects if a node is already delayed.
apmoriarty
force-pushed
the
task/StopDoubleWrappingNodes
branch
from
July 19, 2021 16:06
e1441af
to
2f1f866
Compare
FineAndDandy
previously approved these changes
Jul 19, 2021
…teningRebuildingVisitor.
d-hwang
approved these changes
Jul 19, 2021
FineAndDandy
approved these changes
Jul 22, 2021
hlgp
approved these changes
Jul 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.