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

[refactor] (Nereids) rename GroupExpression.getParent() to getOwnerGroup() #11027

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

englefly
Copy link
Contributor

Proposed changes

GroupExpression.getParent() returns the group which contains this expr. This name is missleading especially in tree structures.
So we change the name to getOwnerGroup.

@924060929 could u review, please?

Issue Number: close #xxx

Problem Summary:

Describe the overview of changes.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@morrySnow
Copy link
Contributor

please use [xxx](Nereids) as title prefix

// TODO: need to merge group recursively
groupExpression.getParent().removeGroupExpression(groupExpression);
GroupExpression that = groupExpressions.get(groupExpression);
mergeGroup(groupExpression.getOwnerGroup(), that.getOwnerGroup());
Copy link
Contributor

Choose a reason for hiding this comment

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

we should add some ut for merge group recursively

@924060929
Copy link
Contributor

wait for checks

@924060929 924060929 changed the title [refactor] rename GroupExpression.getParent() to getOwnerGroup() [refactor](Nereids) rename GroupExpression.getParent() to getOwnerGroup() Jul 20, 2022
@englefly englefly changed the title [refactor](Nereids) rename GroupExpression.getParent() to getOwnerGroup() [refactor] (Nereids) rename GroupExpression.getParent() to getOwnerGroup() Jul 20, 2022
Copy link
Contributor

@924060929 924060929 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 20, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@924060929 924060929 merged commit 6233b52 into apache:master Jul 20, 2022
miswujian pushed a commit to miswujian/doris that referenced this pull request Jul 28, 2022
…oup() (apache#11027)

GroupExpression.getParent() returns the group which contains this expr. This name is missleading especially in tree structures.
So we change the name to getOwnerGroup.
whutpencil pushed a commit to whutpencil/incubator-doris that referenced this pull request Jul 29, 2022
…oup() (apache#11027)

GroupExpression.getParent() returns the group which contains this expr. This name is missleading especially in tree structures.
So we change the name to getOwnerGroup.
eldenmoon pushed a commit to eldenmoon/incubator-doris that referenced this pull request Aug 1, 2022
…oup() (apache#11027)

GroupExpression.getParent() returns the group which contains this expr. This name is missleading especially in tree structures.
So we change the name to getOwnerGroup.
@englefly englefly deleted the getOwnerGroup branch August 5, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. area/nereids reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants