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

[Bug] fix bugs of analyzation of rewrited SQL when triggered the materialized vew #9877

Merged
merged 6 commits into from
Jun 2, 2022

Conversation

Kikyou1997
Copy link
Contributor

@Kikyou1997 Kikyou1997 commented May 31, 2022

Proposed changes

Issue Number: #9876

Problem Summary:

Remove the redundant logic of set tableName for the new create slotRef based on the rewrited materialized view column which could cause the unexpected analyze exception

Checklist(Required)

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

@EmmyMiao87 EmmyMiao87 added area/materialized-view Issues or PRs related to materialized view kind/fix Categorizes issue or PR as related to a bug. labels May 31, 2022
@morningman morningman added the dev/1.0.1-deprecated should be merged into dev-1.0.1 branch label Jun 1, 2022
@morningman morningman added this to the v1.1 milestone Jun 1, 2022
TableName tableName = queryColumnSlotRef.getTableName();
Preconditions.checkNotNull(tableName);
SlotRef mvSlotRef = new SlotRef(tableName, mvColumn.getName());
SlotRef mvSlotRef = new SlotRef(null, mvColumn.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

morningman
morningman previously approved these changes Jun 1, 2022
Copy link
Contributor

@morningman morningman 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 Jun 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2022

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

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2022

PR approved by anyone and no changes requested.

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

Please add test case for this

@github-actions github-actions bot added kind/test and removed approved Indicates a PR has been approved by one committer. labels Jun 2, 2022
morningman
morningman previously approved these changes Jun 2, 2022
Copy link
Contributor

@morningman morningman 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
Copy link
Contributor

github-actions bot commented Jun 2, 2022

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

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

@morningman morningman 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 Jun 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2022

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

@morningman morningman merged commit 67fa1fc into apache:master Jun 2, 2022
@morningman morningman added dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 and removed dev/1.0.1-deprecated should be merged into dev-1.0.1 branch labels Jun 2, 2022
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/materialized-view Issues or PRs related to materialized view dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 kind/fix Categorizes issue or PR as related to a bug. kind/test reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants