-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Remove PlanMatchPattern join overloading by builder #14542
Conversation
core/trino-main/src/test/java/io/trino/sql/planner/assertions/JoinMatchPatternBuilder.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/assertions/JoinMatchPatternBuilder.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/assertions/PlanMatchPattern.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/assertions/PlanMatchPattern.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/TestPredicatePushdown.java
Outdated
Show resolved
Hide resolved
601d33d
to
9bf7347
Compare
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.
lgtm % comments.
@raunaqmorarka, @findepi or @kasiafi do you want to take a look?
core/trino-main/src/test/java/io/trino/sql/planner/AbstractPredicatePushdownTest.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/AbstractPredicatePushdownTest.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/TestDynamicFilter.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/assertions/JoinMatchPatternBuilder.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/assertions/JoinMatchPatternBuilder.java
Outdated
Show resolved
Hide resolved
696f401
to
9ec87bf
Compare
core/trino-main/src/test/java/io/trino/sql/planner/assertions/JoinMatchPatternBuilder.java
Outdated
Show resolved
Hide resolved
202237e
to
f26762e
Compare
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.
lgtm % comment
core/trino-main/src/test/java/io/trino/sql/planner/AbstractPredicatePushdownTest.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/planner/TestDynamicFilter.java
Outdated
Show resolved
Hide resolved
mind automation. There are compilation failures |
f4d3e5d
to
3592f99
Compare
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.
I think it would be good to follow our usual practices around matchers.
We tend to put the Builder class within the corresponding Matcher class.
Additionally, we usually pass a builder handler, thus avoiding the call to the build()
method in the tests.
Could you please refactor for consistency with the existing code? You can use the PatternRecognitionMatcher
class as the example, and the PlanMatchPattern.patternRecognition()
method for builder usage example.
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.
I like it, much better
core/trino-main/src/test/java/io/trino/sql/planner/assertions/JoinMatcher.java
Show resolved
Hide resolved
57c0b28
to
ba5de57
Compare
Description
Fixes #5976.
The Builder class was added to make assertions easier to create and remove the overload.
Non-technical explanation
Clean the test code.
Release notes
(x ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: