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

Remove PlanMatchPattern join overloading by builder #14542

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

Dith3r
Copy link
Member

@Dith3r Dith3r commented Oct 10, 2022

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:

@cla-bot cla-bot bot added the cla-signed label Oct 10, 2022
@Dith3r Dith3r requested review from lukasz-stec and sopel39 October 10, 2022 07:57
@Dith3r Dith3r changed the title JoinBuilder JoinMatchPatternBuilder to remove PlanMatchPattern overloading Oct 10, 2022
@findepi
Copy link
Member

findepi commented Oct 10, 2022

cc @martint @kasiafi

@Dith3r Dith3r marked this pull request as ready for review October 11, 2022 12:57
@Dith3r Dith3r force-pushed the issues/5976 branch 2 times, most recently from 601d33d to 9bf7347 Compare October 13, 2022 07:02
Copy link
Member

@sopel39 sopel39 left a 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?

@Dith3r Dith3r force-pushed the issues/5976 branch 2 times, most recently from 696f401 to 9ec87bf Compare October 13, 2022 14:51
@Dith3r Dith3r force-pushed the issues/5976 branch 2 times, most recently from 202237e to f26762e Compare October 14, 2022 07:33
Copy link
Member

@sopel39 sopel39 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % comment

@sopel39
Copy link
Member

sopel39 commented Oct 14, 2022

mind automation. There are compilation failures

@Dith3r Dith3r force-pushed the issues/5976 branch 2 times, most recently from f4d3e5d to 3592f99 Compare October 14, 2022 09:16
Copy link
Member

@kasiafi kasiafi left a 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.

@kasiafi
Copy link
Member

kasiafi commented Oct 14, 2022

Fixes #5976.

@Dith3r I think that with this annotation, the corresponding issue will get automatically closed when we merge this PR. Could you please make sure that we don't want to migrate anything else to builders?

Copy link
Member

@sopel39 sopel39 left a 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

@Dith3r Dith3r changed the title JoinMatchPatternBuilder to remove PlanMatchPattern overloading Remove PlanMatchPattern join overloading by builder Oct 17, 2022
@Dith3r Dith3r force-pushed the issues/5976 branch 2 times, most recently from 57c0b28 to ba5de57 Compare October 17, 2022 07:56
@sopel39 sopel39 merged commit 3cef9ab into trinodb:master Oct 18, 2022
@github-actions github-actions bot added this to the 401 milestone Oct 18, 2022
@Dith3r Dith3r deleted the issues/5976 branch March 27, 2023 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Use builders in PlanMatchPattern
5 participants